問題簡述:在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環境下將其先解壓,然後再上傳的,上傳時,已經是解壓後的文件夾了,故導致那三個文件的執行權限丟失。