oracle错误1327,问题简述:在oracle linux下安装oracle10g,多个文件报“Permission denied”错误...

问题简述:在oracle linux下安装oracle10g,多个文件报“Permission denied”错误,无法启动图形界面,下面是执行并逐步解决的过程。

[oracle@ocmu software]$ cd database/

[oracle@ocmu database]$ ls

doc install response runInstaller stage welcome.html

[oracle@ocmu database]$

开始执行oracle的安装,忽略对操作系统的认证,报没有权限执行

[oracle@ocmu database]$ ./runInstaller -ignoresysprereqs

bash: ./runInstaller: Permission denied

[oracle@ocmu database]$

[oracle@ocmu database]$

检查一下发现确实没有执行权限

[oracle@ocmu database]$ ll

total 28

drwxr-xr-x 9 oracle oinstall 4096 Jul 2 2005 doc

drwxr-xr-x 5 oracle oinstall 4096 Jul 2 2005 install

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rw-r–r– 1 oracle oinstall 1327 Jul 2 2005 runInstaller

drwxr-xr-x 9 oracle oinstall 4096 Jul 2 2005 stage

-rw-r–r– 1 oracle oinstall 5100 Jul 2 2005 welcome.html

授予755 的权限

[oracle@ocmu database]$ chmod 755 runInstaller

[oracle@ocmu database]$ ll

total 28

drwxr-xr-x 9 oracle oinstall 4096 Jul 2 2005 doc

drwxr-xr-x 5 oracle oinstall 4096 Jul 2 2005 install

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rwxr-xr-x 1 oracle oinstall 1327 Jul 2 2005 runInstaller

drwxr-xr-x 9 oracle oinstall 4096 Jul 2 2005 stage

-rw-r–r– 1 oracle oinstall 5100 Jul 2 2005 welcome.html

[oracle@ocmu database]$

再次执行oracle安装,提示/software/database/install/.oui这个隐藏文件没有执行的权限

[oracle@ocmu database]$ ./runInstaller -ignoresysprereqs

./runInstaller: line 52: /software/database/install/.oui: Permission denied

cd到指定目录,查看一下,确认没有后,给予755 权限

[oracle@ocmu database]$ cd install/

[oracle@ocmu install]$ ll

total 180

-rw-r–r– 1 oracle oinstall 28 Jul 2 2005 addLangs.sh

-rw-r–r– 1 oracle oinstall 76 Jul 2 2005 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 p_w_picpaths

-rw-r–r– 1 oracle oinstall 35634 Jul 2 2005 lsnodes

-rw-r–r– 1 oracle oinstall 2268 Jul 2 2005 oneclick.properties

-rw-r–r– 1 oracle oinstall 2387 Jul 2 2005 oraparam.ini

-rw-r–r– 1 oracle oinstall 6428 Jul 2 2005 oraparamsilent.ini

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 resource

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rw-r–r– 1 oracle oinstall 102612 Jul 2 2005 unzip

[oracle@ocmu install]$ ll -a

total 352

drwxr-xr-x 5 oracle oinstall 4096 Jul 2 2005 .

drwxr-xr-x 6 oracle oinstall 4096 Jul 2 2005 ..

-rw-r–r– 1 oracle oinstall 28 Jul 2 2005 addLangs.sh

-rw-r–r– 1 oracle oinstall 76 Jul 2 2005 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 p_w_picpaths

-rw-r–r– 1 oracle oinstall 35634 Jul 2 2005 lsnodes

-rw-r–r– 1 oracle oinstall 2268 Jul 2 2005 oneclick.properties

-rw-r–r– 1 oracle oinstall 2387 Jul 2 2005 oraparam.ini

-rw-r–r– 1 oracle oinstall 6428 Jul 2 2005 oraparamsilent.ini

-rw-r–r– 1 oracle oinstall 163185 Jul 2 2005 .oui

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 resource

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rw-r–r– 1 oracle oinstall 102612 Jul 2 2005 unzip

[oracle@ocmu install]$ chmod 755 .oui

[oracle@ocmu install]$

[oracle@ocmu install]$ ll -a

total 352

drwxr-xr-x 5 oracle oinstall 4096 Jul 2 2005 .

