全部博文(368)
分类: LINUX
2010-05-28 16:48:18
下面就是详细的操作步骤,以及我在实验的时候遇到的问题!
1、修改参数
SQL>
alter system set db_block_buffers=1000 scope=spfile;
System altered.
2、停掉数据库
SQL>
shutdown immediate
Database closed.
Database
dismounted.
ORACLE instance shut down.
3、启动数据库(报错)
SQL>
startup
ORA-00824: cannot set sga_target due to existing internal settings, see alert log for more information
4、通过创建pfile来恢复
SQL>
create pfile from spfile;
File created.
执行这条命令以后我没有找到pfile文件,利用find / -name “pfile*” –print也没找到
在请教了itpub的高手后通过指定路径的办法解决,下面是详细的过程!
SQL> create
pfile='/opt/oracle/aaaa.ora' from spfile;
File created.
然后编辑/opt/oracle/aaaa.ora文件,去掉*.db_block_buffers=1000这行!
接着通过pfile文件生成spfile文件
SQL> create
spfile from pfile='/opt/oracle/aaaa.ora';
File created.
5、启动数据库
SQL>
startup
ORACLE instance started.
至此spfile文件恢复成功!