|
|
Re: RDBMS 10g alter Shared_Pool_Size, Session_Cached_Cursors, etc. [message #146699 is a reply to message #146688] |
Sat, 12 November 2005 09:50 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
JSI2001
Messages: 1016 Registered: March 2005 Location: Scotland
|
Senior Member |
|
|
Type sho parameter spfile, if the value is non null, then you are using a server parameter file (this is the default for 10g). In order to alter the parameters that you have listed you must set the scope to spfile then restart the database.
Alter system set session_cached_cursors = 200 scope=spfile;
HTH
Jim
|
|
|
|
|
|
Re: RDBMS 10g alter Shared_Pool_Size, Session_Cached_Cursors, etc. [message #146941 is a reply to message #146685] |
Mon, 14 November 2005 16:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
nmacdannald
Messages: 460 Registered: July 2005 Location: Stockton, California - US...
|
Senior Member |
|
|
If you are running with a spfile<sid>.ora rather than a pfile<sid>.ora you can set many parameters dynamiclly(while it is running) and let the database dynamiclly set itself by using SGA_TARGET and SGA_MAX_SIZE. When you set these your database adjusts itself and you no longer have to manually set DB_CACHE_SIZE, SHARED_POOl_SIZE, LARGE_POOL_SIZE and JAVA_POOL_SIZE. You still need to set log_buffer, keep, recycle, streams pool, and other block sizes. I set OPEN_CURSORS to 600.
You also must set SATISTICS_LEVEL to TYPICAL (or ALL?)
You can make a spfile by logging in as sys / as sysdba and issuing:
Create spfile from pfile = '$ORACLE_HOME/dbs/init<sid>.ora';
Then rename $ORACLE_HOME/dbs/init<sid>.ora to something like $ORACLE_HOME/dbs/old-init<sid>.ora so it will not be used at startup, then bounce the database.
Don't ever edit, view, cat, more, ... or otherwise touch the spfile!!!
You alter it via the alter database, alter system, and other indirect methods.
|
|
|
Re: RDBMS 10g alter Shared_Pool_Size, Session_Cached_Cursors, etc. [message #146989 is a reply to message #146941] |
Tue, 15 November 2005 02:32 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
JSI2001
Messages: 1016 Registered: March 2005 Location: Scotland
|
Senior Member |
|
|
Hi
Just to clarify.
Quote: | Then rename $ORACLE_HOME/dbs/init<sid>.ora to something like $ORACLE_HOME/dbs/old-init<sid>.ora so it will not be used at startup
|
Not actually necessary as the DB will automatically look for an spfile to use first. If one is present (in the appropriate location) then it will not use a pfile (unless you have set that as a parameter in the startup command).
Jim
|
|
|