ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » Oracle新技术/11g » Tip: How to use 10G Grid Control & DB control

标题: [Tips] Tip: How to use 10G Grid Control & DB control
本帖已经被作者加入个人空间
离线 zggyl
中级会员


精华贴数 0
个人空间 0
技术积分 328 (6058)
社区积分 3103 (455)
注册日期 2002-10-24
论坛徽章:2
      
      

发表于 2006-2-16 13:19 
好贴,谢谢


__________________
人,是需要一些探索精神的
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 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".


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 2006-2-20 23:45 
New Tips (No 8)

Q8: How to diagnose emd upload error

Note:  This is  a  frequently asked question in some forums.

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

BTW: I'll create a  PDF file to contain some frequently asked questions.


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
离线 kickster
资深会员



精华贴数 0
个人空间 0
技术积分 1451 (1194)
社区积分 357 (1756)
注册日期 2007-2-28
论坛徽章:6
2008年新春纪念徽章生肖徽章2007版:鼠生肖徽章2007版:鸡   
      

发表于 2007-3-3 08:13 



__________________
Oracle EM 10g DB & Grid Control
Oracle 9i & 10g RAC
Oracle 9i & 10g DG
只看该作者    顶部
离线 zhycjun
中级会员



精华贴数 0
个人空间 0
技术积分 833 (2314)
社区积分 3 (21520)
注册日期 2005-9-14
论坛徽章:0
      
      

发表于 2007-3-15 10:05 
很好,谢谢


只看该作者    顶部
离线 kickster
资深会员



精华贴数 0
个人空间 0
技术积分 1451 (1194)
社区积分 357 (1756)
注册日期 2007-2-28
论坛徽章:6
2008年新春纪念徽章生肖徽章2007版:鼠生肖徽章2007版:鸡   
      

发表于 2007-3-15 12:19 
现在好像很少看到楼主了,希望楼主能有更多的总结帖上来和大家分享


__________________
Oracle EM 10g DB & Grid Control
Oracle 9i & 10g RAC
Oracle 9i & 10g DG
只看该作者    顶部
离线 hanjs
高级会员


精华贴数 1
个人空间 0
技术积分 9920 (122)
社区积分 52 (4886)
注册日期 2006-7-30
论坛徽章:17
会员2007贡献徽章蓝色妖姬嫦娥授权会员2008北京奥运纪念徽章:铁人三项生肖徽章2007版:兔
数据库板块每日发贴之星数据库板块每日发贴之星2008年新春纪念徽章生肖徽章2007版:鼠生肖徽章2007版:鸡ITPUB新首页上线纪念徽章

发表于 2007-3-17 20:59 
学习了!


__________________
Database Concepts
Database Performance Tuning Guide and Reference
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 2007-3-28 14:56 
更新几个:

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


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 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)


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 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 [url]http://ssohostort/[/url]

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.


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问