今天开发服务器突然连接不上,sqlplus /nolog、conn /as sysdba、startup命令后显示
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle10g/product/10.2/db_1/dbs/initORA10G.ora'
查找文件,果然不存在。估计是非法关机造成的。
这是因为在oracle9i和oracle10g中,oracle默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。
解决方法1(已经验证):
将$ORACLE_BASE/admin /数据库名称/pfile目录下的init.ora.012009233838形式的文件copy到$ORACLE_HOME/dbs目录下 initoracle.ora即可。(注:initoracle.ora中的oracle为你的实例名 ORACLE_SID)
解决方法2:
用oraenv命令來改變當前環境的SID,然後用pfile重新產生spfile,就可以啟動數據庫了.
改變SID:
[oracle@willie root]$ source oraenv
ORACLE_SID = [oracle] ? test1
bash: /root/.bashrc: Permission denied
重新產生spfile:
SQL> create spfile from pfile;
File created.
SQL> startup
ORACLE instance started.
附:Linux下oracle操作命令
重启oracle
lsnrctl stop
sqlplus /nolog
conn /as sysdba
shutdown (startup)
exit
lsnrctl start
启动oracle
sqlplus /nolog
conn /as sysdba
startup
exit
lsnrctl start
关闭oracle
lsnrctl stop
sqlplus /nolog
conn /as sysdba
shutdown
exit
查看Oracle是否启动
netstat -an |grep 1521
分享到:
相关推荐
### Oracle 10g Administration I (1Z0-042) Exam Knowledge Points #### 1. Determining the Size of the Undo Tablespace When deciding on the size of the undo tablespace in your Oracle database, three ...
LRM-00109: could not open parameter file '/opt/oracle10g/product/10.2/db_1/dbs/initORA10G.ora' ``` 这表明Oracle数据库在启动过程中未能成功读取初始化参数文件(init.ora或spfile)。参数文件存储了数据库...
LRM-00109: could not open parameter file /opt/oracle/app/oracle/product/10.1.0/db_1/dbs/initoracle.ora ``` **解决方法:** - 首先检查参数文件路径是否正确。 - 如果使用的是`spfile`,则该文件通常位于 `$...
同时,`ORA-07286`和"Linux-x86_64 Error: 2: No such file or directory"表明可能与设备路径或文件不存在有关,可能是归档日志路径不正确,或者是磁盘设备的问题。 解决步骤: 1. **使用静态参数文件pfile启动...
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initBOBOSER1.ora' starting Oracle instance without parameter file for retrieval of spfile Oracle instance started ...
which allows you to specify a process name (e.g: firefox.exe) * Version 1.97: o The 'Use DNS Cache For Host Names' option is now turned off by default, because it seems that reading the DNS cache ...
The syntax of the file is extremely simple. Whitespace and lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored,...