System Query being executed millions of times

Hello -
Below is from an AWR report (for a 24 hour duration):
CPU Elapsed CPU per % Total
Time (s) Time (s) Executions Exec (s) DB Time SQL Id
3,686 3,962 10,593,197 0.00 1.5 0h6b2sajwb74n
select privilege#,level from sysauth$ connect by grantee#=prior privilege# and p
rivilege#>0 start with grantee#=:1 and privilege#>0
Has anyone seen this being called from within their AWR/statspack reports? The app tier is Websphere, and I am not seeing this called in any of my databases that use WebLogic on the app tier.
Thanks in advance for any insight!
Mike

Most probably your schema security is based on direct privileges assignment rather than roles.
This only means your users are being validated if they have enough privileges to perform a task against an object. If sys queries are able to be seen from awr, this could mean one out of two things:
1. Your database is over administrated
2. You don't have meaningful user's activity.
~ Madrid

Similar Messages

  • The actual query being executed

    hi all,
    is there a way to log the actual sql query being executed
    i saw that there is trace option for sql query
    but it is not logging anything
    can anybody help me please
    regards,
    ramakrishna

    The easiest way to do this that I've found is to determine which session is running the report. This is difficult if it is interactive as the reports runtime engine starts a session when you run it. Then just issue a sql trace with binds from another session (dbms_support package or dbms_ev)
    I'll sometimes put an entry using dbms_application_info (suggested on asktom) in a beforepform trigger so I know which session is the one with the report - in caseI have multiple logons under one account.

  • DISASSEMBLE is being executed for long time in SPAM

    Hi ,
    I am trying to applying SAP_BASIS patch in new XI 3.0 server .But it got hanged in <b>DISASSEMBLE is being executed</b> for long time in SPAM.
    Can any one will me to solve in this issue.
    Thank You !
    Gopnath.G

    Hi
    The following Patch manager may be useful
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCUPGOCSSPAM/BCUPGOCSSPAM.pdf
    Regards,
    Sai

  • Is there any tool or method to find the exact disk space/memory required for a query to execute in certain time

    Hi,
    We have SSIS Package, which in-turn executes some Stored procedures . 
    This Package runs fine at certain time, say 30 minutes which is acceptable. But sometimes, it takes around 1.5 hr. There was no modification done to the package, and the amount of data handled by the package is also same.
    I have a doubt that some other big process may be running in parallel when this package is getting executed.
    All the Databases are on D drive in the server and currently there is 140 GB free space out of 1 TB.
    Now, using sp_who2 I can check what are the big processes which are running in parallel when this package is getting executed and get their Disk I/O.   
    Now having these information, is there any way to determine, amount of space/memory required to execute a particular query in 30 minutes.
    Or to put a question in other way, I have a query and I know its acceptable execution time(30 min). Now is there any way to determine the criteria to get that execution time.
    NOTE: The query is optimized and required indexes are created. It was running fine, until 1 week back. Suddenly the execution time has increased.
    Can some one please help me in this. Please let me know if you need any further information on this.
    Also whenever these jobs are running, sometimes job activity monitor and SSMS gets frozen. Any idea what does this indicate?
    Thanks in advance,
    Raksha

    Perhaps blocking?
    Take a look at Adam's great stored procedure to see who is running on the server
    Who Is Active? v10.00 (2010-10-21)
    (C) 2007-2010, Adam Machanic
    Feedback: mailto:[email protected]
    Updates: http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx
    "Beta" Builds: http://sqlblog.com/files/folders/beta/tags/who+is+active/default.aspx
    License: 
    Who is Active? is free to download and use for personal, educational, and internal 
    corporate purposes, provided that this header is preserved. Redistribution or sale 
    of Who is Active?, in whole or in part, is prohibited without the author's express 
    written consent.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • If bindParametersForCollection fires will a query definitely execute?

    Hi
    I have an ADF BC application written in Jdev 10.1.3. The user is reporting performance problems in one part of the application. We have a CustomViewObjectImpl which overrides the bindParametersForCollection method and outputs the following message
    System.out.println("### Executed Query here for View Object "+getFullName());This message is output 3 times indicating the view object query is executed 3 times. I have accounted for 2 of them but I can't for the life of me see why the VO query is executing a third time.
    I wondered if this message is accurate in saying that the VO query is executing when the bindParametersForCollection is fired?
    I put a message in the view objects class file. In the executeQueryForCollection method is
      String calling = new Throwable().fillInStackTrace().getStackTrace()[1].getClassName();
      System.out.println("called by <"+calling+">");This only fires once - before the first "Executed Query here for View Object".
    thanks
    paul schweiger

    I found what was causing the third execute query - there was a reference to #{bindings.WsWanalItemsView1Iterator.estimatedRowCount} in one of the items on the page.
    Am I right to presume that estimatedRowCount causes the same performance hit executing the view object's query?

  • OIM - Same tasks being executed at the same time

    Hi,
    I'm using Lotus Notes and SAP User Management connector to provision users to these target systems.
    Both Lotus Notes and SAP has a issue related to same tasks being executed at the same time. In other words, if we try to create two or more users in these systems, an error is thrown because a user is currently being created.
    So, when I run a trusted reconciliation, I'm getting many errors related to this issue because OIM is trying to create more than one user at the same time in the same target system.
    Does anyone knows if I can configure OIM to run the same provisioning process only when the previous process is already completed?
    Best Regards.
    Nitto.

    Frankly, I haven't thought about using OVD yet. I just assume that OIM should be able to deal with 2 instances of the same kind of ITResource. Because this requirement is very common.
    I did a little experience. For the second OID, I created manually a new set of ITResource, Resource Object, Process Form, Process, AttrName Lookup Code, Recon Rule. The apporach seems working. I can successfully provision the OIM user to the OID now.
    But a problem is in the original OID User Process definition created by the OID connector installation, there are almost 20 Process tasks, how do I copy those tasks to my new Process definition? I just mannually created a "Create User" task, which is needed for provisioning.

  • Serious system error while executing the query: java.lang.OutOfMemoryError

    From ALSB, we are trying to insert records in a table, by calling the ALDSP webservice. It is working fine when the xml (ie., given as input to the ALDSP webservice) is small. But facing the following error when the input xml size is large.
    <ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
    {ld:ABC/Test}createTest:1
    java.lang.OutOfMemoryError: Java heap space
    We do not want to increase the heap size. Is there any other way we can solve this problem?

    In logical dataservice of ALDSP we have created a procedure called createTest, which is used to insert mulitple rows in the table. We have created a webservice for that logical DataService.
    Using the ALSB, we are calling the webservice -> createTest Operation and we are passing xml as input to that createTest function.
    Input xml:
    <ns1:createTest>
    <ns1:createTemps>
    <ns0:createTemp>
         <ns0:field1>1</ns0:field1>
              <ns0:field10>test1</ns0:field10>
    </ns0:createTemp>                
    <ns0:createTemp>
         <ns0:field1>2</ns0:field1>
              <ns0:field10>test2</ns0:field10>
    </ns0:createTemp>
         </ns1:createTemps>     
    </ns1:createTest>
    each ns0:createTemp represent a row that need to be inserted in the table.
    When the number of ns0:createTemp is less ( when the number of rows that need to be inserted is less) then no problem occurs, it is getting inserted properly. But when there are more number of ns0:createTemp then we are getting the following error
    <ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
    {ld:ABC/Test}createTest:1
    java.lang.OutOfMemoryError: Java heap space

  • How to find out exact what part of a query is being executed?

    hi guys,
    I can use the following query to see what queries are being executed
    SELECT
    a.sid, a.USERNAME, a.STATUS, b.sql_text
    FROM V$SESSION a INNER JOIN V$SQLAREA b
    ON a.SQL_ADDRESS= b.ADDRESS; However, is it possible to get a further breakdown of the query? i.e. see what part of the explain plan is actually being done?
    thanks

    If you did an event 10046 level 8 trace of the session , you might be able to infer which operation it is in. thanks for that.
    >
    If all the blocks are in the db_cache there would be no waits on, say, 'db file sequential read' or 'db file scattered read'.
    SQL> select * from v$system_event where event like 'db_f%';
    EVENT                                    TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED AVERAGE_WAIT TIME_WAITED_MICRO
    db file sequential read                      1558389              0        5913            0          59131163
    db file scattered read                       9755066              0       63353            0         633531239
    db file single write                           33173              0         262            0           2619012
    db file parallel read                            635              0           6            0             55006Are the above normal for a database that has just had one batch job run on it? Or is it too high and I need to increase my db_cache-size?
    thanks

  • Wrong portions of code being executed in standard transactions

    Hi guys,
    I've recently come accross some weird errors in a standard transaction in a system and thought you might have a clue. I was getting an ugly dump in F110 in a fresh system that it can't do a READ TABLE with index 0. After investigating it and debugging it for a while, I got in the PAI of a screen, where two procedures were important:
    1) WERTE_PRUEFEN was being executed in a loop...endloop (that's where the error supposedly occurred). The thing is in the debugger it didn't go into this module inside the loop, as it should if there are no entries.
    2) After that, WERTE_LOESCHEN. When I got here and pressed F5 to see what's going wrong in it, guess where the debugger redirected me: you're right, to the WERTE_PRUEFEN thingy. So a statement like MODULE WERTE_LOESCHEN. gets me to a completely different procedure. This is crazy!
    I'm not at my first experience with this. BEx applications would do this if you'd change the ABAP source code and the people wouldn't reconnect again. Even if in the debugger I'd see the new code, the system would execute the old one, probably some caching issues. Always worked when people disconnected / reconnected.
    However, in the actual situation, no matter how many times I log on/off, the dump is there.
    This is not the only example of this kind, there are more module statements gone crazy in F110 in this system, but only this one dumps instantly.
    What do you think it could be the cause of that/ what is a good solution for this?
    I was thinking it has something to do with the program's generation and I asked the Basis guys to run an SGEN, hopefully that would help.
    Thanks in advance,
    George

    Hi Vikranth,
    Nope, just pressing F5 trying to get into WERTE_LOESCHEN and being redirected to that module inside the LOOP...ENDLOOP, WERTE_PRUEFEN. Well, I didn't say this happens in every system, only in that specific one. Of course, if I logon in another system, everything looks fine.
    Another person suggested that it's the GUI to blame and that I should get the newest version. Still, the error was reported by a person that has the latest version of the GUI. I still think it's a generation/ installation issue but got no reply from the Basis admin so far.
    Regards,
    George

  • When query is taking too long time

    When query is taking too long time,Where and how to start tuning it?
    Here i've listed few things need to be considered,out of my knowledge and understanding
    1.What the sql is waiting for(wait events)
    2.Parameter modification need to be done at system/session level
    3.The query has to be tuned (using hints )
    4.Gathering/deleting statistics
    List out any other things that need to be taken into account?
    Which approach must be followed and on what basis that approach must be considered?

    When query is taking too long time,Where and how to start tuning it?explain plan will be good start . trace also
    Here i've listed few things need to be considered,out of my knowledge and understanding
    1.What the sql is waiting for(wait events)When Oracle executes an SQL statement, it is not constantly executing. Sometimes it has to wait for a specific event to happen befor it can proceed.
    Read
    http://www.adp-gmbh.ch/ora/tuning/event.html
    2.Parameter modification need to be done at system/session levelDepend on parameter , define parameter , trace done on session level for example
    3.The query has to be tuned (using hints )Could be help you but you must know how to use .
    4.Gathering/deleting statisticsDo it in non working hours , it will impact on database performance , but its good
    List out any other things that need to be taken into account?Which account ?
    Which approach must be followed and on what basis that approach must be considered?you could use lot of tools , Trace , AWR

  • Long Query Runtime/Web-template Loading time

    Hi,
    We are having a very critical performance issue, i.e. long query runtime, which is certainly not acceptable by client as well.
    <b>Background Information</b>
    We are using web application designer (WAD) 2004s release to design front end of our reports built in BI 7.0 system.
    <b>Problem Area</b>
    Loading of web template on browser
    <b>Problem Analysis</b>
    Query taking so long time to run, whenever we load it through portal or even directly through web application designer. Current runtime for query is more than a min. And I have noticed that 95% of runtime is taken for loading variable screen. FYI – if I run query through Query Designer or BEx Analyzer, it takes 3-5 seconds to execute.
    We have taken all the statistics and everything proves that query is not taking any time to execute but it’s the loading time which creates bottle neck.
    <b>Possible Cause</b>
    Web template holding 11 data providers, 5 of which are based on queries and rest are on query views. These data providers load into memory in parallel which could cause delay.
    These data providers expose detailed variable screens. Out of 21 input fields, exposed by web template, 8 fields are based on hierarchy node variables and 1 on hierarchy variable. And to my knowledge each time hierarchy/hierarchy node variable loads complete hierarchy into memory whenever they are called (in other words, its not performance efficient to use hierarchies).
    I request you to please consider this as matter of high priority and provide me with suggestions to remove bottle necks and make the application performance efficient. Please let me know, if you need any further information.
    Thanks.
    Shabbar

    I would recommend you see how long the query execution actually takes without running from the web template. If actually the individual query takes long time then you need to do some performance improvement on back-end side (aggregates, indexing,... and so on).
    But the performance issue is only with web templates, then you need to find some notes on it, because, I remember we had to apply some notes in relations  of browser taking too long time to load the selection screen in web reports.
    After exhausting all the option, then I will implement precalculating the query result before hand using broadcaster.
    thanks.
    Wond

  • Business Rules - how to stop when being executed in background?

    Hello,
    I have a very simple BR that is supposed to copy data from one version to another, however the BR timeouted and now is being executed in the background.
    The thing is that it is being executed for two hours now. I can see the BR in the Job window with 'Processing' status.
    I've set two system options HBR_MAX_WAIT_FOR_RULE and HBR_MONITOR_DELAY to 600000, and restarted the application and essbase, however the BR's status in Job window is still 'processing'.
    Is there any way to:
    1. Stop the execution of the business rule?
    2. Verify what causes the BR to run for so long?
    3. Does dense/sparse settings have the impact on BRs' execution time?
    Kind regards
    Marcin Stawny

    Hi,
    I take it we are talking classic planning.
    You can terminate rules from within EAS, if you right click the analytic server and select edit sessions, you should see the rule running.
    I am not sure why it says it still running maybe it has cached that it is running and still believes it is, have you restarted EAS?
    Lots of different elements can be makinh a business rule run for a long time, the code/cube might need optimizing, it might be trying to copy a lot of data.....
    Maybe worth posting more details on your database, number/name of dimensions, number of members, dense/sparse
    Also the business rule code.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Why is keyPressed() not being executed in this code..??

    HI,
    I am trying to develop a simple game program but what is banging my head is the keyPressed(KeyEvent evnt) is not being executed, i.e. the System.out.println("XXXX") inside this method is not being reached and hence shows no any output. Any suggestion would be appriciated. The code goes like this....
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    import java.awt.event.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.geom.*;
    public class ArrowGame
      static GameField gfield;
      private static void createGUI()
        JFrame.setDefaultLookAndFeelDecorated(true);
         JFrame frame=new JFrame("Arrow Game");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        gfield=new GameField();
         frame.getContentPane().add(gfield,BorderLayout.CENTER);
         frame.setVisible(true);
         frame.pack();
      public static void main(String args[])
        SwingUtilities.invokeLater(new Runnable()
           public void run()
             createGUI();
      static class GameField extends JPanel implements ActionListener, KeyListener, MouseListener
        Timer timer;
        int w,h;
         int arrowPos;
         double dynamicX=1.5;
         double ovalX;
         final double ovalY=2.0;
         final double ovalW=45.0;
         final double ovalH=45.0;
         double ovalXX=(ovalX+10);
         final double ovalYY=(ovalY+10);
         double ovalXXX=(ovalXX+10);
         final double ovalYYY=(ovalYY+10);
         private boolean shotTriggered=false;
        GameField()
           setPreferredSize(new Dimension(525,450));
           addMouseListener(this);
           addKeyListener(this);
         public void paintComponent(Graphics g)
           super.paintComponent(g);
          w=getWidth();
           h=getHeight();
           Graphics2D g2=(Graphics2D)g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
           g2.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY);
           g2.setColor(Color.darkGray);
           g2.fillRect(0,0,w,h);
           drawTarget(g2,w,h);
           drawArrow(g2,w,h);
         private void drawTarget(Graphics2D g2,int w,int h)
           ovalX+=dynamicX;
           ovalXX+=dynamicX;
           ovalXXX+=dynamicX;
           if (ovalX < 0 && ovalXX < 10 && ovalXXX < 20)
             ovalX=0;
              ovalXX=10;
              ovalXXX=20;
             dynamicX=1.5;
           else if (ovalX > (w-45) && ovalXX > (w-35) && ovalXXX > (w-25))
              ovalX=(w-45);
              ovalXX=(w-35);
              ovalXXX=(w-25);
              dynamicX=-1.5;
           g2.setColor(Color.green);
           g2.fill(new Ellipse2D.Double(ovalX,ovalY,ovalW,ovalH));
           g2.setColor(Color.blue);
           g2.fill(new Ellipse2D.Double(ovalXX,ovalYY,(ovalW-20),(ovalH-20)));
           g2.setColor(Color.red);
           g2.fill(new Ellipse2D.Double(ovalXXX,ovalYYY,(ovalW-40),(ovalH-40)));
         private void drawArrow(Graphics2D g2,int w,int h)
           arrowPos=w/2;
           g2.setColor(Color.white);
           g2.drawLine(arrowPos,((h/2)+175),arrowPos,h);
         public void keyPressed(KeyEvent evnt)
           int code=evnt.getKeyCode();
           System.out.println(code);
         public void keyTyped(KeyEvent evnt){}
         public void keyReleased(KeyEvent evnt){}
         public void mousePressed(MouseEvent evt)
           if (timer!=null)
             timer.stop();
              timer=null;
           else
             timer=new Timer(75,this);
             timer.start();
         public void mouseReleased(MouseEvent evt){}
         public void mouseEntered(MouseEvent evt){}
         public void mouseExited(MouseEvent evt){}
         public void mouseClicked(MouseEvent evt){}
         public void actionPerformed(ActionEvent event)
           repaint();
    };regards,
    Jay

      GameField()
        setPreferredSize(new Dimension(525,450));
        setFocusable(true); //<-----------------------------------------
        addMouseListener(this);
        addKeyListener(this);
      }

  • Rule hint based query being fired by DB in AWR rpt ??

    I am looking into AWR report and i see the below sql statment being executed 58000 in 5 hour period...
    the application guy said, its not being fired from the app....is the making making some
    recursive calls or what ??? as its a pretty big amount of time that its being fired...
    and also this is a 10.2.0.3 database ....why would it use the rule hint if its being fired
    by the database ?? below is the query....
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size,
    minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$
    where obj#=:1 and intcol#=:2

    funny thing we do have a user called DBSNMP on our database and we do not have grid control agent on it either...or even database control...then why we getting this sql ???
    $ ./emctl status agent
    EM Configuration issue. /oracle/app/product/10.2.0/xxxxxxx_nimsprod not found.

  • How to get all parameter names along with their values in stored procedure which is being executed

    Im using sql server 2012, is there any possible way to get all the parameters of a stored procedure along with the values passed to it.
    I need these things to build a xml. I mean this should happen in the procedure which being executed and it should be common for all the procedures.
    For example, let us suppose we have to procedures,
    uspSave, @name='test' @age=20
    uspDelete @id=2
    now in uspSave procedure, i need to get @name, @age and the values 'test', 20 and in uspDelete, i should get @id with value 2.
    For getting the column names, i tried this,
    select parameter_name from information_schema.PARAMETERS where specific_name=OBJECT_NAME(@@procid)
    now is it possible to loop through the result of above query and can we get the values.

    I think  you need running SQL Server Profiler to capture this info even in SQL Server 2012.
    Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/
    Blog : MS SQL Development and Optimization
    Blog : Large
    scale of database and cleansing

Maybe you are looking for

  • I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my computer, it stop on level 3 (calendars synchronization)

    Problem of Iphone 5C synchronization after an upgrade 8.1.1.: I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my Apple computer, it stop on level 3 (calendars synchronization). Could you help me ? Thanks

  • Futura suitcase

    hi there! would there be kind enough tyo help me with my fonts? i'm having trouble with my futura font suitcase, some of it's fonts are not working. i.e. futura book oblique, futura light/oblique, light condensed/lcondensed obique. is there a problem

  • Photocast Problems - IPhoto 6

    I subscribed to two photocasts published from MobileMe. It gives me the names of the two albums but I get this error when trying to update: The Photocast at http://gallery.me.com could not be found or is invalid. However, it shows the dashed outline

  • Expandable forms

    I have LiveCycle 8 and was wondering if this product can create expandable forms. If so, how would I go about to make expandable forms, tables and rows? Please let me know. Thank you.

  • Keeps Crashing out runs so very slow with more than say 50 images

    I useually come home from a shoot with around 2000 photos, I normally put theses into one directory in Lightroom called 'Temp Photos', this is so that I can go through and delete the duds, after that I will go through and rotate any that are slightly