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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle em命令行配置及界面按钮乱码问题解决方法

發布時間:2025/3/19 编程问答 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle em命令行配置及界面按钮乱码问题解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、配置EM dbconsole db

[oracle@rusky ~]$ lsnrctl start

[oracle@rusky ~]$ emctl start dbconsole
TZ set to US/Pacific
EM Configuration issue. /home/oracle/product/10.2.0/db_1/rusky.com_orcl not found.

[oracle@rusky ~]$ emca -config dbcontrol db

STARTED EMCA at Feb 6, 2015 1:41:02 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings

Database ORACLE_HOME ................ /home/oracle/product/10.2.0/db_1

Database hostname ................ rusky.com
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: yes
Feb 6, 2015 1:41:46 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/orcl/emca_2015-02-06_01-41-02-PM.log.
Feb 6, 2015 1:41:57 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Feb 6, 2015 1:43:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Feb 6, 2015 1:43:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://rusky.com:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 6, 2015 1:43:34 PM

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

二、EMCA常用命令:
Oracle10g R2 EMCA常用命令及實例步驟
在Oracle 10g 中,我們可能會經常遇到OEM不能正常使用的問題,但導致問題的原因不盡相同,最后絕大多數問題可以通過emca 這個命令來解決,詳細的說明可以查看聯機幫助,下面給出一些常用的命令及實例步驟.
創建一個EM資料庫
emca -repos create
重建一個EM資料庫
emca -repos recreate
刪除一個EM資料庫
emca -repos drop
配置數據庫的 Database Control
emca -config dbcontrol db
刪除數據庫的 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
先設置ORACLE_SID環境變量后,啟動EM console服務
emctl start dbconsole
先設置ORACLE_SID環境變量后,停止EM console服務
emctl stop dbconsole
先設置ORACLE_SID環境變量后,查看EM console服務的狀態
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

==============

EMCA常用命令:

emca -repos create創建一個EM資料庫

emca -repos recreate重建一個EM資料庫

emca -repos drop刪除一個EM資料庫

emca -config dbcontrol db配置數據庫的 Database Control

emca -deconfig dbcontrol db刪除數據庫的 Database Control配置

emca -reconfig ports 重新配置db control和agent的端口

emctl start dbconsole啟動EM console服務,使用前需要先設置ORACLE_SID環境變量

emctl stop dbconsole停止EM console服務,使用前需要先設置ORACLE_SID環境變量

注:通過查看$ORACLE_HOME/install/portlist.ini 文件可以知道當前dbcontrol正在使用的端口,默認dbcontrol http端口1158,agent端口3938。如果要重新配置端口,可以使用如下命令:

emca -reconfig ports -dbcontrol_http_port 1159(這個命令得到的端口號不一定是你指定的這個端口號,好像要看最后完成的提示信息端口號是多少,具體原因還不清楚)

emca -reconfig ports -agent_port 3939(這個命令運行也不成功,還是原來的3938,而且還會同時改變前面的dbcontrol的http端口,需要注意)

==============

emca -config dbcontrol db -repos create ?---dbcontrol和EM資料庫可以一步完成。

三、Oracle EM中按鈕亂碼解決辦法:
問題描述:
登錄EM后,所有按鈕顯示亂碼,其它內容顯示為正常中文。
(可直接修改瀏覽器默認語言為英文,看顯示是否正常,如果一樣亂碼,則可繼續按下面的方法處理)
1.修改jdk 下面的字體。
[oracle@rusky lib]$ pwd
/home/oracle/product/10.2.0/db_1/jdk/jre/lib
[oracle@rusky lib]$ mv font.properties font.properties_bak
[oracle@rusky lib]$ cp font.properties.zh_CN.Redhat font.properties

2.修改jre 下面的字體
[oracle@rusky lib]$ pwd
/home/oracle/product/10.2.0/db_1/jre/1.4.2/lib
[oracle@rusky lib]$ mv font.properties font.properties_bak
[oracle@rusky lib]$ cp font.properties.zh_CN.Redhat font.properties

3.清除em的cache
[oracle@rusky em]$ cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
[oracle@rusky zhs]$ ls
b-70.gif b-7c2d.imx b-f81cbf.gif b-f8.imx tb-0-0.gif tb-0.imx
b-70.imx b-cancel.gif b-f81cbf.imx b-initDbStatus.gif tb-0-0.imx
b-7c2d.gif b-cancel.imx b-f8.gif b-initDbStatus.imx tb-0.gif
[oracle@rusky zhs]$ rm *.gif

4. 重新啟動Oracle em
[oracle@rusky zhs]$ emctl stop dbconsole
[oracle@rusky zhs]$ emctl start dbconsole

5、將em的網頁顯示變成英文
打開你的IE瀏覽器, 選擇'工具"-->"Internet選項"-->"常規", 選擇 "語言", 默認只有 "中文", 選擇 " 添加 ", 加入 "英語(美國)" , 調整順序, 把“英語(美國)”移動到最上面。
英文界面,按鈕顯示正常。

=================

oracle11g登錄EM后,中文界面,按鈕亂碼,解決方法:

1.在$JAVA_HOME/jre/lib/fonts/下建一個fallback目錄,把你想在java中使用的字體復制到這個目錄中即可,在oracle用戶下:
$ mkdir $ORACLE_HOME/jdk/jre/lib/fonts/fallback

2.把windows(C:/WINDOWS/Fonts/simsun.ttc)下的字體文件simsun.ttc(該字體文件復制windows server服務器上的,windows7下沒有該字體)復制到$ORACLE_HOME/jdk/jre/lib/fonts/fallback目錄下并改名simsun.ttf(注意ms的simsun字體是有版權的,所以商用換其他字體),相應的權限改為oracle用戶可用.

3.之后需要清理一下Cache,重啟EM即可:
$ rm $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs/*.gif

4.重新啟動em dbconsole
$ emctl stop dbconsole
$ emctl start dbconsole

經測試:該方法可行。

環境:oracle11.2.0.1 ?rhel5.8

總結

以上是生活随笔為你收集整理的oracle em命令行配置及界面按钮乱码问题解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。