Anda di halaman 1dari 4

10/07/2016 MEMORY_TARGET greater than MEMORY_MAX_TARGET | Oracle Community

All Places  > Database > General Database Discussions  > Discussions

THIS DISCUSSION IS ARCHIVED

6 Replies  Latest reply: 22­Jul­2010 10:55 by 767685  

767685  22­Jul­2010 10:05

MEMORY_TARGET greater than MEMORY_MAX_TARGET
This question has been Answered.

Hi,

I've tried to increase memory allocated for my db, getting the following error. 

Enter user‐name: sys/ as sysdba 
Enter password: 
Connected to an idle instance. 

SQL> startup 
ORA‐00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET 
SQL> startup mount 
ORA‐00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET 
SQL> startup force 
ORA‐00837: Specified value of MEMORY_TARGET greater than MEMORY_MAX_TARGET

I know that increasing or making MEMORY_MAX_TARGET equal to MEMORY_TARGET will solve this issue. But how to do it as database is not
even starting in MOUNT stage.

Oracle 11g(11.1.0.6.0), winxp 

I'll appreciate the suggestion

Thanks

Regards
John

Correct Answer
by 657203 on 22­Jul­2010 10:11

Do you have pfile in place? Change them in pfile and startup with pfile.

8071 Views Tags: 11g

Average User Rating

(0 ratings)

657203  22­Jul­2010 10:11  (in response to 767685)


Correct Answer 1. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

Do you have pfile in place? Change them in pfile and startup with pfile.

https://community.oracle.com/thread/1105642?start=0&tstart=0 1/4
10/07/2016 MEMORY_TARGET greater than MEMORY_MAX_TARGET | Oracle Community

Actions  Like (0)

CKPT  22­Jul­2010 10:21  (in response to 767685)


2. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

Hi,

please go to the alert log file.

and when the instance is started at that time all the parameters will be loaded are recorded into trace file, then take into editor and change it as before,
or if you able

sql> startup nomount
create spfile from pfile

or

create pfile from spfile

if you are from linux flavours then
$strings $ORACLE_HOME/dbs/spfile<sid>.ora 
and copy these contents into editor and change it , and startup the database.

if you are unable to go nomount
then

$sqlplus / as sysdba
create pfile from spfile;

Edited by: CKPT on Jul 22, 2010 3:50 PM

Actions  Like (0)

BelMan  22­Jul­2010 10:45  (in response to 767685)


3. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

you should set MEMORY_TARGET value to a number less then or equal to MEMORY_MAX_TARGET 

startup mount

SQL> show parameter memory_target 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
memory_target big integer 1G

SQL >alter system set memory_target= 1g scope=both;
SQL>alter database open;

or Edit pfile if you have it otherwise use this command to create pfiel;

SQL> create pfile from spfile;

Actions  Like (0)

CKPT  22­Jul­2010 10:45  (in response to BelMan)


4. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

dear Bel, 
he is unable to even mount also.

Actions  Like (0)

BelMan  22­Jul­2010 10:50  (in response to 767685)


5. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

https://community.oracle.com/thread/1105642?start=0&tstart=0 2/4
10/07/2016 MEMORY_TARGET greater than MEMORY_MAX_TARGET | Oracle Community

CKPT 
in this case he needs to deal with pfile 
SQL>startup nomount
SQL> create pfile from spfile

then edit the pfile in Oracle_home/dbs
and use the value of MEMORY_MAX_TARGET or less the it if you want

Actions  Like (0)

767685  22­Jul­2010 10:55  (in response to 657203)


6. Re: MEMORY_TARGET greater than MEMORY_MAX_TARGET

Hi,

SQL> startup pfile = 'D:\app\Administrator\admin\orcl\pfile\init.ora.392010163812'; 
ORACLE instance started. 

Total System Global Area  426852352 bytes 
Fixed Size                  1333648 bytes 
Variable Size             251659888 bytes 
Database Buffers          167772160 bytes 
Redo Buffers                6086656 bytes 
Database mounted. 
Database opened. 
SQL> show parameter sga 

NAME                                 TYPE        VALUE 
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 
lock_sga                             boolean     FALSE 
pre_page_sga                         boolean     FALSE 
sga_max_size                         big integer 408M 
sga_target                           big integer 0 
SQL> show parameter memory 

NAME                                 TYPE        VALUE 
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 
hi_shared_memory_address             integer     0 
memory_max_target                    big integer 408M 
memory_target                        big integer 408M 
shared_memory_address                integer     0 
SQL> create spfile from pfile; 
create spfile from pfile 

ERROR at line 1: 
ORA‐01078: failure in processing system parameters 
LRM‐00109: could not open parameter file 
'D:\APP\ADMINISTRATOR\PRODUCT\11.1.0\DB_1\DATABASE\INITORCL.ORA' 

SQL> create spfile from memory; 

File created. 

SQL> shutdown abort 
ORACLE instance shut down. 
SQL> startup 
ORACLE instance started. 

Total System Global Area  426852352 bytes 
Fixed Size                  1333648 bytes 
Variable Size             251659888 bytes 
Database Buffers          163577856 bytes 
Redo Buffers               10280960 bytes 
Database mounted. 
Database opened. 
SQL> show parameter sga 

NAME                                 TYPE        VALUE 
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 

https://community.oracle.com/thread/1105642?start=0&tstart=0 3/4
10/07/2016 MEMORY_TARGET greater than MEMORY_MAX_TARGET | Oracle Community
lock_sga                             boolean     FALSE 
pre_page_sga                         boolean     FALSE 
sga_max_size                         big integer 408M 
sga_target                           big integer 0 
SQL> show parameter memory 

NAME                                 TYPE        VALUE 
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ 
hi_shared_memory_address             integer     0 
memory_max_target                    big integer 408M 
memory_target                        big integer 408M 
shared_memory_address                integer     0 
SQL>_

Just got from one site that I can create spfile from memory, tried it and got solved. 

Thanks for the help.

Regards
John

Actions  Like (0)

About Oracle Technology Network (OTN)

Powered by
Oracle Technology Network
Oracle Communities Directory FAQ
About Oracle Oracle and Sun RSS Feeds Subscribe Careers Contact Us Site Maps Legal Notices Terms of Use Your Privacy Rights

https://community.oracle.com/thread/1105642?start=0&tstart=0 4/4

Anda mungkin juga menyukai