linux上“rman can't open target”問題解決
在一臺Linux機器上,使用rman命令出錯如下:
$ rman target / rman: can't open target |
原來導致問題的原因是這個不是oracle的rman命令
$ which rman /usr/X11R6/bin/rman |
檢查.bash_profile中的PATH環境變數:
$ cat ~/.bash_profile|grep -i path PATH=$PATH:$HOME/bin export PATH PATH=$PATH:$ORACLE_HOME/bin export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH |
只要修改~/.bash_profile檔案,將$ORACLE_HOME/bin放到$PATH前面就可以了,修改後的~/.bash_profile的PATH環境變數為:
$ cat ~/.bash_profile|grep -i path PATH=$PATH:$HOME/bin export PATH PATH=$ORACLE_HOME/bin:$PATH export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH |
使修改後的環境變數生效
$ . ~/.bash_profile $ env|grep -i path PATH=/oracle/app/10.1/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:ORACLE_HOME/bin:/home/oracle/bin |
這樣再執行rman命令的時候就能找到oracle的rman命令了
$ which rman /oracle/app/10.1/bin/rman |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1029148/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rman: can't open target
- RMAN的"rman: can't open target"錯誤
- 關於oracle 10G for suse 9 的rman: can't open targetOracle 10g
- RMAN備份、恢復實驗室 之 備份篇 【rman: can't open target】
- RMAN can not open in LinuxLinux
- 解決can't find -lGL的問題
- FileZilla:425 Can't open data connection for transfer of解決辦法
- 【linux】Can't connect to MySQL server on 'XXX' (13)問題解決方式LinuxMySqlServer
- 解決問題:Variable 'time_zone' can't be set to the value of 'NULL'Null
- "locate: can not open `/var/lib/mlocate/mlocate.db"問題解決
- linux操作提示:“Can't open file for writing”或“operation not permitted”的解決辦法LinuxMIT
- Linux下安裝Oracle 錯誤解決 - Error: Can't open display:127.0..0.1:0.0LinuxOracleError
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解決辦法ErrorMySql
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- 問題解決zipimport.ZipImportError: can‘t decompress data; zlib not availablImportErrorAI
- python報錯問題解決:'ascii' codec can't encode characterPythonASCII
- 本機執行x程式出現:Can't open display 原因及其解決方法
- You can‘t specify target table ‘Person‘ for update in FROM clause
- 解決Can not allocate log問題的方法
- Supervisor 解決 can't find command *
- mysql中You can’t specify target table for update in FROM clMySql
- zedboard Linux JTAG驅動解決There is no current hw_target問題ZedLinux
- Ubuntu 解決 Too many open files 問題Ubuntu
- MySQL問題記錄--Can't connect to MySQL server on localhost (10061)解決方法MySqlServerlocalhost
- can't create PID file問題處理
- cordova 解決can’t not find moudle " plugman platform ios"PlatformiOS
- RMAN-05001,RMAN-05500 問題解決
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- Linux iscsi target版本問題Linux
- 使用BBED修改檔案頭解決資料庫Open驗證問題(上)資料庫
- "ScrollView can host only one direct child"問題解決View
- can't assign requested address 錯誤解決
- Xcode 無法開啟沙盒(can't open sandbox)XCode
- if doesn't support the "condition"attribute 問題解決
- “rman target /” 和 “rman nocatalog target /” 區別
- Mysql:Variable 'XXXt' can't be set to the value of 'NULL'解決MySqlNull
- mysql:Variable 'character_set_client' can't be set to the value of 'NULL'解決MySqlclientNull
- linux解決xhost: unable to open displayLinux