Backup/Noarchive Log Mode
Noarchive Log Mode backup 기본
잇꼬
2024. 1. 9. 19:38
728x90
반응형
SMALL
■ noarchive log backup
- 기본 모드
- 일관성 있는 backup(=close backup =cold backup =offline backup)
- db를 정상적으로 종료해야 한다.
shutdown normal | transactional | immediate
- whole database backup : 모든 data file, control file, redo log file
tip) backup 일지 작성 필수!
#) checkpoint 번호 확인
select checkpoint_change# from v$database;
#) 현재 scn 번호 확인 : 조회할 때마다 scn 번호가 달라진다.
select current_scn from v$database;
#) datafile 이름, checkpoint 확인
select name, checkpoint_change# from v$datafile;
#) checkpoint 시간 확인
select scn_to_timestamp(840550) from daul;
# data file 확인
select name from v$datafile;
# control file 확인
select name from v$controlfile;
# redo log file 확인
select member from v$logfile;
# redo log 정보 확인
SELECT A.group#, A.MEMBER, b.BYTES/1024/1024 mb, b.ARCHIVED, b.status
FROM v$logfile A, v$log b
WHERE A.group# = b.group#
ORDER BY 1,2;
# 현재 사용중인 redo log 정보 확인
select * from v$log;
#) 마지막 체크포인트
select scn_to_timestamp( 840550 ) from dual;
# temp 파일(잊지 말고 temp 파일도 확인하자!)
select name from v$tempfile;
#) 모드 확인
archive log list
# 백업 및 복구와 관련된 파일 확인
show parameter DB_RECOVERY_FILE_DEST
db_recovery_file_dest_size : 4152M ★(4GB, 용량 체크)
# redo log 생성 유무 체크 : logging 이면 redo log 생성 됨
=> NOLOGGING(기본)
select tablespace_name, logging from dba_tablespaces;
728x90
반응형
LIST