Oracle cold Backup recovery database in NOARCHIVELOG Mode

Source: Internet
Author: User

Cold backup is to copy the database-related files. It can only perform restoration operations and cannot perform restoration operations. Log on to the database, find the path for storing data files, control files, and log files, close the database, and back up the listed files.

  1. SQL> showUser
  2. USERIs"SYS"
  3. SQL>SelectINSTANCE_NAME, STATUSFromV $ instance;
  4. INSTANCE_NAME STATUS
  5. ----------------------------
  6. DataOPEN
  7. SQL>SelectFile_nameFromDba_data_files;
  8. FILE_NAME
  9. --------------------------------------------------------------------------------
  10. /U01/app/Oracle/oradata/data/users01.dbf
  11. /U01/app/oracle/oradata/data/sysaux01.dbf
  12. /U01/app/oracle/oradata/data/undotbs01.dbf
  13. /U01/app/oracle/oradata/data/system01.dbf
  14. SQL>Select Name FromV $ controlfile;
  15. NAME
  16. --------------------------------------------------
  17. /U01/app/oracle/oradata/data/control01.ctl
  18. /U01/app/oracle/oradata/data/control02.ctl
  19. /U01/app/oracle/oradata/data/control03.ctl
  20. SQL>SelectMemberFromV $ logfile;
  21. MEMBER
  22. --------------------------------------------------
  23. /U01/app/oracle/oradata/data/redo03.log
  24. /U01/app/oracle/oradata/data/redo02.log
  25. /U01/app/oracle/oradata/data/redo01.log
  26. SQL> shutdown immediate
  27. The database has been closed.
  28. The database has been detached.
  29. The ORACLE routine has been disabled.

Temporary files can not be backed up. In fact, parameter files should also be backed up. Here, I copied all the above files to/u01/datafile/, and then deleted all the files before the backup to simulate disk faults.

  1. [Oracle @ linux datafile] $ pwd
  2. /U01/datafile
  3. [Oracle @ linux datafile] $ cp/u01/app/oracle/oradata/data/*/u01/datafile/
  4. [Oracle @ linux datafile] $ ll
  5. Total 954144
  6. -Rw-r----- 1 oracle oinstall 7061504 10-08 control01.ctl
  7. -Rw-r----- 1 oracle oinstall 7061504 10-08 control02.ctl
  8. -Rw-r----- 1 oracle oinstall 7061504 10-08 control03.ctl
  9. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo01.log
  10. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo02.log
  11. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo03.log
  12. -Rw-r----- 1 oracle oinstall 262152192 10-08 sysaux01.dbf
  13. -Rw-r----- 1 oracle oinstall 503324672 10-08 system01.dbf
  14. -Rw-r----- 1 oracle oinstall 20979712 10-08 temp01.dbf
  15. -Rw-r----- 1 oracle oinstall 26222592 10-08 undotbs01.dbf
  16. -Rw-r----- 1 oracle oinstall 5251072 10-08 users01.dbf
  17. [Oracle @ linux datafile] $ rm-rf temp01.dbf
  18. [Oracle @ linux datafile] $ ll
  19. Total 953560
  20. -Rw-r----- 1 oracle oinstall 7061504 10-08 control01.ctl
  21. -Rw-r----- 1 oracle oinstall 7061504 10-08 control02.ctl
  22. -Rw-r----- 1 oracle oinstall 7061504 10-08 control03.ctl
  23. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo01.log
  24. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo02.log
  25. -Rw-r----- 1 oracle oinstall 52429312 10-08 redo03.log
  26. -Rw-r----- 1 oracle oinstall 262152192 10-08 sysaux01.dbf
  27. -Rw-r----- 1 oracle oinstall 503324672 10-08 system01.dbf
  28. -Rw-r----- 1 oracle oinstall 26222592 10-08 undotbs01.dbf
  29. -Rw-r----- 1 oracle oinstall 5251072 10-08 users01.dbf
  30. [Oracle @ linux datafile] $ rm-rf/u01/app/oracle/oradata/data/

The database cannot be started normally.

  1. SQL> conn/AsSysdba
  2. Already connected to the idle routine.
  3. SQL> startup
  4. The ORACLE routine has been started.
  5. Total SystemGlobalArea 167772160 bytes
  6. FixedSize1266392 bytes
  7. VariableSize67112232 bytes
  8. DatabaseBuffers 96468992 bytes
  9. Redo Buffers 2924544 bytes
  10. ORA-00205 :?????????, ??????, ???????
  11. SQL>SelectStatusFromV $ instance;
  12. STATUS
  13. ------------------------
  14. STARTED
  15. SQL> shutdown immediate
  16. ORA-01507 :??????
  17. The ORACLE routine has been disabled.
  • 1
  • 2
  • Next Page

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.