資料庫:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
1.在shell環境中安裝時(運行./runinstall進行圖形化安裝),出現錯誤
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/OraInstall2007-12-03_09-02-02AM/jre/1.4.2/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file:
No such file or directory
原因是由於缺少了libXp.so.6包,掛載RHEL系統安裝光碟,在/Server文件夾中找到相關rpm包,根據包之間的依賴關係進行安裝.
2.安裝好libxp相關的包以後,又出現如下錯誤:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
我們採用圖形方式進行安裝,發現已oracle用戶身份無法連接到X程序,解決方法是:以日常工作用的那個用戶登錄,在shell中運行如下命令:
xhost local:oracle non-network local connections being added to access control list
然後以Oracle用戶身份進行登錄,重新進行安裝.
3.設置xhost相關程序時,系統提示
xhost access control disabled, clients can connect from any host
第一步:用root登陸linux,啟動vnc服務;
第二步:根據vnc起來的埠,設置export DISPLAY=localhost:1(1表示vnc在第一個tty上啟動的)
第三步:執行xhost ,並且提示“access control disabled, clients can connect from any host”才正確.
此時再切換到Oracle用戶開始安裝程序.
4.可以看見安裝圖形界面,但是終端提示
Warning: Cannot convert string "-b&h-luxi sans-medium-r-normal--*-140-*-*-p-*-iso8859-1" to
這是由於字元編碼問題,安裝程序採用的是en_US字符集,而在系統中我們採用的是zh_CN.GB2312字符集,可以通過ehco $LANG查看,解決方法就設置系統的語言環境變數LANG=en_US.
5.安裝好Oracle后,我們以oracle用戶身份登錄到資料庫,運行sqlplus “/as sysdba”,系統提示insufficient privileges ,說明許可權存在問題.查看當前oracle用戶信息
[root@localhost ~]# id oracle
uid=501(oracle) gid=501(oracle) groups=501(oracle)
發現oracle用戶不在dba用戶組中,解決方法就是把oracle用戶加入到dba管理員組中.切換到root用戶,vi /etc/group
oracle:x:501:
dba:x:502:oracle
oinstall:x:503:
把oracle用戶加入到dba組中,再使用oracle用戶身份登錄資料庫.
6.連接oracle資料庫時,出現shared memory realm does not exist .提示資料庫不可用.原因是由於Oracle資料庫沒有正常啟動,解決方法如下:
sqlplus /nolog conn USER/PASSWORD as sysdba startup
此時,可以發現已經成功連接到oracle資料庫中.
7.PL/SQL Developer連接資料庫方法.
編輯TNSNAMES.ora文件,在其末尾處添加如下連接信息. data =本文出自 「暗淡藍點」 博客,請務必保留此出處http://674893612.blog.51cto.com/3011730/559131
[火星人 ] RedHat AS 5安裝Oracle常見錯誤 總結已經有549次圍觀