日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux oracle em使用,Linux平台下启动oracle 11g EM控制台

發(fā)布時(shí)間:2025/3/11 linux 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux oracle em使用,Linux平台下启动oracle 11g EM控制台 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

http://blog.csdn.net/webajax/article/details/6702233

配置EM具體步驟

一、配置EM dbconsole的步驟信息

emca -config dbcontrol db -repos recreate

EMCA 開(kāi)始于 2007-10-12 11:16:40

EM Configuration Assistant 10.2.0.1.0 正式版

版權(quán)所有 (c) 2003, 2005, Oracle。保留所有權(quán)利。

輸入以下信息:

數(shù)據(jù)庫(kù) SID: orcl

已為數(shù)據(jù)庫(kù) orcl 配置了 Database Control

您已選擇配置 Database Control, 以便管理數(shù)據(jù)庫(kù) orcl

此操作將移去現(xiàn)有配置和默認(rèn)設(shè)置, 并重新執(zhí)行配置

是否繼續(xù)? [yes(Y)/no(N)]: y

監(jiān)聽(tīng)程序端口號(hào): 1521

SYS 用戶(hù)的口令:

DBSNMP 用戶(hù)的口令:

SYSMAN 用戶(hù)的口令:

SYSMAN 用戶(hù)的口令:

通知的電子郵件地址 (可選):

通知的發(fā)件 (SMTP) 服務(wù)器 (可選):

-----------------------------------------------------------------

已指定以下設(shè)置

數(shù)據(jù)庫(kù) ORACLE_HOME ................ e:\oracle\product\10.2.0\db_1

數(shù)據(jù)庫(kù)主機(jī)名 ................ hailang.mshome.net

監(jiān)聽(tīng)程序端口號(hào) ................ 1521

數(shù)據(jù)庫(kù) SID ................ orcl

通知的電子郵件地址 ...............

通知的發(fā)件 (SMTP) 服務(wù)器 ...............

-----------------------------------------------------------------

是否繼續(xù)? [yes(Y)/no(N)]: y

2007-10-12 11:17:32 oracle.sysman.emcp.EMConfig perform

信息: 正在將此操作記錄到 e:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2007-

2007-10-12 11:17:37 oracle.sysman.emcp.util.DBControlUtil stopOMS

信息: 正在停止 Database Control (此操作可能需要一段時(shí)間)...

2007-10-12 11:17:40 oracle.sysman.emcp.EMReposConfig dropRepository

信息: 正在刪除 EM 資料檔案庫(kù) (此操作可能需要一段時(shí)間)...

2007-10-12 11:24:23 oracle.sysman.emcp.EMReposConfig invoke

信息: 已成功刪除資料檔案庫(kù)

2007-10-12 11:24:24 oracle.sysman.emcp.EMReposConfig createRepository

信息: 正在創(chuàng)建 EM 資料檔案庫(kù) (此操作可能需要一段時(shí)間)...

2007-10-12 11:34:36 oracle.sysman.emcp.EMReposConfig invoke

信息: 已成功創(chuàng)建資料檔案庫(kù)

2007-10-12 11:35:15 oracle.sysman.emcp.util.DBControlUtil startOMS

信息: 正在啟動(dòng) Database Control (此操作可能需要一段時(shí)間)...

2007-10-12 11:36:56 oracle.sysman.emcp.EMDBPostConfig performConfiguration

信息: 已成功啟動(dòng) Database Control

2007-10-12 11:36:56 oracle.sysman.emcp.EMDBPostConfig performConfiguration

警告: 無(wú)法創(chuàng)建 Database Control 快捷方式

2007-10-12 11:36:56 oracle.sysman.emcp.EMDBPostConfig performConfiguration

信息: >>>>>>>>>>> Database Control URL 為??<<<<<<<<<<<

已成功完成 Enterprise Manager 的配置

在10g 中,我們可能會(huì)經(jīng)常遇到OEM不能正常使用的問(wèn)題,但導(dǎo)致問(wèn)題的原因不盡相同,最后絕大多數(shù)問(wèn)題可以通過(guò)emca 這個(gè)命令來(lái)解決,詳細(xì)的說(shuō)明可以查看連機(jī)幫助,下面給出一些常用的命令,及實(shí)例步驟.

二、EMCA工具的其他參數(shù)

創(chuàng)建一個(gè)EM資料庫(kù)

emca -repos create

重建一個(gè)EM資料庫(kù)

emca -repos recreate

刪除一個(gè)EM資料庫(kù)

emca -repos drop

配置數(shù)據(jù)庫(kù)的 Database Control

emca -config dbcontrol db

刪除數(shù)據(jù)庫(kù)的 Database Control配置

emca -deconfig dbcontrol db

重新配置db control的端口,默認(rèn)端口在1158

emca -reconfig ports

emca -reconfig ports -dbcontrol_http_port 1160

emca -reconfig ports -agent_port 3940

三、開(kāi)啟、關(guān)閉EM console服務(wù)

先設(shè)置ORACLE_SID環(huán)境變量后,啟動(dòng)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

四、登錄EM

在瀏覽器輸入

五、Oracle 10gR2 OEM按鈕亂碼的解決(OEM的中英文顯示快速切換)

