Home>Article>Database> How to modify the archive mode in oracle

How to modify the archive mode in oracle

WBOY
WBOY Original
2022-01-26 14:39:43 5309browse

Method: 1. Use the "select log_mode from v$database;" statement to check whether the current mode is archive mode; 2. Close the database and start it in the mount state; 3. Use the "alter database archivelog;" command to modify Just set it to archive mode.

How to modify the archive mode in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to modify the archive mode in oracle

Switch to the oracle user, and then use sqlplus /nolog to log in to the oracle data

Use the oracle system administrator sysdba to log in to the database

conn /as sysdba

View the current oracle mode

select log_mode from v$database;

The current mode is NOARCHIVELOG and the archive mode is not turned on

How to modify the archive mode in oracle

select * from v$archive_processes;

Obviously there is no automatic archiving, no archiving process, let alone archiving mode.

How to modify the archive mode in oracle

How to modify the archive mode in oracle

Close the database and boot to mount state

shutdown immediate

startup mount

How to modify the archive mode in oracle

Modify the database to archive mode

alter database archivelog;

How to modify the archive mode in oracle

Verify again that Oracle has been modified to archive Mode

How to modify the archive mode in oracle

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to modify the archive mode in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn