전체 글 102

[Oracle] bbed (block edit) ORA-01578: ORACLE data block corrupted

// ORA-01578: ORACLE data block corrupted (file # 4, block # 140) // ORA-01110: data file 4: '/u01/app/oracle/oradata/ORADB/users01.dbf' // bbed 명령어는 10.2.0.5 에 생겼던 기능으로 버전이 상향되며 오라클에서 더 이상 지원하지 않는다. 따라서, 해당 명령어를 사용 후 연쇄적으로 발생하는 에러에 대해서는 오라클에서 지원받을 수 없다. //해당 명령어를 사용하고 싶다면 개인적으로 아래 파일을 구해야한다. 구한 파일의 지원os와 설치한(적용할) os가 다르면 명령어 컴파일이 안될 수 있음. // bbed file (linux_x64) https://chess-drive.tistory.com..

Oracle 2022.06.15

[OS/macOS] macOS M1 Processor 환경에서 LIMA 를 이용한 oracle 설치

// LIMA (Linux on Mac) 는 qemu기반으로 동작하는 가상화 프로그램이다. -- LIMA is virtual program base on qemu. // 따라서, qemu의 버전이 최신일 수 록 에러 확률이 적을 것으로 보인다. -- so, recommened as high as prossible, qemu version. // qemu 설치 $ brew install qemu // 버전 확인 -- version check // 2022년04월 기준 QEMU emulator version 6.2.0_1 이상의 버전을 갖출 것을 권장하고 있다. -- On M1 macOS, Homebrew's QEMU 6.2.0_1 or later is recommended $ qemu-system-aarc..

OS/macOS 2022.04.01

[Oracle] ORA-00600: internal error code, arguments: [729], [80], [space leak]

// ORA-04030: out of process memory Tips // ORA-00600: internal error code, arguments: [729], [80], [space leak], [], [], [], [], [], [], [], [], [] // 2번째 argument가 space leak 발생한 chunk의 사이즈를 나타내줌. // 에러 원인 heap에 존재하는 chunk 중 free할 수 있는 chunk가 존재하지 않아 memory leak 발생. // 해결 방안 - Increase pga_aggregate_target - Decrease sort_area_size and/or hash_area_size - Move to multi-threaded server (a.k.a. ..

Oracle 2022.03.18

[Oracle] ORA-38856: cannot mark instance UNNAMED_INSTANCE_2 (redo thread 2) as enabled

// Oracle version 19.12.0.0.0 // ORA-38856: cannot mark instance UNNAMED_INSTANCE_2 (redo thread 2) as enabled 장애현상 : 기존 RAC 환경으로 운영 중이던 데이터베이스를 복사해서 다른 장비에 single로 구성 후, open resetlogs를 수행하던 중 아래 에러를 띄움. "ORA-38856: cannot mark instance UNNAMED_INSTANCE_2 (redo thread 2) as enabled" 장애원인 : oracle 버그 (Bug 4355382.) 장애처리 : // pfile 사용 시 SQL> shutdown immediate; SQL> exit $ echo "*._no_recovery_th..

Oracle 2022.01.03

[Oracle] ORA-31640: unable to open dump file "....../scott.dmp" for read

// Oracle version 19.12.0.0.0 // ORA-39002: invalid operation // ORA-39000: bad dump file specification // ORA-31640: unable to open dump file "....../scott.dmp" for read // ORA-27037: unable to obtain file status // Linux-x86_64 Error: 2: No such file or directory // Additional information: 3 장애현상 : impdp 명령어를 하고자 하면 아래 에러를 띄움. "ORA-39002: invalid operation ORA-39000: bad dump file specificatio..

Oracle 2021.11.19

[Oracle] ORA-28002 : the password will expire within %s days

// ORA-28002 : the password will expire within %s days // oracle 계정 account_status가 expired(grace)로 나타날 때 장애현상 : jdbc를 사용하는 어플리케이션에서 접근할 때 계정에 lock이 걸린 것 처럼 보여짐. 장애원인 : profile의 password_life_time과 password_grace_time이 설정되어 있었던 이력이 존재하고, 이 후 (password_life_time - password_grace_time)의 값에 도달한 jdbc connection 요청이 들어올 때 계정이 expired(grace)상태로 빠지게됨. 해결방법 : http://www.dba-oracle.com/t_ora_28002_passwo..

Oracle 2021.11.03

[Oracle] ORA-19206: Invalid value for query or REF CURSOR parameter

// Oracle version 9.2.0.7 // ORA-19206: Invalid value for query or REF CURSOR parameter 장애현상 : exp명령을 수행하는 중간에 "EXP-00056: ORACLE error 19206 encountered", "ORA-19206: Invalid value for query or REF CURSOR parameter"의 메시지가 발생하면서 exp 수행되지 않음. /* 에러 내용 EXP-00056: ORACLE error 19206 encountered ORA-19206: Invalid value for query or REF CURSOR parameter ORA-06512: at "SYS.DBMS_XMLGEN", line 83 ORA-0..

Oracle 2021.10.13

[Oracle] RMAN delete archived redo log files

// RMAN에서 backup archivelog all delete input 명령어를 통해 아카이브로그를 백업했는데 백업하고 보니 백업된 아카이브로그의 시퀀스번호와 남아있는 아카이브로그의 시퀀스번호 사이에 빠진 아카이브로그가 존재한다는 것을 발견함. // 이러한 버그는 DG운영 중일때 치명적일 수 있다고 생각되어짐. 참조 : http://www.dba-oracle.com/t_rman_delete_archived_redo_logs.htm RMAN delete archived redo log files Question: I have been backing-up my archived redo log files bit the files are not being removed from the archived ..

Oracle 2021.10.06