楼主: LoveWinter

[Tips] Tip: How to use 10G Grid Control & DB control

[复制链接]
论坛徽章:
2
21#
发表于 2006-2-16 13:19 | 只看该作者
好贴,谢谢

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
22#
 楼主| 发表于 2006-2-20 23:42 | 只看该作者

New Tips (No 7)

Q7: Out of Memory Errors Under Heavy Load  (Grid Control)
A7:
Under heavy load, especially when connecting to multiple target databases, The Oracle Management Service may encounter
out-of-memory errors and restart. When an Oracle Management Service restarts, there is no loss of state in the repository, but users logged in to that Management Service will be asked to login
again. If the restarts are frequent, do the following for each
installed Management Service:

a)  Stop the oms;
    $ORACLE_HOME/opmn/bin/opmnctl stopall

   (Note: it is important to use opmnctl stopall here rather than
    "emctl stop oms" since we need to completely stop the associated
    Application Server instance as well)

b)  Edit $ORACLE_HOME/opmn/conf/opmn.xml

Search for the OC4J_EM section, which is a line that looks like this:

<process-type id="OC4J_EM" module-id="OC4J">

Edit the "java-options" data tag under this process type. Before edit,
this line should look similar to this:

<data id="java-options" value="-server
-Djava.security.policy=/private/smptest/oms_rel9/j2ee/OC4J_EM/config/java2.policy
-Djava.awt.headless=true -Xmx512M -XX:MaxPermSize=64m
-DORACLE_HOME=/private/smptest/oms_rel9 "/>

Change the -Xmx option from 512M to 1024M, and the -XX:MaxPermSize option from
64M to 256M.Also add the -Xnoclassgc option.

After edits, the line should look like this:

<data id="java-options" value="-server
-Djava.security.policy=/private/smptest/oms_rel9/j2ee/OC4J_EM/config/java2.policy
-Djava.awt.headless=true -Xmx1024M -XX:MaxPermSize=256M -Xnoclassgc
-DORACLE_HOME=/private/smptest/oms_rel9 "/>

c) Restart the Oracle Management Service using "emctl start oms".

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
23#
 楼主| 发表于 2006-2-20 23:45 | 只看该作者

New Tips (No 8)

Q8: How to diagnose emd upload error

[B] Note:  This is  a  frequently asked question in some forums. [/B]

Case:
I builded up a database with Dbcontrol inside itsself,
Everything worked fine.
then I revoked
utl_FILE, UTL_SMTP, UTL_TCP, UTP_HTTP, DBMS_RANDOM
from public.

Then I got the error when i did a emctl upload
EMD upload error: Failed to upload file B0000002.xml, ret = -2

I granted
utl_FILE
UTL_SMTP
UTL_TCP
UTP_HTTP
DBMS_RANDOM

to public but the error remains.

Any soutions?

Answer 1:

This is a bug (in grid control,db control)

The bug 4573965 based on bug 3638973 is not fixed in 10.1.0.4; it is
fixed in Grid Control - Release 2 (10.2 version).

Bug indicates as a workaround: removed some targets from targets.xml
(mainly database targets), agent successfully uploaded and then added
targets back via GC Console.

Upgrade to 10.2 when the release will be available

You can remove some targets (mainly database targets) by running the
following command:
emctl config agent deletetarget oracle_database <db_name>


Answer 2:
1. Log into the repository database as sys:
grant execute on sys.utl_smtp to sysman
grant execute on sys.utl_tcp to sysman

2. alter package sysman.emd_notification compile;

And some other schemas need grants as well -

grant execute on utl_file to xdb;
grant execute on sys.utl_file to DMSYS;
etc......

Then recompile invalid objects in db using utlrp.sql found here =

$ORACLE_HOME/bla/bla/RDBMS/ADMIN/utlrp.sql

Then refresh the agent

emctl clearstate agent
wait around 30 minutes for the state to clear

[B]BTW: I'll create a  PDF file to contain some frequently asked questions.[/B][/COLOR]

使用道具 举报

回复
论坛徽章:
8
生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:532008新春纪念徽章
日期:2008-02-13 12:43:03ITPUB元老
日期:2011-12-24 20:32:592012新春纪念徽章
日期:2012-01-04 11:53:29
24#
发表于 2007-3-3 08:13 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
25#
发表于 2007-3-15 10:05 | 只看该作者
很好,谢谢

