非oracle安裝使用者/組成員使用10203遇到的問題和解決
最近有個專案實施需要用非 oracle安裝使用者,也非oracle組成員使用10203binary,結果出現了一些error,接著也得到了一些解決方法。
或許對其他同學有用,拿來share一下。
1.當用非oracle或組使用者(設這個使用者為nonoracle)使用10203的sqlplus時,得到如下error:
ld.so.1: oracle: fatal: /lib/libskgxp10.so: Permission denied
這裡的lib有可能是其他的,其原因在於One bug of 10203 or “relink all” was not done correctly when installing ORACLE。
導致了$ORACLE_HOME/lib下的library許可權對other使用者沒有合適的讀或執行許可權。
解決方法是:
cd $ORACLE_HOME/install
changePerm.sh -o
(由於僅僅是提升oracle的許可權,所以可以線上改)
2.解決以上問題後,繼續sqlplus,得到下面error:
ERROR:
ORA-09925: Unable to create audit trail file
SVR4 Error: 13: Permission denied
Additional information: 9925
ORA-01031: insufficient privileges
顧名思義,我發現audit_trail目錄nonoracle使用者沒有寫許可權,
於是chmod o+w . chmod o+x .
3.於是接著sqlplus,出現第三種error:
ERROR:
ORA-01034: ORACLE not available
ORA-27121: unable to determine size of shared memory segment
SVR4 Error: 13: Permission denied
google和metalink後,發現原因在於$ORACLE_HOME/bin/oracle is not set ‘setuid’
$> cd $ORACLE_HOME/bin
$> ls -altr oracle
-rwxr-x--x 1 xxx 125773224 Jan 24 2008 oracle
解決方法:
chmod 6751 oracle (這一部也可以線上改)
$> ls -altr oracle
-rwsr-s--x 1 xxx 125773224 Jan 24 2008 oracle
經過這三步troubleshooting之後,我終於可以用其他使用者訪問oracle的sqlplus了。
其實第二步可以省略掉,因為當我直接進行第三步setuid之後,就不需要用nonoracle使用者在audit_trail有寫許可權了,因為這時nonoracle使用者產生的audit檔案是由oracle使用者產生了。但是,如果作為troubleshooting的步驟,還是需要第二步解決後我才看到第三步的問題所在。
除開這三種error外,我也有同事遇到第四種error:
Error 6 initializing SQL*Plus
Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
note 356850.1有解決辦法:
chmod -R 755 $ORACLE_HOME/sqlplus
但之後又遇到第五種error:
Error 5 initializing SQL*Plus
NLS initialization error
他索性:
chmod -R 755 $ORACLE_HOME/nls/data
之後終於可以連線sqlplus了。
當你意圖使用其他使用者oracle sqlplus時,如果遇到以上5種error,可以作為參考。
或許對其他同學有用,拿來share一下。
1.當用非oracle或組使用者(設這個使用者為nonoracle)使用10203的sqlplus時,得到如下error:
ld.so.1: oracle: fatal: /lib/libskgxp10.so: Permission denied
這裡的lib有可能是其他的,其原因在於One bug of 10203 or “relink all” was not done correctly when installing ORACLE。
導致了$ORACLE_HOME/lib下的library許可權對other使用者沒有合適的讀或執行許可權。
解決方法是:
cd $ORACLE_HOME/install
changePerm.sh -o
(由於僅僅是提升oracle的許可權,所以可以線上改)
2.解決以上問題後,繼續sqlplus,得到下面error:
ERROR:
ORA-09925: Unable to create audit trail file
SVR4 Error: 13: Permission denied
Additional information: 9925
ORA-01031: insufficient privileges
顧名思義,我發現audit_trail目錄nonoracle使用者沒有寫許可權,
於是chmod o+w . chmod o+x .
3.於是接著sqlplus,出現第三種error:
ERROR:
ORA-01034: ORACLE not available
ORA-27121: unable to determine size of shared memory segment
SVR4 Error: 13: Permission denied
google和metalink後,發現原因在於$ORACLE_HOME/bin/oracle is not set ‘setuid’
$> cd $ORACLE_HOME/bin
$> ls -altr oracle
-rwxr-x--x 1 xxx 125773224 Jan 24 2008 oracle
解決方法:
chmod 6751 oracle (這一部也可以線上改)
$> ls -altr oracle
-rwsr-s--x 1 xxx 125773224 Jan 24 2008 oracle
經過這三步troubleshooting之後,我終於可以用其他使用者訪問oracle的sqlplus了。
其實第二步可以省略掉,因為當我直接進行第三步setuid之後,就不需要用nonoracle使用者在audit_trail有寫許可權了,因為這時nonoracle使用者產生的audit檔案是由oracle使用者產生了。但是,如果作為troubleshooting的步驟,還是需要第二步解決後我才看到第三步的問題所在。
除開這三種error外,我也有同事遇到第四種error:
Error 6 initializing SQL*Plus
Message file sp1
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
note 356850.1有解決辦法:
chmod -R 755 $ORACLE_HOME/sqlplus
但之後又遇到第五種error:
Error 5 initializing SQL*Plus
NLS initialization error
他索性:
chmod -R 755 $ORACLE_HOME/nls/data
之後終於可以連線sqlplus了。
當你意圖使用其他使用者oracle sqlplus時,如果遇到以上5種error,可以作為參考。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15415488/viewspace-608313/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Python安裝cx_Oracle模組遇到的問題PythonOracle
- Composer 使用過程中遇到的問題和解決方案
- PaddleOCR 安裝使用遇到的問題
- 解決macbook安裝burp suite遇到的問題MacUI
- 安裝kylin遇到的問題
- Laravel 安裝遇到的問題Laravel
- SpringBoot使用IDEA設定的外部Tomcat啟動,遇到的問題和解決Spring BootIdeaTomcat
- GT911驅動遇到的問題和解決方案
- Debian 11 關閉 swap 遇到的問題和解決方案
- 安裝部署hzero遇到的問題
- 原始碼安裝apache(附遇到的問題及解決)原始碼Apache
- 安裝 Laravel Mix 中遇到的問題Laravel
- lumen安裝orangehill/iseed遇到的問題
- RHCSA題解(五) - 建立使用者、組 和組成員及其關係
- 記一次SQLServer2019安裝和解除安裝問題的解決過程SQLServer
- MAC 安裝 VMAF 遇到的問題及解決方法記錄Mac
- Flutter-安裝步驟及安裝遇到的問題Flutter
- 使用composer install 安裝別人的專案遇到的問題
- Oracle 惡意攻擊問題分析和解決(一)Oracle
- windows2003 的安裝以及安裝時遇到的問題Windows
- Oracle資料不同步的問題分析和解決思路Oracle
- 【Redis】redis-cluster 安裝遇到的問題Redis
- Centos7安裝greenplum遇到的問題CentOS
- PYTORCH安裝過程以及遇到的問題PyTorch
- python中安裝qtdesigner、pyuic遇到的問題PythonQTUI
- mac11.2安裝air遇到的問題MacAI
- Chrome安裝sci-hub外掛遇到的問題解決方法Chrome
- Firefox 使用常見問題和解決方法Firefox
- Windows安裝Filebeat遇到問題總結Windows
- hybris backoffice建立product遇到的synchronization問題和解答
- Ambari非root使用者安裝步驟
- linux 非root使用者原始碼安裝Linux原始碼
- RIDE匯入AutoItLibrary的安裝以及遇到的問題IDE
- Matlab2013a安裝簡單教程以及遇到的問題解決(反覆提示啟用問題)Matlab
- macbook 下安裝Goglang 以及安裝svn外掛所遇到的問題MacGo
- 在騰訊雲上安裝mysql遇到的問題MySql
- vue2.x工程安裝遇到的問題解答Vue
- Linux 安裝mysql 5.7.21 可能遇到的問題歸類LinuxMySql
- CentOS7安裝Docker遇到的問題筆記CentOSDocker筆記