Friday, December 21, 2012

How to modify a parameter in SPFILE

Method 1:

  1. Run
    ALTER SYSTEM SET processes=(processes + 5) SCOPE=SPFILE SID='*';
    
  2. Reboot (Issue shutdown and startup)

if it is not a parameter that can be modified via ALTER SYSTEM then use:

Method 2:

  1. Run
    CREATE PFILE='$ORACLE_HOME/dbs/initSID.ora' FROM SPFILE='location/spfile.ora';
    
    this will create PFILE called initSID.ora at $ORACLE_HOME/dbs
  2. Make changes to initSID.ora file via vi editor


  3. Shutdown the database


  4. Startup (nomount) the instance where you created and altered the pfile using this pfile only


  5. STARTUP PFILE=$ORACLE_HOME/dbs/initSID.ora
    
  6. Create a new spfile


  7.  CREATE SPFILE='location/spfile.ora' FROM PFILE=‘$ORACLE_HOME/dbs/initSID.ora’;
    
  8. Shutdown this instance again


  9. Now startup normally without PFILE or SPFILE option:


  10. STARTUP
    
  11. Remove the PFILE (Optional)


  12. To confirm that the parameter has been modified, issue following sql statement:


  13. SHOW PARAMETER 
    

No comments:

Post a Comment