使用道具 举报

回复
论坛徽章:
8
生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:532008新春纪念徽章
日期:2008-02-13 12:43:03ITPUB元老
日期:2011-12-24 20:32:592012新春纪念徽章
日期:2012-01-04 11:53:29
26#
发表于 2007-3-15 12:19 | 只看该作者
现在好像很少看到楼主了,希望楼主能有更多的总结帖上来和大家分享

使用道具 举报

回复
论坛徽章:
24
生肖徽章:狗
日期:2006-09-07 10:14:43数据库板块每日发贴之星
日期:2008-07-26 01:02:20生肖徽章2007版:兔
日期:2008-10-13 11:10:11奥运会纪念徽章:铁人三项
日期:2008-10-24 13:27:21开发板块每日发贴之星
日期:2008-12-27 01:01:09生肖徽章2007版:马
日期:2009-11-18 10:45:032010新春纪念徽章
日期:2010-03-01 11:21:02ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51ERP板块每日发贴之星
日期:2011-05-18 01:01:01ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15
27#
发表于 2007-3-17 20:59 | 只看该作者
学习了!

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
28#
 楼主| 发表于 2007-3-28 14:56 | 只看该作者

更新几个:

今天更新几个Tip,基本都是我在测试过程中发现的.

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
29#
 楼主| 发表于 2007-3-28 14:57 | 只看该作者

Tip 9: How to solve agent upload timeout issue?

Q9:. How to solve agent upload timeout issue ?
A9:
Agent upload timeout may related to many factors include:

1) The OMS is very busy on deal with specified agent's http request;

2) The OMS box is over workloaded and the Apache time out occurs, so it refuses agent http request from specified agent side;

3) The connection between OMS and repository db is in poor performance, e.g. using remote repository db sometimes will
trigger this issue.

4) The meta data xml files are corrupted or bad, so OMS refueses
to accept it.

From performance tuning point, there is one possible approach
can be considered to try:

    . Increase the Apache time out value;
      
      File 1 : $OMS_HOME/Apache/Apache/conf/httpd.conf
      parameter: Timeout (Default 300 seconds)
      
      File 2: $OMS_HOME/sysman/config/httpd_em.conf
      parameter: Timout   
     
      Then restart oms, clean agent and restart agent on target box.
      
   
    . Tune the connection issue between OMS box and repository box. If possible,
      using local repository db or make the repository db locates on the same lan
      as oms box.
      
   
    . Increase the timeout parameter in agent side, then restart agent.
     
      UploadTimeout=xxx (default is 1800)
      UploadMaxTime=xxx (default is 300)

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
30#
 楼主| 发表于 2007-3-28 15:01 | 只看该作者

Tip 10: How to Configure Grid Control to use the Single Sign-On Logon Page

Q10. How to Configure EM Grid Control to use the Single Sign-On Logon Page

A10: Note, This tip comes from Metalink.

To configure the Grid Control Console for use with Oracle Application Server Single Sign-On:

Steps:

1. Set the ORACLE_HOME environment variables to the Management Service home directory.

For example:

$PROMPT> setenv ORACLE_HOME /dev01/oracle/em10g_GridControl

2. Change directory to the bin directory of the Management Service Oracle home:

$PROMPT> cd $ORACLE_HOME/opmn/bin

3. Stop the Management Service, the Oracle HTTP Server, and the other components of the application server:

$PROMPT> ./opmnctl stopall

4. Change directory to the bin directory of the Management Service Oracle home:

$PROMPT> cd $ORACLE_HOME/bin

5. Enter the following command at the operating system prompt:

$PROMPT> ./emctl config oms sso -host ssoHost -port ssoPort -sid ssoSid  -pass ssoPassword -das http://ssohost\"\"ort/

For example:

$PROMPT> ./emctl config oms sso -host sshost1.acme.com -port 1521 -sid asdb -pass Ch22x5xt -das http://ssohost1.acme.com:7777


6. Restart the Management Service, Oracle HTTP Server, and the other application server components:

$PROMPT> cd $ORACLE_HOME/opmn/bin
$PROMPT> ./opmnctl startall

Go the Grid Control Console URL.

For example:
http://mgmthost1.acme.com:7777/em

The browser is redirected to the standard Single Sign-On Logon page.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表