Linux安装Oracle 11g R2安装过程中遇到的报错及解决办法

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

解决方案:

#xhost +  //切换到root用户输入

#su – Oracle  //切换到oracle用户

$./runInstaller  //执行安装程序

   


xhost
是用来控制X server访问权限的。

通常当你从hostA登陆到hostB上运行hostB上的应用程序时,

做为应用程序来说,hostAclient,但是作为图形来说,

是在hostA上显示的,需要使用hostAXserver,所以hostA

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

来使其它用户能够访问hostAXserver.

xhost + 是使所有用户都能访问Xserver.

xhost + ip使ip上的用户能够访问Xserver.

xhost + nis:user@domain使domain上的nis用户user能够访问

xhost + inet:user@domain使domain上的inet用户能够访问。

2.报错内容OUI-10035OUI-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-32031INS-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'.bashrcbash_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

这样既可。

猜你喜欢

转载自blog.csdn.net/majishushu/article/details/71678349