|
DB modeÀÇ º¯È¯
1. database¸¦ ±âµ¿ ½ÃŲ ÈÄ databaseÀÇ mode ¸¦ È®ÀÎ
$ svrmgrl
SVRMGR> connect / as sysdba
SVRMGR> startup
SVRMGR> archive log list
SVRMGR> select name, log_mode from v$database ;
2. archive¿Í °ü·ÃµÈ parameter°ª È®ÀÎ
SVRMGR> show parameter archive
3. databaseÀÇ mode¸¦ archivelog mode·Î Àüȯ
SVRMGR> shutdown immediate
$vi $ORACLE_HOME/dbs/initSID.ora
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_DEST=$HOME/ARCHIVE/
LOG_ARCHIVE_FORMAT=arch_%s.arc
SVRMGR> startup mount
SVRMGR> alter database archivelog ;
SVRMGR> alter database open ;
SVRMGR> alter system switch logfile ;
SVRMGR> show parameter archive
SVRMGR> !ls -al $HOME/ARCHIVE
Advanced Practice
1. automatic archiving À» Áß´ÜÇÏ°í, log switch¸¦ ¹ß»ý
SVRMGR> alter system archive log stop ;
SVRMGR> alter system switch logfile ;
SVRMGR> alter system switch logfile ;
SVRMGR> alter system switch logfile ;
¾î¶² Çö»óÀÌ ¹ß»ýÇϴ°¡? database°¡ ¿î¿ëµÇÁö ¾Ê°í hangµÇ´Â Çö»óÀÌ ¹ß»ý!!!
¿Ö ±×·± Çö»óÀÌ ¹ß»ýÇßÀ»±î?
2. Server manager sessionÀ» Çϳª ´õ ¿¾î¼ automatic archivingÀ» È°¼ºÈÇ϶ó.
$ svrmgrl
SVRMGR> connect / as sysdba
SVRMGR> alter system archive log start ;
|