|
本帖最后由 zhenghaishu 于 2014-10-13 11:17 編輯 Linux下其他用戶如何連接sqlplus 第一步:在root下創(chuàng)建一個新用戶,并讓這個用戶從屬于dba組 #useradd haishu -G dba 驗證一下 # id haishu uid=501(haishu)gid=502(haishu) groups=502(haishu),500(dba) 第二步:把/home/oracle中的.bash_profile中跟oracle有關的環(huán)境變量復制粘貼到/home/haishu中的.bash_profile中: exportORACLE_BASE=/oracle/app exportORACLE_HOME=$ORACLE_BASE/product/11.2.0 exportORACLE_SID=ORCL exportORACLE_TERM=xterm exportNLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK' exportORA_NLS33=$ORACLE_HOME/common/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib exportLD_LIBRARY_PATH exportPATH=$PATH:$ORACLE_HOME/bin 讓/home/haishu/.bash_profile生效: #source /home/haishu/.bash_profile 接下來就可以進haishu用戶下驗證了: # su - haishu $sqlplus / as sysdba |
|
|
來自: liang1234_ > 《linux》