Oracle restores data through Logs and modifies the archive Mode

Source: Internet
Author: User


Oracle uses log recovery and archive mode to modify archive Mode Modify logs // view the archive mode www.2cto.com archive log list; // view the archive parameter show parameter db_recovery // log archive path: F: \ oracle \ product \ 10.2.0 \ oradata \ orcl // modify the log storage path and size alert system set log_archive_dest = '/opt/oracle/archive' scope = spfile sid = '*'; // command to modify F: \ oracle \ product \ 10.2.0 \ db_1 \ dbs \ SPFILEORCL. ORA // modify the parameter file // modify the automatic archiving mode: shutdown immediate; start Up mount; alter database archivelog; // non-archive mode: alter database noarchivelog; alter database open; archive log list; // if the data is not restored, the cause may be: www.2cto.com 1. the redo log is overwritten... ------------------------ Restore database through Logs ------------------------------------------------------------------------ svrmgr> shutdown immediate svrmgr> startup mount... svrmgr> recover database until time '2017-11-23: 18: 00: 00'; svrmgr> alter database open resetlogs; svrmgr> shutdown immediate... svrmgr> startup... the startup status is displayed. ----------------------- View the log file of the log GROUP --------------------------------- alter database add logfile group 1 select * from v $ log;

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.