September 24, 2017 | Author: Mabu Dba | Category: N/A
LISTENER AND TNS CONFIGURATION
NAME : HARIHARAN POSTED ON : 10-7-10 ORAFACT LAB
LISTENER CONFIGURATION : 1) $ . hari10g.env 2) $ Cd /d01/oracle10g/10.2.0/db_1/network/admin 3) $ ls IF THERE IS NO LISNTENER.ORA CREATE LISTENER: 1) $ . hari10g.env 2) $ netmgr
ORAFACT LAB
3) add listener(LISTENER10), add database for listener, port, protocol. 4) File ==> save net configuration. 5) $ . hari10g.env $ lsnrctl start LISTENER10
(NAME OF THE 10g LISTENER)
ORAFACT LAB
completed sucessfully..... check ......
ORAFACT LAB
1. [hari@of40 ~]$ ls afiedt.buf Desktop hari10g.env list~ 2. [hari@of40 ~]$ cat list~ 1.pwd for list.ora: /d01/oracle10g/10.2.0/db_1/network/admin THIS IS THE DIR OF OUR LISTENER.ORA
ORAFACT LAB
3) [hari@of40 admin]$ ls listener.ora
TNS NAMES.ORA 1. [hari@of40 ~]$ cd /d01/oracle10g/10.2.0/db_1/network/admin 2. [hari@of40 admin]$ ls (no tnsnames.ora file) THEN CREATE TNS.ORA
ORAFACT LAB
3. $ . hari10g.env $ netca $ select local name config , add, service name(edev), tcp, host name(192.168.1.50==>hosts), perform test, change login(system/welcome),edev—finish).
4. [hari@of40 admin]$ ls listener.ora
tnsnames.ora
5. [hari@ of40 ~]$ vi tnsnames.ora
ORAFACT LAB
WITH IP- CONNECT TO HOST: = ========================== [hari@of40 ~]$ . hari10g.env [[hari@of40 ~]$ sqlplus system/
[email protected]:1526/edev SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jul 7 14:51:50 2010 S Copyright (c) 1982, 2010, Oracle. All Rights Reserved. C Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options W
ORAFACT LAB
SQL> select name from v$database; S NAME --------E EDEV
WITHOUT USING IP(192.168.1.50): = =============================== SQL> ! [hari@of40 ~]$ . hari10g.env [[hari@of40 ~]$ sqlplus system/welcome@edev SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jul 7 14:53:04 2010 S Copyright (c) 1982, 2010, Oracle. All Rights Reserved. C Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options W SQL> select name from v$database; S NAME --------E EDEV
ORAFACT LAB