linux下oracle问题,在线等答案
来源:百度知道 编辑:UC知道 时间:2024/06/28 23:51:57
刚在Linux服务器上装了oracle.已经建了实例,并且在另外一台机器上能联得上这个实例。在服务器上执行命令结果如下:
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Mar 15 11:15:50 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> select name,value$ from prop$ where name like '%NLS%';
select name,value$ from prop$ where name like '%NLS%'
*
ERROR at line 1:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/app/oracle/product/10.2.0/db_1/dbs/initPMS.ora'
SQL>
不明白的是实例已经建了,为什么执行sql时报ORA-01034: ORACLE not available这样的错?
还有在服务器上启动监听器时最后会提示:The listener supports no services。这又是为什么,不是已经有实例了吗?
本人qq:
425062960
请各位大侠不吝赐教。
id:5:initdefault:
# System initialization.
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Mar 15 11:15:50 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> select name,value$ from prop$ where name like '%NLS%';
select name,value$ from prop$ where name like '%NLS%'
*
ERROR at line 1:
ORA-01034: ORACLE not available
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/app/oracle/product/10.2.0/db_1/dbs/initPMS.ora'
SQL>
不明白的是实例已经建了,为什么执行sql时报ORA-01034: ORACLE not available这样的错?
还有在服务器上启动监听器时最后会提示:The listener supports no services。这又是为什么,不是已经有实例了吗?
本人qq:
425062960
请各位大侠不吝赐教。
id:5:initdefault:
# System initialization.
把ORACLE_SID设置正确即可(注重大小写敏感的问题)。
此外,检查ORACLE_HOME环境变量。如何检查参考如下的命令:
% echo $ORACLE_SID
% ps -ef grep smon
你先检查完再说吧