|
[oracle@station36 ~]$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-NOV-2016 17:41:25
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
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 "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:972 state:ready
DISPATCHER <machine: station36.example.com, pid: 6586>
(ADDRESS=(PROTOCOL=tcp)(HOST=station36.example.com)(PORT=10244))
Service "rcat.example.com" has 1 instance(s).
Instance "rcat", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "rcatXDB.example.com" has 1 instance(s).
Instance "rcat", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: station36.example.com, pid: 6578>
(ADDRESS=(PROTOCOL=tcp)(HOST=station36.example.com)(PORT=38114))
The command completed successfully
[oracle@station36 ~]$
-------------------------------[root@station36 ~]# ls
aboutApplication anaconda-ks.cfg Desktop install.log.syslog
[root@station36 ~]# . oraenv
ORACLE_SID = [root] ? orac
ORACLE_HOME = [/home/oracle] ?
[root@station36 ~]# su - oracle
[oracle@station36 ~]$ . oraenv
ORACLE_SID = [orcl] ? rcat
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
[oracle@station36 ~]$ . oraenv
ORACLE_SID = [rcat] ? orcl
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
----------------
这两个实例都在,sqlplus这两库都可以正常使用,为什么还要通过. oraenv选择SID? |
|