Oracle 56

[Oracle] 데이터베이스 강제 Open (ORA-00704 ORA-00604 ORA-01555)

Steps to attempt to force the database open: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  1) Backup the database while the database is closed. 2) Disable this database from EM if running. We also need to disable RAC to avoid Auto restart. 3) If your datafiles are from different points in time, it is best to try to use system tablespace datafiles at a similar timestamp to the OLDEST files you ha..

Oracle 2021.03.09

[Oracle] 커널 세마포어와 Oracle DB의 관계

// kernel Semaphore 파라미터// 세마포어는 여러 프로세스가 공유 자원(메모리 같은?)를 사용하기위해 프로세스의 접근을 직렬화 시켜주는 수단. // 왼쪽 부터 SEMMSL, SEMMNS, SEMOPM, SEMMNIsysctl -a | grep kernel.semkernel.sem = 250        32000   100     128 SEMMSL: 배열당 최대 세마포어 수 (max semaphores per array) SEMMNS: 시스템 전체 최대 세마포어 수 (max semaphores system wide) SEMOPM : 세마포어 호출당 최대 operation 수 (max ops per semop call) SEMMNI: 최대 배열 수(max number of arrays)  ..

Oracle 2021.02.04

[Oracle] Oracle logminer (로그마이너)

// Oracle 로그마이너 SQL > @redo     GROUP# MEMBER                                                MB        SEQ STATUS ---------- --------------------------------------------- ---------- ---------- ----------------          1 +DATA/RMANDB/ONLINELOG/redo1_a.log                    50          4 CURRENT          1 +DATA/RMANDB/ONLINELOG/redo1_b.log                    50          4 CURRENT          2 +DA..

Oracle 2021.01.13

[Oracle] RMAN Backup (Incremental Backup)

증분 백업(Incremental Backup)백업 시 설정했던 레벨의 숫자가 자기보다 작거나 같으면 그 시점부터 모든 데이터를 백업받는 것을 증분 백업이라고 합니다. 증분 백업에는 2가지 옵션이 존재 합니다. 차등 증분 백업 (Differential Backup)- 최근 level 0, 1에서 backup이후 변경이 발생한 모든 block을 백업- script : run {allocate channel c1 type disk;backup incremental level 0databaseformat '/data/backup/rman/%U_%T';};누적 증분 백업 (Cumulative Backup)- 최근 level 0에서 backup이후 변경이 발생한 모든 block을 백업- script : run {a..

Oracle 2020.10.30

[Oracle] 12c 메인테넌트 (CDB, PDB)

// Oracle 12c부터 메인테넌트 기능을 제공함.// 해당 기능을 간략히 설명하자면, CDB (Container Database) 안에 여러 PDB (Pluggable Database)를 사용할 수 있는데컨테이너 안에 여러 개의 PDB를 생성하여 Unplug 또는 Plug 하며 효과적으로 DB를 운영할 수 있음.// 여러 개의 데이터베이스를 생성하여 운영하는 것보다 메인테넌트 기능을 사용하면 리소스를 효율적으로 사용할 수 있을 것 같음. (보통 1개의 데이터 베이스 당 프로세스 할당 갯수가 53 ~54 정도 되는데 메인테넌트 기능을 이용하면 PDB 추가 할 때마다 프로세스가 1~2개 정도만 증가함.) SQL > show pdbs           CON_ID  CON_NAME             ..

Oracle 2020.07.20