PL/SQL Plug-in in OEM

Hello,
I have a requirement wherein A generic custom build plsql package needs to be registered as a OEM plug-in so that the procedures can be used by Non-oracle sources to insert/update data in under-lying custom tables.
I havent come across a good source of document which can explian me how to do this.
Please let me know if anyone has done this kind of Task earlier ?
Thanks
KJ

Maybe JPublisher would help-
http://jts-blog.com/?p=121

Similar Messages

  • Convert custom management plug-in in OEM 11g to OEM 12c compatible plug-in

    Hi All,
    We have a custom plug-in developed and deployed in OEM 11g. We are planning to move to OEM 12c(12.1.0.4) and installing OEM 12c(fresh install) in a new host instead of migrating existing 11g to 12c as part of upgrade process.
    Now question is what are the options if I want to use existing 11g custom plug-in in OEM 12c ? As I understand 11g plug-ins are jar file but OEM 12c plug-ins are OPAR files.
    Can we export plug-in from OEM 11g and import directly in OEM 12c or if there are any steps to conver 11g plugin to 12c plugin before importing it in 12c.
    Please suggest the options available without re-developing the plug-ins for OEM 12c.
    Thanks

    To overwrite and update your current custom plug-in update that is stored in a repository, use the overwrite option.
    $emcli create_custom_plugin_update
    -agent_name="agent_name"
    -plugin_id="plugin_id"
    [-overwrite]
    This command creates and imports a custom plug-in update from an existing Management Agent where the selected plug-in is deployed. The custom plug-in update will be used for all subsequent plug-in deployments on any Management Agent, in place of Oracle supplied versions.
    Custom plug-in update is created as per plug-in type. If a custom plug-in update is created, and after three days, a patch is applied, in order to include the patch, the custom plug-in update will have to be created again.
    $emcli list_custom_plugin_updates
    Please refer the below doc for more info..
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/plugin_mngr.htm#CJGCHGIH
    Regards
    Krishnan

  • Problem installing packages for SQL monitoring activites - in OEM dbcontrol

    hi guys,
    possible to reinstall the OEM (dbconsole)component as i am having alot of running issues with it.
    i do not intend to emca drop repository as the repository cannot be drop successfully as well.
    ( base on the emca log - i am stuck at
    Getting temporary tablespace from database ) - log just stop at there.
    so i went my own way and drop the sysman user
    drop the MGMT_VIEW , the public synonyms and recreate the repository.
    While configuring SQL activity Monitoring, i am suppose required to install packages but i keep getting the <i> cannot compute dynamic properties in time </i> error.
    Went to metalink, search for this error [ID 739993.1], follow the fixed - but is of no help. (any other logs i can look at ?)
    So i just want to reinstall this whole piece of thing again, but not sure whelther it is possible or not (as i think the dbconsole comes with the oracle software installation).
    What should i do ?~~ I been trying this for days and hours .
    any advices, gurus
    - Desperate and angry noob.
    Regards,
    Noob

    Solved....
    Although I add the same ILOM versions on both servers (2.0.2.6) I updated the ILOM to 3.0.6.15 and everything was installed successfully.

  • Privilege for SQL Access Advisor in OEM

    Hi experts,
    I tried to enter the option SQL Access Advisor in Oracle enterprise manager as user sh and got the following german error :
    Berechtigungsfehler
    Sie haben keine ausreichenden Berechtigungen zur Ausführung des SQL Access Advisors. Dazu ist die Rolle OEM_ADVISOR erforderlich. translated to english:
    Privileg error
    You don't have enough Privilegs to execute  SQL Access Advisors. The role OEM_ADVISOR is needed. but the user sh has in my system following roles:
    GRANTEE                        GRANTED_ROLE                   ADM DEF
    SH                             SELECT_CATALOG_ROLE            NO  YES
    SH                             OEM_MONITOR                    NO  NO
    SH                             OEM_ADVISOR                    NO  NO     "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
    SH                             RESOURCE                       NO  YES
    SH                             CWM_USER                       NO  YESCan anyone help me?
    regards
    hqt200475

    Non-default roles are not enabled "by default".
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/authorization.htm#sthref953

  • Use of SQL fetchlet to create a custom management plug-in

    Hi,
    I would appreciate if you anyone could help me out on this:
    I need to fetch some data from EMF tables and create a custom Management plug-in in OEM so that it can be monitored from OEM itself. For getting the data from database table i am using SQL fetchlet coz it provides the facility to use SQL statement in it. Following is the code i have developed in target-type.xml file.
    <TargetMetadata META_VER="1.0" TYPE="emf_filer">
    <Display>
    <Label NLSID="emf_filer">Error Management Filer</Label>
    </Display>
    <Metric NAME="emf_filer" TYPE="TABLE">
    <Display>
    <Label NLSID="emf_filer_resp">Response</Label>
    </Display>
    <TableDescriptor>
    <!-- <ColumnDescriptor NAME="tcpPing" TYPE="NUMBER" >
    <Display>
    <Label NLSID="netapp_filer_resp_tcpPing">TCP Ping, Milliseconds</Label>
    </Display>
    </ColumnDescriptor> -->
    <ColumnDescriptor NAME="Status" TYPE="NUMBER" >
    <Display>
    <Label NLSID="emf_filer_resp_status">Status</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_NAME" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_NAME">Program Name</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_TYPE" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_TYPE">Program Type</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="RICEW_ID" TYPE="STRING" >
    <Display>
    <Label NLSID="RICEW_ID">Rice Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Request_id" TYPE="NUMBER" IS_KEY="TRUE" >
    <Display>
    <Label NLSID="Request_id">Request Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="EBIZ_INSTANCE_NAME " TYPE="STRING" >
    <Display>
    <Label NLSID="EBIZ_INSTANCE_NAME">Instance Name</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="SQL">
    <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
    <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
    <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
    <Property NAME="UserName" SCOPE="UserName">apps</Property>
    <Property NAME="password" SCOPE="password">password</Property>
    <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
    <Property NAME="STATEMENT" SCOPE="INSTANCE">
    BEGIN
    SELECT PROGRAM_NAME, PROGRAM_TYPE,
    RICEW_ID,REQUEST_ID, EBIZ_INSTANCE_NAME FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
    END;
    </Property>
    <!-- <Property NAME="SQLINPARAM1" SCOPE="ENV">HOSTNAME</Property>
    <Property NAME="SQLOUTPARAMPOS" SCOPE="GLOBAL">2</Property>
    <Property NAME="SQLOUTPARAMTYPE" SCOPE="GLOBAL">SQL_CURSOR</Property>-->
    <Property NAME="NUMROWS" SCOPE="GLOBAL">40
    </Property>
    </QueryDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="emf_filer"/>
    <GetView NAME="emf_View" FROM_TABLE="emf_filer">
    <Column NAME="PROGRAM_NAME"/>
    <Column NAME="PROGRAM_TYPE"/>
    <Column NAME="RICEW_ID"/>
    <Column NAME="REQUEST_ID"/>
    <Column NAME="EBIZ_INSTANCE_NAME"/>
    <Filter COLUMN_NAME="REQUEST_ID" OPERATOR="GT">0</Filter>
    </GetView>
    </ExecutionDescriptor>
    <InstanceProperties>
    <InstanceProperty NAME="UserName" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="FALSE" HIDE_ENTRY="FALSE">
    <Display>
    <Label NLSID="UserName_emf">Username</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="password" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="TRUE">
    <Display>
    <Label NLSID="password_emf">Password</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="MachineName" CREDENTIAL="FALSE" OPTIONAL="FALSE">
    <Display>
    <Label NLSID="MachineName_emf">Listener Machine Name</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="Port" CREDENTIAL="FAL
    My doubt here is:
    As per Oracle it is importent to use response matrics with status column. How can i accomodate Response matrics with this code. what will be the columns except Status that i need to mention? if i use just one matrics i.e response then what will i use in in FROM clause in ExecutionDescriptor [<GetView NAME="emf_View" FROM_TABLE="emf_filer">]? i wuld appreciate if anyone could clarify my issues.
    Thanks for your help.
    Regards,
    AS

    That is what i am trying to ask..as i will b using 2 dfifferent matrics so i will have to use 2 diffrent QueryDescriptors one for Response matric and one for other one. Now following QueryDescriptor will be added in other(Not Response) matric then what should i add in QueryDescriptor in Response matric?
    Query Descriptor for matric other than "Reposnse":
    QueryDescriptor FETCHLET_ID="SQL">
         <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
         <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
         <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
         <Property NAME="UserName" SCOPE="UserName">UserName</Property>
         <Property NAME="password" SCOPE="password">password</Property>
         <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
         <Property NAME="STATEMENT" SCOPE="GLOBAL">
              SELECT PROGRAM_NAME,
                             PROGRAM_TYPE,
                             RICEW_ID,REQUEST_ID,
                             EBIZ_INSTANCE_NAME
              FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
              </Property>
    </QueryDescriptor>
    what should be the QueryDescriptor for Response matric?? Will it be same or different?
    Thanks for your help.
    Regards,
    AS
    Edited by: user9959418 on Oct 31, 2008 1:10 PM

  • OEM Plug-in debugging

    Hi,
    I am developing a plug-in in OEM and I have successfully deployed a sample plug-in by altering DemoHost plugin(Using Flex Builder). Now whenever I have modified some code or done some alignment changes or any small changes, then I completely undeploy the existing one and then redeploy new one from scratch. I have read in the document that it is possible to debug the application using Flex once the plug-in is deployed. But when I run the plug-in from Flex, it shows the login screen and even if I have provide the correct credentials, its throwing some error.
    I am using Windows 7 as the development machine with Adobe Flex Builder 3 as development tool.
    Any help would be appreciated.
    Thanks.

    To run from FlashBuilder (or FlexBuilder) you need to either change your OMS to allow http access and select "http" from the login dialog that appears when running from FB. Or, you need to accept and install the security certificate in the browser you launch from FB. Please see this thread for details on how to accept the EM root certificate if you are not familiar with it. Re: A very important question about the HostSample-Help needed!
    If this is not working for you then please post more details on exactly what error you are seeing when you attempt to run from FB.

  • Top Session / SQL in OEM 10g

    friends,
    In oracle 10g enterprise manager, i can find top 10 sessions and sql information in graphical view. Can you provide me sql command for this this graphical view?
    Waiting for your quick answers.
    regards
    Irfan Ahmad

    If you want to find the exact sql, then trace the OEM page.
    If you want to write your own statement, then it depends on what you mean by "top 10 sessions". By CPU ? BY IO ? By runtime.
    You can check the AWR and Statspack code to see what statements they use, or you can find lots of examples using google.

  • Upload of SQL Server plug in

    Hello,
    I have download the SQL plug in from Oracle site and I have upload the plug in at plug in setup, but the upload has been failed, it show an error: "Error of upload the management archives".
    My destination is to tie SQL Databases on the Grid Controll.
    What can I do?
    My system congiruration:
    -Grid Controll 10.2.0.5
    -Windows 32 bit plattform
    -Windows Server 2003 SP2
    Thanks and regards.

    Follow the instructions
    http://www.pythian.com/blogs/mysql-plug-in-for-oracle-grid-control/installation
    Hope this helps,
    Regards,
    http://www.oracleracexpert.com
    ora-0431-error issue
    http://www.oracleracexpert.com/2009/08/ora-0431-error-when-increasing-sga.html
    See the ORA-27102 Error and Soltuion on Solaris
    http://www.oracleracexpert.com/2009/08/ora-27102-out-of-memory-on-solaris.html

  • OEM - No ad-hoc SQL tuning?

    Am I correct that there is no way to say to Oracle Enterprise Manager's SQL Tuning Advisor, "here is some SQL - please analyze and tune it". The only way to get it to tune something is to find it running and then say "please run the SQL tuning advisor on it".
    In other words, no way to tune a query without running it first...?
    I've been looking for a way to do this in OEM and can't find it.
    Thanks!

    sb92075 wrote:
    Last I checked, explain plans tell you what will happen, not how you might change things to improve itIf/when an experienced & KNOWLEDGEABLE person see a BAD plan, they may be able to reformulate the SQL to produce a better plan.
    which is what the SQL Tuning Advisor does.Those who live by the GUI, die by the GUI.
    Some/many folks would be incapable of doing anything with or to Oracle RDBMS if OEM did not exist or was broken.Did I ask for opinions on the One True Way to be a DBA, or for a comparison of SQL*Plus vs. OEM, or a survey of the competence level of typical DBAs?
    No.
    I asked a simple, technical question about OEM.

  • OEM 12C OMS can't start after applied virtulization plug-in in the OMS

    HI,
    I just applied a virtualization plug-in in OEM 12C OMS,
    Unfortunately, it can’t start now after applied, how can I resolve this error?
    Any help is highly appreciated!!
    [oracle@emdb bin]$ ./emctl start oms
    Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
    Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
    Starting WebTier...
    WebTier Successfully Started
    Starting Oracle Management Server...
    Oracle Management Server Could Not Be Started
    Oracle Management Server is Down
    This may be due to the following plugin being deployed/undeployed on the management server:
    Plugin name: : Oracle Virtualization
    Version: : 12.1.0.1.0
    ID: : oracle.sysman.vt
    Use 'emctl status oms -details' for details.
    Please check /u01/app/mid/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log for error details
    [oracle@emdb bin]$ ./emctl status oms -details
    Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
    Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
    Enter Enterprise Manager Root (SYSMAN) Password :
    Console Server Host : emdb.bea.com
    HTTP Console Port : 7788
    HTTPS Console Port : 7799
    HTTP Upload Port : 4889
    HTTPS Upload Port : 4900
    OMS is not configured with SLB or virtual hostname
    Agent Upload is locked.
    OMS Console is locked.
    Active CA ID: 1
    Console URL: https://emdb.bea.com:7799/em
    Upload URL: https://emdb.bea.com:4900/empbs/upload
    WLS Domain Information
    Domain Name : GCDomain
    Admin Server Host: emdb.bea.com
    Managed Server Information
    Managed Server Instance Name: EMGC_OMS1
    Managed Server Instance Host: emdb.bea.com
    [oracle@emdb bin]$ tail -50 /u01/app/mid/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
    2012-03-28 01:53:31,756 [main] DEBUG oms.StatusOMSCmd processStatusOMS.246 - pbs header is null
    2012-03-28 01:53:31,757 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 0
    2012-03-28 01:58:19,430 [main] DEBUG wls.OMSController main.199 - Log location is /u01/app/mid/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
    2012-03-28 01:58:19,433 [main] INFO wls.OMSController printWebTierStatus.1453 - Checking status of WebTier. WebTier host: emdb.bea.com upload port: 4889
    2012-03-28 01:58:19,602 [main] DEBUG wls.OMSController printWebTierStatus.1464 - rspCode when accessing over webtier upload port: 200
    2012-03-28 01:58:19,604 [main] DEBUG oms.StatusOMSCmd processStatusOMS.158 - HTTP port in emgc property file: 7202
    2012-03-28 01:58:19,605 [main] DEBUG oms.StatusOMSCmd processStatusOMS.159 - HTTPS port in emgc property file: 7301
    2012-03-28 01:58:19,605 [main] DEBUG oms.StatusOMSCmd processStatusOMS.165 - Webtier HTTP port in emgc property file: 7788
    2012-03-28 01:58:19,605 [main] DEBUG oms.StatusOMSCmd processStatusOMS.166 - Webtier HTTPS port in emgc property file: 7799
    2012-03-28 01:58:19,606 [main] DEBUG oms.StatusOMSCmd processStatusOMS.185 - Using https port.
    2012-03-28 01:58:19,606 [main] DEBUG oms.StatusOMSCmd processStatusOMS.202 - Using webtier https port.
    2012-03-28 01:58:19,627 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7301/em/faces/logon/core-uifwk-console-login
    2012-03-28 01:58:20,176 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7799/empbs/check
    2012-03-28 01:58:20,202 [main] DEBUG oms.StatusOMSCmd processStatusOMS.239 - console page status code is 200
    2012-03-28 01:58:20,236 [main] DEBUG oms.StatusOMSCmd processStatusOMS.241 - pbs page status code is 200
    2012-03-28 01:58:20,237 [main] DEBUG oms.StatusOMSCmd processStatusOMS.244 - console header is null
    2012-03-28 01:58:20,237 [main] DEBUG oms.StatusOMSCmd processStatusOMS.246 - pbs header is null
    2012-03-28 01:58:20,237 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 0
    2012-03-28 01:58:22,986 [main] DEBUG wls.OMSController main.199 - Log location is /u01/app/mid/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
    2012-03-28 01:58:22,991 [main] INFO wls.OMSController printWebTierStatus.1453 - Checking status of WebTier. WebTier host: emdb.bea.com upload port: 4889
    2012-03-28 01:58:23,173 [main] DEBUG wls.OMSController printWebTierStatus.1464 - rspCode when accessing over webtier upload port: 200
    2012-03-28 01:58:23,175 [main] DEBUG oms.StatusOMSCmd processStatusOMS.158 - HTTP port in emgc property file: 7202
    2012-03-28 01:58:23,176 [main] DEBUG oms.StatusOMSCmd processStatusOMS.159 - HTTPS port in emgc property file: 7301
    2012-03-28 01:58:23,176 [main] DEBUG oms.StatusOMSCmd processStatusOMS.165 - Webtier HTTP port in emgc property file: 7788
    2012-03-28 01:58:23,176 [main] DEBUG oms.StatusOMSCmd processStatusOMS.166 - Webtier HTTPS port in emgc property file: 7799
    2012-03-28 01:58:23,176 [main] DEBUG oms.StatusOMSCmd processStatusOMS.185 - Using https port.
    2012-03-28 01:58:23,177 [main] DEBUG oms.StatusOMSCmd processStatusOMS.202 - Using webtier https port.
    2012-03-28 01:58:23,205 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7301/em/faces/logon/core-uifwk-console-login
    2012-03-28 01:58:23,836 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7799/empbs/check
    2012-03-28 01:58:23,871 [main] DEBUG oms.StatusOMSCmd processStatusOMS.239 - console page status code is 200
    2012-03-28 01:58:23,872 [main] DEBUG oms.StatusOMSCmd processStatusOMS.241 - pbs page status code is 200
    2012-03-28 01:58:23,872 [main] DEBUG oms.StatusOMSCmd processStatusOMS.244 - console header is null
    2012-03-28 01:58:23,872 [main] DEBUG oms.StatusOMSCmd processStatusOMS.246 - pbs header is null
    2012-03-28 01:58:23,873 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 0
    2012-03-28 01:58:28,258 [main] DEBUG wls.OMSController main.199 - Log location is /u01/app/mid/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
    2012-03-28 01:58:28,263 [main] INFO wls.OMSController printWebTierStatus.1453 - Checking status of WebTier. WebTier host: emdb.bea.com upload port: 4889
    2012-03-28 01:58:28,463 [main] DEBUG wls.OMSController printWebTierStatus.1464 - rspCode when accessing over webtier upload port: 200
    2012-03-28 01:58:28,465 [main] DEBUG oms.StatusOMSCmd processStatusOMS.158 - HTTP port in emgc property file: 7202
    2012-03-28 01:58:28,466 [main] DEBUG oms.StatusOMSCmd processStatusOMS.159 - HTTPS port in emgc property file: 7301
    2012-03-28 01:58:28,466 [main] DEBUG oms.StatusOMSCmd processStatusOMS.165 - Webtier HTTP port in emgc property file: 7788
    2012-03-28 01:58:28,466 [main] DEBUG oms.StatusOMSCmd processStatusOMS.166 - Webtier HTTPS port in emgc property file: 7799
    2012-03-28 01:58:28,467 [main] DEBUG oms.StatusOMSCmd processStatusOMS.185 - Using https port.
    2012-03-28 01:58:28,468 [main] DEBUG oms.StatusOMSCmd processStatusOMS.202 - Using webtier https port.
    2012-03-28 01:58:28,490 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7301/em/faces/logon/core-uifwk-console-login
    2012-03-28 01:58:29,027 [main] DEBUG oms.StatusOMSCmd pingOMSCheck.332 - Attempting to connect to https://emdb.bea.com:7799/empbs/check
    2012-03-28 01:58:29,083 [main] DEBUG oms.StatusOMSCmd processStatusOMS.239 - console page status code is 200
    2012-03-28 01:58:29,083 [main] DEBUG oms.StatusOMSCmd processStatusOMS.241 - pbs page status code is 200
    2012-03-28 01:58:29,084 [main] DEBUG oms.StatusOMSCmd processStatusOMS.244 - console header is null
    2012-03-28 01:58:29,084 [main] DEBUG oms.StatusOMSCmd processStatusOMS.246 - pbs header is null
    2012-03-28 01:58:29,084 [main] INFO wls.OMSController statusOMS.1354 - statusOMS finished with result: 0
    [oracle@emdb bin]$

    what is your OMS platform? have you applied BP1?
    Can you open an SR and send mee thee SR number ?

  • Problem defining a report to show in Reports tab of plug-in home page

    We are developing a plug-in for OEM and we want to add some SYSTEM reports that will be showing in Reports tab of plug-in home page.
    We tried to use the PL/SQL code described in Extensibility Guide, copied the code used in some existing plug-in that we downloaded from Oracle site, but it does not work. When executing the code we receiving "PL/SQL procedure successfully completed" message, but report does not show neither in Reports list nor in Home page (reports tab does not exist).
    Finally we tried to add a report containing only static text component, but with same result.
    Following is the code that is executed:
    DECLARE
    l_target_types MGMT_IP_TARGET_TYPES;
    l_param_values MGMT_IP_PARAM_VALUE_LIST;
    l_target_type MGMT_IP_TARGET_TYPES;
    l_report_guid RAW(16);
    l_element_guid RAW(16);
    l_report_title_nlsid VARCHAR2(128);
    l_report_owner VARCHAR(100);
    l_curr_order NUMBER;
    l_curr_row NUMBER;
    BEGIN
    -- specify the target type associated with this report
    l_target_type := MGMT_IP_TARGET_TYPES();
    l_target_type.extend(1);
    l_target_type(1) := 'test_plugin_57';
    l_report_title_nlsid := 'Status 57_4';
    l_report_owner := mgmt_user.get_repository_owner;
    -- create a report definition for the report
    l_report_guid := mgmt_ip.create_report_definition (
    p_title_nlsid => l_report_title_nlsid,
    p_description_nlsid => 'TODO: description here',
    p_owner => l_report_owner,
    p_category_nlsid => 'Monitoring',
    p_sub_category_nlsid => 'Hardware',
    p_late_binding_target_types => l_target_type,
    p_late_binding_multi_targets => 0,
    p_show_table_of_contents => 1,
    p_system_report => 1,
    p_component_name => l_target_type(1)
    -- Add report so that it shows up under "reports" tab in default home page
    mgmt_mp_homepage.add_report (
    p_target_type => l_target_type(1),
    p_report_title => l_report_title_nlsid,
    p_report_owner => l_report_owner,
    p_report_order => 1
    -- Text
    l_param_values := MGMT_IP_PARAM_VALUE_LIST();
    l_param_values.extend(2);
    l_param_values(1) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TextParamBean.textMessage',
    'This page shows the reports related to TBD.');
    l_param_values(2) := MGMT_IP_PARAM_VALUE_RECORD(
    'oracle.sysman.eml.ip.render.elem.TextParamBean.textStyle',
    'OraTipText');
    l_curr_order := 1;
    l_curr_row := 1;
    l_element_guid := mgmt_ip.add_element_to_report_def (
    p_report_guid => l_report_guid,
    p_element_name_nlsid => 'IPMSG_STYLED_TEXT',
    p_element_type_nlsid => 'IPMSG_ANY_TARGET_TYPE',
    p_header_nlslid => null,
    p_element_order => l_curr_order,
    p_element_row => l_curr_row,
    p_parameters => l_param_values,
    p_targets => null
    END;
    /

    Have you tried running your sql file in sql plus? Does that work? If it does execute, does the report show on the main tab but not on the target homepage or does it show in neither spot? Try hitting the refresh icon in the page to reset the cache on the Reports tab.
    When you deploy the plug-in with the report file in it, did you see any errors or messages in the oms logs?
    1. We do: run the PL/SQL script I posted from sqlPlus. As far as I understand it should add a report?
    2. We tried all the ways of defining a report. We successfully create the report interactively with SQLs we defined. We tried to put the PL/SQL code inside the jar and deploy, to run the PL/SQL script in SQL Plus, neither report is showed in Reports list nor Reports tab is showing at all. We tried to restart OEM and computer after adding a report, it does not help...
    Regarding the oms logs - where can we see that?

  • SQL Monitoring using SQL Queries

    Hi
    I am using Oracle 10 g DB. I have an application which has Oracle as DB. Its a multiuser application. During the testing of one of the page we found that saving couple of records takes huge time (50-60 seconds). I dont have access to the logic written in application code to know which all queries gets executed when user click on save button.
    I know that there is SQL Monitoring available in OEM why which you can find out the queries which got executed and also the execution time for those queries.
    However I dont have OEM access.
    Can you please let me know teh set of queries which probably will use few of teh V$ data dictionary views and provide me the same details as generated in the Monitoting report generated by OEM ?
    I want to see all the queries which got executed in last defined time (say 10 mins, 1 hr etc) , same way as it is done in OEM and not just the last sql.
    TIA
    Regards
    Arun

    Hi,
    I recommend you to install STATSPACK - it's a free tool that can be used instead of the Automatic Workload Repository (that is used in OEM).
    This tool creates snapshots of V$ views in defined time period, so it enables you to see long runing queries in history.
    If I were you I would run SQL trace just before the problematic part and then stop it just as it has finished. It would be better to run trace only for the problematic session or module - not for the whole database. SQL trace generates a file with all the executed queries, explain plans, stats, ...
    In extreme case just create copy of v$sql before and after the problematic part and compare them (new sql_id, elapsed_time delta, ...)

  • Wb_rt_api_exec problem  in 10G OEM

    I'm trying to schedule a process in 10G OEM built in OWB. All validation, generation, deployment is fine. I can't find the docs to guide me in this process. The docs deal with the oem_exec_template.sql - which says to use wb_rt_api_exec.run_task for 10G OEM. Any idea what to do for scheduling in 10G OEM??
    Based on examples in Metalink forum this is what I'm putting into the SQL script job in OEM. Errors included as well.
    declare
    ret number;
    begin
    ret:=runtime_owner.wb_rt_api_exec.run_task('RUNTIME', 'EASYDW', 'PROCESS', 'F4211LOAD','','',1);
    end;
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> SQL> SQL> SQL> Connected.
    SQL> SQL> 2 3 4 5 6 ret:=runtime_owner.wb_rt_api_exec.run_task('RUNTIME', 'EASYDW', 'PROCESS', 'F4211LOAD','','',1);
    ERROR at line 4:
    ORA-06550: line 4, column 6:
    PLS-00306: wrong number or types of arguments in call to 'RUN_TASK'
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
    declare
    ret number;
    begin
    ret:=runtime_owner.wb_rt_api_exec.run_task('RUNTIME', 'EASYDW', 'PROCESS', 'F4211LOAD','','');
    end;
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at "RUNTIME_OWNER.WB_RT_API_EXEC", line 620
    ORA-06512: at line 4

    Thanks guys. You were both right - wrong process name and too many parameters. And I realized I used the database locations value - not the Process flows locations.
    This worked =
    runtime_owner.wb_rt_api_exec.run_task('process flows locations', 'PROCESS', 'process name','','',1);
    declare
    ret number;
    begin
    ret:=runtime_owner.wb_rt_api_exec.run_task('DWDEST', 'PROCESS', 'PROC','','',1);
    end;
    /

  • Metric collection Error MS SQL 2005 Backup

    Hi ,
    become on all "german !!! ' ms sql 2005 Server a collection error for the backup. I have install the newest ms sql plug-in .I have Grid Control 10.2.0.5
    the german error Message is :
    WARN collector: <nmecmc.c> Error exit. Error message: Error Querying:Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs.
    com.microsoft.sqlserver.jdbc.SQLServerException: Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs.
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(Unknown Source)
         at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
         at oracle.sysman.mpi.jdbc.microsoft_sqlserver_database.SQLServerJDBCQuery.executeQuery(SQLServerJDBCQuery.java:263)
         at oracle.sysman.mpi.jdbc.microsoft_sqlserver_database.SQLServerJDBCQuery.main(SQLServerJDBCQuery.java:1152)
    this mean that he have problems to convert char to datetime . But why ?
    On my English Server i habe no Problems with this collection.
    And NO , i can't only install English MS SQL Server . This is a Company Policy .
    Where the error of the collection ?
    Thx

    and one more:
    Cant find the key : SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Replication\\IsInstalled D:\OracleHomes\agent10g/sysman/admin/scripts/emx/microsoft_sqlserver_database\execmethod_32bit is_remote_login=0 namespace=root\default class=StdRegProv "sSubKeyName=SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Replication" sValueName=IsInstalled method=GetDWORDValue noprint=0 em_result=0 SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Replication IsInstalled

  • Incorrect status indication in OEM.

    Hi,
    Oracle Enterprise Manager 10g (OEM) seems to indicate incorrectly the status of the database instance/the agent connection in windows 2003. I was able to connect and manipulate oracle database using SQLPlus/SQL Developer, but the OEM kept indicate that the Database instance, and the agent connectivity are down. Has anyone noticed this, and has any explaination for it?
    Thanks.

    EM has it's own configuration for the databases that it is monitoring - that is how it knows what to monitor and where the agents are. Did something change? I have seen this sort of behavior when I created a database with an underscore in its name (dbca doesn't seem to like this and removes the underscore). I then modified the database specific scripts to incoude the underscore in the name, but did not do the same for EM since those scripts were not saved when I saved the db creation scripts. I found by looking in the EM logs that it was trying to connect to the wrong dbname. Sorry, I don't have the names of the config files handy but you should have a sysman directory and then a directory for your instance name and then a config directory. The EM config files are a combination of xml and property files.

Maybe you are looking for