Oracle資料庫PL/SQL那點事情---修改過電腦的使用者名稱

來源:互聯網
上載者:User

標籤:dbconsole   emc   sql   步驟   10.2.0.1   mct   data   10g   電腦   

在安裝Oracle資料庫的PL/SQL工具時候,電腦名稱是重裝系統後自動產生的使用者名稱名稱,作為程式員,有很強的強迫症,就想利用自己的英文名稱作為自己電腦的名稱,所以就修改了電腦的名稱;結果PL/SQL資料庫視覺化檢視就不能開啟了;下面是修改電腦使用者名稱後需要修改Oracle資料庫相關資料的步驟

修改過後出現這樣的問題:

Windows不能在本機電腦啟動OracleDBConsoleorcl

解決的步驟:

     1、開始-》運行cmd

  2、執行 emctl start dbconsole

  C:\Documents and Settings\xcl>emctl start dbconsole

  Environment variable ORACLE_SID not defined. Please define it.

  提示:環境變數 ORACLE_SID 未定義,請定義。

  3、設定 ORACLE_SID =ORCL (orcl是我的執行個體名,也是服務名)

  C:\Documents and Settings\xcl>set oracle_sid=orcl

  4、再次執行emctl start dbconsole

  C:\Documents and Settings\xcl>emctl start dbconsole

  OC4J Configuration issue. E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_china-d9e3f7d07_orcl not found.

  提示:無法找到"E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_china-d9e3f7d07_orcl "

  註:china-d9e3f7d07 是我的電腦名稱

  複製該目錄下的"OC4J_DBConsole_localhost_orcl"檔案夾放在同一目錄下,且把名稱改成"OC4J_DBConsole_china-d9e3f7d07_orcl"。

  5、再次執行emctl start dbconsole

  C:\Documents and Settings\xcl>emctl start dbconsole

  EM Configuration issue. E:\oracle\product\10.2.0\db_1/china-d9e3f7d07_orcl not found.

  提示:無法找到 "E:\oracle\product\10.2.0\db_1/china-d9e3f7d07_orcl "

  複製該目錄下的"localhost_orcl"檔案夾放在同一目錄下,且把名稱改成"china-d9e3f7d07_orcl"。

  6、再次執行emctl start dbconsole

  C:\Documents and Settings\xcl>emctl start dbconsole

  Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

  Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.

  http://localhost:1158/em/

  Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl

  服務正在啟動

  ..............................

  OracleDBConsoleorcl 服務已經啟動成功

Oracle資料庫PL/SQL那點事情---修改過電腦的使用者名稱

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.