250x250
반응형
Notice
Recent Posts
Recent Comments
전산쟁이의 기억노트
oracle 10g 아카이브 모드 설정 본문
728x90
반응형
SMALL
- 아카이브 모드 상태 확인
SQL> archive log list \\Database log mode No Archive Mode Automatic archival Disabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 1 Current log sequence 2 \\\\SQL> show parameter spfile \\NAME TYPE VALUE ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- ~-~-~-~-~-~-~-~-~-~-- ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- spfile string /u01/app/oracle/product/10.2.0 /db_1/dbs/spfileTSH1.ora
- 아카이브 모드 설정
SQL> ALTER SYSTEM SET log_archive_dest_1='location=/u01/app/oracle/oradata/data reopen=60' scope=spfile; System altered. \\\\SQL> ALTER SYSTEM SET log_archive_format='%t_%s_%r.arc' scope=spfile; System altered.
- Oracle 종료
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
- Oracle 시작
SQL> startup mount .ORACLE instance started. \\Total System Global Area 608174080 bytes Fixed Size 1220844 bytes Variable Size 171970324 bytes Database Buffers 432013312 bytes Redo Buffers 2969600 bytes Database mounted.
- log모드 변경
SQL> alter database archivelog; Database altered.
- 아카이브모드 설정내용 확인
SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /u01/app/oracle/oradata/data Oldest online log sequence 1 Next log sequence to archive 2 Current log sequence 2
- DB Open
SQL> alter database open; Database altered.
- DB 셧다운 & Cold Backup 권장
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.
- log파일 생성확인
SQL> ALTER SYSTEM SWITCH LOGFILE; \\System altered.
출처 - http://igoni.kr/books/dbms/page/oracle-10g
728x90
반응형
LIST
'oracledb' 카테고리의 다른 글
Oracle 몇가지 사용쿼리들 (0) | 2022.08.01 |
---|---|
oracle 10g dbstart에러 조치방법 (0) | 2022.08.01 |
oracle 10g 실행시 failed to auto-start… vikrkuma_new/oracle 메시지 출력할때 (0) | 2022.08.01 |
Centos에서 oracle 12c 설치하기 (0) | 2022.08.01 |
Centos에서 oracle 11g 설치 (0) | 2022.08.01 |
Comments