zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    [Android]Android系统启动流程源码分析
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q63-Q65)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q60-Q62)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q57-Q59)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q54-Q56)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q51-Q53)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q48-Q50)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q45-Q47)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q40-Q44)
    Sharepoint学习笔记—习题系列--70-573习题解析 -(Q35-Q39)
  • 原文地址:https://www.cnblogs.com/rusking/p/4277097.html
Copyright © 2011-2022 走看看