在安装 11.2 包后在 Slackware 分发包中尝试配置为
sudo /etc/rc.d/rc.oracle-xe configure
CloneRmanRestore.log 很好,并且在 cloneDBCreation.log 中有一些错误
...
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=black)(PORT=1521))'
...
我的主机名 -i 和主机名 -f 给
127.0.0.1
和
black
结果。
tnsping black:1521 is OK.
这里是 listener.ora、tnsname.ora 和 ${ORACLE_HOME}/config/scripts/init.ora
# SID_LIST_LOCAL_LISTENER =
# (SID_LIST =
# (SID_DESC =
# (SID_NAME = PLSExtProc)
# (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
# (PROGRAM = extproc)
# )
# )
# use LOCAL_LISTENER instead default LISTENER
LOCAL_LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
# (ADDRESS = (PROTOCOL = TCP)(HOST = black)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
tnsname.ora
XE =
(DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = black)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
初始化文件
...
*.local_listener="(ADDRESS = (PROTOCOL=TCP) (HOST=127.0.0.1) (PORT=1521))"
local_listener="(ADDRESS = (PROTOCOL=TCP) (HOST=127.0.0.1) (PORT=1521))"
我尝试了默认设置中的静态侦听器,然后通过在 listener.ora 中注释并将默认 LISTENER 重新定义为 LOCAL_LISTENER 来尝试动态服务注册。申请
lsnrctl status LOCAL_LISTENER
配置失败后给出
...
------------------------
Alias LOCAL_LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
...
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "XE" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully
请帮忙解决问题。