如何配置和重建Oracle 10G的em服務(wù)
創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比昭化網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式昭化網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋昭化地區(qū)。費用合理售后完善,十余年實體公司更值得信賴。
cle10G的EM采用了web方式,并且分成了2個產(chǎn)品,database control和grid control。這里主要介紹如何創(chuàng)建單數(shù)據(jù)的dbcontrol。Grid control需要下載單獨的光盤安裝。
在用DBCA建庫的時候,可以選擇是否啟用dbcontrol,啟用的話需要在 數(shù)據(jù)庫 中建立一個sysman的schema,用于保存EM的一些數(shù)據(jù),這個就是EM的資料庫(repository)。
使用命令行工具emca 可以創(chuàng)建,修改,重建或者刪除dbcontrol 的配置。
創(chuàng)建一個EM資料庫
emca -repos create
重建一個EM資料庫
emca -repos recreate
刪除一個EM資料庫
emca -repos drop
配置數(shù)據(jù)庫的 Database Control
emca -config dbcontrol db
刪除數(shù)據(jù)庫的 Database Control配置
emca -deconfig dbcontrol db
重新配置db control的端口,默認端口在1158
emca -reconfig ports
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940
先設(shè)置ORACLE_SID環(huán)境變量后,啟動EM console服務(wù)
emctl start dbconsole
先設(shè)置ORACLE_SID環(huán)境變量后,停止EM console服務(wù)
emctl stop dbconsole
先設(shè)置ORACLE_SID環(huán)境變量后,查看EM console服務(wù)的狀態(tài)
emctl status dbconsole
配置dbconsole的步驟
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
重新配置dbconsole的步驟
emca -repos drop
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
,可以通過EM dbconsole訪問數(shù)據(jù)庫了
原因主要還是更改了主機名導(dǎo)致的問題,更改了相應(yīng)的文件名:D:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_colin
重命名為D:\oracle\product\10.2.0\db_1\oc4j\j2ee\OC4J_DBConsole_RX-01-07_orcl
然后重新配置下dbconsole就Ok了
emca -config dbcontrol db
輸入以下信息:
數(shù)據(jù)庫 SID: orcl
已為數(shù)據(jù)庫 orcl 配置了 Database Control
您已選擇配置 Database Control, 以便管理數(shù)據(jù)庫 orcl
此操作將移去現(xiàn)有配置和默認設(shè)置, 并重新執(zhí)行配置
是否繼續(xù)? [yes(Y)/no(N)]: y
監(jiān)聽程序端口號: 1521
SYS 用戶的口令:
DBSNMP 用戶的口令:
SYSMAN 用戶的口令:
SYSMAN 用戶的口令: 通知的電子郵件地址 (可選):
通知的發(fā)件 (SMTP) 服務(wù)器 (可選):已指定以下設(shè)置
數(shù)據(jù)庫 ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
數(shù)據(jù)庫主機名 ................ RX-01-07
監(jiān)聽程序端口號 ................ 1521
數(shù)據(jù)庫 SID ................ ora10g
通知的電子郵件地址 ...............
通知的發(fā)件 (SMTP) 服務(wù)器 ...............
-----------------------------------------------------------------
是否繼續(xù)? [yes(Y)/no(N)]: y
----------------------------------------------------------------------------------------------------------------
2007-4-6 10:59:17 oracle.sysman.emcp.EMConfig perform
信息: 正在將此操作記錄到 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2007-04-06_10-57-52-上午.log。
2007-4-6 10:59:20 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段時間)...
2007-4-6 10:59:32 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在啟動 Database Control (此操作可能需要一段時間)...
2007-4-6 11:00:12 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功啟動 Database Control
2007-4-6 11:00:12 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 無法創(chuàng)建 Database Control 快捷方式
2007-4-6 11:00:12 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: Database Control URL 為
已成功完成 Enterprise Manager 的配置
EMCA 結(jié)束于 2007-4-6 11:00:12
裝完Oracle 12c,想體驗下EM Express,缺發(fā)現(xiàn)不能用,應(yīng)該怎么辦?12c的EM 不再像以前版本配置那么麻煩,當然提供的功能也沒有那么多了,只需要啟用對應(yīng)端口即可,請看:
To manually configure the HTTPS port for EM Express:
1. Configure and start the Oracle Net Listener (the listener). You can use lsnrctl to start, stop, and view the status of the listener.
2. If the listener is running on a nonstandard port (for example, not 1521), then the init.ora file for the database you want to manage using EM Express must contain a local_listener entry so that the HTTPS port can register with the correc
listener. The local_listener entry references a TNSNAMES entry that points to the correct listener. For example:
local_listener=inst1
where inst1 is a TNSNAMES entry defined in tnsnames.ora that points to the listener. For example:
inst1= (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1234)) (CONNECT_DATA=(SERVICE_NAME=service_name)(SERVER=DEDICATED)))
In this example, 1234 is the nonstandard port on which the listener has been configured to listen.
3. Enable the TCP dispatcher by adding the following entry to the init.ora file for the database you want to manage using EM Express:
dispatchers=”(PROTOCOL=TCP)(SERVICE=XDB)”
For example, if the database SID is ORCL, then the entry would be:
dispatchers=”(PROTOCOL=TCP)(SERVICE=ORCLXDB)”
4. Restart the database so that the changes made in the init.ora file take effect.
5. Use the PL/SQL procedure DBMS_XDB_CONFIG.SETHTTPSPORT to set the HTTPS port for EM Express. This will update the HTTPS port in the xdbconfig.xml file in the Oracle XML DB Repository. You must connect as SYS / AS SYSDBA to run the procedure. For example:
SQL exec DBMS_XDB_CONFIG.SETHTTPSPORT(5500);
6. To access EM Express, enter a URL in the following format in a Web browser:
For example:
When prompted for your username and password, log in as a user with DBA privilege (such as SYSTEM).
1.首先檢查服務(wù)-ORACLEemconsole是否啟動
2.在開始運行里鍵入cmd-set
ORACLE_SID=你的庫的實例名
3.運行emctl
start
dbconsole啟動EM
4.運行emctl
status
dbconsole,檢查EM運行情況
命令寫錯了!按下列方式,要兩步走。
c:\Users\tj sqlplus /nolog
SQL conn /as sysdba
打開一個terminal窗口,先切換到oracle用戶環(huán)境 輸入命令emctl start dbconsole啟動oracle的em服務(wù) 等待em啟動,這是啟動過程。 這是em啟動的日志文件 啟動完成后,在瀏覽器中打開oracle的em控制臺,打開oem成功 這是登錄em后的界面
標題名稱:oracle的em怎么上 oracle emp
分享URL:http://www.rwnh.cn/article4/hhgjoe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、企業(yè)建站、ChatGPT、微信公眾號、靜態(tài)網(wǎng)站、標簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)