Error creating a user defined report in the grid control

I am trying to create a simple User Defined report in the Grid OEM
Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
When I Click the 'Preview' button I get this error.
Error rendering element. Exception: ORA-00942: table or view does not exist
I'm logged on as SYSTEM.
Isn't the SYS.DBA_USERS table accessible by SYSTEM?
Any advice on what I'm doing wrong/
Edited by: bfee_sdc on Oct 19, 2010 9:12 AM

What are the tricks?
It has to be some what supported since I found this somewhere in an Oracle note...
How to create custom reports on tables other than mgmt* views.
To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work.

Similar Messages

  • Nightmare creating an user defined report

    here is the problem:
    I need a report that shows a list of tables based on some name criteria, something like this for example :
    select
    object_name
    from user_objects
    where object_type='TABLE'
    and object_name like 'AR_%'
    and based on the table name, I need to make a query on the the selected table ...
    tried different strategies, but nothing worked ...
    anybody already had a problem like this ?
    thanks

    found a way to make it work using the TABLE() function
    1. created the need types
    CREATE TYPE data_report AS OBJECT(
         LINE INT,
         MESSAGE VARCHAR2(250)
    CREATE TYPE data_report_table AS TABLE OF data_report;
    2. created a function that will be used in the TABLE()
    CREATE OR REPLACE FUNCTION data_from_table(table_name VARCHAR2)
    RETURN data_report_table PIPELINED AS
    TYPE cur_typ IS REF CURSOR;
    c cur_typ;
    one data_report := data_report(NULL,NULL);
    query_str VARCHAR2(250);
    BEGIN
    query_str := 'SELECT ROWNUM,SITE_HUM_ID FROM ' || table_name;
    OPEN c FOR query_str;
    LOOP
    FETCH c INTO one.line, one.message;
    EXIT WHEN c%NOTFOUND;
              PIPE ROW(one);
    END LOOP;
    CLOSE c;
         RETURN;
    END data_from_table;
    3. created the main SQL report
    select object_name
    from user_objects
    where object_type='TABLE'
    and object_name like 'AR_%'
    4. created the Child Report
    select * from
    table(data_from_table( :OBJECT_NAME ))

  • SQL field (not large enough) - Create Report Dialog - User Defined Reports

    When creating a user defined report it would be good to have the sql field the query is entered into bigger. The tiny size is awkward for large queries.

    When you increase the window size, we increase horizontally but not vertically. I will log an enhancement request to see if we can get it longer.
    -- Sharon

  • Cannot create user defined report

    Guys,
    For an unknown reason, I'm unable to create new reports in some subfolder inside the "User defined report". When I rigth-click on the subfolder, the contextual menu contains only "Copy" and "Paste". But If I'm going to the root folder (User defined report), I'm able to create a new subfolder and new report. I'm even able to create an new report in the subfolder.
    Did you already encounter the same issue and how did you solve it ?
    Thanks

    I vaguely remember someone having issues with user defined report operations, the problem there was solved by changing the user language to English by adding
    AddVMOption -Duser.language=ENto the sqldeveloper.conf file normally located in
    SQLDEVELOPER_INSTALL_DIR/sqldeveloper/binIf you are not already running in English try changing this.

  • 2.1.1 Problem with User Defined Reports with actions on the context menu

    I use the User Defined Reports quite a lot, and export and publish these to other members of the team as Shared Reports. I'm also quite disappointed that there seems to be no further development in this area of SQL Developer.
    One of the totally undocumented features of User Defined Reports is the ability to attach actions to a context menu, and pass data from the grid to a procedure, for example. Copying, then exporting the sessions report (from All Reports -> Data Dictionary Reports -> Database Administration -> Sessions) exposes the XML for adding actions to the context menu. The snippet for killing a session looks like this:
    <item  reload="true"  reloadparent="false" removeFromParent="false">
      <title>Kill Session</title>
      <prompt type="confirm" >     
        <label>Kill Session?</label>     
        <default><![CDATA[]]></default>     
        <value><![CDATA[]]></value>        
      </prompt>
      <sql><![CDATA[ALTER SYSTEM KILL SESSION '#SID#, #SERIAL#' IMMEDIATE]]></sql>
      <help>Kill the selected session.</help>
    </item>So to add this type of functionality to your own user defined reports, you need to export the report, edit the XML, and import it again. It seems to work fine to add this to the master reports, but if you add an <item> element to the child reports, the context menu items appear on the master report too, and they are duplicated many times. I'm not sure if the action of exporting the report adds to the number of times the context menu appears.
    Warning - if you edit a report using SQL Developer, all the <item> tags are removed. Once you've added actions to a context menu, you can only edit the report by exporting it, modifying the XML and importing it again.
    Has anyone else seen this behavior? Have you found a work-around?
    To the SQL Developer team: Are there any plans to allow the adding of user defined context menu items to reports using the GUI in the near future?

    You're right the context menu needs a GUI desperately. You can request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • How to create a user defined trigger and execute my form

    Hi All,
    I am working with oracle Apps r12 and oracle forms 10g.
    I have created a custom form. So i need to create a special menu and when the user click the menu it need to open a new block and query it accordingly.
    I have followed this link
    http://egeapp.egeseramik.com:8000/pls/prod/fndgfm/fnd_help.get/us/fnd/@g_special#g_special
    and created a special menu in my custom form
    In PRE_FORM trigger i have coded this
    APP_SPECIAL.INSTANTIATE('SPECIAL3','&ACTION HISTORY DETAILS',NULL,TRUE,'LINE');
    and IN PRE_BLOCK i have coded this
    APP_SPECIAL.ENABLE('SPECIAL3',PROPERTY_ON);.
    Now the special menu is enabled when i press it shows error
    that frm-40700 no such trigger:special3.
    Now i came to know that we need to create a user defined trigger put the code and when we press special menu it need to query it accordingly.
    Can any one tell the steps that how to do that accordingly.
    Thanks & regards
    Srikkanth

    Hi ,
    The problem is fixed, the link mentioned below might be use full for doing this.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T457083.htm
    regards
    Srikkanth

  • Storing User defined reports in SQL Developer

    Hi All,
         I have created some user defined reports in SQL Developer. My company requested me to update the OS from Win XP to Win 7. I forgot to export those reports. I got my machine back, they said that the data is retained. Now i need to take those reports back. Can anyone tell me in which folder would SQL Developer stores the User Defined Reports by default? My bad I dont remeber the Report Name too.
    Can anyone help me on this?
    Boopathy vasagam

    Hi,
    You can check at location
    C:\Documents and Settings\<your_user>\Application Data\SQL Developer
    HTH

  • Recreate USER - User Defined Report

    Dear all,
    you might find this useful!
    For those who are interested in saving the definition of a user before dropping him.
    I have created this user-defined report. You may save this and import it as user defined report.
    If you have additions please let me know:
    -------------- CUT HERE -------------------
    <?xml version="1.0" encoding="UTF-8" ?><displays><display id="37db04bc-0120-1000-8003-a609686616e5" type="" style="Code" enable="true">
         <name><![CDATA[RECREATE User]]></name>
         <description><![CDATA[Create a script to recreate a user]]></description>
         <tooltip><![CDATA[]]></tooltip>
         <drillclass><![CDATA[null]]></drillclass>
         <CustomValues>
         </CustomValues>
         <query>
              <sql><![CDATA[select line from
    select 1 as line_no,
            'CREATE USER ' || username || CHR(10) ||
            '  IDENTIFIED BY VALUES "' || password || '"' || CHR(10) ||
            '  DEFAULT TABLESPACE ' || default_tablespace || CHR(10) ||
            '  TEMPORARY TABLESPACE ' || temporary_tablespace || CHR(10) ||
            '  PROFILE ' || profile ||
            '  ;' || CHR(10) || CHR(10) as line
    from dba_users
    where username = :USERNAME
    UNION
    SELECT 2 as line_no,
        'ALTER USER ' || username || CHR(10) ||
        '    QUOTA ' || bytes || ' ON ' || tablespace_name ||
        ';' || CHR(10) || CHR(10) as line
    FROM
        dba_ts_quotas
    where username = :USERNAME 
    UNION
    select 3 as line_no,
           'GRANT ' || privilege || ' TO ' || grantee || decode(admin_option,'NO',' ','YES',' WITH ADMIN OPTION ') ||
           ';' || CHR(10) || CHR(10) as line
    from dba_sys_privs
    where grantee = :USERNAME
    UNION
    select 4 as line_no,
           'GRANT ' || privilege || ' ON ' || owner || '.' || table_name || 
           '   TO ' || grantee || decode(grantable,'NO', ' ','YES',' WITH GRANT OPTION ') ||
           ';' || CHR(10)  as line
    from dba_tab_privs
    where grantee = :USERNAME
    UNION
    select 5 as line_no, ' '|| CHR(10) as line from dual
    UNION
    select 6 as line_no,
          'GRANT ' || granted_role || ' TO ' || grantee || decode(admin_option,'NO', ' ','YES',' WITH ADMIN OPTION ') ||
          ' ;' || CHR(10) as line
    from dba_role_privs
    where grantee = :USERNAME
    UNION
    select 7 as line_no, ' '|| CHR(10) as line from dual
    UNION
    select 8 as line_no, 'ALTER USER ' || :USERNAME || ' DEFAULT ROLE ' || defrole || ' ;'  as line from
    (select rtrim(listagg,',') as defrole from (
    select
       xmltransform
          sys_xmlagg
             sys_xmlgen(granted_role)
         xmltype
           '<?xml version="1.0"?><xsl:stylesheet version="1.0"
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
              <xsl:template match="/">
                <xsl:for-each select="/ROWSET/GRANTED_ROLE">
                  <xsl:value-of select="text()"/>,</xsl:for-each>
              </xsl:template>
            </xsl:stylesheet>'
      ).getstringval() listagg
    from dba_role_privs
    where grantee = :USERNAME
    order by line_no
    )]]></sql>
              <binds>
                   <bind id="USERNAME">
                        <prompt><![CDATA[Name of the User to recreate:]]></prompt>
                        <value><![CDATA[TRAINER01]]></value>
                   </bind>
              </binds>
         </query>
    </display>
    </displays>
    -------------- CUT HERE -------------------

    1) Create user defined parameters in builder
    2) While running in web give paramform=yes. This will cause paramform to be displayed and user can enter the values
    Thanks
    The Oracle Reports Team

  • Saving SD User Defined Report

    I am creating a user defined report in tcode MC21. When i try to save it asks me for a package. Which package do i use. do i use already existing packages or i need to use a new package. If try saving without the package the system refuses. If i save the Info Structure as a Local Object it tells me the Self defined Info structure will not be transportable. How do i handle this.

    Ask the abaper which package currently they are using and use the same package.
    Reward if it useful.
    Regards,
    Madhu

  • SQL Developer user defined reports (appropriate utilization)

    I have used SQL developer on a limited basis but I have never created a user defined report. Can someone compare and contrast the
    types of user defined reports that can be created via SQL developer versus the types of user defined reports that can be created via
    a tool such as Crystal Reports or similar tool.

    Hi user7753875 -
    I agree with reidelme that it won't match the capabilities for fancy organisation/output of tools like Crystal Reports, but you can do interrelated parent/multiple child reports.
    Check out the Reports tab on the SQL Developer Exchange for some examples of what other users have done with this.
    Brian Jeffries
    SQL Developer Team
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM
    Turns out no one has used that in a long time. You will have to do some interpretive cut/past from xml given by web site & report editor in SQL Developer. Here is the "Who" report (master+2 child reports) from the exchange in a format you can use the import function from "User Defined Reports" on.
    <?xml version="1.0" encoding="UTF-8" ?>
    <displays>
    <display id="57507b3a-0130-1000-8008-a9fec67b8254" type="" style="table" enable="true">
         <name><![CDATA[Who]]></name>
         <description><![CDATA[
    A Report to show active seesion and some details about there activities. Includes 2 Child-reports for Active SQL and PID for the process supporting the session.
    ]]></description>
         <tooltip><![CDATA[Who is logged in and what is he doing]]></tooltip>
         <drillclass><![CDATA[null]]></drillclass>
         <CustomValues>
         </CustomValues>
         <query>
              <sql><![CDATA[SELECT sid, serial#, username, status, server, machine, program FROM v$session order by sid]]></sql>
         </query>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[ActiveSQL]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3, a.sql_text,b.status,to_char(b.logon_time, 'DD-MON-YYYY HH24:MI:SS') from v$sqltext a, v$session b, v$process c where a.address = b.sql_address and b.paddr = c.addr and a.hash_value = b.sql_hash_value and b.sid = :SID order by c.spid,a.hash_value,a.piece]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[Process]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select p.spid,p.addr,s.sid,s.server,p.username,s.osuser,p.program,t.value/1024/1024 PGA_Mb from v$process p,v$session s,v$sesstat t where p.addr=s.paddr and s.sid=t.sid and s.sid = :SID and t.statistic#=20]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
    </display>
    </displays>
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM

  • User defined report with bind variable

    How can I create an user defined report using a bind variable?

    We currently do not support bind variables in User Defined Reports. We are looking at adding that function before production but I can't promise.
    -- Sharon

  • USER DEFINED FUNCTION in the formula editor

    How do you create a USER DEFINED FUNCTION in the formula editor using BADI

    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/frameset.htm">This</a> may help.

  • [3.0.04] Delete user defined report folder

    Hello Forum,
    a few days ago, I got a new computer and exported my user defined reports from the old installation. After importing these into the new installation, all reports were put into an additional subfolder. Since I'm using german localization, the reports were put into "Benutzerdefinierte Berichte/Benutzerdefinierte Berichte". I could move them one folder up by cut and paste, but now I would like to delete the empty subfolder, but I don't have any menu options to do so.
    Is there any way to get rid of that subfolder?
    Many thanks in advance,
    dhalek

    Hi Binom,
    Correct. In fact similar behavior reported in earlier posts such as...
    Bug 2.1: Report folders are read only
    1.5.5 Cannot add user defined report to folder
    ...resulted in the logging of an internal bug:
    Bug 9231534 - FORUM:USER DEFINED REPORT FOLDER MISSING ACTIONS IN NON ENGLISH LOCALES
    I updated it with a reference to this forum thread in order to give it a bump.
    Thanks,
    Gary Graham
    SQL Developer Team
    Edited by: gggraham on Aug 1, 2011 1:30 PM

  • Problem Editing User Defined Report - 1.1.0.22.71

    When I rt click on an existing user-defined report on the Reports tab and select edit, change the default value on a bind variable and click Apply, I get message "Name already used please enter new one" message and changes will not save. Am I missing something here or is this a bug?

    I expected that if I basically did a "save as" the issue could be avoided. But I wanted to be sure that if I'm maintinanig a set of shared reports I can edit an existing report without having to jump through a hoop or two. Is this issue being addressed?
    Thanks

  • User defined fields for the Trading partner agreements

    Hi,
    Do we have any provision to create custom/user defined fields for the Trading partner agreements ?

    Hello,
    It would be great if you can provide complete details of your use case. I can suggest the possible way of implementation only after understanding your requirement.
    Regards,
    Anuj

Maybe you are looking for