Analyzer IO stats

Hello

Does anyone know if the numbers that make up the SUM are just maximum who were hit or a constant throughout the whole ordeal?

For example in the report of the Analyzer IO, high ESX figures show 900 iops read two machines and a sum of 1800. Were the numbers that make this amount has been taken from one point in time or the maximum hit?

Thank you

Hello

The amount is the sum of all points of data of the same type (e.g., VMDK read IOPS / s). Each data point is a value declared by the service of spend vsphere (the same source as other tools like esxtop or VisualEsxtop). As a general rule, it should be the average over a given period of data collection. However, it really depends on how vSphere account.

So the answer to your question is no, they're no way representing the maximum of any kind. Data points should be treated more on average during the last period of data collection.

Thank you

Chen dog-clerbois

Tags: VMware

Similar Questions

  • Execute a statement select twice in one sitting, what is happening in the PGA?

    Hi guys,.

    Oracle 10g.
    I was just asked while executing a select twice in one sitting, what is happening in the PGA?
    I know that oracle does not need to analyze this statement because of the LMS "library cache", and perhaps not necessary to perform the work of IO because BMG "cache db pads" oracle, but is the first fetch result set cached in the PGA, so that it could be directly returned to the user without doing anything to the LMS?
    I'm not familiar with the details of the structure of the memory in Oracle, that contain exactly PGA?

    Thank you very much!

    The results would be extracted once again, not cached. By default.

    However, in 11g, you can try using the CLIENT_RESULT_CACHE (which should work with a sqlplus Oracle client).
    See http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/memory.htm#PFGRF961

    Hemant K Collette

  • The prepared statement caching

    I am using Oracle 10 g on WIndows

    How can I manage the caching for prepared statements?

    This is done at the level of the Oracle. These are configurable within the Oracle

    Or do I have to use an external tool?

    Thank you

    Oracle will save the statement analyzed in shared pool and reuse for future calls. check the Oracle here concept

    Step 2: Analyze the statement

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14220/sqlplsql.htm#sthref3478

  • Firefox does play not any what Flash, even with the latest Flash installed

    Hello

    My firefox is unable to play any Flash for months.

    Here are the questions:
    1. If I want to watch videos on Youtube, it turns out to be just as black (by clicking on the video can trigger the icon well break).
    2. If I want to watch a Web site with Flash, it just loads the first 2 seconds and then Flash freezes.

    I have read all the help information in the forum and tried several solutions (see below), but none of them worked:

    -Uninstall and reinstall Firefox
    -Uninstall and reinstall Flash:

          1) when entered Youtube without Flash installed, the website asked me to install Flash but it somehow ended to a failure so I had to manually download and install
          2) after installing Flash, I also went to: http://www.adobe.com/software/flash/about/. I can see the version info but not the animation of the banner - it just shows a red box and then disappears after a few secs.
    

    -Reset Firefox
    -Use mode browser safe
    -Install the latest version of Realplayer
    -Analyze the State of the plugin on the Web site: http://www.mozilla.org/en-US/plugincheck/
    -Disable hardware acceleration in the advanced option
    -Regenerate the file "pluginreg.dat".

    I use WIn 7 (64-bit), with Firefox 24.0 and Flash11_8_800_168. I spent too much time on this issue and now I use Chrome to view the video.

    Hope this can be resolved with your help.

    Thank you!
    -Jeffery

    Hi Jeffery, I'm not familiar with a lot of your plugins. In the event that one of them could have an impact on Flash content, could disable you any that you do not use on a regular basis? (Set to 'never activate')

    Firefox orange (or the Tools menu) button > addons > Plugins category

  • Reduction in file size of scanned documents

    ISSA. I analyze the statements of income, statements etc. with several banking pages in pdf format, then want to send them an email with several pdf files attached to a single email. My file sizes are 3 MB, 8 MB, 12MB, etc. even if I scan only about 15 pages in each pdf usually.

    I got PDFs page 82 to others by e-mail and the file size is less than 1 MB.

    How can I reduce the file size for easier transmission through e-mail?

    Thank you!

    Hi Zohami,

    After you change the settings, the settings will be will be, to only do once

    Try several times, scan to see what works better settings for you.

    After you change the settings in the desktop shortcut, the settings will apply for digitization of the all-in-one touch pad with the same shortcut name.

    I hope this helps answer your question.

  • With the help of digital input for Boolean control?

    Hello!

    I have spent a lot of time to search but have not found a solution to this...

    I have LV 2015 with chassis NI 9188 and module NI 9425 DI.  Try to use the input signal to assign a State structure machine program and/or events in real time.  It would be acceptable to have an indicator show the status of the input line, since I can use it elsewhere with Value (Signaling).

    Please do not ask for the code - the problem is quite simple.  I just want to use the digital inputs to program control as a T/F.  I want just the program to analyze the State of the input and decisions - a bit like a PLC.

    All I seem to be able to extract is data of digital waveforms with a task DAQmx.

    It's not a trigger - I already use a trigger to start the analog acquisition.

    Formulate the problem in a simpler way...  What to do if you had a digital input module and you wanted to see the status of each input line in the form of a LED on your face in real time.  How would you do it?

    I really appreciate the help!

    greyhorn23 wrote:

    Formulate the problem in a simpler way...  What to do if you had a digital input module and you wanted to see the status of each input line in the form of a LED on your face in real time.  How would you do it?

    I would like to write what has been read to the Terminal.

    From what I can tell, you want to just read a single static value from your digital line.  You can then simply read the value of one and do some logic with her.

  • When usng Windows Fax and Scan, how can I scan a document of several pages to a single file or folder?

    I'm trying to analyze a statement of income, and when I scan a page, I don't seem to be able to the scanner in a single folder. Each page shows up as a separate item?

    I tried to download the HP software but it was rejected because the Windows Fax and Scan was already installed on my new PC.

    This seems rather odd.  Can you give us the complete error message without paraphrase?

    You should not delete Windows Fax and Scan in order to install the manufacturer's software.

    What version of Windows is installed?  32-bit or 64-bit?

    Assuming you have Windows 7, is it upgraded to Vista or come pre-installed with Windows 7 computer?

    Although I have not used, HP provides a 'printer Install Wizard"for Windows 7 and 8 which is supposed to help you obtain and install the appropriate--> http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-115766-2&cc=us&dlc=en&lc=en&os=4063&product=1146331&sw_lang= driver

  • REQUEST to remove the clause SSELECT

    My version of the database is oracle 12 c.

    I have a table named sql_test, it stores the name of the table and SQL used for this table.

    create table sql_test

    (

    table-name varchar2 (30),

    SQL clob,

    clob sql_no_slct

    );

    INSERT INTO (table_name, sql) sql_test values ('XYZ',' SELECT * () IN OF XYZ Z WHERE Z.ABC)

    SELECT PQR IRD A, PLS B

    (WHERE A.ID = B.ID AND B.STAGE = 209)');

    INSERT INTO (table_name, sql) sql_test values ('ABT',' SELECT * () IN OF ABT WHERE LDD)

    SELECT PQR IRD A, PLS B

    (WHERE A.ID = B.ID AND B.STAGE = 209)');

    commit;

    Now, I need to update the sql_no_clct column. This column value must come from a SQL column but the first part of the slect... Of... is deleted. It starts from after the WHERE clause.

    For example, for the first records table_name = "XYZ" update should be like this: -.

    Update sql_test

    set sql_no_slct ='Z.ABC IN (SELECT IRD OF the PQR, PLS B

    WHERE A.ID = B.ID AND B.STAGE = 209)';

    commit;

    In the above example, I have here the query update with manual changes. In fact, I have several lines in the table so I prefer to take the value of the SQL column and handle to remove the first select... Of... Where the query and update records.

    Please some advice/help on this.

    Thank you.

    When you have an SQL statement that uses different 'values', but are essentially is the same SQL statement, then bind using variable avoids having to one) hard to analyze the statement each time to generate a new execution plan and b) use essential internal resources such as the shared pool to store multiple copies of, what is essentially, the same statement.

    Don't not using bind variables can have an impact on the performance of the query itself as well as the performance of the server for everyone use it somewhere else.

    When you write a SQL, PL/SQL statement, then the values you pass are automatically transformed into bind variable (PL/SQL is smart like that).  When dynamically SQL statements you issue yourself, you must always aim to use bind variables in order to change the values, rather than hard-coding values in the statement.

    for example if your SQL string is:

    "Select empno, comm, sal from emp where empno = 7788'."

    the "7788' so is this value.

    To run this string dynamically using bind variables, you would do something (in PL/SQL) as:

    run immediately "select empno, comm, sal from emp where empno =: 1' using 7788;"

    So, if you need to use a different value, you go just this different value in, but the SQL statement in the shared pool is identical, with the same execution plan and can be soft parsed (rather than hard analysis and put a new entry in the shared pool).

  • DBMS_STATS, unexpected behavior?

    Hello

    I was doing an exercise to create migrated/chained rows for a table (ROW_CHAIN_MIG). [using 11.2.0.1]

    After inserting/updating of the lines in the table, I tried collecting statistics for the table to check the USER_TABLES. CHAIN_CNT

    using the DBMS_STATS. GATHER_TABLE_STATS as:

    ----------------------------

    SQL > exec dbms_stats.gather_table_stats (-)

    > ownname = > 'SYS '.

    (> tabname = > 'ROW_CHAIN_MIG');

    SQL > select chain_cnt from user_tables where table_name = 'ROW_CHAIN_MIG ';

    CHAIN_CNT

    ----------

    0

    ----------------------------

    But he returns to zero count for the chained rows.

    When I did an ANALYZE TABLE... CALCULATE STATISTICS, he returned 3 as number of chained rows

    ----------------------------

    SQL > analyze table row_chain_mig where compute statistics;

    SQL > select chain_cnt from user_tables where table_name = 'ROW_CHAIN_MIG ';

    CHAIN_CNT

    ----------

    3

    ----------------------------

    Is this expected behavior of the DBMS_STATS. GATHER_TABLE_STATS? (i.e. it does not collect statistics CHAIN_CNT)

    My understanding is DBMS_STATS to collect all the statistics gathered by ANALYZE & vbLf & stats no longer needed by the CBO.

    OR was it there something missing from the DBMS_STATS this stat (CHAIN_CNT) has been missed.

    TIA.

    The analyze command should not be used to collect optimizer statistics, but, as you noted, it will capture the chain_cnt (which does not differentiate between migrated lines, lines chained and lines chained 'intra-block' (i.e. the lines containing more than 255 columns) while dbms_stats.does do not attempt to capture a chain_cnt.) It is the expected behavior.

    Unfortunately (or not, depending on your point of view) the optimizer will use the chain_cnt in his calculations, if you use analyze to set.  Of course, there are other differences between the dbms_stats and analyze versions of stats - so plans can change between the two even if you have not all chained rows.

    See: analyse dbms_stats chain_cnt | Search results | Oracle scratchpad for a few comments - you need to follow a few links in the result list.

    Concerning

    Jonathan Lewis

  • java.sql.SQLSyntaxErrorException: ORA-00904: invalid identifier

    Hi all

    IM using JDeveloper 11.1.1.6.0.

    Here, I said method in the main class, which returns an object of type of connection reference.

    When I run the app I type 'ksh' in the fields and click on submit.

    It shows the following error, java.sql.SQLException: ORA-00904: "KSH": invalid identifier

    {code}

    public static list < privileges > getUserPrivileges (DBTransaction dbt, object userId)

    {

    String sql = "SELECT m.menu_code" +.

    "OF sec_menus m p sec_menu_privileges JOIN +.

    "WE (m.menu_code = p.menu_code '+)"

    "(ET m.app_id = p.app_id)" + "

    "JOIN sec_user_app_groups g +.

    "WE (g.GROUP_ID = p.GROUP_ID '+)"

    "AND p.app_id = g.app_id" +.

    "AND user_id =" + userId + "."

    "             )";

    PreparedStatement stat = null;

    ResultSet rs = null;

    List of privileges <>privilegesList = new ArrayList < privileges > ();

    MenuCode string = "";

    Try

    {

    = stat dbt.createPreparedStatement (sql, 1);

    RS = stat.executeQuery ();

    While (RS. Next())

    {

    menuCode = rs.getString (1);

    }

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    }

    Finally

    {

    closeStatement (stat);

    closeResultSet (SR);

    }

    Return privilegesList;

    }

    Public Shared Sub closeStatement (stat of statement)

    {

    Try

    {

    STAT. Close();

    }

    catch (SQLException e)

    {

    }

    }

    public static void closeResultSet (ResultSet rs)

    {

    Try

    {

    RS. Close();

    }

    catch (SQLException e)

    {

    }

    }

    ------------

    CREATE TABLE SEC_USERS

    (

    USER_ID VARCHAR2 (10),

    USER_NAME VARCHAR2 (50).

    PASSWORD VARCHAR2 (300)

    )

    Insert into SEC_USERS

    (USER_ID, USER_NAME, USER_FIRST_NAME, USER_LAST_NAME, PASSWORD)

    Values

    ('ksh', 'ksh', 'test');

    COMMIT;

    -----------------------

    Error:

    java.sql.SQLSyntaxErrorException: ORA-00904: "KSH": invalid identifier

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:90)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < ActionListenerImpl > < processAction > java.lang.NullPointerException

    javax.faces.el.EvaluationException: java.lang.NullPointerException

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.lang.NullPointerException

    dry. ControllerUtil.closeResultSet (ControllerUtil.java:136)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:118)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    ... more than 54

    {\code}

    Thanks in advance

    The particular error that causes the ORA-00904 exception, it's that you concatenate a string literal in the SQL statement without enclosing the literal with quotes. Replace the line

    "AND user_id =" + userId + "."

    with

    "AND user_id = '" + Userid + "'" +.

    Although it will work in this way, the concatenation of literal values variable to a SQL statement is a very wrong approach. The right approach is to use a placeholder variable (for example?) in the SQL statement and to link it with the necessary value after analysis of the declaration and before running. In this way, you will be able to analyze the statement once and execute it several times with different values without new analysis view the statement. Also, the SQL engine will be able to use its SQL cache if you try to analyze the statement even once again, which will significantly improve performance. However, if you concatenate variable literal value to education, engine SQL won't recognize the statement as one already analyzed, it will not use its cache and it will analyze the statement again from scratch. From a point of view shortly, the best approach is as follows:

    "" AND user_id =? ".

    and then

    = stat dbt.createPreparedStatement (sql, 1);

    stat.setString (1, userId); Don't forget to change the username to a string type in the method declaration

    RS = stat.executeQuery ();

    There are other problems in your code. First of all, the invocation closeResultSet (rs) after closeStatement (stat) is erroneous and obsolete, because when you close a SQLStatement instance it automatically closes all its result sets. Secondly, in the finally block you call closeStatement (stat), but there is no guarantee that stat variable is not null. For example, the variable stat can be null if the SQLStatement instance has not been established successfully in the try section above.

    Dimitar

  • What is the right time to use the index with force?

    I have an EMPLOYEE table.  I join with the ROLE, and it has only about 200 distinct values on column EMPLOYEE. EMPLOYEE_TYPE_ID.

    Select / * + INDEX (an i_employee_type_id) * / b.SID as EMP_NAME, b.role_cd in the ROLE

    Of

    EMPLOYEE,

    B ROLE

    where

    a.EMPLOYEE_TYPE_ID = b.EMPLOYEE_TYPE_ID

    AND a.EFFECTIVE_END_TS > = systimestamp;

    Is it a good idea to use the index?  .. Or let the full table scan.

    SQL > select distinct EMPLOYEE_TYPE_ID of the EMPLOYEE;

    238 selected lines.

    If you don't know it will help not to use.

    Personally, I found several SQLs with index finger tips (written by programmers thinking index access is ALWAYS GOOD) end up harming performance. Oracle made a reading diluvium full table scan, single index reads as follows, according to the % of the returned array it is actually faster to do a full table scan. The optimizer did a great job to determine this.

    If you think there are cardinality estimation problems, and the optimizer expects a large number of lines when there are actually few being returned, in THIS case a suspicion was justified. Even so, in this case, I prefer that oracle manages the flag itself.

    You can do this by running the SQL tuning advisor. In fact, it will trigger the optimizer checks that the estimates are turned off and it will create a profile for you. (A profile is actually a stored set of advice that set the execution plan for you). If at the point where the underlying data changes significantly and profile ends up hurting performance, you do not need to touch the code like you would with manually added notes, you can just disable or delete the profile and let the optimizer re - analyze the statement.

    Concerning

    EDIT: In case of small tables, it is preferable to just cache the whole table in the POOL to KEEP and let oracle scan if necessary.

    Edit2: With the notable exception of index fast full scans, which are diluvium index readings. But they are only relevant when the request is quite satisfied by the index and has no need to visit the table.

  • user calls / running

    Please explain:

    What is the difference between: user calls and runs in
    Profile load AWR:

    Calls from users: 1 373,51-0,80
    Runs: 4.98 8 558,06

    If I understand correctly, that calls for user is: the number of DML (insert, update, Delete and Select) slider: parse, execute, extract,
    and run?

    Why running > calls for user?

    Or maybe a procedure from pl/sql package can run SQL much? How to explain this?

    Published by: user11977218 on November 8, 2012 20:08

    The user calls are client API calls managed by the client connected to the database session. For example if the BEAK is used you have login, analysis, fetch or execute calls.

    You can analyze a statement once and execute more than once just by changing the values of variables bind (it is recommended to reuse internal sliders to avoid overhead analysis): this is detailed in http://www.oracle.com/technetwork/database/performance/designing-applications-for-performa-131870.pdf "designing applications for performance and scalability.

    Edited by: P. Forstmann Nov. 8. 2012 19:22

  • From LOV of 'all_procedures '.

    Hello

    We have a package containing functions that make up some DB fields. (for example f_get_Description, with ID);

    Now, we got a form where users can create their own model, by selecting a number of areas.
    When they choose the "Description" field and save this template, the function is not automatically linked of course, so I added an extra field, 'Function', where they can select one of the functions (from packaging) that they related to this field.

    Rather than create a table that lists all of these functions, I did a view (in the designer, not in the database itself, not sure if that would be necessary?), which lists all the functions of the packaging.

    Query of the view is like this:



    SELECT p.procedure_name
    Of all_procedures p
    JOIN object o ON (o.owner = p.owner
    AND o.object_name = p.object_name AND o.object_type = 'PACKAGE')
    WHERE p.object_name = 'PCK_TMOF' AND p.procedure_name <>'INIT '.



    Now, I made this point of view in the designer, then went to the form/module and created a new LOV from this point of view. But when I want to compile, it is unsuccessful.
    I tried to compile forms rather (to see what exactly caused its failure), and there was this message:
    «FRM-30064: impossible to analyze the statement SELECT VTC.» P_PROCEDURE_NAME P_PROCEDURE_NAME
    OF VW_TMOF_FUNC VTC.
    ORA-00904: "VTC". "" "P_PROCEDURE_NAME": invalid identifier.

    Did I forget something, or is it simply impossible to do a SELECT from table 'all_procedures' (and object) in the designer?

    Thank you.

    Welcome them

    Published by: user11236545 on July 13, 2012 11:02

    You need to generate the view inside the database. When the designer compiles the form, it does on a database, so used inside the form elements must be inserted into the database.

    Kind regards

    Mark

  • explain the plan and so on

    Hello world


    could someone please provide me with details of explained the plan and I would appreciate some related details explain plan, trace and tkprof

    Thank you
    Shareef

    Hello

    PLAN of EXPLAINING is an Oracle utility that analyzes a statement and shows the expected execution plan. It may be different from the implementation plan real for a number of reasons.

    Extended SQL trace (10046 event) is a way to gather advanced diagnostic information. There are different levels, at levels 8 and 12 provide the greatest level of detail (you will be able to see the events of waiting and the bind variable values).

    TKProf is a utility that processes the raw trace files and makes shaped the output in a more readable way. However, some experts prefer to work with trace files "gross" - they are not so difficult to read, especially if you get some practice.

    There are other events of tracing: 10053 allows you to see what is happening inside the Oracle optimizer, 10104 allows to see the stats of hash etc join.

    Best regards
    Nikolai

  • Performance problem: select *.

    Dear experts,

    We organize that regularly demand it creates (automatically deleted after a certain time) views. These views Where created from "views of example" by omitting unused columns.
    Let's say we have 10 table envolved in this view, columns of 50 to 100 each. So, what's the least expensive? Reduce the number of columns involved in joins with nested loops, so Ford to analyze the statement again and again, leaving the number of columns, use bind variables or reducing analysis?

    The analysis takes 70 seconds.

    Best regards

    Matthias

    The plan is:

    Plan
    INSTRUCTION SELECT ALL_ROWS cost: 35 bytes: 1.175 cardinality: 1
    ORDER of SORTING 86 BY cost: 35 bytes: 1.175 cardinality: 1
    Cost EXTERNAL 85 NESTED LOOPS: 34 bytes: 1.175 cardinality: 1
    Cost EXTERNAL 76 NESTED LOOPS: 30 bytes: 1.101 cardinality: 1
    Cost EXTERNAL LOOPS IMBRIQUEES 74: 29 bytes: 1.096 cardinality: 1
    Cost EXTERNAL 72 NESTED LOOPS: 28 bytes: 1,091 cardinality: 1
    Cost EXTERNAL 70 NESTED LOOPS: 27 bytes: 1,086 cardinality: 1
    Cost EXTERNAL 68 NESTED LOOPS: 26 bytes: 1.081 cardinality: 1
    Cost EXTERNAL 66 NESTED LOOPS: 25 bytes: 1.076 cardinality: 1
    Cost EXTERNAL LOOPS IMBRIQUEES 64: 24 bytes: 1,071 cardinality: 1
    Cost of 62 LOOPS IMBRIQUEES: 23 bytes: 1,066 cardinality: 1
    Cost 59 NESTED LOOPS: 22 bytes: 1,058 cardinality: 1
    Cost of 56 LOOPS IMBRIQUEES: 21 bytes: 1,044 cardinality: 1
    Cost of LOOPS IMBRIQUEES 53: 20 bytes: 1,027 cardinality: 1
    Cost of 50 LOOPS IMBRIQUEES: 19 bytes: 995 cardinality: 1
    Cost of LOOPS IMBRIQUEES 47: 18 bytes: 978 cardinality: 1
    Cost of LOOPS IMBRIQUEES 44: 17 bytes: 969 cardinality: 1
    Cost of 41 LOOPS IMBRIQUEES: cardinality of 16 bytes: 952: 1
    Cost of 38 IMBRIQUEES LOOPS: 15 bytes: 935 cardinality: 1
    Cost 35 NESTED LOOPS: 14 bytes: 858 cardinality: 1
    Cost 32 NESTED LOOPS: cardinality 13 bytes: 850: 1
    Cost 29 NESTED LOOPS: 12 bytes: 833 cardinality: 1
    Cost of 26 LOOPS IMBRIQUEES: 11 bytes: 824 cardinality: 1
    Cost EXTERNAL 23 NESTED LOOPS: 10 bytes: 724 cardinality: 1
    Cost 20 NESTED LOOPS: 8 bytes: 693 cardinality: 1
    Cost 17 NESTED LOOPS: cardinality of 7 bytes: 676: 1
    Cost 14 NESTED LOOPS: cardinality of 6 bytes: 659: 1
    Cost 11 NESTED LOOPS: cardinality of 5 bytes: 638: 1
    Cost 9 NESTED LOOPS: 5 bytes: 634 cardinality: 1
    7 LOOPS IMBRIQUEES cost: 5. cardinality bytes: 627: 1
    Cost of 5 LOOPS IMBRIQUEES: 5 bytes: 621 cardinality: 1
    3 INLIST ITERATOR
    TABLE 2 ACCESS BY INDEX ROWID TABLE SCDAT. TRANSMAIN cost: 5 bytes: 615 cardinality: 1
    1 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRANSMAIN cost: cardinality 4: 2
    4 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRASTATTEXTS cost: cardinality of 0 bytes: 6: 1
    6 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRASTATTEXTS cost: cardinality of 0 bytes: 6: 1
    8 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRCELMTEXTS cost: cardinality of 0 bytes: 7: 1
    10 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRCBUS cost: cardinality of 0 bytes: 4: 1
    TABLE ACCESS BY INDEX ROWID 13 TABLE SCDAT. TRCBUSTEXTS cost: 1 bytes: cardinality 1: 21
    12 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRCBUSTEXTS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 16 TABLE SCDAT. TRCELM cost: 1 bytes: cardinality 1: 17
    15 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRCELM cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 19 TABLE SCDAT. TRCINT cost: 1 bytes: cardinality 1: 17
    18 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRCINT cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 22 TABLE SCDAT. Cost TRANSFWD: 02:00 cardinality: 1
    21 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_TRANSFWD cost: cardinality 1: 1
    TABLE ACCESS BY INDEX ROWID 25 TABLE SCDAT. FXFORWLEGS cost: 1 bytes: cardinality 1: 100
    24 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_FXFORWLEGS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 28 TABLE SCDAT. FXFORWARDS cost: 1 bytes: cardinality 1: 9
    27 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_FXFORWARDS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 31 TABLE SCDAT. CURCROSSES cost: 1 bytes: cardinality 1: 17
    30 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_CURCROSSES cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 34 TABLE SCDAT. Cost of CURRENCIES: 1 bytes: cardinality 8: 1
    33 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_CURRENCIES cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 37 TABLE SCDAT. M_SECURITIES cost: 1 bytes: cardinality 1: 77
    36 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_M_SECURITIES cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 40 TABLE SCDAT. M_PARTNERS cost: 1 bytes: cardinality 1: 17
    39. THE INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_M_PARTNERS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 43 TABLE SCDAT. M_PARTNERS cost: 1 bytes: cardinality 1: 17
    42 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_M_PARTNERS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 46 TABLE SCDAT. M_SECURITIES cost: 1 bytes: cardinality 1: 9
    45 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_M_SECURITIES cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 49 TABLE SCDAT. M_PARTNERS cost: 1 bytes: cardinality 1: 17
    48 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_M_PARTNERS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 52 TABLE SCDAT. Cost of USERS: 1 bytes: cardinality 1: 32
    51. THE INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_USERS cost: cardinality 0: 1
    TABLE ACCESS BY INDEX ROWID 55 TABLE SCDAT. Cost of PORTFOLIOS: bytes 1: cardinality 1: 17
    54. THE INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_PORTFOLIOS cost: cardinality 0: 1
    58 TABLE ACCESS BY INDEX ROWID TABLE SCDAT. Cost of TRADE: 1 bytes: cardinality 1: 14
    57. THE INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_PORTGROUPS cost: cardinality 0: 1
    61 TABLE ACCESS BY INDEX ROWID TABLE SCDAT. Cost of SCRIPT: 1 bytes: cardinality 8: 1
    60 INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_CUSTODIES cost: cardinality 0: 1
    63 INDEX RANGE SCAN INDEX SCDAT. R_D_SECURITIES_SECIK cost: 1 bytes: cardinality 5: 1
    65 INDEX RANGE SCAN INDEX SCDAT. R_D_PARTNERS_PARIK cost: 1 bytes: cardinality 15: 3
    67 INDEX RANGE SCAN INDEX SCDAT. R_D_PARTNERS_PARIK cost: 1 bytes: cardinality 10: 2
    69 INDEX RANGE SCAN INDEX SCDAT. R_D_SECURITIES_SECIK cost: 1 bytes: cardinality 5: 1
    71 INDEX RANGE SCAN INDEX SCDAT. R_D_PARTNERS_PARIK cost: 1 bytes: cardinality 10: 2
    73 INDEX RANGE SCAN INDEX SCDAT. R_D_PARTNERS_PARIK cost: 1 bytes: cardinality 10: 2
    75 INDEX RANGE SCAN INDEX SCDAT. R_D_SECURITIES_SECIK cost: 1 bytes: cardinality 5: 1
    84 SEE PUSHED PREDICATE VIEW SCDAT. A_TRANS_COSTS cost: 4 bytes: 74 cardinality: 1
    FILTER 83
    82 NESTED LOOPS
    Cost 80 NESTED LOOPS: cardinality of 4 bytes: 87: 1
    78 TABLE ACCESS BY INDEX ROWID TABLE SCDAT. Cost TRANSCOSTTAX: 03:00 cardinality: 1
    77 INDEX RANGE SCAN (SINGLE) SCDAT INDEX. P_TRANSCOSTTAX cost: cardinality 2: 1
    79. THE INDEX UNIQUE INDEX (SINGLE) SCDAT SCAN. P_COSTS cost: cardinality 0: 1
    81 TABLE ACCESS BY INDEX ROWID TABLE SCDAT. Cost: 1 bytes: cardinality 1: 52

    908233 wrote:

    I wonder about the 'degree of equality' leeds cursor re - use. Failing to columns there one any influence on cursor re - use?

    Yes. The client code (in this case happens to PL/SQL) creates 3 sliders on the same table, using 3 different projections of SQL. This translates into 3 different cursors in the pool shared SQL.

    SQL> declare
      2          cursor c1 is select * from emp;
      3          cursor c2 is select ename from emp;
      4          cursor c3 is select empno from emp;
      5  begin
      6          open c1;
      7          close c1;
      8
      9          open c2;
     10          close c2;
     11
     12          open c3;
     13          close c3;
     14  end;
     15  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> col sql_text format a25
    SQL> select
      2          rownum,
      3          sql_text
      4  from       v$sqlarea
      5  where      upper(sql_text) like 'SELECT%FROM EMP%'
      6  and        sql_text not like '%rownum%'
      7  /
    
        ROWNUM SQL_TEXT
    ---------- -------------------------
             1 SELECT EMPNO FROM EMP
             2 SELECT * FROM EMP
             3 SELECT ENAME FROM EMP
    
    SQL> 
    

    By failing to columns has been done to improve performance, because the developers say.

    A correct statement. At a minimum, this decreases the amount of data that the SQL cursor should send to the client. At best, it provides an implementation plan still more optimal that requires less i/o.

Maybe you are looking for