方法1:(推薦使用這個(gè)方法)

打開(kāi)IE瀏覽器, 選擇'工具"-->"Internet選項(xiàng)"-->"常規(guī)", 選擇 "語(yǔ)言", 默認(rèn)只有 "中文", 選擇 " 添加 ", 加入 "英語(yǔ)(美國(guó))" , 調(diào)整順序, 把“英語(yǔ)(美國(guó))”移動(dòng)到最上面。

此方法還可以用來(lái)很方便的快速切換OEM的中文和英文環(huán)境,平時(shí)還是多使用英文環(huán)境比較好!

方法2:

1 Stop the OEM service

$>emctl stop dbconsole

2.分別進(jìn)入以下三個(gè)路徑

$ORACLE_HOME/jdk/jre/lib

$ORACLE_HOME/jre/1.4.2/lib

3.在每個(gè)目錄都透過(guò)以下指令覆蓋檔案

我們只要用合適的中文字符集文件替換缺省文件即可,這里使用font.properties.zh_CN.Redhat(我的系統(tǒng)是Redhat)來(lái)替換缺省字體定義文件:

cp font.properties.zh_CN.Redhat font.properties

[oracle@~/product/10.2/jdk/jre/lib]$>ls font*zh_CN*

[oracle@~/product/10.2/jdk/jre/lib]$>cp font.properties.zh_CN.Redhat font.properties

[oracle@~/product/10.2/jre/1.4.2/lib]$>ls font*zh_CN*

[oracle@~/product/10.2/jre/1.4.2/lib]$>cp font.properties.zh_CN.Redhat font.properties

4.進(jìn)入OEM的圖示路徑,清除之前的檔案

[oracle@~/product/10.2/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs]$>ls

b-68.gif b-68.imx b-b5.gif b-b5.imx b-iagree.gif b-iagree.imx

[oracle@~/product/10.2/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs]$>rm b*

5.啟動(dòng)OEM

emctl start dbconsole

重新啟動(dòng)OEM之后,OEM的按鈕就出現(xiàn)中文了。

六、oem 報(bào)錯(cuò)“java.lang.Exception: IOException in send……”

1.停止em agent:

[oracle@rdbms_linux admin]$ emctl stop agent

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

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

This will stop the Oracle Enterprise Manager 10g Database Control process. Continue [y/n] :y

Stopping Oracle Enterprise Manager 10g Database Control ...

...? Stopped.

Agent is not running.

2.重新設(shè)置時(shí)區(qū)

[oracle@rdbms_linux admin]$ emctl resetTZ agent

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

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

Updating /u01/app/oracle/product/10.2.0/db_1/rdbms_linux.com_BIDB/sysman/config/emd.properties...

Time zone set to PRC.

To complete this process, you must either:

connect to the database served by this DBConsole as user 'sysman', and execute:

SQL> exec mgmt_target.set_agent_tzrgn('rdbms_linux.com:3938','PRC')

-- or --

connect to the database served by this DBConsole as user 'sys', and execute:

SQL> alter session set current_schema = SYSMAN;

SQL> exec mgmt_target.set_agent_tzrgn('rdbms_linux.com:3938','PRC')

3.以sysdba身份登陸,設(shè)置如下:

Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0

Connected as SYS

SQL>? alter session set current_schema = SYSMAN;

Session altered

SQL> exec mgmt_target.set_agent_tzrgn('rdbms_linux.com:3938','PRC')

PL/SQL procedure successfully completed

4.啟動(dòng)em? agent和console

[oracle@rdbms_linux admin]$ emctl start agent

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

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

Starting agent ..... started.

[oracle@rdbms_linux admin]$ emctl stop dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

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

Stopping Oracle Enterprise Manager 10g Database Control ...

Cannot determine Oracle Enterprise Manager 10g Database Control process. /u01/app/oracle/product/10.2.0/db_1/rdbms_linux.com_BIDB/emctl.pid does not exist.

[oracle@rdbms_linux admin]$ emctl start dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

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

Agent Version???? : 10.1.0.4.1

OMS Version?????? : Unknown

Protocol Version? : 10.1.0.2.0

Agent Home??????? : /u01/app/oracle/product/10.2.0/db_1/rdbms_linux.com_BIDB

Agent binaries??? : /u01/app/oracle/product/10.2.0/db_1

Agent Process ID? : 8254

Parent Process ID : 8251

Agent URL???????? :

Started at??????? : 2010-03-06 09:42:21

Started by user?? : oracle

Last Reload?????? : 2010-03-06 09:42:21

Last successful upload?????????????????????? : (none)

Last attempted upload??????????????????????? : (none)

Total Megabytes of XML files uploaded so far :???? 0.00

Number of XML files pending upload?????????? :?????? 15

Size of XML files pending upload(MB)???????? :???? 1.48

Available disk space on upload filesystem??? :??? 30.71%

Agent is already started. Will restart the agent

Stopping agent ... stopped.

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

------------------------------------------------------------------

Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/rdbms_linux.com_BIDB/sysman/log

總結(jié)

以上是生活随笔為你收集整理的linux oracle em使用,Linux平台下启动oracle 11g EM控制台的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。