Home > Database > Mysql Tutorial > body text

Oracle 10G中创建多监听端口问题

WBOY
Release: 2016-06-07 17:00:29
Original
1037 people have browsed it

创建监听端口(使用Oracle Net Configuration Assistant和Oracle Net Manager创建并使用命令启动,这两种方法都经过尝试)。再创

创建监听端口(使用Oracle Net Configuration Assistant和Oracle Net Manager创建并使用命令启动,,这两种方法都经过尝试)。再创建本地服务名,使用tnsping都可以通过。但是在创建服务名时,会发现测试提示如下错误:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务

解决办法:

默认状态下,创建listener1,会在文件

E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
中添加内容如下:
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = test)(PORT = 1522))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
)
)

经过测试,需要手动添加一些内容:

SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = E:\Server\oracle\product\10.2.0\db_1)
(SID_NAME = ORCL)
)
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\Server\oracle\product\10.2.0\db_1)
)
)

添加完毕,重启创建的listener1监听服务,再进行测试提示用户被拒绝,更改密码后测试立马成功。多次尝试均成功。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template