多listener 埠的問題

husthxd發表於2005-01-30
http://www.itpub.net/showthread.php?s=9d09649c6f21b05f3bb5caecc885fa1f&postid=2148774#post2148774

listener.ora檔案:

# listener.ora Network Configuration File: d:oracleproduct10.1.0NETWORKADMINlistener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = test)
(ORACLE_HOME = D:oracleproduct10.1.0)
(SID_NAME = test)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 3000))
)
)


tnsnames.ora中的配置:

test1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)

test2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 3000))
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)

連線測試:
D:>sqlplus test/test@test1

SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 1月 30 18:44:06 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


連線到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> exit
從Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options中斷開

D:>sqlplus test/test@test2

SQL*Plus: Release 9.2.0.1.0 - Production on 星期日 1月 30 18:44:41 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


連線到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL>

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/6906/viewspace-21713/,如需轉載,請註明出處,否則將追究法律責任。

相關文章