Oracle Database Archive Management

Source: Internet
Author: User

Sql> shutdown immediatesql> startup mountsql> alter system set  log_archive_dest_1= ' location=/u01/app/oracle/archive/ mandatory '; Sql> alter system set log_archive_dest_2= ' location=/u02/app/oracle/archive/  Optional '; sql> alter database archivelog; sql> alter database open; Sql> select dbid,name,log_mode from v$database;      dbid  NAME                         log_mode---------- --------------------------- ----- -------------------------------1081616855 king                         ARCHIVELOGSQL>  archive log list;database log mode  &nBsp;           archive modeautomatic archival              enabledarchive destination             /u02/app/oracle/archive/Oldest  Online log sequence     39next log sequence to archive    41Current log sequence            41SQL> show parameter log_archive_dest_1;NAME                                   TYPE                                valUE------------------------------------ --------------------------------- --------------------------- ---log_archive_dest_1                    string                             location=/u01/ app/oracle/archi                                                                           ve/ mandatory                                                                          SQL>  show parameter log_archive_dest_2;NAME                                   TYPE                                value------------------------------------ --------------------------------- ------------------ ------------log_archive_dest_2                    string                             location=/u02/app/oracle/archi                                                                           ve/  optional


sql> show parameter log_archive_maxname                                   TYPE                                value------------------------------------ --------------------------------- ------------ ------------------log_archive_max_processes             integer                            4sql> show parameter log_ archive_min_succeed_destname                                  TYPE                                value------------------------------------ --- ------------------------------ ------------------------------log_archive_min_succeed_dest          integer                            1


Sql> alter system archive log current; System altered.


Oracle Database Archive Management

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.