windows优化系统后oracle9i本地连接失败

文章作者 100test 发表时间 2007:03:14 13:38:23
来源 100Test.Com百考试题网


我们使用的系统是windows2000,经过优化后,oracle数据库出现了问题,本地客户端不能连接.但远程连接是没有问题的.

经过检查,原来是oracle的TNSListener服务没有起动.用"服务"起动,或者net start 起动均失败,检查结果是注册表中的TNSListener的执行文件路径已经被删除了.所以我们只要从其它安装oracle服务器的电脑上将部分注册表文件导出,然后导入到本机就OK了.

下面是我本机的导入的注册表内容.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraHome92TNSListener]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):44,00,3a,00,5c,00,6f,00,72,00,61,00,63,00,6c,00,65,00,5c,00,\
6f,00,72,00,61,00,39,00,32,00,5c,00,42,00,49,00,4e,00,5c,00,54,00,4e,00,53,\
00,4c,00,53,00,4e,00,52,00,20,00,00,00
"DisplayName"="OracleOraHome92TNSListener"
"ObjectName"="LocalSystem"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraHome92TNSListener\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,00,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
20,00,00,00,20,02,00,00,00,00,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
00,05,20,00,00,00,23,02,00,00,00,00,00,00,01,01,00,00,00,00,00,05,12,00,00,\
00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraHome92TNSListener\Enum]
"0"="Root\\LEGACY_ORACLEORAHOME92TNSLISTENER\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

将上面的内容拷贝到.txt文件中,然后将.txt改成.reg文件,双击该文件即可.

注意:我oracle执行文件安装在D盘.如果不一样的话,要将注册表中的键值修改成正确就可以的了.



相关文章


行业新闻近八成CA认证服务机构非法运营
VC下利用Pro*C开发Oracle接口
oracle里面使用临时表解决表冲突一例
黑客开发蓝色药丸程序专门对付Vista系统
windows优化系统后oracle9i本地连接失败
新闻网络将创造电子中间人香港贸易需改变
Oracle9i轻松取得建表和索引的DDL语句
2006电子交易虚拟化引发电子法务四大难题
通过JDBC连接oracle数据库的几个技巧
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