shutdown immedate;

关闭系统

复制control file,例如从D:\oracle\oradata\test\中,将CONTROL01.CTL

copy一份为CONTROL02.CTL; 

startup nomount;

可以看出必须在nomount的状态下修改spfile

  1. SQL> alter system set control_files="D:\ORACLE\ORADATA\TEST\CONTROL01.CTL", "D: 
  2. ORACLE\FLASH_RECOVERY_AREA\TEST\CONTROL02.CTL","D:\ORACLE\ORADATA\TEST\CONTROL0 
  3. .CTL" scope=spfile
  4.  
  5. System altered. 
  6.  
  7. SQL> show parameter control 
  8.  
  9. NAME                                 TYPE 
  10. ------------------------------------ ---------------------- 
  11. VALUE 
  12. ------------------------------ 
  13. control_file_record_keep_time        integer 
  14. control_files                        string 
  15. D:\ORACLE\ORADATA\TEST\CONTROL 
  16. 01.CTL, D:\ORACLE\FLASH_RECOVE 
  17. RY_AREA\TEST\CONTROL02.CTL 
  18. control_management_pack_access       string 
  19. DIAGNOSTIC+TUNING 
  20. SQL> shutdown immediate; 
  21. ORA-01507: ?????? 
  22.  
  23.  
  24. ORACLE instance shut down. 
  25. SQL> startup; 
  26. ORACLE instance started. 
  27.  
  28. Total System Global Area 1933430784 bytes 
  29. Fixed Size                  1378680 bytes 
  30. Variable Size             452986504 bytes 
  31. Database Buffers         1468006400 bytes 
  32. Redo Buffers               11059200 bytes 
  33. Database mounted. 
  34. Database opened. 
  35. SQL> show parameter control_file; 
  36.  
  37. NAME                                 TYPE        VALUE 
  38. ------------------------------------ ----------- ------------------------------ 
  39. control_file_record_keep_time        integer     7 
  40. control_files                        string      D:\ORACLE\ORADATA\TEST\CONTROL 
  41.                                                  01.CTL, D:\ORACLE\FLASH_RECOVE 
  42.                                                  RY_AREA\TEST\CONTROL02.CTL, D: 
  43.                                                  \ORACLE\ORADATA\TEST\CONTROL02 
  44.                                                  .CTL