View does not use index Mview underlying but mview uses indexes

Hello

I faced a situation where, while querying data to display based on mview does not use the index, but when we wonder of mview it uses index and produce quick results.

Here are the details:


querying from view: (completes in more than a minute even after passing hint)
================================
explain plan for select /*+ index(  ITGI_CREDITOR_LEDGER_CMV ITGI_CREDITOR_LEDGER_INDX) */ * from CR_LEDGER_REP_V where vendor_id='1474911';

Plan hash value: 463951623

---------------------------------------------------------------------------------------------------
| Id  | Operation              | Name                     | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT       |                          |  9056K|  5648M| 97644   (1)| 00:00:04 |
|*  1 |  VIEW                  | CR_LEDGER_REP_V          |  9056K|  5648M| 97644   (1)| 00:00:04 |
|   2 |   COUNT                |                          |       |       |            |          |
|   3 |    MAT_VIEW ACCESS FULL| ITGI_CREDITOR_LEDGER_CMV |  9056K|  2159M| 97644   (1)| 00:00:04 |
---------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   1 - filter("VENDOR_ID"=1474911)



Querying from mview: (completes within a second)
==============================

explain plan for select /*+ index(  ITGI_CREDITOR_LEDGER_CMV ITGI_CREDITOR_LEDGER_INDX) */ * from ITGI_CREDITOR_LEDGER_CMV where vendor_id='1474911';


Plan hash value: 1726512073

--------------------------------------------------------------------------------------------------------------------
| Id  | Operation                              | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                       |                           |    21 |  5880 |    21   (0)| 00:00:01 |
|   1 |  MAT_VIEW ACCESS BY INDEX ROWID BATCHED| ITGI_CREDITOR_LEDGER_CMV  |    21 |  5880 |    21   (0)| 00:00:01 |
|*  2 |   INDEX RANGE SCAN                     | ITGI_CREDITOR_LEDGER_INDX |    22 |       |     3   (0)| 00:00:01 |
--------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - access("VENDOR_ID"=1474911)



View DDL
========================

CREATE OR REPLACE FORCE VIEW SANJAY.CR_LEDGER_REP_V
(
   QRY,
   SR_NO,
   VENDOR_ID,
   VENDOR_TYPE,
   VENDOR_NUMBER,
   VENDOR_NAME,
   VENDOR_SITE_ID,
   VENDOR_SITE_CODE,
   GL_DATE,
   ACCOUNTING_DATE,
   PO,
   INVOICE_TYPE,
   AP_INVOICE_NO,
   INVOICE_DOC_CAT,
   AP_INVOICE_DATE,
   INVOICE_VOUCHER_NO,
   PAYMENT_VOUCHER_NO,
   CHQ_NO,
   DESCRIPTION,
   PAYMENT_DATE,
   ACC_CODE,
   PAYMENT_METHOD,
   CURR_CODE,
   DEBIT,
   CREDIT
)
AS
   SELECT qry,
          ROWNUM srn,
          vendor_id,
          vendor_type_lookup_code,
          vendor_no,
          vendor_name,
          vendor_site_id,
          vendor_site_code,
          gl_date,
          accounting_date,
          po_distribution_id,
          invoice_type_lookup_code,
          invoice_num,
          doc_category_code,
          invoice_date,
          inv_voucher_num,
          payment_num,
          check_number,
          description,
          pay_accounting_date,
          account_code,
          payment_method_code,
          invoice_currency_code,
          debit,
          credit
     FROM sanjay.itgi_creditor_ledger_cmv;



The plan does not change even if I do not use advice.

Although I said developer to use mview directly, but I did not understand this behavior.

DB version: 12.1

OPERATING SYSTEM: AIX 6.1

Kind regards

Gerard

Note that the query on the view plan is only to apply your filter predicates on line 1, rather than against the mview in line 3. Line 2 said you that enforcement must correspond to a kind of County before it can filter which is due to the virtual rownum in your point of view.

You need this column? In my opinion, it's meaningless. Remove the column from the view would mean that the view doesn't have to be assessed in its entirety (if not, how it will calculate rownums?) before allowing you to filter. You asked the developer to implement the work is likely to come with a different value of sr_no (if the developer is even using it?) than what he would have obtained by using the view.

The column tries to catch a unique key for the view? Are you aware that rownum values can and will change between requests to the same table as the order lines are selected is not guaranteed. If the column is actually useful (and it is correct to calculate at this level) you then could it sense it is calculated inside the mview? This means that you can only refresh the mview completely and rownum values can (and will) only change on refresh.

Tags: Database

