20170514002Oracle 11g R2安裝過程中遇到的報錯及解決辦法


Oracle 11g R2安裝過程中遇到的報錯及解決辦法

1.提示Check if the DISPLAYvariable is set.    Failed<<<<

Oracle 11g R2安裝過程中遇到的報錯及解決辦法

解決方案:

#xhost +  //切換到root用戶輸入

#su – Oracle  //切換到oracle用戶

$./runInstaller  //執行安裝程序

 


xhost 是用來控制X server訪問權限的。

通常當你從hostA登陸到hostB上運行hostB上的應用程序時,

做為應用程序來說,hostA是client,但是作為圖形來說,

是在hostA上顯示的,需要使用hostA的Xserver,所以hostA是

server.因此在登陸到hostB前,需要在hostA上運行xhost +

來使其它用戶能夠訪問hostA的Xserver.

xhost + 是使所有用戶都能訪問Xserver.

xhost + ip使ip上的用戶能夠訪問Xserver.

xhost + nis:user@domain使domain上的nis用戶user能夠訪問

xhost + inet:user@domain使domain上的inet用戶能夠訪問。

2.報錯內容OUI-10035,OUI-10033

1.OUI-10035:You do not have permission to write to the inventory location.

OR

2.OUI-10033:The inventory location /u01/app/oraInventory set by the previousinstallation session is no longer accessible. Do you still want to continue bycreating a new inventory? Note that you may lose the products installed in theearlier session.

2-1 報錯原因

導致出現這個問題的原因已經在提示中說得非常明確,原因是“存放inventory的位置權限不足”。

問題處理也同樣簡單,將/u01/app目錄的讀寫權限授權給oracle用戶。

2-2 處理方法

$chown -R oracle:oinstall /u01/app

$chmod -R 755 /u01/app

然后重新啟動OUI進行安裝即可。

3.安裝的過程出現OUI-25031的錯誤界面

主要是IP地址和主機名不對應,因為oracle不是直接獲取IP地址的,而是通過解析主機名來獲取IP的

修改2個地方:

#vi /etc/sysconfig/network

hostname=newhostname

#vi /etc/hosts

IP  主機名

4.安裝過程中遇到亂碼:

這是因為oracle不支持中文造成的。你可以先使用命令

export將環境臨時換成英文,然后再安裝。這個環境變量的修改只是臨時的,重啟后或者使用oracle用戶登錄時會自己換回來的

5.安裝過程中出現INS-32031,INS-32033錯誤:

[INS-32031]Invalid inventorylocation

[INS-32033]Central Inventorylocation is not vritable

解決辦法:修改/home/oracle_11的權限

chown -R oracle:oinstall /home/oracle_11就行

6.創建oracle用戶,提示useradd: warning: the home directory already exist

在Linux中安裝oracle11g  R2時:

#groupadd oinstall

#groupadd dba

mkdir -p /home/oracle  //oracle安裝到此目錄下

建立用戶:

#useradd -d /home/oracleoracle -g oinstall -G dba

結果報錯:

useradd: warning: the homedirectory already exists.

Not copying any file fromskel directory into it.

進入/home/oracle目錄,沒有.bash_profile',.bashrc,bash_logout

原因:

系統添加用戶的標准步驟

1.編輯/etc/passwd與/etc/group

2.創建用戶主目錄

3.從/etc/skel拷貝文件與目錄

4.讓新用戶獲得其主目錄與文件的擁有權限

5.給新用戶一個密碼

解決辦法:

依舊使用上面的命令創建用戶,然后手動拷貝配置文件到/home/oracle下。

cp /etc/skel/.bash_profile /home/oracle

cp /etc/skel/.bashrc /home/oracle

cp /etc/skel/.bash_logout /home/oracle

這樣既可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM