Privilege to create AWR and Statspack report to normal user

Hello,
I want to give right to one of the database user to create STATSPACK report in one database (no license there) and and to generate AWR report in other (licensed diagnostic+tuning pack).
Is there any privilege which I can give to create these reports only. I mean on a safe side ...
@?/rdbms/admin/spreport privilege to generate STATSPACK
@?/rdbms/admin/awrrpt privilege to generate AWR report.
Thanks a lot.
Best Regards

Hi,
Check the grants again, seems you missed some grant. check the test here
SQL> create user test identified by test;
User created.
SQL> grant create session to test;
Grant succeeded.
SQL>
SQL> GRANT SELECT ON SYS.V_$DATABASE TO TEST;
GRANT SELECT ON SYS.V_$INSTANCE TO TEST;
GRANT EXECUTE ON SYS.DBMS_WORKLOAD_REPOSITORY TO TEST;
GRANT SELECT ON SYS.DBA_HIST_DATABASE_INSTANCE TO TEST;
GRANT SELECT ON SYS.DBA_HIST_SNAPSHOT TO TEST;
GRANT ADVISOR TO TEST;
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
SQL> conn test/test
Connected.
SQL> @?/rdbms/admin/awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
   DB Id    DB Name      Inst Num Instance
1667776968 DDTEST              1 ddtest
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: html
Type Specified:  html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   DB Id     Inst Num DB Name      Instance     Host
* 1667776968        1 DDTEST       ddtest       vnode
Using 1667776968 for database Id
Using          1 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing <return> without
specifying a number lists all completed snapshots.
Enter value for num_days: 1
Listing the last day's Completed Snapshots
for statspack user you can check the script spcreate.sql for details
HTH

