SID_LIST_CMAN =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SHAIKDB.shaiksameer)
(SID_NAME = SHAIKDB)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2/SHAIKPROD)
)
)
Service "SHAIKDB.shaiksameer" has 1 instance(s).
Instance "SHAIKDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@collabn1 sf_stage]$ vi $TNS_ADMIN/tnsnames.ora
cman =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = collabn1.shaiksameer)(PORT = 1523))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SHAIKDB.shaikmeer)
)
)
[oracle@collabn1 sf_stage]$ tnsping cman
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2015 23:16:07
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0.2/SHAIKPROD/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = collabn1.shaiksameer)(PORT = 1523)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = SHAIKDB.shaiksameer)))
OK (0 msec)
Test the listener:
[oracle@collabn1 sf_stage]$ sqlplus system@cman
SQL*Plus: Release 11.2.0.1.0 Production on Sun Sep 13 22:26:56 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SHAIKDB>select name from v$database;
NAME
---------
SHAIKDB
SHAIKDB>exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
















No comments:
Post a Comment