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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Using V$BACKUP_ASYNC_IO / V$BACKUP_SYNC_IO to Monitor RMAN PerformanceORM
- NBU恢復Oracle通道完成後RMAN沒有進度Oracle
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- RMAN-03009: failure of backup command on ORA_DISK_1 channelAI
- Dynamics CRM 2016 404 error before any report runsError
- Error waiting for a debug connection: ProcessException: adb did not report forwarded portErrorAIExceptionForward
- mysqldump: Error 2013: Lost connection to MySQL server during query when dumpingMySqlErrorServer
- ORACLE NBU調取oracle rman指令碼備份歸檔不自動刪除歸檔Oracle指令碼
- mysqldump匯出報錯"mysqldump: Error 2013 ... during query when dumping tableMySqlError
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- curl error 6 for laradockError
- crsd.bin Fail With Error CRS-1019 When ohasd Restarted (文件 ID 2291799.1)AIErrorREST
- NBU恢復oracleOracle
- NBU報錯83
- ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAError
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- SQLBackupAndFTP12.0 failed to backup database with full backup typeSQLFTPAIDatabase
- md_backup
- Oracle案例12——NBU Oracle恢復Oracle
- Jest-Vue-ReportVue
- 【RMAN】RMAN備份至ASMASM
- Oracle 11G RAC複製備庫RMAN-03002 RMAN-05501 RMAN-03015 RMAN-03009 RMAN-10038Oracle
- case when 語句
- 【RMAN】RMAN的備份保留策略
- Salesforce Admin篇(二) ReportSalesforce
- ORACLE rman與RMAN-00054&ORA-09945Oracle
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- RMAN(轉)
- NBU常用命令1——介質管理
- 【RMAN】Oracle rman 常用命令參考Oracle
- RMAN恢復之RMAN-06555處理
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- 會說話的ABAP report
- BACKUP PENDING狀態的解除
- milvus-backup安裝部署
- recover database using backup controlfile理解Database
- Veritas Backup Exec™ 21.3 Multilingual (Windows)Windows
- RMAN-06207和RMAN-06208的處理