Execute Immediate giving in ORA-00942: table or view does not exist
HelloI am creating a table using an immeidate in PL/SQL execute it gives table or view does not exist. When that same create table sql works well outside the PL/SQL.
g_sql: =.
'CREATE TABLE' | l_tmptable1 |' as '.
' SELECT decode (gsisource, null, "WEBSTORE", gsisource) as 'SOURCE', COUNT (1) as 'ADD_COUNT' ' |
'OF SCHEMA_NAME.t_master' |
' WHERE the add_date between to_date('''|| g_startDateChrTrunc ||'') (', "MM/DD/YYYY) ' |
' AND to_date('''|| g_endDateChrTrunc ||'') (', "MM/DD/YYYY) ' |
'GROUP BY DECODE (gsisource, null, "WEBSTORE", gsisource)';
EXECUTE IMMEDIATE g_sql;
Any help is appreciated.
Concerning
Hello
It seems that you have the privileges through a role. Roles do not count in the AUTHID DEFINE stored procedures. A the owner of the table the necessary privileges directly to the owner of the proceudre.
Moreover, the creation of tables in PL/SQL is almosty never the right way to do whatever it is you need. What is the purpose of this table? Why can not be created once and be truncated if necessary?
Tags: Database
Similar Questions
-
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 error
We use the database to Oracle 10 g on Linux platform.
When executing the following code, I get the following error:
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; /
But if I comment out the Delete statement, and the code works correctly.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
I don't understand the reason for this error. Kindly help.--DELETE FROM error_audit;
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
-
How to handle the ORA-00942: table or view does not exist
HII All,
I'm trying to delete a table dynamically independently of its existence in a procedure. Sound fine when the table exists, but when the table does not work I am facing following error
I've made use of pragma exception_init and modified my code like belowORA-00942: table or view does not exist
But I am still unable to get rid of him. Pls help me.Create or replace Procedure sp_FSASA_FEEDUPLOAD_process ( p_test_dir in varchar2, p_feed_file_name in varchar2 ) is l_exttable_str varchar2(32000) ; l_log_file constant varchar2(200) := 'logfile_rgh.log'; l_table_doesnt_exist Exception; pragma exception_init(l_table_doesnt_exist,-00492); Begin Begin execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ; Exception when l_table_doesnt_exist then null; End; l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' Category_No varchar2(1), '; l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), '; l_exttable_str := l_exttable_str||' GFCID number, '; l_exttable_str := l_exttable_str||' Balance number(34,14), '; l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), '; l_exttable_str := l_exttable_str||' Account_no varchar2(20), '; l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) '; l_exttable_str := l_exttable_str||' ) '; l_exttable_str := l_exttable_str||' Organization external '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' type oracle_loader '; l_exttable_str := l_exttable_str||' default directory '||p_test_dir; l_exttable_str := l_exttable_str||' Access parameters '; l_exttable_str := l_exttable_str||' ( '; l_exttable_str := l_exttable_str||' records delimited by newline '; l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ; l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ; l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']'; l_exttable_str := l_exttable_str||' missing field values are null '; l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']'; l_exttable_str := l_exttable_str||')' ; l_exttable_str := l_exttable_str||' )Reject limit unlimited '; dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str); execute immediate l_exttable_str; End;
(1) I need the drop because I need to immediately create the table with the name of different file and different path.
(2) the last thing I do not do is to check the name of the table in the USER_OBJECTS and then drop.
(3) suggest that create an external table dynamically as a correct approach or not.
(4) up to now, we use utl_file for reading stream file but I am much interested to use the concept of EXTERNAL TABLE.
(5) as the file name and the path is changed, I need to create my external table during execution.
Please suggest me that I can change my file name and the path when runningDon't drop and re-create it, just create once as DDL not in code and then change it to point to a new file.
-
ORA-00942: table or view does not exist in SOA
Hello
I created a composite that contains the Web service-> Ombudsman-> DBAdapter.
This web service retrieves the data from the database on the basis of the comments. The composite is compiled.
But on the tests, I make the following mistake:
env:Server < faultcode > < / faultcode >
< faultstring > Exception occurred when the link was invoked.
Exception occurred during invocation of the JCA binding: "JCA binding run operations reference 'DB_getSelect' have to: DBReadInteractionSpec Execute Failed Exception."
Name of the query: [DB_getSelect], name of the descriptor: [DB_get. MdsPaths].
Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
.
See the first exception for the specific exception. This exception is considered as reproducible, probably due to a communication failure. To be classified as not reproducible instead, add nonRetriableErrorCodes property to "942" deployment descriptor (i.e. weblogic - RA.Xml). Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff. All properties are integers.
".
The called JCA adapter threw an exception of resource.
Please examine the error message above carefully to determine a resolution. < / faultstring >
< faultactor / >
< detail >
< exception > ORA-00942: table or view does not exist < / exception >
I checked my DB Adapter Configuration. Its quite well. Please answer if you hava a solution.
Thank you
Hi AnatoliAtanasov,
Thanks for the response to the stupid question.
(a) Yes, I have the table created in the database.
(b) the Data Source connection points to the correct schema.
(c) Yes. The source is configured with a pool of outbound connections.
(d) and I have re-deployed the adapter.
Thank you
Tanay
-
Mr President.
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.
-
Hi all
Try to run the loads on the test environment and faced this exception. Guidance on what could be the cause?
A functioning test environment code development. All models have been migrated using the synonym and the project had to be imported using Mode Duplication.
The project had two dimension and makes loads... Dimensions has been properly run, its only that all the facts are a failure...
ODI-1217: CM_PKG_CF_TEST Session (1494702) fails with return code 7000.
Caused by: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.
Task: 6
java.lang.Exception: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
OSB Info: get the joining to the line level columns: column 0: columnNo
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)
to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:682)
Caused by: org.apache.bsf.BSFException: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
OSB Info: get the joining to the line level columns: column 0: columnNo
at bsh.util.BeanShellBSFEngine.eval (unknown Source)
at bsh.util.BeanShellBSFEngine.exec (unknown Source)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
... 11 more
-< code printed here >-
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)
to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:682)
An analysis more thrust, found that Repo work had no appropriate grants.
After adding, it solved the problem.
-
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?
JimHi, Jim,.
Jim Thompson wrote:
Sorry Frank - in order to clarifyI 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.
-
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.
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.
-
VS2010 ORA-00942 table or view does not exist
I have
-vs2010 professional
-.net 4.0 Framework
-ODTwithODAC112021
-oracle 10g databases
When I try to display 10 using ODP.NET oracle databases in Server Explorer, I get the error: ORA-00942 table or view does not exist. The "Tables" folder cannot be extended. I can see views and other records. I am able to run a select statement of the query of existing table in the query window also. Default filter setting is to show all under the scheme. I uninstalled and installed ODT several times and got the same results.
This is the case even when I try to add a new source of data oracle by using the wizard. He threws the same error.
There is no error if I use the .net data provider to connect to the same oracle server and add a new data source.
Can anyone help please? Thank you very much!
Published by: 850347 on April 6, 2011 10:45
[Update] found that this error is associated with a particular account & schema. This account is super powerful and the database is enormous. I can connect with another read-only account and see all the tables in the previous scheme of powerful.
Is anyway to see what table or view has caused this error? The error message is really not that useful here.
Published by: 850347 on April 6, 2011 12:24While the user is "super powerful", it seems, there is no access to a catalog table that ODT must be metadata about the schema.
You can understand the table by running a trace ODP.NET:
(1) close VS2010
(2) in the registry of windows, change the registry value \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET\4.112.1.1\TraceLevel to 1
(3) restart VS2010
(4) reproduce the ORA-942 only
(5) close VS2010
(6) to cancel the registry value (set to 0)
(7) in the file generated (c:\odpnet2.0.trc) do a search for "942", I hope that you can find. Just before the error, you should see the SQL code that was executed.Please post an update here to let us know what you find.
-
Hello
When I run DBUM Targer user reconciliation (recon Filtered) I get the error in the log below.
We have created an account with privileges below target. y at - it all permisssions more necessary for execution of the reconciliation of the target.
[2015-10 - 09T 10: 47:45.717 - 07:00] [oimext_server1] [NOTIFICATION] [] [oracle.iam.scheduler.vo] [tid: OIMQuartzScheduler_Worker-4] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18393] [APP: IOM #11.1.2.0.0] details executeJob DBUM Oracle user target reconciliation method
[2015-10 - 09T 10: 47:45.842 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000 - 1:18558 0000000000000004,] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: parseConnectionProperties: no connection properties
[2015-10 - 09T 10: 47:45.878 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: dropUnusedSearchAttributes: fall tmpQuota
[2015-10 - 09T 10: 47:45.879 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: dropUnusedSearchAttributes: fall tmpQuota
[2015-10 - 09T 10: 47:45.881 - 07:00] [oimext_server1] [ERROR] [] [ORG. IDENTITYCONNECTORS. DBUM. SQLEXECUTIONHANDLER] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.SQLExecutionHandler: executeAccountSearch: error when searching for user records [[ ]]
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
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)
at org.identityconnectors.dbum.SQLExecutionHandler.searchAccounts(SQLExecutionHandler.java:287)
at org.identityconnectors.dbum.SQLExecutionHandler.executeAccountSearch(SQLExecutionHandler.java:95)
at org.identityconnectors.dbum.DBUMConnector.executeQuery(DBUMConnector.java:199)
at org.identityconnectors.dbum.DBUMConnector.executeQuery(DBUMConnector.java:74)
at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:118)
at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:82)
at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)
to com.sun.proxy. $Proxy575.search (unknown Source)
at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:107)
to com.sun.proxy. $Proxy575.search (unknown Source)
at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to org.identityconnectors.framework.impl.api.BufferedResultsProxy$ BufferedResultsHandler.run (BufferedResultsProxy.java:162)
]]
[2015-10 - 09T 10: 47:45.892 - 07:00] [oimext_server1] [NOTIFICATION] [] [oracle.iam.scheduler.impl.quartz] [tid: OIMQuartzScheduler_Worker-4] [userId: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18393] [APP: #11.1.2.0.0 IOM] Job listener, Job was performed QuartzJobListener.jobWasExecuted Description DEFAULT null FullName. DBUM Oracle DBUM Oracle target reconciliation user name reconciliation target user
[2015-10 - 09T 10: 47:46.116 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '6' for queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206 :-8000-0000000000010 c 79, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.
[2015-10 - 09T 10: 47:46.517 - 07:00] [oimext_server1] [ERROR] [] [] [tid: Watcher] [username: < anonymous >] [ecid: 0000L19f77uEoIs6wjyWMG1M5jJP000000, 1:18404] error receive challenge server hacked
[2015-10 - 09T 10: 47:49.271 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '12' to the queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206:-8000-0000000000010c7c, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.
[2015-10 - 09T 10: 47:49.718 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '21' for queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206:-8000-0000000000010c7e, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.
Thank you
After changing the logging level for 32 track, filled with the SQL log file.
The application consisted of a JOIN with two or three tables table (dba_users and dba_quota_tablespaces).
After providing privileges select on the quota table, I was able to learn from the user.
Thank you
-
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 codes: OPR4ONWY:U9IM8TAC:OI2DL65PState: 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 ONLYIs 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.
-
Hi all
I have a problem in the odiwaitfordata component and when I run get the below error
Code:
OdiWaitForData "-CONTEXT GLOBAL =" "-GLOBAL_ROWCOUNT = 1" "-LSCHEMA = ORA_LS" "-POLLINT = 1000" '-SQLFILTER = numero_fichier =-1 ""-TIMEOUT = 10000 ""-TIMEOUT_WITH_ROWS_OK = YES ""-INCREMENT_DETECTION = NO ' "-TABLE_NAME = PRACTICE." "" "" "» GENERATION. "
Error:
com.sunopsis.dwg.function.SnpsFunctionBaseException: ORA-00942: table or view does not exist
Thanks in advance
Kind regards
Vivek
Hi 2700773,
"PRACTICE. GENERATION' is not a valid table name. You must only give the name of the table, not the schema name. You can also give a list of table, separated by a comma, or a table name masks using % and _ like wildcards.
As for your previous question? Is it resolved? Please give us a feedback or close the message if it's over.
Kind regards
JeromeFr
-
Hey Geeks,
I met a problem when starting my 12 c RAC database.
To mount it fine, but when I try to open, he throws me an error.
System Global area 1.5400E + 10 bytes
Bytes of size 4737560 fixed
2952791528 variable size bytes
1.2415E + 10 bytes database buffers
Redo buffers 26857472 bytes
Mounted database.
SQL > alter database open;
change the database open
*
ERROR on line 1:
ORA-01092: ORACLE instance is complete. Disconnection forced
ORA-00942: table or view does not exist
Process ID: 11338068
Session ID: 1429: No.3
Here is the output of the trace file...
ORACLE_HOME = / oracle_home/app/orahome
Name of the system: AIX
Name of the node: INS1
Version: 1
Version: 7
Machine: 00C8CCA74C00
Instance name: INST1
Redo thread mounted by this instance: 1
Oracle process number: 7
The Unix process PID: 20381876, image: oracle@ins1 (TNS V1 - V3)
2014-11-27 22:49:20.892
SESSION ID: (197.5) 2014-11-27 22:49:20.892
CUSTOMER ID :() 2014-11-27 22:49:20.892
NAME OF THE SERVICE :() 2014-11-27 22:49:20.892
NAME of the MODULE: (sqlplus@ins1 (TNS V1 - V3)) 22:49:20.892 2014-11-27
ACTION NAME :() 2014-11-27 22:49:20.892
2014-11-27 22:49:20.889716: start the recovery of field = 0, valid = 0, flags = 0 x 4
2014-11-27 22:49:24.580
Awarded with 32 slaves of recovery success
With the help of 3 buffers overflow by slave of recovery
2014-11-27 22:49:24.740
1 post of thread: logseq 15, block 2, CHN 3510749
cache-bass rba: logseq 15, block 3
RBA on disk: logseq 15, block 72, RCS 3510824
Start the recovery at logseq 15, block 3, Yvert 0
2014-11-27 22:49:24.981
Started the resilvering redo thread 1 seq 15 blocks 72-73
2014-11-27 22:49:24.994
Finished resilvering redo thread 1 seq 15
2014-11-27 22:49:24.994
Started writing zeroblks thread 1 seq 15 blocks 74-81
2014-11-27 22:49:24.994
Completed written zeroblks thread 1 seq 15
= Redo read statistics for thread 1 =.
Total physical reads (from disk and memory): 4096 KB
-Redo read_disk - statistics
Read rate (ASYNC): 35KO in 0,25 s = > 0.14 Mb / s
Long: 0 Ko, moves: 0/104 (0%)
Longer LWN: 2 k, moves: 0/33 (0%), moved: 0 MB
Redo last scn: 0x0000.0035922b (3510827)
----------------------------------------------
-Recovery Hash Table statistics
Hash table buckets = 262144
More long string hash = 1
Hash string average = 25/25 = 1.0
Max compares by lookup = 1
AVG compares by lookup = 151/176 = 0.9
----------------------------------------------
2014-11-27 22:49:25.007
KCRA: start the debt for 25 blocks of data collection
2014-11-27 22:49:25.039
KCRA: treated blocks = 25/25, has claimed = 25, eliminated = 0
2014-11-27 22:49:25.054
Online Redo Log recovery: thread 1 mem Group 6 Seq 15 reading 0
2014-11-27 22:49:25.060
Ask again filled with 0.02 MB
2014-11-27 22:49:25.235
Control of completed recovery point
-Recovery Hash Table statistics
Hash table buckets = 262144
More long string hash = 1
Hash string average = 25/25 = 1.0
Max compares by lookup = 1
AVG compares by lookup = 176/176 = 1.0
----------------------------------------------
Recovery thread nab 1 seq 15 to 74 with 8 zeroblks sets
2014-11-27 22:49:26.000
2014-11-27 22:49:26.000433: validate the domain 0
2014-11-27 22:49:26.001348: valid domain 0, flags = 0x0
2014-11-27 22:49:28.315
County ofsmtab$: 0 entries
2014-11-27 22:49:28.732
ORA-00942: table or view does not exist
ORA-00942: table or view does not exist
2014-11-27 22:49:28.738
USER (ospid: 20381876): put an end to litigation because of the 942 error
In my case, the problem solved by running the following...
GRANT SELECT on SYS. The USER$ in XDB.
GRANT SELECT on SYS. The USER$ in CTXSYS.
GRANT SELECT on SYS. The USER$ to DVSYS;
GRANT SELECT on SYS. The USER$ to LBACSYS.
GRANT SELECT on SYS. The USER$ to APEX_040200;
GRANT SELECT on SYS. The USER$ to DV_SECANALYST;See the screenshot above.
-
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.
Maybe you are looking for
-
iPhone wifi problem 6 ios 9.2.1. WiFi show still unable to join or incorrect password! Help, please
-
Equium A200-1VO - USB ports not working not
My laptop does not seem to record everything I have plug into my usb ports. For awhile, I often had to shake it around a little bit in order so that he can recognize that something was there, but now I can't do work at all! I checked Device Manager a
-
Where exactly NT and Park in the chronology of Windows?
NT have come before or after Windows 95? And what about ME? Before or after W2k?
-
mobile broadband stick too big causing me not able to connect my wireless receiver optical mouse
ACER dear community, I need your help or solutions. My problem is about my mobile broadband using stick and wireless optical mouse at the same time. I just bought a laptop Acer V13 and excited to use when I'm out and about. I have more access to publ
-
Windows Defender has stopped working
When I try to start the program I get error message ox800705b4