(2).Inspect the file and locate all entries associated with "SID_DESC". Each such entry should have the following option associated with it:
(ENVS = "EXTPROC_DLLS=ANY")
(3).Add the above line to any entry where it is missing.
(4).Restart the Oracle Listener Service (or reboot the server which will in turn restart Oracle).
例子:
The example LISTENER.ORA file below shows a valid configuration for the server named "WOODY" (using TCP/IP on Port 1521) with the correct ENVS entries highlighted:
# LISTENER.ORA Network Configuration File: C:/oracle/ora92/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = woody)(PORT = 1521)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:/oracle/ora92) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ANY") ) (SID_DESC = (GLOBAL_DBNAME = WOODY) (ORACLE_HOME = C:/oracle/ora92) (SID_NAME = WOODY) (ENVS = "EXTPROC_DLLS=ANY") ) )
6.在控制面板中启动服务,出现以下错误:
服务:在本地计算机无法启动OracleOraDb10g_home1TNSListener 服务。
错误3:系统找不到指定的路径。
查看属性发现,OracleOraDb10g_home1TNSListener 服务的可执行文件的路径为空。
解决办法:
开始-->运行REGEDIT -->进入注册表找到HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/OracleOraDb10g_home1TNSListener
发现ImagePath关键值没有了,新建一个名为ImagePath的可扩充字符串值,编辑字符串的数值数据为:Oracle安装路径/BIN/TNSLSNR
7.错误描述:本地计算机上的OracleOraDb10g_home1TNSListener服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的,例如 "性能日志和警报 "服务。
解决办法:C:/oracle/product/10.2.0/db_1/NETWORK/ADMIN/listener.ora把这这文件里的内容改下 HOST=你的计算机名字。
关于Oracle数据库的问题及解决方法就介绍到这里,希望能够对您有所帮助。