Oracle Database recovery is solved by kill the Oracle Process

Source: Internet
Author: User

In the process of solving a large Oracle database recovery caused by a misoperation, the shutdown abort instance sometimes fails to solve the problem, so we use the Oracle process to kill, to delete its shared memory segments, the Oracle database strength will be suspended to force abort.

1. kill Oracle Core processes

Reference

 
 
  1. [ora10g@test bdump]$ ps -ef|grep ora_  
  2. ora10g 14431 1 0 Feb21 ? 00:01:32 ora_pmon_streams  
  3. ora10g 14433 1 0 Feb21 ? 00:00:46 ora_psp0_streams  
  4. ora10g 14435 1 0 Feb21 ? 00:00:47 ora_mman_streams  
  5. ora10g 14437 1 0 Feb21 ? 00:06:57 ora_dbw0_streams  
  6. ora10g 14439 1 0 Feb21 ? 00:06:24 ora_lgwr_streams  
  7. ora10g 14441 1 0 Feb21 ? 00:46:13 ora_ckpt_streams  
  8. ora10g 14443 1 0 Feb21 ? 00:01:02 ora_smon_streams  
  9. ora10g 14445 1 0 Feb21 ? 00:00:00 ora_reco_streams  
  10. ora10g 14447 1 0 Feb21 ? 00:05:53 ora_cjq0_streams  
  11. ora10g 14449 1 0 Feb21 ? 00:03:15 ora_mmon_streams  
  12. ora10g 14451 1 0 Feb21 ? 00:02:47 ora_mmnl_streams  
  13. ora10g 14453 1 0 Feb21 ? 00:00:01 ora_d000_streams  
  14. ora10g 14455 1 0 Feb21 ? 00:00:03 ora_s000_streams  
  15. ora10g 14460 1 0 Feb21 ? 00:00:05 ora_qmnc_streams  
  16. ora10g 14468 1 0 Feb21 ? 00:00:08 ora_q000_streams  
  17. ora10g 14470 1 0 Feb21 ? 00:00:02 ora_q001_streams  
  18. ora10g 13622 1 0 03:08 ? 00:00:00 ora_j000_streams  
  19. ora10g 13710 12028 0 03:13 pts/5 00:00:00 grep ora_  
  20. [ora10g@test bdump]$ kill -9 14431 14433 14435 14437
     14439 14441 14443 14445 14447 14449 14451 14453 14455 14460 14468 14470 13622  

2. Delete Oracle shared memory segments

Reference

 
 
  1. [ora10g@test bdump]$ ipcs  
  2. ------ Shared Memory Segments --------  
  3. key shmid owner perms bytes nattch status  
  4. 0xcc481b8c 1441796 ora10g 640 599785472 00x40b3b558 
    2818054 ora10g 640 1077936128 0  
  5. ------ Semaphore Arrays --------  
  6. key semid owner perms nsems  
  7. 0x0d908ec4 360448 ora10g 640 154  
  8. ------ Message Queues --------  
  9. key msqid owner perms used-bytes messages  
  10. [root@test ~]# ipcrm -m 1441796  
  11. [root@test ~]# ipcrm -s 360448  

In the solution to Oracle database recovery caused by an incorrect operation, I tried to open the instance again. Here the 10015 event is used.

Reference

 
 
  1. SQL> alter session set events '
    10015 trace name adjust_scn level 1';  
  2. Session altered.  
  3. SQL> alter database open;  
  4. alter database open  
  5. *  
  6. ERROR at line 1:  
  7. ORA-01113: file 1 needs media recovery  
  8. ORA-01110: data file 1: 
    '/ora10g/app/oradata/ldbra/system01.dbf'  
  9. SQL> recover database;  
  10. Media recovery complete.  
  11. SQL> alter database open;  
  12. Database altered.  

The subsequent work is to add the tempfile to the temp tablespace and finally restore successfully.

Reference

 
 
  1. SQL> alter tablespace temp add tempfile
     '/ora10g/app/oradata/ldbra/temp01.dbf' size 50m reuse;  
  2. Tablespace altered.  

The above content is an introduction to how to solve the Oracle database recovery caused by an incorrect operation. I hope you will gain some benefits.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.