sga size

I was trying to increase the size of sga size..
it ended up in error..
here is what I did..
SQL> show parameter sga_max_size;

NAME                                 TYPE        VALUE                          
------------------------------------ ----------- ------------------------------
sga_max_size                         big integer 512M                          
SQL> alter system set sga_max_size=520M;
alter system set sga_max_size=520M
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi.  What Oracle version?  Anyway you need to do add scope=spfile and restart the instance.

For 11g, you should check and modify the memory_target and memory_max_target parameters.  For 10g, it's the sga_target and sga_target_max parameters.
nobleitAuthor Commented:
I did like this...
alter system set sga_max_size=520 scope=spfile;
system altered

conn / as sysdba
connected to an idle instance

startup mount
ora-00823:specified value of sga target greater than sga_max_size

how can I solve this issue...
oh you missed the M in sga_max_size.

shutdown the database
SQL> create pfile='/path/to/init.ora' from spfile;

edit the generated file to correct the sga_max_size parameter.

SQL> startup pfile='/path/to/init.ora'

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

nobleitAuthor Commented:

we know sga_max_size was 512M before..(create pfile file from spfile was successfully created)
so edited initorcl.ora   ok
ans saved..
when I did
SQL> startup pfile='C:\app\Mathew\product\11.1.0\db_2\database\INITorcl.ora';
ORA-00823: Specified value of sga_target greater than sga_max_size
ORA-01078: failure in processing system parameters

again problems
what could be the problem..
this is the copy of the edited initorcl.ora

orcl.__oracle_base='C:\app\Mathew'#ORACLE_BASE set from environment
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
From your pfile:

try *.sga_max_size=512000000

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nobleitAuthor Commented:
working file thanks a lot
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.