Similar Questions

  • error in the table of boat or view does not exist, but on query sql prompt works

    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    The below package compiled in the use of the system and trying some queries against the view v$ session_wait however getting error below.

    PACKAGE OF THE BODY SYSTEM. PK_DB_ALERT
    Online: 212
    PL/SQL: ORA-00942: table or view does not exist

    I can run the same query mentioned below sql prompt the user of the system, and it works very well however he dislikes package, please advice, thank you in advance.


    SELECT SID, seq #, event, wait_time
    V $ session_wait
    WHERE event NOT LIKE ' SQL * Net %' AND wait_time <>0
    ORDER BY 2

    DDD says:
    Hello
    Can someone help me understand the error ORA-00942: table or view does not exist when compiling the package on Oracle 9.2.0.4.0

    That means package owner is granted select view not directly, but through roles. However, the roles are ignored by stored rights define or packages stored procedures or functions/triggers... You must grant select owner directly the view package.

    SY.

    Published by: Solomon Yakobson, January 21, 2010 04:06

  • Send an email using mail my signature seems to drop before my email is considered by my beneficiaries. This does not happen all the time but often. Is anyone else know / encountered this problem? If, kind of help to rectify this please.

    Hi, when you send an email using the mail my signature seems to drop before my email is considered by my beneficiaries. This does not happen all the time but often. Is anyone else know / encountered this problem? If so help to rectify this would be greatly appreciated please. Thank you

    It is up to the recipient how their e-mail is displayed. For example, if you include html or an image in your email the recipient may set up their customer e-mail to not display html or images. You have no control over the way a recipient chooses configure their e-mail client.

  • dbms_mview. Refresh giving "ORA-00942: table or view does not exist.

    Hi all

    I am trying to update the MV using the dbms_mview package but its gives me the following error.

    "ORA-00942: table or view does not exist.

    I have a MV named TESTMV in my environment. I'm running the following command,

    Start

    dbms_mview. Refresh('TESTMV,'C');

    end;

    ORA-00942: table or view does not exist

    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2545

    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2751

    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2720

    ORA-06512: at line 3 level

    Any suggestions would be much appreciated.

    See you soon,.

    ATOM

    This could be because the underlying source objects are now started to change. Is there any night script that changes or modifies the table of the source? If Yes, this means you will have to recompile the mview before running the update. You can add this line in front of your refresh command.

    You won't see this problem in your new instance if you do not change your source object. It could very well be someone changed your source object only once and you won't have the same problem in the future.

    Please mark this thread as answered if you think that the problem is resolved.

  • ORA-00942 Table or view does not exist when you run a procedure

    Hello

    I have a procedure called FND_GLOBAL under a scheme called APPS and I have granted execute privilege on this procedure to another schema called CIVICA

    However when I run the procedure of the CIVIC scheme I get

    ORA-00942 Table or view does not exist
    ORA-06512 at APPS. FND_CORE_LOG, line 25
    ORA-06512 at APPS. FND_GLOBAL, line 104
    ORA-06512 at APPS. FND_GLOBAL, line 1620
    ORA-06512 at APPS. FND_GLOBAL, line 2171
    ORA-06512 at APPS. FND_GLOBAL, line 2313

    I'm guessing that some of the sub components must also be given to the CIVICA?

    How does work to define rights? Subcomponents should not also be accessible via this procedure being owner / defined by Apps but executed by CIVICA?

    Jim

    Hi, Jim,.

    Jim Thompson wrote:
    Sorry Frank - in order to clarify

    I wanted to CIVICA to be able to execute procedures and functions in applications. Package FND_GLOBAL

    However this package has been defined with the rights of the plaintiff - CIVICA must be explicitly object privilege to all objects used by the package (or packages of sub that he calls, that there are some - it is really a case to view the hierarchy of this package and ensure that each object is explicitly given to CIVICA)

    What do you mean by "explicitly granted to CIVICA"? ". Do you mean granted directly to CIVICA, and not a role that CIVICA has?
    Once more, the privileges granted to the roles are good enough for packages AUTHID CURRENT_USER (also known as the "rights of the applicant"). The only time where you have to say "GRANT."... CIVICA"is when granting a role to the CIVICA; all other privileges may be granted to this role, or some other roles that are granted to the role that CIVICA has.
    Mnight want to create a role that has all the necessary privileges to use the package and grant this role to users like CIVICA.

    ... So, it seems as if I have no choice but to get my pen and paper and trace through the nested packages and objects called by FND_GLOBAL and to ensure that they are explicitly granted to CIVICA! I hate days like these!

    CIVIA want to have all the privileges that has APPS? You can query dba_tab_privs (and oither views in the data dictionary) to find (and write statements of "GRANT... ("for) all these privileges.

    You can also create another packet (let's call it FND_GLOBAL_I) in applications with rights of the author. Specification of package would be identical to the specification of FND_GLOBAL package, except that it says FMD_GLOBAL_I instead of FND_GLOBAL. The FND_GLOBAL_I package body are very similar to the spec. The body of each procedure or function would simply be a call to the corresponding functuion in FND_GLOBAL. Since FND_GLOBAL has hundreds of procedures, it will be a lot of work, but perhaps less work than to find exactly what privileges are needed.

  • OBIEE 11 g: odd error in report ORA-00942: table or view does not exist

    Hi gurus,

    I get the following error if I pull one or more columns in a table of facts

    Error details

    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle error code: 942, message: ORA-00942: table or view does not exist to the call of the OCIStmtExecute OIC. [nQSError: 17010] Prepare the SQL statement failed. (HY000)

    SQL published: SELECT 0 s_0, 'XXXXXX '. "" "" Fact_FCT_REG_XXXXXXX_XXXXXX '. "" S_1 N_ACCT_BALANCE""XXXXXX"FETCH FIRST 4000001 LINES ONLY

    Is the weird part, when I take the physical sql and run it against the same user account. It is fetching result. He also works in a different environment, but throwing error in our test environment, both environments are well established for a long time to return, and many projects are developed by many different groups.

    I really need expertise help to break this question. Given that I do not get no idea why his mistake to throw into the application layer?

    Any help will be much appreciated.

    Thanks in advance

    Concerning

    Nathalie

    Save nqquery.log which connection pool is used to send the query to the DB. Then check the configuration of the Connection Pool to see what user credentials are used to connect to the database, to which database (DSN), and if the table owner prefix is added to the SQL.

    ORA-00942 can often be due to the existing table, but the user trying to access him confer no rights. Rather than say 'no permission', Oracle will say 'does not exist.

  • Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    Mr President.

    jasper test.gif

    Me trying to run a report of jasper in my adf application but to get the message

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    net.sf.jasperreports.engine.JRException: the SQL statement execution error for: empReport

    at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:240)

    at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1114)

    at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:691)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1314)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:931)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:873)

    at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:87)

    at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:457)

    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:864)

    to the view. JasperBean.runReport (JasperBean.java:90)

    to the view. JasperBean.runReportAction (JasperBean.java:39)

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

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

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

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

    at com.sun.el.parser.AstValue.invoke(AstValue.java:254)

    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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:460)

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

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

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

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

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

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

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

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

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

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

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

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

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

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

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

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

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

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

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

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:141)

    at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:233)

    ... more than 66

    < 14 March 2015 13:13:20 PKT > < error > < javax.enterprise.resource.webcontainer.jsf.application > < BEA-000000 > < error rendered view [/Welcome]

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    Truncated. check the log file full stacktrace

    >

    < oracle.adf.controller > < AdfcExceptionHandler > < handleException > < NO_EXCEPTION_HANDLER >

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

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

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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:460)

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

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

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

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

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

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

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

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

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

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

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

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

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

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

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

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

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

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

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

    < oracle.adf.view > < RichExceptionHandler > < _logUnhandledException > < ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase RENDER_RESPONSE 6 >

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

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

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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:460)

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

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

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

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

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

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

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

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

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

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

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

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

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

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

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

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

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

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

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

    [< 14 March 2015 13:13:20 PKT > < error > < HTTP > < BEA-101020 > < [ServletContext@285463113[app:JasperTest module: JasperTest-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    Truncated. check the log file full stacktrace

    >

    < 14 March 2015 13:13:20 PKT > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" in the module "Module-FMWDFW" with severity "Notice" on the server "DefaultServer" released March 14, 2015 13:13:20 PKT details. Notification:

    WatchRuleType: Journal

    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))

    [WatchData: DATE = March 14, 2015 13:13:20 PKT SERVER = DefaultServer MESSAGE = [ServletContext@285463113[app:JasperTest module: JasperTest-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

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

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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:460)

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

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

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

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

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

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

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

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

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

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

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

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

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

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

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

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

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

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

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

    Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '6' for queue: MSGID "(self-adjusting) weblogic.kernel.Default" = BEA - 101020 MACHINE = TANVIR-PC TXID = the CONTEXTID = 9e95b0a0-9417-4bdd-a665-16c85bcbc70c-00000094 TIMESTAMP = 1426320800208

    WatchAlarmType: AutomaticReset

    WatchAlarmResetPeriod: 30000

    >

    < oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl > < DiagnosticsDataExtractorImpl > < createADRIncident > < incident created 56 to key problem "DFW-99998 [java.lang.IllegalStateException] [oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView] [JasperTest]" >

    My code is

    JSP page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Welcome.jsf" id="d1">
            <af:messages id="m1"/>
            <af:form id="f1">
                <af:button text="Run Report" id="b1" partialSubmit="false" action="#{Jasper.runReportAction}"/>
                <af:table value="#{bindings.EmpView1.collectionModel}" var="row" rows="#{bindings.EmpView1.rangeSize}"
                          emptyText="#{bindings.EmpView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          rowBandingInterval="0" selectedRowKeys="#{bindings.EmpView1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.EmpView1.collectionModel.makeCurrent}" rowSelection="single"
                          fetchSize="#{bindings.EmpView1.rangeSize}" id="t1">
                    <af:column headerText="#{bindings.EmpView1.hints.EmpId.label}" id="c1">
                        <af:outputText value="#{row.EmpId}" shortDesc="#{bindings.EmpView1.hints.EmpId.tooltip}" id="ot1"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.PhoneNo.label}" id="c2">
                        <af:outputText value="#{row.PhoneNo}" shortDesc="#{bindings.EmpView1.hints.PhoneNo.tooltip}"
                                       id="ot2"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.Desig.label}" id="c3">
                        <af:outputText value="#{row.Desig}" shortDesc="#{bindings.EmpView1.hints.Desig.tooltip}" id="ot3"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.LName.label}" id="c4">
                        <af:outputText value="#{row.LName}" shortDesc="#{bindings.EmpView1.hints.LName.tooltip}" id="ot4"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.MName.label}" id="c5">
                        <af:outputText value="#{row.MName}" shortDesc="#{bindings.EmpView1.hints.MName.tooltip}" id="ot5"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.FName.label}" id="c6">
                        <af:outputText value="#{row.FName}" shortDesc="#{bindings.EmpView1.hints.FName.tooltip}" id="ot6"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.BankAc.label}" id="c7">
                        <af:outputText value="#{row.BankAc}" shortDesc="#{bindings.EmpView1.hints.BankAc.tooltip}"
                                       id="ot7"/>
                    </af:column>
                </af:table>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:preferred-managed-bean-name:Jasper-->
    </f:view>
    

    report code

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="empReport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b049c1d2-c175-4a8b-b9af-65bcdc99a573">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="0"/>
      <queryString>
      <![CDATA[SELECT
         *
    FROM
         "SCHOOL"."EMP" EMP]]>
      </queryString>
      <field name="EMP_ID" class="java.lang.String"/>
      <field name="PHONE_NO" class="java.lang.String"/>
      <field name="DESIG" class="java.lang.String"/>
      <field name="L_NAME" class="java.lang.String"/>
      <field name="M_NAME" class="java.lang.String"/>
      <field name="F_NAME" class="java.lang.String"/>
      <field name="BANK_AC" class="java.lang.String"/>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="79" splitType="Stretch"/>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="61" splitType="Stretch">
      <staticText>
      <reportElement x="218" y="2" width="100" height="20" uuid="da36d8a4-5af2-40f1-9c0e-06970db5131d"/>
      <text><![CDATA[EMP_ID]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="125" splitType="Stretch">
      <textField>
      <reportElement x="218" y="36" width="100" height="20" uuid="0c47bb5c-e96f-4544-8686-8e19f677cee6"/>
      <textFieldExpression><![CDATA[$F{EMP_ID}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
    </jasperReport>
    

    bean code is

    package view;
    
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    
    
    import oracle.binding.BindingContainer;
    
    
    
    
    public class JasperBean {
        public JasperBean() {
        }
    
    
        public String runReportAction() {
            // Add event code here...
            DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("EmpView1Iterator");
                        String empId = empIter.getCurrentRow().getAttribute("EmpId").toString();
                        Map m = new HashMap();
                        m.put("employeeId", empId);
                        try
                        {
                          runReport("empReport.jasper", null);
                        }
                        catch (Exception e)
                        {
                        }
            return null;
        }
        public BindingContainer getBindings()
             {
               return BindingContext.getCurrent().getCurrentBindingsEntry();
             }
             
             public Connection getDataSourceConnection(String dataSourceName)
                 throws Exception
               {
                 Context ctx = new InitialContext();
                 DataSource ds = (DataSource)ctx.lookup(dataSourceName);
                 return ds.getConnection();
               }
             
             private Connection getConnection() throws Exception
             {
               return getDataSourceConnection("hrDS");
             }
             
             public  ServletContext getContext()
               {
                 return (ServletContext)getFacesContext().getExternalContext().getContext();
               }
             public  HttpServletResponse getResponse()
               {
                 return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
               }
             public static FacesContext getFacesContext()
               {
                 return FacesContext.getCurrentInstance();
               }
             public void runReport(String repPath, java.util.Map param) throws Exception
             {
               Connection conn = null;
               try
               {
                 HttpServletResponse response = getResponse();
                 ServletOutputStream out = response.getOutputStream();
                 response.setHeader("Cache-Control", "max-age=0");
                 response.setContentType("application/pdf");
                 ServletContext context = getContext();
                 InputStream fs = context.getResourceAsStream("/reports/" + repPath);
                 JasperReport template = (JasperReport) JRLoader.loadObject(fs);
                 template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
                 conn = getConnection();
                 JasperPrint print = JasperFillManager.fillReport(template, param, conn);
                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
                 JasperExportManager.exportReportToPdfStream(print, baos);
                 out.write(baos.toByteArray());
                 out.flush();
                 out.close();
                 FacesContext.getCurrentInstance().responseComplete();
               }
               catch (Exception jex)
               {
                 jex.printStackTrace();
               }
               finally
               {    
                 close(conn);
               }
             }
             
             public void close(Connection con)
              {
                if (con != null)
                {
                  try
                  {
                    con.close();
                  }
                  catch (Exception e)
                  {
                  }
                }
              }
    }
    

    Concerning

    Mr President.

    I recreate my diagram by connecting as sysdba and opens the my database

    then I do not get this message.

    I think that was the problem with my database it has been locked or is created in use of the system.

  • Table or view does not exist

    Hi all

    I'm on banner

    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE 11.2.0.4.0 Production
    TNS for Linux: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    

    My OraDB database has 5 patterns,

    S1, S2, S3, S4, S5

    Where S1 a table T1 that select grant is given to the schema of S2, S3 and S4.

    Where as drawing S5 has grant SELECT ANY TABLE.

    I had a scenario where I am compiling or using (immediate execution) to the scheme of access Table T1 of S1.

    But I got error in the Table or view exists doensn can't.

    So what I've done to check if the syntax is correct, I printed SQL_Variable that holds the query before his execution in EXECUTE IMMEDIATE.

    This SQL execute print find a TOAD or SQLPLUS, but when the same variable is running inside EXECUTE IMMEDIATE I get error

    Table or view does not exist.

    To keep the overlap on this, I ran

    SQL executed: {code} select column_name from S1. T1 {code} in TOAD and SQLPLUS, it ran successfully, but when I placed it inside the package it threw error table or view does not exist.


    Grant you permissions to T1 through a role?

    Roles are not active during run immediately or stored procedures.

  • Error (301,28): PL/SQL: ORA-00942: table or view does not exist

    Hi all

    11.2.0.3.10

    AIX6

    I was installing store_procedures on our PROD several times, and they are successful. This stored_procedures are created by developers and once tested on DEV & UAT, they are transferred to the PROD through me.

    But this time I install a new SP, but I got error > Error (301,28): PL/SQL: ORA-00942: table or view does not exist

    Even if the synonym. The owner of the schema of the SP has grant select on the table and synonym of created. Why not MS can see this synonym?

    Is there something that I missed?

    Help, please... I'm going crazy

    Thank you all,

    MK

    Since there is only one user in your role, so I'll suggest to directly grant you the user rather than role - it's the easiest and simplest account according to your needs. The roles are best used to organize all of the users. If ever it is necessary to use roles (i.e. multiple users/schemas in a role) then, I think, you can play with AUTHID clause creating blocks.

  • Drop materialized view does not go down?

    SQL > drop materialized view MV_SONG;

    Materialized view is deleted.

    SQL > drop materialized view MV_SONG;

    Materialized view is deleted.

    SQL > drop materialized view MV_SONG;

    Materialized view is deleted.

    Very weird, I need to drop this MV in order to create a new.  I am not in a position from the drop.  Said Materialized view has declined, but he didn't fall.

    SQL > select * from v version $;

    BANNER

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

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    SQL > select object_name, object_type, created, status from user_objects where object_name = 'MV_SONG ';

    OBJECT_NAM CREATED STATUS OBJECT_TYPE

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

    MV_SONG INVALID MATERIALIZED VIEW JULY 29, 11

    Here's more information:

    SQL > drop materialized view mv_song;

    Materialized view is deleted.

    SQL > select * from mv_song;

    Select * from mv_song

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    SQL > create a materialized view force discount MV_SONG on request as select sysdate to double;

    create materialized view refresh MV_SONG force on demand as select sysdate double

    *

    ERROR on line 1:

    ORA-00955: name is already used by an existing object

    I asked the support of oracle, can't seem to find an article on the subject.

    Need advice.

    Thank you

    Steeve

    There is a bug, that dropping a materialized view leaves behind a summary that stop the materialized view to be properly cleaned and dropped in the data dictionary.

    Connect as sysdba and check DBA_SUMMARIES to an entry of your materialized view. If he doesn't make one: drop summary OWNER. MV_NAME;

    That should drop your MV successfully.

  • ORA-06512: at "SYS." DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey guys, it's Xev.

    I decide to use SQL and XML and it works in a scenario, but in another scenario, is not.

    Here's the Code, I'm passing to two variables, first of all, I spend in the table table_name, and then I spend in the schema.

    If I connected it with "user" and that it seeks it's own pattern, he found the results, as for example, but if I try to run this code while not

    connected to the same user I'm looking for more, I get this error.

    ORA-19202: an error has occurred in the processing of XML

    ORA-00942: table or view does not exist

    ORA-06512: at "SYS." DBMS_XMLGEN", line 288

    ORA-06512: at line 1

    19202 00000 - "an error has occurred in the treatment of XML %s.

    * Cause: An error occurred during the processing of the XML function

    * Action: Check the given error message and resolve the problem appropriate

    /*-------------------------------------------------------------------------------

    This code works only you are connected to the user you are looking on.

    But if you're looking for a different user tables, it is kicking up and gives the above XML error...

    */

    SET SERVEROUTPUT ON

    exec DBMS_OUTPUT. ENABLE (1000000);

    Search_string VAR VARCHAR2 (28)

    EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']

    COLUMN "Keyword" FORMAT A28

    COLUMN 'Table' FORMAT A9

    COLUMN ' column value / "FORMAT A50

    SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."

    SUBSTR (table_name, 1, 14) "table."

    SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.

    OF dba_tab_cols.

    -where owner = ('& SCHEMA_NAME')

    TABLE

    (XMLSEQUENCE

    (DBMS_XMLGEN. GETXMLTYPE

    ("SELECT" | column_name |)

    'FROM ' | table_name |

    "WHERE REGEXP_LIKE.

    (' | column_name |) ','''

    || : search_string. ''')'

    () .extract (' LINES/rowset / * ""))) t

    -WHERE table_name IN ("FIND_TEST")

    WHERE table_name = upper ('& table_name')

    AND the OWNER = upper ('& SCHEMA_NAME')

    ORDER BY "Table".

    /

    Can someone please explain how works (DBMS_XMLGEN) and why it is throwing this error?

    Thank you

    Xev.

    It has nothing to do with DBMS_XMLGEN. GETXMLTYPE. It simply means the user running your SQL has no select privileges on the table & SCHEMA_NAME. & TABLE_NAME.

    SY.

  • Procedure compilation error: Table or view does not exist

    I have privilege granted to me on some tables, SELECTION that I found thanks to view user_tab_privs.

    Now, I wrote a stored procedure that attempts to insert into a table that I created with the data of a query based on joins on tables, sure I have the right to SELECT.

    But when I compile my inside, it shows errors:

    • PL/SQL: ORA-00942: table or view does not exist

    What could be the problem?  Were breaking my head.

    Can someone help me please?

    (

    I found ask Tom & amp; quot; Procedures, roles and grant & amp; quot; that questioning the view of user_tab_privs with the DEALER = < me > gives the list of the privileges that have been granted directly to the me.

    If this is the case, I seem to have DIRECT subsidies on the tables, I've used in my procedure.

    Where is my confusion).

    **************************************CODE*********************

    CREATE OR REPLACE PROCEDURE USAGE_MODULE_INSERT
    IS
    CURSOR C1
    IS
    SELECT CALL_KEY IN THE DUMMY_DATE;

    VDATE_KEY C1. TYPE % CALL_KEY;

    BEGIN
    OPEN C1;
    LOOP
    FETCH C1 IN VDATE_KEY;
    WHEN EXIT C1% NOTFOUND;

    INSERT INTO TABLE_USAGE_MODULE (VNUMBER, START_DATE_KEY, POSTPAID_ACC_FLAG, DES_NWK_NAME, ONOFF_KEY, TEMPS_REEL, CHARGED_TIME, CHARGED_VOLUME, CALLS)
    (
    SELECT THE PDF FILE. VNUMBER,
    C_USG. START_DATE_KEY,
    C_USG. POSTPAID_ACC_FLAG,
    DES_NWK. DES_NWK_NAME,
    ONNET_OFFNET. ONOFF_KEY,
    SUM (C_USG. TEMPS_REEL),
    SUM (C_USG. CHARGED_TIME),
    SUM (C_USG. CHARGED_VOLUME),
    COUNT (CASE WHEN C_USG. TYPE_KEY = 15 THEN 1 0 OTHERWISE END)
    OF AM_WHM. CAL_USG C_USG
    JOIN INTERNAL AM_WHM. DES_NETWORK DES_NWK
    ON DES_NWK. DES_NWK_KEY = C_USG. DES_NWK_KEY
    JOIN INTERNAL AM_WHM. D_L_NUMBER PDF
    THE SUBJECT OF THE PDF FORMAT. L_NUMBER_KEY = C_USG. L_NUMBER_KEY
    WHERE C_USG. START_DATE_KEY = VDATE_KEY
    GROUP OF PDF. VNUMBER, C_USG. START_DATE_KEY, C_USG. POSTPAID_ACC_FLAG, DES_NWK. DES_NWK_NAME, ONNET_OFFNET. ONOFF_KEY

    );

    END LOOP;
    CLOSE C1;

    END;

    Note: Mark USER_TAB_PRIVS with the DEALER = < > says that I have the privilege of SELECT on all tables that I used in my procedure.

    Mark USER_SYS_PRIVS shows a single line like "UNLIMITED TABLESPACE"

    ******************************************************

    Post edited by: 3cd7ad85-b56c-4a9c-ae91-83be047aac2c Code of procedure included which gives a compile error

    In order to access the table in a procedure, select must have been granted to the user directly and not through a role.

  • ORA-00942: table or view does not exist error

    We use the database to Oracle 10 g on Linux platform.

    When executing the following code, I get the following error:
    DECLARE
       v_result   NUMBER := NULL;
    BEGIN
       SELECT 1
         INTO v_result
         FROM ALL_TABLES
        WHERE TABLE_NAME = 'ERROR_AUDIT' AND OWNER = 'TEST_OWNER';
    
        DELETE FROM error_audit;
        COMMIT;
    Exception when no_data_found then 
          EXECUTE IMMEDIATE ('CREATE TABLE error_audit
                              (
                                 SID NUMBER NOT NULL,
                                 ID NUMBER NOT NULL,
                                 ora_number VARCHAR2(30 CHAR),
                                 description VARCHAR2(1000 CHAR),
                                 status VARCHAR2(1 CHAR),
                                 created_by_user VARCHAR2(30 CHAR),
                                 created_on_date DATE,
                                 modified_by_user VARCHAR2(30 CHAR),
                                 modified_on_date DATE,
                                 remarks VARCHAR2(2000 CHAR)
                              )'
                            );
    END;
    /
    Error:
        DELETE FROM error_audit;
                    *
    ERROR at line 9:
    ORA-06550: line 9, column 17:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 9, column 5:
    PL/SQL: SQL Statement ignored
    But if I comment out the Delete statement, and the code works correctly.
    --DELETE FROM error_audit;
    I don't understand the reason for this error. Kindly help.

    Your code will be get compiled before running...

    You can try the code below... But what is your real need?

    DECLARE
       v_result   NUMBER := NULL;
    BEGIN
       SELECT 1
         INTO v_result
         FROM ALL_TABLES
        WHERE TABLE_NAME = 'ERROR_AUDIT' AND OWNER = 'TEST_OWNER';
    
         EXECUTE IMMEDIATE 'DELETE FROM error_audit';
        COMMIT;
    Exception when no_data_found then
          EXECUTE IMMEDIATE ('CREATE TABLE error_audit
                              (
                                 SID NUMBER NOT NULL,
                                 ID NUMBER NOT NULL,
                                 ora_number VARCHAR2(30 CHAR),
                                 description VARCHAR2(1000 CHAR),
                                 status VARCHAR2(1 CHAR),
                                 created_by_user VARCHAR2(30 CHAR),
                                 created_on_date DATE,
                                 modified_by_user VARCHAR2(30 CHAR),
                                 modified_on_date DATE,
                                 remarks VARCHAR2(2000 CHAR)
                              )'
                            );
    END;
    / 
    

    Published by: JAC on Sep 4, 2012 11:39

  • 30002 error/ORA-00942 table or view does not exist

    Hello

    We are running on a Windows 2008 R2 machine RoboServer 9 with Tomcat 7. The database, that we strive to connect is an Oracle 11 g on a Linux x86_64 host server. I connect using the Oracle through ODBC drivers. When I click "test connection" of the ODBC Administrator or application configuration, I get the message 'successful connection '. That is the problem.

    When you try to run our reports, especially "Frequently consulted CSH" or "Frequently viewed Topics", we get the following error.

    Error..JPG

    Check the localhost.log in Tomcat, we get this:

    Journal of the org.apache.catalina.core.ApplicationContext 10:37:41 28 March 2013

    SEVERE: java.sql.SQLException: [Oracle] [ODBC] [Ora] ORA-00942: table or view does not exist

    java.sql.SQLException: [Oracle] [ODBC] [Ora] ORA-00942: table or view does not exist

    at sun.jdbc.odbc.JdbcOdbc.createSQLException (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.standardError (unknown Source)

    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcStatement.execute (unknown Source)

    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery (unknown Source)

    at adobe.robohelp.server.FlexReports.AreasReqHelpReport.SetData(AreasReqHelpReport.java:84)

    at adobe.robohelp.server.FlexReports.Report.ProcessReport(Report.java:295)

    at adobe.robohelp.server.ReportManager.doCommand(ReportManager.java:395)

    at adobe.robohelp.server.RoboHelpServer.doGet(RoboHelpServer.java:144)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.j ava: 290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

    at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.ja goes: 602)

    to org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:489)

    at java.lang.Thread.run (unknown Source)

    Looks like all tables exist in the database - this is what we have:

    TEST:

    ROBOTST4 > select object_name from dba_objects where type_objet = 'TABLE' and owner = 'MCVICKER;

    OBJECT_NAME

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

    TACTIONTYPE

    TERRORTYPE

    THELPPROJECT

    THELPSPACEERROR

    TUSER

    TPROBLEM

    TSOLUTIONACTION

    THELPTOPICS

    TUSERPREFS

    TSETTING

    TSESSION

    TACCESSTYPE

    TROBOGROUPS

    TROBOUSER

    TROBOUSERGROUPS

    TLDAPUSERGROUPS

    TGROUPPERMISSIONS

    TLDAPGROUPS

    TCOMMENTS

    TDELETEDCOMMENTS

    TUSERTOPICRATING

    TAVGTOPICRATING

    22 selected lines.


    I think that we have set. Here's the deal.

    For some reason, the database put in place all the tables but not views initially. My DBA views manually created using definitions of the included database. In Access, if you go in queries, then right-click on the table, select "design mode".  Right-click on the design mode, select "SQL Mode" and you can view the SQL statements used to define the view.  You should see something like this:

    She has slightly modified the - here's what she created:

    Created to MCVICKER's point of view in ROBOTST.

    create or replace view mcvicker. VSolutionAction

    SELECT

    TSolutionAction.sa_SolutionActionID,

    TSolutionAction.sa_Time,

    TSolutionAction.se_SessionID,

    TSolutionAction.pb_ProblemID,

    TSolutionAction.sq_SequenceID,

    TSolutionAction.hp_HelpProjectID,

    TSolutionAction.at_ActionTypeID,

    TSolutionAction.sa_SortData,

    LTRIM(sa_DisplayName,255) AS sa_GroupDisplayName,

    -Left $([sa_DisplayName],255) AS sa_GroupDisplayName,

    TSolutionAction.sa_DisplayName,

    TSolutionAction.sa_NumericData,

    LTRIM(sa_StringData,255) AS sa_GroupStringData,

    -Left $([sa_StringData],255) AS sa_GroupStringData,

    TSolutionAction.sa_StringData,

    TSolutionAction.sa_ExtraData,

    TSolutionAction.sa_ProblemSolved,

    TSolutionAction.ha_AreaName

    OF TSolutionAction;

    create or replace view mcvicker. VHelpProject

    as

    SELECT

    THelpProject.hp_HelpProjectID,

    LTRIM(hp_Name,255) AS hp_GroupName,

    -Left $([hp_Name],255) AS hp_GroupName,

    THelpProject.hp_Name,

    THelpProject.ha_AreaName

    OF mcvicker. THelpProject;

    create or replace view mcvicker. VProblem

    as

    SELECT

    TProblem.pb_ProblemID,

    TProblem.se_SessionID,

    TProblem.pb_InitiationTime,

    LTRIM(pb_ReferringURL,255) AS pb_GroupReferringURL,

    -Left $([pb_ReferringURL],255) AS pb_GroupReferringURL,

    TProblem.pb_ReferringURL,

    LTRIM(pb_ReferringParams,255) AS pb_GroupReferringParams,

    -Left $([pb_ReferringParams],255) AS pb_GroupReferringParams,

    TProblem.pb_ReferringParams,

    LTRIM(pb_RequestedTopic,255) AS pb_GroupRequestedTopic,

    -Left $([pb_RequestedTopic],255) AS pb_GroupRequestedTopic,

    TProblem.pb_RequestedTopic,

    TProblem.pb_ExternTransactionID,

    TProblem.pb_ExternUserID,

    TProblem.pb_AppData,

    TProblem.pb_ProblemSolved,

    TProblem.ha_AreaName

    OF mcvicker. TProblem;

    I hope this helps someone.

    My questions are pending: what the app actually creates tables and views? This work to restart tomcat? According to a timetable? It seems that when I set up the connection and leave the things the next day they work. Is there some sort of scheduled task that the database maintenance? Can we make it a little more transparent in future versions?

    Thank you.

  • error ORA-00942 table or view does not gv$ session s, v$ sql

    Hello

    I used it after request for package gives error ORA-00942 table or view does not exist but I run same query in sql plsql developer command run successfully.

    SELECT sid, serial #.
    in V_SID, V_SERIAL
    GV $ session s, v$ sql v
    WHERE username = "USER1".
    and s.SQL_ID = v.SQL_ID


    Kind regards
    Vaibhav
    grant select on gv_$session to ;
    grant select on v_$sql to ;
    

    Note If you are using GV$ SESSION then you must also use GV$ SQL and join with INST_ID column select.

Maybe you are looking for

  • Why twitter buttons appear in Arabic

    for awhile, my twitter in firefox buttons appear in Arabic. I'm under Ubunntu LTS release to date, 36 Firefox updated, without supplements, virus checked often. The stream is still in English (or the language of a particular tracking), but buttons, H

  • Firefox slows down for several minutes, as if (possibly), it seems "reoganise".

    Hello! Every once in a while, Firefox slows down a lot, the use of the CPU (for Firefox) exceeds to 95pct and there is a lot of drive actuvuty. Then after a minute or so, it starts again to normal. What does Firefox do? Is this normal/expected behavi

  • Cannot use the Windows from the bottom of the unit key

    I went abroad and need to format my laptop. I lost my original copy of Windows XP in transit so I used a copy instead. I don't think it would be a problem since I was my product etc. on the machine key. I cannot validate my copy of windows now. Is an

  • Upgrade RAM Equium L20-264

    Hi all I want to upgrade my memory to portable computers, do you know what ram is suitable for it and where can I buy it? Thx a lot Gabor

  • Document print black with a grey shadow

    I have a HP Photosmart C4480 all-in-one, equipped with Vista 62 - bit, Windows 9.  After copy and paste an article, the paper printed with black and a gray shadow, as 2D.  I printed out a sheet of test and it came out beautiful.  I am currently on al