创建实例后,进入sqlplus启动报错:
sqlplus / as sysdba;
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Aug 5 16:48:56 2009
Copyright (c) 1982, 2007, Oracle . All rights reserved.
Connected to an idle instance.
SQL> startup;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/product/11.1.0/dbs/initorcl.ora'
SQL> exit
这是因为在oracle9i和oracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。
解决方法:
将$ORACLE_BASE/admin/数据库名称/pfile目录下的init.ora.012009233838形式的文件copy 到$ORACLE_HOME/dbs目录下initoracle.ora即可。(注:initoracle.ora中的oracle为你的实例名 ORACLE_SID)
比如我的就为:
cp /oracle/admin/xok/pfile/init.ora.75200916276 /oracle/product/11.1.0/dbs/initorcl.ora
sqlplus / as sysdba;
SQL> startup
ORACLE instance started.
Total System Global Area 855982080 bytes
Fixed Size 2143000 bytes
Variable Size 486542568 bytes
Database Buffers 360710144 bytes
Redo Buffers 6586368 bytes
sqlplus / as sysdba;
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Aug 5 16:48:56 2009
Copyright (c) 1982, 2007, Oracle . All rights reserved.
Connected to an idle instance.
SQL> startup;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/product/11.1.0/dbs/initorcl.ora'
SQL> exit
这是因为在oracle9i和oracle10g中,数据库默认将使用spfile启动数据库,如果spfile不存在,则就会出现上述错误。
解决方法:
将$ORACLE_BASE/admin/数据库名称/pfile目录下的init.ora.012009233838形式的文件copy 到$ORACLE_HOME/dbs目录下initoracle.ora即可。(注:initoracle.ora中的oracle为你的实例名 ORACLE_SID)
比如我的就为:
cp /oracle/admin/xok/pfile/init.ora.75200916276 /oracle/product/11.1.0/dbs/initorcl.ora
sqlplus / as sysdba;
SQL> startup
ORACLE instance started.
Total System Global Area 855982080 bytes
Fixed Size 2143000 bytes
Variable Size 486542568 bytes
Database Buffers 360710144 bytes
Redo Buffers 6586368 bytes