Similar Messages

  • Roles and Privileges for 10g AWR and ASH reports

    Are there specific roles and privileges are required for one to run AWR and ASH reports for users who don't have DBA roles? If so, I would like to know about them.

    I think sysdba privilege need to run AWR report.
    Also check, how privilege is granted to PERFSTAT user in $ORACLE_HOME/rdbms/admin/spcuser.sql, you might get some clue!!!
    Cheer,
    Virag

  • Script to generate awr and e-mail to the user

    Hi ,
    Can someone help me with the script to generate AWR report and e-mail to customer on a daily basis?
    OS:AIX 6.1
    DB:11.2.0.2

    http://www.gokhanatil.com/2011/07/create-awr-and-addm-reports-and-send.html
    http://nadeemmohammed.wordpress.com/2011/10/27/generate-awr-reports-automatically-script/
    Generate Statspack report automatically once per day
    Your answer in above link(s), just read,understand and try to implement. If problem continue post here, we are here 24x7, but first show us yours efforts.
    Regards
    Girish Sharma

  • How to use awr and addm reports

    Hi,
    to use awr and addm reports does we should have separate license or oracle server software license is enough.
    which tool do we use to read this awr and addm reports in real time.
    please give your valuable suggestions.
    thank you!

    Seeing as you seem to want to continue the discussion on someone else's old thread rather than your own one
    AWR files in oracle
    If i don't then it is difficult to find the queries thata re related to my application as most of those are the sysqueries, i just need schema specific queries in the SQL ordered by Elapsed Time section. Perhaps you are using the wrong tool?
    A system-level report like AWR or ADDM is no use to you as it seems your application code is not significant at the system level.
    You might want to consider tracing the sessions from your application using client_id or module to identify sessions belonging to your application then possibly use TRCSESS and TKPROF.

  • Hoe top create summary and detail report using ABAP QUERY

    Hi ,
    Can any one suggest me how to create summary and detailed report using ABAP Quey.
    Regards,
    Raghu.

    Hi,
    Table Declaration
    tables:mara,mast.
    *Declaring the internal table
    data: begin of itab_new occurs 0,
          matnr like mara-matnr,     "Material No
          ernam like mara-ernam,     "Material Created by
          mtart like mara-mtart,     "Material Type
          matkl like mara-matkl,     "Material Desc
          werks like mast-werks,     "Plant
          aenam like mast-aenam,     "BOM created
          stlal like mast-stlal,     "Alternative BOM
          end of itab_new.
    select-options: p_matnr for mara-matnr.
    CODE A : Retrieving the data from the database
         select  f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
         into table itab_new
         from mara as f inner join mast as m
         on f~matnr = m~matnr
         where f~matnr in p_matnr.
    CODE B : Retrieving the data from the database.
        SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
        INTO TABLE ITAB_NEW
        FROM MARA AS F INNER JOIN MAST AS M
        ON FMATNR = MMATNR
        WHERE F~MATNR = P_MATNR.
        SORT ITAB_NEW BY ERNAM.
    loop at itab_new.
    write:/5  itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
    endloop.
    *TABLES: MARA , MAST.
    *DATA:BEGIN OF ITAB_NEW OCCURS 0,
                 MATNR LIKE MARA-MATNR,
                 ERNAM LIKE MARA-ERNAM,
                 MTART LIKE MARA-MTART,
                 MATKL LIKE MARA-MATKL,
                 END OF ITAB_NEW.
       SELECT MATNR ERNAM MTART MATKL
       INTO TABLE ITAB_NEW
       FROM MARA
       WHERE MTART = 'T'
       ORDER BY MATNR ERNAM MTART MATKL.
    *DATA: BEGIN OF ITAB OCCURS 0,
         MATNR LIKE MARA-MATNR,
         END OF ITAB.
    Thank U,
    Jay....

  • Configure/view AWR and ADDM reports

    our production server 11.1.0.7 (db) is running on redhat 5.3.
    how i can configure/view AWR and ADDM reports for this from my local machine
    please reply

    the AWR snapshots in 10g are automatically taken after every 1 hour by default , am i right ?
    YES
    some reference.
    http://www.oracle-base.com/articles/10g/AutomaticWorkloadRepository10g.php

  • How to create a new bundle of service and import it as normal user.

    Hi,
    I have created a service.
    Now am able to import and enable the service.
    I have placed my xml file under
    /var/svc/manifest/site
    The service name is
    <service
    name='site/newservice'
    I have imported the service as root user.
    <exec_method type='method' name='start' exec='/tmp/new/method/newservice start' timeout_seconds='30' />
    This service is not able to execute the operation which I have mentioned above. The following error is thrown in log file.
    Error: User 'root' is not the owner of '/tmp/new/method'
    So I tried to import the service as normal user, the following error is thrown.
    svccfg import /var/svc/manifest/site/newservice.xml
    svccfg: Could not create temporary service "TEMP/site/newservice" (permission de nied).
    svccfg: Import of /var/svc/manifest/site/newservice.xml failed. Progress:
    svccfg: Service "site/newservice": not reached.
    svccfg: Instance "newservice": not reached.
    Please help me to solve this issue.
    I thought instead of placing the service in default location,Why cant we create a new service of bundle and place the service there.
    Please help to solve this issue by suggesting some solution or how to create a new bundle of service and import it as normal user.
    Regards,
    Kalai

    kalaiyarasan_P wrote:
    Hi,
    I have created a service.
    Now am able to import and enable the service.
    I have placed my xml file under
    /var/svc/manifest/site
    The service name is
    <service
    name='site/newservice'
    I have imported the service as root user.Okay.
    <exec_method type='method' name='start' exec='/tmp/new/method/newservice start' timeout_seconds='30' />
    This service is not able to execute the operation which I have mentioned above. The following error is thrown in log file.
    Error: User 'root' is not the owner of '/tmp/new/method'By default, services run as the 'root' user. It's complaining that the method isn't also root.
    So I tried to import the service as normal user, the following error is thrown.You won't be able to do that easily. The user that does the import is almost always root. But wihin the manifest you could have it run as a different user.
    I thought instead of placing the service in default location,Why cant we create a new service of bundle and place the service there.
    Please help to solve this issue by suggesting some solution or how to create a new bundle of service and import it as normal user.You don't need to import this as a normal user, do you? You just want it to run as one, right?
    Darren

  • How to create YTD and MTD reports using Sql Server 2008 r2 report builder 3.0

    Hi All,
    How can I create YTD report from the below data. please help me
    ProdA     ProdB     ProdC     Month     Year
    10       50        40          January      2012
    Data for full Year i.e. from Jan - December 2012
    50       90       100        January       2013
    Data for full Year i.e. from Jan - December 2013
    90       40         30        January        2014
    Data for full Year i.e. from Jan - Till Date 2014
    MercuryMan

    You can use a correlated subquery to calculate YTD in query behind. You can use APPLY operator for that
    so something like
    SELECT *
    FROM Table t1
    CROSS APPLY (SELECT SUM(ProdA) AS TotA,SM(prodB) AS TotB,SUM(prodC) AS TotC
    FROM Table
    WHERE Year = t.Year)t1
    And show TotA,TotB and TotC in the required total row
    Another method is to add required totals in SSRS by clicking on relevant group and choosing Add Total option
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Creating detail and summary report tabs

    Hi Everyone,
    I want to create two reports on the same query infact two tabs one showing the summary and the other one showing the details.Suppose I have a column Plant in the summary report tab.I want when I click on a particular plant the detail of that particular plant should appear on the details report tab.Can anyone please explain how to proceed in this.
    Regards,
    Neeraj

    Hi Neeraj,
    what sunil mentioned is for BI 4.0 , if you  are using older versions,
    check below link, from page 20 it will help you to solve the problem.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0daee1d-0e38-2d10-0c91-8bb4ab5aa266?QuickLink=index&overridelayout=true
    Steps:
    1> duplicate the query,
    so query1 and query 2 will be available.
    2> In query 2 use Plant as optional prompt and  deselect other options.
    For summary report use the objects which is from query1
    For detail report use the objects which is from query2
    Now in summary report click on plant column Right clik>>> hyperlink>>
    paste the following code by changing server and port name
    and click parse.
    http://servername:8080/OpenDocument/opendoc/openDocument.jsp?sType=wid&iDocID=3333&lsWindow=Same&sReportName=DeatailReport&lsSEnter_Plant=(=[Query 1].[Plant])
    in the above link you also has to mention the sReportName becaous you are linking the same  document  detail report.
    and also Enter_Plant here its prompt descriprtion change according to your requirement.
    to get the idocid right click on the report and click properties.use the number in the link.
    Regards,
    Ranganath

  • Create message and link report

    Hello,
    Is it possible to create a message ( like zmm ), but when double clicking on the message, it will trigger report?
    Regards
    Yifat bar

    hi
    for information message
    message 'Information' Type 'I'.
    type 'S'-->sucess
    A-abord
    W-warning
    E-Exit
    type "message" in report and press f1 you will get information.
    Thanks

  • Create AWR Reports

    Can it be possible to generate the AWR reports and ADDM reports for a specific time period from OEM GRID and mail it to specified mail id everyday.

    user13549752 wrote:
    Can it be possible to generate the AWR reports and ADDM reports for a specific time period from OEM GRID and mail it to specified mail id everyday.As I know OEM Grid Control can not convert AWR reports to daily jobs, but we can write a PL/SQL script to create AWR/ADDM reports and mail them:
    http://www.gokhanatil.com/2011/07/create-awr-and-addm-reports-and-send.html
    Regards
    Gokhan

  • Possible to create detailed and Summary in same crystal report?

    Hello
    I have worked with cyrstal reports back in 2001. Now I am back to creation of reports. I vaguely remember I was able to create summary and detailed reports from one crystal report file. I don't remember if I was using two different stored procedures or not. Can anybody explain if it is possible to create summary and detailed reports from one crystal report file and with one stored procedure. I am guessing somehow I should be able to control behaviour of report - ie. say if user selects detailed report- report will show all records and if user selects summary view then report will show summarized view of same data.
    If its possible how do you do it? Can you explain.
    Thanks a lot.

    There are a couple of techniques with drilling and sub-reports, but what I do most frequently is create a Detail/Summary  parameter for the user to select, and then have a formula that references this parameter to either hide or display a Detail section of the report sepending on the option the user chooses.  My experience is that most users can relate to this approach better, where as driling and sub-reports can sometimes cause confusion for them.

  • Oracle 10g Statspack Report

    Hi....below is a snippet of statspack report
    Host CPU (CPUs: 4)
    ~~~~~~~~ Load Average
    Begin End User System Idle WIO WCPU
    5.61 7.04 54.95 32.01 13.04 0.00 106.09
    Instance CPU
    ~~~~~~~~~~~~
    % of total CPU for Instance: 44.84
    % of busy CPU for Instance: 51.56
    I want to understand what "% of total CPU for Instance" and "% of busy CPU for Instance". When I check for vmstat on this box it gives 100% utilization.
    I want to know which CPU Utilization should I refer. And whether this is good or bad? And what is the difference between vmstat and statspack report.
    Can someone help me with this?
    Thanks

    9:29pm up 81 day(s), 8:41, 5 users, load average: 3.62, 3.38, 3.31My rule of thumb is that no serious CPU bottleneck exists when load averages are at or lower than number of CPUs in system.
    Typically the load average is is decent surrogate for run queue depth reported by
    sar -q
    I suggest you enable sar data collection so you have decent system statistics available for review & analysis
    Which system resource (CPU, RAM, Disk I/O, or Network) is major contributor to slow response; which is the bottleneck?
    post formatted results from command below which takes 2 minutes to complete
    vmstat 6 20
    Edited by: sb92075 on Oct 27, 2010 7:14 PM

  • Create statspack report using sql*developer

    Hello,
    While connecting with PERFSTAT user I can not create statspack report using SQL*Developer:
    @?/rdbms/admin/awrrpt
    Error starting at line 1 in command:
    @?/rdbms/admin/awrrpt
    Error report:
    Unable to open file: "?/rdbms/admin/awrrpt.sql"
    Actually, my problem or question is that how can PERFSTAT user can generate statspack reports from a Client side. What is the other way a non-dba can see the snapshots histroy and generate report (by using perfstat user ) while joing tables or using views?
    Thanks a lot.
    Best Regards

    Hi,
    for awr reports @?/rdbms/admin/awrrpt (you need EE+Diagnostic Pack) there is a solution.
    Grant execute dbms_workload_repository to <user>;
    Grant select_catalog_role to <user>;
    get all SNAP_IDs
    SELECT   TO_CHAR(s.startup_time,'YYYY.MM.DD HH24:MI:SS') INSTART_FMT,
             di.instance_name INST_NAME,
             di.db_name DB_NAME,
             s.snap_id SNAP_ID,
             TO_CHAR(s.end_interval_time,'YYYY.MM.DD HH24:MI:SS') SNAPDAT,
             s.snap_level LVL
    FROM    dba_hist_snapshot s,
             dba_hist_database_instance di
    WHERE   di.dbid = s.dbid
             AND di.instance_number = s.instance_number
             AND Di.Startup_Time = S.Startup_Time
    ORDER BY snap_id desc;
    Select * From Table(Sys.Dbms_Workload_Repository.Awr_Report_Html(DBID, 1, BEGIN_SNAP_ID, END_SNAP_ID));
    For statspack i don't know a solutuion. I think the best idea is, create a job to make the statspack report on the server side and access it via external tables or mail them forward to you.
    Best regards
    Thomas

  • How can i save a AWR/statspack report in xml format ??

    how can i save a AWR/statspack report in xml format ?? or is there a way...coz when creating the report it gives option for html or normal (sql or txt based file)... on 10.2.0.3

    thanks orinet....i used wat you asked me to use...it generated a .dmp file....
    sqlplus "/as sysdba"
    SQL> @$ORACLE_HOME/rdbms/admin/awrextr.sql
    i tired upload that file to orapert.com it gives me below error ...any reason why ??
    Error : File not processed because it was too small to be an Oracle statspack or bstat/estat file.
    do i need to load it up too ?? as i tried doing the below
    sqlplus "/as sysdba"
    SQL>@$ORACLE_HOME/rdbms/admin/awrload.sql
    get error while doing that....
    ERROR at line 1:
    ORA-20105: unable to move AWR data to SYS
    ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 1760
    ORA-20107: not allowed to move AWR data for local dbid
    ORA-06512: at line 3
    the file is about 19M in size
    Edited by: user630084 on Mar 19, 2009 11:37 AM

Maybe you are looking for

  • Ipod nano 6th gen not recognised at all in itunes or windows

    Nano was recognised as a device first two times i used it but now not recognised in itunes or in my computer as an ipod. Followed various help suggestions but no change. Does t need software restoring and if so how if not recognised in itunes?

  • Crystal Crashes when exporting to PDF

    Hi Experts,    Crystal reports crashes when exporting a report to PDF. I am using Crystal Reports for SAP Business One, what could be causing this..is it a patch level problem ?

  • Parent - child table issue wrt to count - SQL question

    I have a scenario: There are 2 tables (parent and child). lets say, case summary table and task level dimension table. for every case id in case summary table, there would be multiple tasks in task level dim table with a flag indicator set to 1 for a

  • Can't get AVPlayerHD to play on TV w/ Composite Cables

    I've got several iPads including iPad Air's and iPad 2's.  I have been able to get the iPad's with non-lightening ports in the past, and can still.  For those with lightening ports I use a 30-pin to lightening adapter, which I then connect to the com

  • Running the external programs from SM69 t-code and RSBDCOS0 report

    Hi All,   I am trying to execute the external commands from SM69 and RSBDCOS0. It's throwing the below error: 26.10.2009 17:26:49 Job started                                                                                00           516 26.10.2009 1