RMAN備份、恢復實驗室 之 備份篇 【rman: can't open target】
在Linux上,安裝完成之後,在測試RMAN時可能會遇到如下錯誤:
[oracle@smsdbrac1 oracle]$ rman target /
rman: can't open target
這是由於呼叫的是非Oracle的RMAN的緣故:
[oracle@smsdbrac1 oracle]$ which rman
/usr/X11R6/bin/rman
在X11R6下存在一個名為rman的命令:
[oracle@smsdbrac1 bin]$ ./rman -help
rman
[-f
[-S(ource of man page passed in)] [-F(ormatted man page passed in)]
[-r
[-V(olume)
[-b (show subsections)] [-k(eep head/foot)]
[-n(ame of man page)
[-p(aragraph mode toggle)] [-t(abstops spacing)
[-N(ormalize spacing, changebars)] [-y (zap hyphens toggle)]
[-K (declare that page has no breaks)]
[-d(iff)
[-M(essage)
[-R(ebus words for TkMan)] [-C (enable Tcl/Tk formatting)]
[-o (no op)] [-O
[-q(uiet--don't report warnings)] [-h(elp)] [-v(ersion)]
[
修正這個問題,我們只需要在Oracle使用者的環境變數下,將$ORACLE_HOME/bin放在PATH變數前就可以了:
export PATH=$ORACLE_HOME/bin:${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
重新登入使環境變數生效,現在Oracle能找到正確的rman了:
[oracle@smsdbrac1 oracle]$ su - oracle
Password:
[oracle@smsdbrac1 oracle]$ which rman
~/product/10.2.0/db/bin/rman
接下來去登陸一下,看看成功了沒有?
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20802110/viewspace-1063165/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 備份恢復篇之RMAN catalogOracle
- rman 增量備份恢復
- RMAN備份恢復技巧
- RMAN備份恢復典型案例——RMAN備份&系統變慢
- RMAN備份異機恢復
- 【rman備份策略】實驗
- RMAN備份恢復效能優化優化
- RMAN備份與恢復測試
- ORACLE DG從庫 Rman備份恢復Oracle
- rman備份異機恢復(原創)
- 【RMAN】RMAN備份至ASMASM
- 12 使用RMAN備份和恢復檔案
- RMAN備份恢復典型案例——ORA-00245
- RMAN備份恢復典型案例——異機恢復未知DBID
- RMAN備份概述
- 【RMAN】Oracle12c以後rman 備份恢復命令參考Oracle
- 【RMAN】在多租戶環境下的RMAN備份及恢復
- 【RMAN】RMAN的備份保留策略
- 備份恢復Lesson 04.Using the RMAN Recovery Catalog
- Oracle RMAN備份實戰Oracle
- 【RMAN】Oracle12c之後,rman備份Dataguard備端恢復可能出現邏輯錯誤Oracle
- 透過RMAN備份standby database成功恢復還原Database
- RMAN備份恢復典型案例——資料庫卡頓資料庫
- dg丟失歸檔,使用rman增量備份恢復
- RMAN備份進度
- rman 備份指令碼指令碼
- RMAN的備份原理
- 透過搭建恢復目錄實現RMAN異地備份和恢復
- RMAN備份恢復典型案例——跨平臺遷移pdb
- Oracle9i RMAN 的優缺點及RMAN 備份及恢復步驟Oracle
- 揭秘ORACLE備份之----RMAN之五(CATALOG)Oracle
- Oracle OCP(60):RMAN 備份Oracle
- RAC備份恢復之Voting備份與恢復
- RMAN備份恢復典型案例——資料檔案存在壞快
- Windows oracle 11g rman備份恢復到linux系統WindowsOracleLinux
- 【RMAN】同時建立多個備份(建立多重備份)
- 【RMAN】在備庫執行rman備份時報錯RMAN-06820 ORA-17629
- RMAN備份詳解(轉載)
- [20190522]rman備份問題.txt