전체 글 110

[OS/macOS] 맥북 덮어도 화면 안꺼지게하는 명령어

/usr/bin or /usr/local/bin 에 실행권한 주고 넣어서 사용 # /bin/bash # pm COMMAND=$1 if [ -z "$COMMAND" ]; then echo "Please input [on/off/stat/show] at first variable"; else if [ "on" == "$COMMAND" ]; then sudo pmset -c disablesleep 0; elif [ "off" == "$COMMAND" ]; then sudo pmset -c disablesleep 1; elif [ "stat" == "$COMMAND" ]; then export SLEEP_STAT=`pmset -g | grep SleepDisabled | awk '{printf $2}'`; if..

OS/macOS 2022.07.07

[Oracle] rman datafile, archivelog File format (파일 명명) %

// rman set newname format (파일 명명법)%b:  Specifies the file name without the directory that it locates.  %N:  Specifies the tablespace name %f:  Specifies the absolute file number of a datafile %I:  Specifies DBID %U:  Specifies system generated unique filename // as a following format:  data-D-%d_id-%I_TS-%N_FNO-%f  // archivelog log_archive_format%s: log sequence number%S: log sequence number, ..

Oracle 2022.06.16

[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/1..

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-aarch64 --..

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. MTS or..

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;    ..

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 operationORA-39000: bad dump file specificationORA-3164..

Oracle 2021.11.19