日期:2014-05-16 浏览次数:20460 次
我没有配置SPFile,直接在spfiledv11.ora里做了修改,意欲增加几个control文件,没想到改了之后启动不了了,
这里/u01/admin/dv11/pfile/init.ora.4212012235040竟然有个备份,与spfiledv11.ora中的配置一样,但注释很多,可以用来学习,
我把spfiledv11.ora改成initdv11.ora传到/u01/oracle/product/10.2.0/db_1/dbs下就能暂时用了。
-----------------------------------------------------------------------
SQL> startup pfile=/u01/oracle/product/10.2.0/db_1/dbs/initdv11.ora
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1218992 bytes
Variable Size 104859216 bytes
Database Buffers 176160768 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
SQL> create spfile='/u01/oracle/product/10.2.0/db_1/dbs/spfiledv11.ora' from pfile='/u01/oracle/product/10.2.0/db_1/dbs/initdv11.ora';
File created.
SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
重启数据库后:
SQL> show parameter pfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u01/oracle/product/10.2.0/db_1/dbs/spfiledv11.ora
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u01/oracle/product/10.2.0/db_1/dbs/spfiledv11.ora
登录em这是可看到SPfile的选项卡。
备份pfile:create pfile='/u01/admin/dv11/pfile/initdv11.ora' from spfile='/u01/oracle/product/10.2.0/db_1/dbs/spfiledv11.ora'