ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 安装oracle10g之“Permission denied”的前因后果(转载)

安装oracle10g之“Permission denied”的前因后果(转载)

Linux操作系统 作者:yangguangyun 时间:2014-02-24 11:51:56 0 删除 编辑

  转自http://zhangyafeng0917.blog.163.com/blog/static/444364122013625115132688/

问题简述:在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 images
-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 images
-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 images
-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 images
-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 images
-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环境下将其先解压,然后再上传的,上传时,已经是解压后的文件夹了,故导致那三个文件的执行权限丢失。

<!-- 正文结束 -->

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23445663/viewspace-1114442/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2010-03-04