Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

TNS and LISTENER Configuration in oracle


TNS-Transparent network substrate.
  • The transparent network substrate a proprietary oracle computer networkin technology,supports homogeneous peer-to-peer connectivity on top of other  networking technologies such as  tcp/ip and named pipes.
  • Tns operates mainly for connection to oracle databases.
  • Which is the responsible of connecctions establishment.

TNS ENTRY:-
[oracle@nijam]$netca
Step1:- To click the local net service name configuration and click next button.
Step2:-To  click the add and click next button.
Step3:-To add service name  and click next button.
Step4:-To  click the tcp  and click next button.
Step5:-To add  host name and click next button.
Step6:-To click the no  and click next button.
Step7:-To add net service name and click next button.
Step8:-To click the no and click the next button.
Step 9:-to click the finish button.

then check the information  os  level.
[oracle@nijam]$cd $ORACLE_HOME/network/admin/
[oracle@nijam admin]$vi tnsname.ora
#tnsnames.ora network  configuration file:/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
#generated by oracle configuration tools.
Nijam=(description=(address_list=(address=(protocol=tcp)(host=192.168.2.22)(port=1521))
)(connect_data=(service_name=nijam)
)
)
Save  the file.


[oracle@nijam admin]$tnsping nijam
[oracle@nijam]$ps –ef|grep –i tns

LISTENER:-
  • The oracle database listener is the server process that provides basic network connectivity for clients,application servers,and other databases to an oracle databases.
  • In addition to  database ,the listener can also be configured to  support  binary executables.
  • The listener listens on a  specific network port(default 1521) and forwards  network connections to the database.
  • The listener configuration,  stored in the listener.ora  file.
[oracle@nijam]$netca

Step1:-To click the listener  configuration  and click next button.
Step2:-To click the  add and click the next button
Step3:-To add listener name and click next button
Step4:-To click the tcp and click next button.
Step5:-To click the no and next button.
Step6:-To click the finish button.

[oracle@nijam]$cd $ORACLE_HOME/network/admin/
[oracle@nijam admin]$vi listener.ora
Listener=(description=
(address_list=
(address=(protocol=tcp)(host=192.168.0.200)(port=1521))
(address=(protocol=ipc)(key=extproc))))
Sid_list_listner=
(sid_list=
(sid_desc=
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
(sid_name=nijam))
)
Then save the file.

[oracle@nijam admin]$lsnrctl
Lsnctl>start    --->a starts the listener with the name specified.will be used.
Lsnrctl>stop   --->a stop the listener.
Lsnrctl>status --->information about the listener.
Lsnrctl>reload --->a forces a read of the configuration file in orderfor new settings to take effect without stopping and starting the listener.
Lsnrctl>exit --->a the lsnrctl utility.

check whether port is available or not.
[oracle@nijam]$netstat  -tunlp|grep 1521.


TNS_ADMIN is an environment variable that points to the directory where the SQL*Net configuration files (like sqlnet.ora and tnsnames.ora) are located.

Windows:
set TNS_ADMIN=%ORACLE HOME%\network\admin

Unix/ Linux:
export TNS_ADMIN=$ORACLE HOME/network/admin

Comments

Popular posts from this blog

PostgreSQL Index

VMWARE WORKSTATION 3,4,5,6,7,8,9,10,11,12,14,15...etc LICENSE KEYS COLLECTION

How to CreateYour Own AWS Account Alias?

How to Get Table Size, Database Size, Indexes Size, schema Size, Tablespace Size, column Size in PostgreSQL Database

PostgreSQL ALTER TABLE ... SET LOGGED / UNLOGGED