1.11gr2手工建库,启动时出现ORA-32004错误

 

 
  
  1. SQL> startup 
  2. ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance 
  3. ORACLE instance started. 
  4. Total System Global Area  514736128 bytes 
  5. Fixed Size                  1337576 bytes 
  6. Variable Size             159385368 bytes 
  7. Database Buffers          348127232 bytes 
  8. Redo Buffers                5885952 bytes 
  9. Database mounted. 
  10. Database opened. 

查看官方文档错误记录

 

 
  
  1. ORA-32004: obsolete or deprecated parameter(s) specified for string instance 
  2. Cause: Obsolete or deprecated parameters for this instance type were specified in the SPFILE or the PFILE on the server side. 
  3. Action: See alert log for a list of parameters that are obsolete or deprecated. Remove them from the SPFILE or the server side PFILE. 

红色为解决办法,查看alert log

 

 
  
  1. Mon Apr 18 11:58:54 2011 
  2. WARNING: The user_dump_dest init.ora parameter has been deprecated. 
  3. WARNING: Please remove the user_dump_dest parameter from the init.ora file. 
  4. WARNING: The diagnostic_dest init.ora parameter now determines the location of the diagnostic data 
  5. WARNING: The new location for the user logs and traces is /opt/app/oracle/diag/rdbms/testdb/testdb/trace 

找到解决办法

 
  
  1. SQL> create file='inittestdb.ora' from spfile; 
  2. SQL> ho vim inittestdb.ora 

  3. *.background_dump_dest='$ORACLE_BASE/admin/testdb/bdump' 
  4. *.user_dump_dest='$ORACLE_BASE/admin/testdb/udump' 

删除 pfile中这两行,然后

 
  
  1. SQL> create spfile from pfile; 
  2. SQL> shutdown immediate 
  3. SQL> startup 

ok!