【ARCHIVE】單機環境修改資料庫為歸檔模式
1.檢視系統的歸檔模式
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 3 00:10:42 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
sys@ora10g> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 17
Current log sequence 19
2.徹底關閉資料庫
sys@ora10g> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
3.啟動資料狀態到mount
sys@ora10g> startup mount;
ORACLE instance started.
Total System Global Area 104857600 bytes
Fixed Size 1289172 bytes
Variable Size 88081452 bytes
Database Buffers 8388608 bytes
Redo Buffers 7098368 bytes
Database mounted.
4.修改資料庫的歸檔模式
sys@ora10g> alter database archivelog;
Database altered.
5.開啟資料庫
sys@ora10g> alter database open;
Database altered.
6.檢視資料庫已經為歸檔模式
sys@ora10g> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 18
Next log sequence to archive 20
Current log sequence 20
7.小結
單機環境下修改資料庫為歸檔模式的操作步驟比較簡單。生產資料庫一般要求執行在歸檔模式下。在歸檔模式下資料庫具有非常好的可恢復性(當然要有一套嚴謹的備份恢復策略作為前提)。
Good luck.
secooler
10.04.20
-- The End --
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 3 00:10:42 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
sys@ora10g> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 17
Current log sequence 19
2.徹底關閉資料庫
sys@ora10g> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
3.啟動資料狀態到mount
sys@ora10g> startup mount;
ORACLE instance started.
Total System Global Area 104857600 bytes
Fixed Size 1289172 bytes
Variable Size 88081452 bytes
Database Buffers 8388608 bytes
Redo Buffers 7098368 bytes
Database mounted.
4.修改資料庫的歸檔模式
sys@ora10g> alter database archivelog;
Database altered.
5.開啟資料庫
sys@ora10g> alter database open;
Database altered.
6.檢視資料庫已經為歸檔模式
sys@ora10g> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 18
Next log sequence to archive 20
Current log sequence 20
7.小結
單機環境下修改資料庫為歸檔模式的操作步驟比較簡單。生產資料庫一般要求執行在歸檔模式下。在歸檔模式下資料庫具有非常好的可恢復性(當然要有一套嚴謹的備份恢復策略作為前提)。
Good luck.
secooler
10.04.20
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-660290/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫歸檔模式的切換ELOracle資料庫模式
- 華為GaussDB資料庫(單機版)在ARM環境下的安裝指南資料庫
- 達夢資料庫初體驗-單機環境部署記錄資料庫
- Oracle資料庫歸檔模式的開啟和關閉Oracle資料庫模式
- SQL資料庫怎麼進行資料歸檔和歸檔管理?SQL資料庫
- oracle 11g開啟歸檔模式及修改歸檔目錄Oracle模式
- 對歸檔模式下CLEAR 未歸檔日誌後恢復資料庫的一點看法模式資料庫
- RAC開啟資料庫歸檔資料庫
- Polardb-O資料庫歸檔配置資料庫
- 網站檔案修改資料庫,安全高效地修改網站資料庫中的檔案資訊網站資料庫
- GBase XDM(單機/分片叢集)資料庫修改記錄資料庫
- 織夢資料庫配置檔案修改資料庫配置方法資料庫
- Sybase或SQLServer資料庫分批歸檔方案SQLServer資料庫
- python環境連結Oracle資料庫PythonOracle資料庫
- 【MySQL資料庫】認識資料庫+環境搭建--------Windows系統MySql資料庫Windows
- 達夢資料庫歸檔方式及其配置方法資料庫
- oracle資料庫歸檔日誌量陡增分析Oracle資料庫
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫
- Win環境至Linux環境Oracle資料庫遷移全過程LinuxOracle資料庫
- 教小白搭建sybase資料庫環境資料庫
- Mac環境下安裝MongoDB資料庫MacMongoDB資料庫
- TiDB 在餓了麼歸檔環境的應用TiDB
- Windows單機配置Zookeeper環境Windows
- 在 Homestead 環境下為 PHP 新增 Oracle 資料庫擴充套件(OCI)PHPOracle資料庫套件
- LightBD/PostgreSQL資料庫設定歸檔保留時間SQL資料庫
- openGauss資料庫JDBC環境連線配置(Eclipse)資料庫JDBCEclipse
- 存檔-環境資訊aptAPT
- ZooKeeper 系列(二)—— Zookeeper單機環境和叢集環境搭建
- 【資料庫資料恢復】LINUX環境下ORACLE資料庫誤刪除的資料恢復資料庫資料恢復LinuxOracle
- Oracle資料庫日常問題-歸檔異常增長Oracle資料庫
- CentOS修改Mariadb資料庫檔案儲存路徑CentOS資料庫
- DM7使用dmrestore工具利用不同資料庫的歸檔恢復資料庫REST資料庫
- zblog的資料庫配置檔案是哪個?怎樣修改資料庫配置資訊?資料庫
- 網站資料庫如何修改config.php,如何在網站配置檔案中修改資料庫連線資訊網站資料庫PHP
- 神通資料庫測試環境調優過程資料庫
- pt-archiver資料歸檔Hive
- pt-archiver 歸檔資料Hive
- MySQL 中如何歸檔資料MySql
- 設定Oracle9i為自動歸檔模式Oracle模式