lyl801013 发表于 2018-9-11 11:30:58

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

  问题简述:在oracle linux下安装oracle10g,多个文件报“Permission denied”错误,无法启动图形界面,下面是执行并逐步解决的过程。
  $ cd database/
  $ ls
  doc install response runInstaller stage welcome.html
  $
  开始执行oracle的安装,忽略对操作系统的认证,报没有权限执行
  $ ./runInstaller -ignoresysprereqs
  bash: ./runInstaller: Permission denied
  $
  $
  检查一下发现确实没有执行权限
  $ 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 的权限
  $ chmod 755 runInstaller
  $ 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安装,提示/software/database/install/.oui这个隐藏文件没有执行的权限
  $ ./runInstaller -ignoresysprereqs
  ./runInstaller: line 52: /software/database/install/.oui: Permission denied
  cd到指定目录,查看一下,确认没有后,给予755 权限
  $ cd 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
  $ 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
  $ chmod 755 .oui
  $
  $ 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
  $
  回到执行安装目录,三次执行安装,发现有些靠谱了,但是,图形界面还是没有出来,下面还是报错,本次是“/software/database/install/unzip: Permission denied”
  $ cd ..
  $
  $ ./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
  FailedIgnoring 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
  $ cd 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
  $ chmod 755 unzip
  $ 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命令,还好,此时,可以正常启动图形界面开始安装了。
  $ cd ..
  $
  $ ./runInstaller -ignoresysprereqs
  真怕安装到半路还有问题,忐忐忑忑的装成功了。
  小结:
  为什么那三个文件没有执行权限,它们是怎么导致没有执行权限的呢?
  因为,在软件上传到linux服务器之前,由于linux服务器的空间紧张,所以就在windows环境下将其先解压,然后再上传的,上传时,已经是解压后的文件夹了,故导致那三个文件的执行权限丢失。

页: [1]
查看完整版本: 问题简述:在oracle linux下安装oracle10g,多个文件报“Permission denied”错误