drwxr-xr-x 6 oracle oinstall 4096 May 22 17:42 ..

-rw-r–r– 1 oracle oinstall 28 Jul 2 2005 addLangs.sh

-rw-r–r– 1 oracle oinstall 76 Jul 2 2005 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 p_w_picpaths

-rw-r–r– 1 oracle oinstall 35634 Jul 2 2005 lsnodes

-rw-r–r– 1 oracle oinstall 2268 Jul 2 2005 oneclick.properties

-rw-r–r– 1 oracle oinstall 2387 Jul 2 2005 oraparam.ini

-rw-r–r– 1 oracle oinstall 6428 Jul 2 2005 oraparamsilent.ini

-rwxr-xr-x 1 oracle oinstall 163185 Jul 2 2005 .oui

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 resource

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rwxr-xr-x 1 oracle oinstall 102612 Jul 2 2005 unzip

[oracle@ocmu install]$

回到执行安装目录,三次执行安装,发现有些靠谱了,但是,图形界面还是没有出来,下面还是报错,本次是“/software/database/install/unzip: Permission denied”

[oracle@ocmu install]$ cd ..

[oracle@ocmu database]$

[oracle@ocmu database]$ ./runInstaller -ignoresysprereqs

Starting Oracle Universal Installer…

Checking installer requirements…

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLin

ux-1.0, asianux-1 or asianux-2

Failed <<<<

>>> Ignoring required pre-requisite failures. Continuing…

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-05-22_05

-41-12PM. Please wait …sh: /software/database/install/unzip: Permission denied

Error in writing to directory /tmp/OraInstall2012-05-22_05-41-12PM. Please ensur

e that this directory is writable and has atleast 60 MB of disk space. Installat

ion cannot continue.

: Success

cd到unzip指定目录,赋755

[oracle@ocmu database]$ cd install/

[oracle@ocmu install]$

[oracle@ocmu install]$ ll

total 180

-rw-r–r– 1 oracle oinstall 28 Jul 2 2005 addLangs.sh

-rw-r–r– 1 oracle oinstall 76 Jul 2 2005 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 p_w_picpaths

-rw-r–r– 1 oracle oinstall 35634 Jul 2 2005 lsnodes

-rw-r–r– 1 oracle oinstall 2268 Jul 2 2005 oneclick.properties

-rw-r–r– 1 oracle oinstall 2387 Jul 2 2005 oraparam.ini

-rw-r–r– 1 oracle oinstall 6428 Jul 2 2005 oraparamsilent.ini

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 resource

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rw-r–r– 1 oracle oinstall 102612 Jul 2 2005 unzip

[oracle@ocmu install]$ chmod 755 unzip

[oracle@ocmu install]$ ll

total 180

-rw-r–r– 1 oracle oinstall 28 Jul 2 2005 addLangs.sh

-rw-r–r– 1 oracle oinstall 76 Jul 2 2005 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 p_w_picpaths

-rw-r–r– 1 oracle oinstall 35634 Jul 2 2005 lsnodes

-rw-r–r– 1 oracle oinstall 2268 Jul 2 2005 oneclick.properties

-rw-r–r– 1 oracle oinstall 2387 Jul 2 2005 oraparam.ini

-rw-r–r– 1 oracle oinstall 6428 Jul 2 2005 oraparamsilent.ini

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 resource

drwxr-xr-x 2 oracle oinstall 4096 Jul 2 2005 response

-rwxr-xr-x 1 oracle oinstall 102612 Jul 2 2005 unzip

回来,四次执行安装oracle命令,还好,此时,可以正常启动图形界面开始安装了。

[oracle@ocmu install]$ cd ..

[oracle@ocmu database]$

[oracle@ocmu database]$ ./runInstaller -ignoresysprereqs

真怕安装到半路还有问题,忐忐忑忑的装成功了。

小结:

为什么那三个文件没有执行权限,它们是怎么导致没有执行权限的呢?

因为,在软件上传到linux服务器之前,由于linux服务器的空间紧张,所以就在windows环境下将其先解压,然后再上传的,上传时,已经是解压后的文件夹了,故导致那三个文件的执行权限丢失。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值