NBU report error 6 when RMAN backup
由於oracle無法寫/tmp目錄而造成的NBU error,修改/tmp目錄許可權即可解決。
[@more@]Error code 6: the backup failed to back up the requested files
Common reasons:
1. Backup script name wrong.
2. Backup script permission issue.
今天的case不是以上原因,在script的log裡也沒有更多資訊,看起來是沒有進RMAN就出錯了。但是直接執行RMAN語句是沒有報錯的。
Backup script的寫法是先生成要執行的RMAN command lines, 將其賦值給變數CMD_STR, 然後再用下面的語句來執行:
su - $ORACLE_USER -c "$CMD_STR" >> $RMAN_LOG_FILE (因為備份的script是由root來run的,所以要先su到oracle下面)
在用root除錯時報錯:
ksh[5]: /tmp/sh13191.13: cannot create
原來是/tmp目錄的許可權變掉了,oracle不能寫入:
# ls -ld /tmp
drwxr-xr-x 7 root sys 577 Sep 22 10:25 /tmp
在把/tmp許可權改回之後備份不再報錯:
# ls -ld /tmp
drwxrwxrwt 7 root sys 648 Sep 22 10:43 /tmp
Issue是解決了,但是問題還有:為什麼直接run RMAN不需要寫/tmp, 而用-c “CMD_STR”就需要寫/tmp?
待查。。。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7919512/viewspace-1010903/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- expdp report error when export tablesErrorExport
- Using RMAN REPORT NEED BACKUP with Different Retention Policies
- Oracle Rman 命令詳解(List report backup configure)Oracle
- Rman Backup Failed With Error Rman-00600 [8201] (Doc ID 412786.1)AIError
- Oracle OCP 1Z0-053 Q510(RMAN REPORT NEED BACKUP)Oracle
- "Failed to create empty document" error message appears when opening the BrightStor ARCserve BackupAIErrorAPP
- NBU (98) error requesting media (tpreq)Error
- ituring Error ReportError
- rman backup script(引用)
- Rman backup standby databaseDatabase
- DP rman backup scripts
- rman report list crosscheck deleteROSdelete
- 使用RMAN report need backup命令檢查備份時遇到一個詭異的問題
- Oracle 學習(Rman Backup)Oracle
- rman backup database force 功能Database
- Rman Backups When The Directory Structures Are DifferentStruct
- V$RMAN_BACKUP_JOB_DETAILSAI
- RMAN cumulative and differential incremental backupREM
- How to use rman backup a noarchivelog databaseHiveDatabase
- oracle 11g rman backup scriptOracle
- 轉貼_RMAN-DBMS_BACKUP_RESTOREREST
- RMAN的list和report命令詳解
- NBU恢復Oracle通道完成後RMAN沒有進度Oracle
- ''Sbt Error = 7011, Errno = 959'' Error When Backing Up To TapeError
- RMAN - backup archivelog all 與 backup database plus archivelog 區別HiveDatabase
- 有關error 46 encountered when initializing ldmError
- 12c-Say goodbye to your backup when dropping your PDBGo
- 理解RMAN backup database plus archivelog命令DatabaseHive
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- backup: 0511-432 A write error occurredError
- storm 啟動異常 Error when processing eventORMError
- An error has occurred when creating this preference page.Error
- Using V$BACKUP_ASYNC_IO / V$BACKUP_SYNC_IO to Monitor RMAN PerformanceORM
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- rman backup ENCRYPTION(備份加密特性)測試!加密
- RMAN backup validate database on databases in noarchivelog modeDatabaseHive
- rman backup as copy database format '/tmp/%U.dbf'DatabaseORM
- Backup And Recovery User's Guide-RMAN架構-RMAN庫(Repository)GUIIDE架構