在Oracle 10g 中如何以sys的身份登入isqlplus頁面

來源:互聯網
上載者:User

標籤:在oracle 10g 中如何以sys的身份登入isqlplus頁面

   

    在linux上安裝完成Oracle 10g以後,我們常常會用到isqlplus來執行SQL語句。但正常的isqlplus登入介面只支援以普通使用者的身份進行登入,而我們有時又必須用到sys身份的許可權才能執行某些操作,那如何才能以sys的身份來登入isqlplus頁面呢?

 

 (1)設定oracle使用者的java環境變數:(在檔案的最底下增加一行)

[[email protected]~] vim.bash_profile
exportJAVA_HOME=$ORACLE_HOME/jdk
exportPATH=$PATH:$JAVA_HOME/bin

儲存退出,

[[email protected]~] source .bash_profile

 (2)

      ( 內容如下,\為轉行字元,注意前面有沒有空格)

[[email protected]~]cd $ORACLE_HOME/oc4j/j2ee/isqlplus/application-deployments/isqlplus[[email protected]~]java -Djava.security.properties=$ORACLE_HOME/oc4j/j2ee/home/config/jazn.security.props-jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user "iSQL*Plus DBA/admin" -password welcome –shell

(注意SQL*P為大寫字母,如果小寫程式會出錯)

出現JAZN:>提示符

或者

[[email protected]~]java -Djava.security.properties=$ORACLE_HOME/sqlplus/admin/iplus/provider -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user “iSQL*Plus DBA/admin” -password welcome -shell

出現JAZN:>提示符

JAZN:>listusers “iSQL*Plus DBA”

列出當前DBA使用者admin

 (3)添加isqlplus登入的dba使用者:

JAZN:> adduser"iSQL*Plus DBA" foway oracle

(註:foway是自己設定的使用者名稱,oracle為密碼)

 (4)給foway使用者授予webDba管理員的角色:

JAZN:> grantrole webDba "iSQL*PlusDBA"  fowayJAZN:>exit

(5)登入isqlplus的管理介面:

    A、輸入管理登入網址http://foway.uplooking.com:5560/isqlplus/dba

       在快顯視窗中輸入前面添加的使用者名稱foway  密碼oracle

    B、會轉到dba登入介面http://foway.uplooking.com:5560/isqlplus/dba.uix

       在這裡輸入sys的使用者名稱和密碼就可以”SYSDBA”的身份登入進去了。

在Oracle 10g 中如何以sys的身份登入isqlplus頁面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.