DIA-48316, DIA-48110, and DIA-48180 Permission Errors In Crs Alert.log Causing Lock File Issues (Doc ID 3061682.1)

 

19.24 패치 이후 아래와 같이 로그화일에 뜬금없이 Permission denied 가 기록되며 CRS가 올라가지 않는 버그가 있다고 한다.

 

증상 : alertlog 에 무수히 lck 화일관련 권한 에러가 반복되어 발생함.

 

[AutoCreate Relation]: following error encountered and ignored:
DIA-48316: relation [INCIDENT] unavailable or cannot be created
DIA-48110: error encountered while attempting to get a file lock [INCIDENT] [<ORACLE_BASE>/diag/crs/<hostname>/crs/lck/AM_1762783_4031814035.lck]
DIA-48180: OS open system call failure
Linux-x86_64 Error: 13: Permission denied
Additional information: 1

 

원인 : adrci purge 명령어 실행시 오류 이슈로 인하여 권한 설정 잘못

 

해결책 :

확장자 lck 화일들의 권한이 640 으로 바뀌어져 있을 것이다. 해당 디렉토리의 lock 화일들의 권한을  변경해 주

 

cd $ORACLE_BASE/diag/crs/<hostname>/crs/lck

chmod 660 *.lck.

Posted by pat98

### TO BACKUP THE CONTROLFILE USING RMAN:
run{
 allocate channel dev1 type disk format 'c:\backup\%U';
 backup current controlfile;
 }

 
 ### TO CHECK THE BACKUP OF CONTROLFILE USING RMAN:
list backup of controlfile;


### TO RECOVER USING BACKUP CONTROLFILE: (startup nomount)
run {
 allocate channel dev1 type disk;
 restore controlfile;
 alter database mount;
 restore database;
 recover database;
 sql "ALTER DATABASE OPEN RESETLOGS";
 }
 
 
### TO BACKUP ALL DATAFILES AND CONTROLFILE USING RMAN:
run {
 allocate channel dev1 type disk;
 backup full tag = 'full backup' database include current controlfile  format = 'c:\backup\db_t%t_s%s_p%p';
 release channel dev1;
 }
 
 
### TO CHECK ALL BACKUP OF DATAFILES USING RMAN:
list backupset;


### TO RESTORE BECAUSE OF MISSING/CORRUPT FILE(S) (First MOUNT the database and run RMAN)
run {
 allocate channel dev1 type disk;
 restore database;
 recover database;
 }
 
 
### RESTORE UNTIL TIME
The 'SET UNTIL TIME' must match with the variable NLS_DATE_FORMAT.
Prior logging on RMAN set the NLS_DATE_FORMAT in the desired format.
For example:
If unix ===> export NLS_DATE_FORMAT='YYYY-MM-DD:HH24:MI:SS';
If on windows nt ===> set this vaiable in the registery.
run {
 set until time 'May 1 2000 08:00:00';
 allocate channel dev1 type disk;
 shutdown abort;
 startup nomount;
 restore controlfile;
 alter database mount;
 restore database;
 recover database;
 sql 'alter database open resetlogs';
 }
 
 
### TO PURGE OBSOLETE BACKUPS: 
RMAN> #REPORTS ANY BACKUP WITH MORE THAN 3 COPIES
      report obsolete redundancy 3 device type disk; 
RMAN> #USE THIS REPORT TO FILL IN THE XXXXX BELOW
      report obsolete orphan; 
RMAN> allocate channel for maintenance type disk;
      allocate channel for delete type disk;
      change backuppiece 'C:\BACKUP\xxxx' delete;
      release channel;
RMAN> allocate channel for maintenance type disk;
      allocate channel for delete type disk;
      change datafilecopy 'C:\BACKUP\xxxx' delete;
      release channel;
  
  
### TO BACKUP ALL ARCHIVE LOGS 
run{
 allocate channel dev1 type disk format 'c:\backup\%U';
 backup archivelog all;
 }
 
 
### TO REMOVE ALL ARCHIVE LOG FILES AFTER BACKUP UPDATE TO THIS LINE
 backup archivelog all delete input;
 
 
### SKIP AN ARCHIVE LOG FILE THAT CAN NOT BE READ OR MANUALY DELETED UPDATE TO THIS LINE
 backup archivelog skip inaccessible
 
 
### TO REMOVE ONE ARCHIVE LOG THAT YOU MANUALY DELETED AND NOW GET AN RMAN-6089 <= 8.0
allocate channel for delete type disk; or 'SBT_TAPE'; 
change archivelog 'path/filename' delete;
and/or
 resync catalog;
 
 
### TO REMOVE ONE ARCHIVE LOG THAT YOU MANUALY DELETED AND NOW GET AN RMAN-6089 <= 8.1
allocate channel for maintenance type ....'  
change archivelog <name> uncatalog
Note:
The channels for delete and maintenance do not require the run command enclosed in {}.

Posted by pat98

11-27 01:47
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2025.11
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

최근에 달린 댓글