Change the Oracle 10g/11g database to archive mode

Source: Internet
Author: User

First, Oracle 10g/11g

In Oracle 11g, when archive log mode is turned on, the default archive directory is specified for db_recovery_file_dest. This parameter can be specified in Pfile/spfile:

db_recovery_file_dest= '/u01/app/oracle/flash_recovery_area ';

1.sqlplus/as sysdba; log in;

2. Close the database

sql> Shutdown Immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

3. Start Data Mount Status:

sql> startup Mount;
ORACLE instance started.

Total System Global area 285212672 bytes
Fixed Size 1218992 bytes
Variable Size 92276304 bytes
Database buffers 188743680 bytes
Redo buffers 2973696 bytes
Database mounted.

4. Modify the database to archive mode:

sql> ALTER DATABASE archivelog; (non-archive mode is Noarchivelog)

Database altered.

5, open the database, query:

sql> ALTER DATABASE open;

Database altered.

sql> Archive Log List
Database Log Mode Archive mode
Automatic Archival Enabled
Archive Destination/oracle/oracle10g/log/archive_log
Oldest online log sequence 0
Next log sequence to archive 1
Current log sequence 1

5. Modify the log file naming format:

sql> alter system set log_archive_max_processes = 5;
Sql> alter system set Log_archive_format = "Archive_%t_%s_%r.log" Scope=spfile;

System altered.

Change the Oracle 10g/11g database to archive mode

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.