About Database archiving

Source: Internet
Author: User

About Database archiving
--See if the database is in archive mode
Sql> select Name,log_mode from V$database;

NAME Log_mode
--------- ------------
Enmo Noarchivelog

sql> archive log list;
Database log mode No Archive mode
Automatic Archival Disabled
Archive Destination/u01/app/oracle/product/11.2.0/dbhome_1/dbs/arch
Oldest online log sequence 6
Current Log Sequence 8
--To shut down the database start the database under Mount
sql> shutdown Immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
Sql> Startup Mount
ORACLE instance started.

Total System Global area 835104768 bytes
Fixed Size 2257840 bytes
Variable Size 541068368 bytes
Database buffers 289406976 bytes
Redo buffers 2371584 bytes
Database mounted.
Sql>
Sql>
--Change Database to archive mode
sql> ALTER DATABASE Archivelog;

Database altered.
---Open the database

sql> ALTER DATABASE open;

Database altered.
--Start automatic archiving
Sql> alter system archive log start;

System altered.

Sql>

About Database archiving

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.