Oracle 11g R2安装过程中遇到的报错及解决办法
1.提示Check if the DISPLAYvariable is set. ? ?Failed<<<<
解決方案:
#xhost + ?//切換到root用戶輸入
#su – oracle ?//切換到oracle用戶
$./runInstaller ?//執(zhí)行安裝程序
xhost 是用來控制X server訪問權(quán)限的。
通常當(dāng)你從hostA登陸到hostB上運(yùn)行hostB上的應(yīng)用程序時(shí),
做為應(yīng)用程序來說,hostA是client,但是作為圖形來說,
是在hostA上顯示的,需要使用hostA的Xserver,所以hostA是
server.因此在登陸到hostB前,需要在hostA上運(yùn)行xhost +
來使其它用戶能夠訪問hostA的Xserver.
xhost + 是使所有用戶都能訪問Xserver.
xhost + ip使ip上的用戶能夠訪問Xserver.
xhost + nis:user@domain使domain上的nis用戶user能夠訪問
xhost + inet:user@domain使domain上的inet用戶能夠訪問。
2.報(bào)錯(cuò)內(nèi)容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 報(bào)錯(cuò)原因
導(dǎo)致出現(xiàn)這個(gè)問題的原因已經(jīng)在提示中說得非常明確,原因是“存放inventory的位置權(quán)限不足”。
問題處理也同樣簡(jiǎn)單,將/u01/app目錄的讀寫權(quán)限授權(quán)給oracle用戶。
2-2 處理方法
$chown -R oracle:oinstall /u01/app
$chmod -R 755 /u01/app
然后重新啟動(dòng)OUI進(jìn)行安裝即可。
3.安裝的過程出現(xiàn)OUI-25031的錯(cuò)誤界面
主要是IP地址和主機(jī)名不對(duì)應(yīng),因?yàn)閛racle不是直接獲取IP地址的,而是通過解析主機(jī)名來獲取IP的
修改2個(gè)地方:
#vi /etc/sysconfig/network
hostname=newhostname
#vi /etc/hosts
IP ?主機(jī)名
4.安裝過程中遇到亂碼:
這是因?yàn)閛racle不支持中文造成的。你可以先使用命令
export將環(huán)境臨時(shí)換成英文,然后再安裝。這個(gè)環(huán)境變量的修改只是臨時(shí)的,重啟后或者使用oracle用戶登錄時(shí)會(huì)自己換回來的
5.安裝過程中出現(xiàn)INS-32031,INS-32033錯(cuò)誤:
[INS-32031]Invalid inventorylocation
[INS-32033]Central Inventorylocation is not vritable
解決辦法:修改/home/oracle_11的權(quán)限
chown -R oracle:oinstall/home/oracle_11就行
6.創(chuàng)建oracle用戶,提示useradd: warning: the home directory already exist
在Linux中安裝oracle11g ?R2時(shí):
#groupadd oinstall
#groupadd dba
mkdir -p /home/oracle ?//oracle安裝到此目錄下
建立用戶:
#useradd -d /home/oracleoracle -g oinstall -G dba
結(jié)果報(bào)錯(cuò):
useradd: warning: the homedirectory already exists.
Not copying any file fromskel directory into it.
進(jìn)入/home/oracle目錄,沒有.bash_profile',.bashrc,bash_logout
原因:
系統(tǒng)添加用戶的標(biāo)準(zhǔn)步驟
1.編輯/etc/passwd與/etc/group
2.創(chuàng)建用戶主目錄
3.從/etc/skel拷貝文件與目錄
4.讓新用戶獲得其主目錄與文件的擁有權(quán)限
5.給新用戶一個(gè)密碼
解決辦法:
依舊使用上面的命令創(chuàng)建用戶,然后手動(dòng)拷貝配置文件到/home/oracle下。
cp /etc/skel/.bash_profile /home/oracle
cp /etc/skel/.bashrc /home/oracle
cp /etc/skel/.bash_logout /home/oracle
這樣既可。
轉(zhuǎn)載于:https://blog.51cto.com/xiaochengzi/1213652
總結(jié)
以上是生活随笔為你收集整理的Oracle 11g R2安装过程中遇到的报错及解决办法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 辽宁舰率40艘军舰大演习有哪四大目的?
- 下一篇: STM32F4 定时器TIM(1)定时器