系统环境
OS:windows 2008
oracle:10g R2
ORACLE_SID:orcl,test
实现方法一:
登录到ORCL实例:
C:\Users\admin>sqlplus sys/orcl@orcl as sysdba
登录到TEST实例:
C:\Users\admin>sqlplus sys/test@test as sysdba
注:在这种方法下,当使用shutdown命令关闭实例之后,就无法使用startup命令开始实例,只能通过windows的services来启动实例。
实现方法二:
监听配置内容如下:
# listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = orcl)
)
(SID_DESC =
(GLOBAL_DBNAME = test)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME = test)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.160)(PORT = 1521))
)
)
注:只需要增加黑色字体标注的内容就OK了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7922095/viewspace-712150/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7922095/viewspace-712150/