ORA-00093 ORA-32001

通过 alter system 方式修改Oracle9i数据库的参数时,引起的一个错误,命令如下:
SQL> startup nomount
ORACLE 例程已经启动。
Total System Global Area  135338868 bytes
Fixed Size                   453492 bytes
Variable Size             109051904 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
 
SQL> alter system set sga_max_size=500M scope=spfile;
系统已更改。
SQL> alter system set db_cache_size=300M scope=spfile;
系统已更改。
SQL> alter system set pga_aggregate_target=200 scope=spfile;
系统已更改。
SQL> shutdown immediate

ORACLE 例程已经关闭。
 
SQL> startup nomount
ORA-00093: pga_aggregate_target must be between 10M and 4096G-1
 
这时,我才发现,前面修改的  pga_aggregate_target=200 ,少了一个“M”。
没有办法,创建pfile到指定位置,例如“c:\oracle\dbs\initorcl.ora”。
SQL>create pfile='c:\oracle\dbs\initorcl.ora' from spfile;
 
然后文本编辑器打开initorcl.ora文件,找到 pga_aggregate_target ,修改为正确数值,然后用该pfile启动数据库。
 
SQL>startup nomount pfile='c:\oracle\dbs\initorcl.ora'
 
打算修改其他参数,结果报另一个错误
SQL> alter system set shared_pool_size=100M scope=spfile;
alter system set shared_pool_size=100M scope=spfile
*
第 1 行出现错误:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup
晕,自己还没切换到spfile启动,马上新建spfile。
 
SQL>create spfile from pfile='c:\oracle\dbs\initorcl.ora';
 
SQL> shutdown immediate

ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area  529604068 bytes
Fixed Size                   454116 bytes
Variable Size             209715200 bytes
Database Buffers          318767104 bytes
Redo Buffers                 667648 bytes
数据库装载完毕。
数据库已经打开。
SQL>
 
参数修改完成,数据库恢复正常。
 
 
 
 
 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9399028/viewspace-695082/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9399028/viewspace-695082/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值