[QUOTE=master_Li]我在执行dbstart和dbshut的时候显示错误:
sh-2.04$ dbshut
SQL*Plus: Release 9.0.1.0.0 - Production on Tue Jul 9 09:46:47 2002
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL> ERROR:
ORA-24314: service handle not initialized
SQL> ORA-12162: TNS:service name is incorrectly specified
SQL> Database "" shut down.
SQL*Plus: Release 9.0.1.0.0 - Production on Tue Jul 9 09:46:47 2002
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL> ERROR:
ORA-01031: insufficient privileges
SQL> ORA-01012: not logged on
SQL> Database "ora901" shut down.
请问这是为什么[/QUOTE]
========================================================================
SQL> ERROR:
ORA-24314: service handle not initialized
SQL> ORA-12162: TNS:service name is incorrectly specified
SQL> Database "" shut down.
这个问题只需要修改 /etc/oratab 文件即可,方法如下:
*:/oracle/ora9/product/9.2:Y
把这行用“#”注释掉!(你的数据库安装路径可能与此不同)
在下面重新写一行,与上面注释掉的一样,只需将最前面的“*”号换成你的SID即可。
保存以后退出。将不会再出现上述错误!
祝,好运!