|
/u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora:
- # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
- # Generated by Oracle configuration tools.
- L2 =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1526))
- )
- ADR_BASE_L2 = /u01/app/oracle
- SID_LIST_LISTENER =
- (SID_LIST =
- (SID_DESC =
- (GLOBAL_DBNAME = emrep)
- (ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
- (SID_NAME = emrep)
- )
- )
- SID_LIST_L2 =
- (SID_LIST =
- (SID_DESC =
- (GLOBAL_DBNAME = emrep)
- (ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
- (SID_NAME = emrep)
- )
- )
- LISTENER =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
- )
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
- )
- )
- ADR_BASE_LISTENER = /u01/app/oracle
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
- ENABLE_GLOBAL_DYNAMIC_ENDPOINT_L2=ON # line added by Agent
复制代码 /u01/app/oracle/product/11.2.0/grid/network/admin/tnsnames.ora:
- # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
- # Generated by Oracle configuration tools.
- for_l2=
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1526))
- )
复制代码 /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora:
- # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
- # Generated by Oracle configuration tools.
- ORCL =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
- (CONNECT_DATA =
- (SERVER = DEDICATED)
- (SERVICE_NAME = orcl.example.com)
- )
- )
- for_l2=
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1526))
- )
复制代码 /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora:
- # tnsnames.ora Network Configuration File: /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/tnsnames.ora
- # Generated by Oracle configuration tools.
- EMREP =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
- (CONNECT_DATA =
- (SERVER = DEDICATED)
- (SERVICE_NAME = emrep)
- )
- )
- EMREP2 =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1526))
- (CONNECT_DATA =
- (SERVER = DEDICATED)
- (SERVICE_NAME = emrep)
- )
- )
- LISTENER_EMREP =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station20.example.com)(PORT = 1521))
复制代码 [oracle@station20 ~]$ . oraenv
ORACLE_SID = [oracle] ? +ASM
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle
[oracle@station20 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 26-MAR-2018 09:53:42
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "emrep" has 1 instance(s).
Instance "emrep", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:348 refused:0
LOCAL SERVER
Service "orcl.example.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orclXDB.example.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: station20.example.com, pid: 4872>
(ADDRESS=(PROTOCOL=tcp)(HOST=station20.example.com)(PORT=33615))
The command completed successfully
--------------------------------
[oracle@station20 ~]$ lsnrctl services l2
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 26-MAR-2018 09:54:05
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=station20.example.com)(PORT=1526)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "emrep" has 1 instance(s).
Instance "emrep", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl.example.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "orclXDB.example.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: station20.example.com, pid: 4872>
(ADDRESS=(PROTOCOL=tcp)(HOST=station20.example.com)(PORT=33615))
The command completed successfully
|
|