码迷,mamicode.com
首页 > 其他好文 > 详细

SGA_MAX_SIZE参数值小于MEMORY_TARGET参数值错误解决

时间:2016-05-19 23:02:18      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

C:\windows\system32>net start oracleserviceorcl
OracleServiceORCL 服务正在启动 ......
OracleServiceORCL 服务已经启动成功。


C:\windows\system32>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 6月 23 15:08:47 2010

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show sga

Total System Global Area  535662592 bytes
Fixed Size                  1375792 bytes
Variable Size             260047312 bytes
Database Buffers          268435456 bytes
Redo Buffers                5804032 bytes
SQL> alter session set sga_max_size=761647104 scope=spfile;
alter session set sga_max_size=761647104 scope=spfile
                  *
第 1 行出现错误:
ORA-02095: 无法修改指定的初始化参数


SQL> alter system set sga_max_size=761647104 scope=spfile;

系统已更改。

SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORA-00844: Parameter not taking MEMORY_TARGET into account
ORA-00851: SGA_MAX_SIZE 763363328 cannot be set to more than MEMORY_TARGET 750780416.
SQL> startup nomount
ORA-00844: Parameter not taking MEMORY_TARGET into account
ORA-00851: SGA_MAX_SIZE 763363328 cannot be set to more than MEMORY_TARGET 750780416.
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开

C:\windows\system32>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 6月 23 15:27:53 2010

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

已连接到空闲例程。

SQL> create pfile ‘d:\pfile.txt‘ from spfile;
create pfile ‘d:\pfile.txt‘ from spfile
             *
第 1 行出现错误:
ORA-00923: FROM keyword not found where expected


SQL> create pfile=‘d:\pfile.txt‘ from spfile;

文件已创建。

SQL> exit
已断开连接

C:\windows\system32>notepad d:\pfile.txt

C:\windows\system32>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 6月 23 15:29:33 2010

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

已连接到空闲例程。

SQL> create spfile from pfile=‘d:\pfile.txt‘;

文件已创建。

SQL> startup
ORACLE 例程已经启动。

Total System Global Area  761647104 bytes
Fixed Size                  1377304 bytes
Variable Size             486542312 bytes
Database Buffers          268435456 bytes
Redo Buffers                5292032 bytes
数据库装载完毕。
数据库已经打开。
SQL>

SGA_MAX_SIZE参数值小于MEMORY_TARGET参数值错误解决

标签:

原文地址:http://www.cnblogs.com/login2012/p/5510391.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!