1.动态注册
SQL>alter system register;
注册后用lsnrclt status 能看到实例状态为ready。
2.静态注册
在listener.ora配置
10g如下:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = orcl)
)
)
11g如下:
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
)