Error in the SQL statement when executing ETL of DAC
Hi allI have installed and configured the 7.9.6.3 biapps, then I run the full load of the CRM - loyalty in DAC topic. And I got the error task failed, I check the Session to the Informatica server log files.
view of $ SEBL_VERT_811.DATAWAREHOUSE. SDE_SBL_Vert_811_Adaptor.SDE_GeographyDimension_Business.log
DIRECTOR > use VAR_27028 replace value [0] for the variable defined by the workflow/worklet user: [$passInStatus].
DIRECTOR > VAR_27028 use override the value [DataWarehouse] session parameter: [$DBConnection_OLAP].
DIRECTOR > VAR_27028 use override the value [SEBL_VERT_811] for the session parameter: [$DBConnection_OLTP].
DIRECTOR > VAR_27028 use override the value [SEBL_VERT_811.DATAWAREHOUSE. SDE_SBL_Vert_811_Adaptor.SDE_GeographyDimension_Business.log] for the session parameter: [$PMSessionLogFile].
DIRECTOR > VAR_27028 use override value [1] to parameter mapping: [MPLT_LOAD_W_GEO_DS. [DATASOURCE_NUM_ID$ $].
DIRECTOR > VAR_27028 use override value for the parameter mapping]: [$$ Hint1].
DIRECTOR > VAR_27028 use override value for the parameter mapping]: [$$ council2].
DIRECTOR > session initialization of TM_6014 [SDE_GeographyDimension_Business] to [my Jul 25 17:29:47 2011].
DIRECTOR > name of the repository TM_6683: [Oracle_BI_DW_Base]
DIRECTOR > TM_6684 server name: [Oracle_BI_DW_Server]
DIRECTOR > TM_6686 folder: [SDE_SBL_Vert_811_Adaptor]
DIRECTOR > Workflow TM_6685: [SDE_GeographyDimension_Business] run the Instance name: Id series []: [260]
DIRECTOR > mapping TM_6101 name: SDE_GeographyDimension_Business [version 1].
DIRECTOR > TM_6963 pre 85 Timestamp compatibility is enabled
DIRECTOR > the TM_6964 Date of the Session format is [HH24:MI:SS DD/MM/YYYY]
DIRECTOR > TM_6827 [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Storage] will be used as the storage of session directory [SDE_GeographyDimension_Business].
DIRECTOR > CMN_1802 Session recovery cache initialization is complete.
DIRECTOR > configuration using [DisableDB2BulkMode, Yes] TM_6708 property
DIRECTOR > configuration using TM_6708 [ServerPort, 6325] property
DIRECTOR > configuration using [overrideMpltVarWithMapVar Yes] TM_6708 property
DIRECTOR > configuration using TM_6708 [SiebelUnicodeDB,SIEBEL@ANSDEV dwhadmin@ANBDEV] property
DIRECTOR > TM_6703 Session [SDE_GeographyDimension_Business] is headed by 64-bit integration Service [node01_hkhgc01dvapp01], [version9.0.1 HotFix2], build [1111].
MANAGER > PETL_24058 Running score of the Group [1].
MANAGER > initialization of engine PETL_24000 of parallel Pipeline.
MANAGER > PETL_24001 parallel Pipeline engine running.
MANAGER > session initialization PETL_24003 running.
MAPPING > CMN_1569 Server Mode: [UNICODE]
MAPPING > code page of the server CMN_1570: [Unicode UTF-8 encoding]
MAPPING > TM_6151 the session to the sort order is [binary].
MAPPING > TM_6185 warning. Code page validation is disabled in this session.
MAPPING > treatment of low accuracy using TM_6156.
MAPPING > retry TM_6180 blocking logic will not apply.
MAPPING > TM_6187 Session focused on the target validation interval is [10000].
MAPPING > TM_6307 DTM error log disabled.
MAPPING > TE_7022 TShmWriter: initialized
MAPPING > DBG_21075 connection to the database [ANBDEV], [dwhadmin] users
MAPPING > Search CMN_1716 [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G] uses the connection to database [relational: DataWarehouse] in [UTF-8 encoding Unicode] code page
MAPPING > Search CMN_1716 [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] uses the connection to database [relational: DataWarehouse] in [UTF-8 encoding Unicode] code page
MAPPING > DBG_21694 AGG_COUNTRY_CITY_ZIPCODE [0] Partition: size = [1048576] Index cache, data cache size = [2097152]
MAPPING > TE_7212 increasing [Cache of Index] size of transformation [AGG_COUNTRY_CITY_ZIPCODE] of [1048576] to [2402304].
MAPPING > TE_7212 increasing [Cache data] size of transformation [AGG_COUNTRY_CITY_ZIPCODE] of [2097152] to [2097528].
MAPPING > TE_7029 aggregate information: create the new Index and data files
MAPPING > TE_7034 aggregate information: Index file is [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.idx]
MAPPING > information aggregated TE_7035: data file is [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.dat]
MAPPING > TM_6007 DTM initialized successfully for the session [SDE_GeographyDimension_Business]
DIRECTOR > PETL_24033 all the DTM connection information: [< NO >].
MANAGER > PETL_24004 from the tasks before the session. : (My Jul 25 17:29:47 2011)
MANAGER > task PETL_24027 before the session completed successfully. : (My Jul 25 17:29:47 2011)
DIRECTOR > PETL_24006 from data movement.
MAPPING > Total TM_6660 Buffer Pool size is 36000000 bytes and block size is 128000 bytes.
LKPDP_2 > search for DBG_21097 Transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS]: default sql to create the cache of research: SELECT CITY, COUNTRY, POSTAL code, STATE_PROV OF W_GEO_DS of the ORDER BY CITY, COUNTRY, POSTAL code, STATE_PROV
LKPDP_1 > search for DBG_21312 Transformation [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G]: search replace sql to create the cache: SELECT W_LST_OF_VAL_G.VAL AS VAL, W_LST_OF_VAL_G.R_TYPE AS R_TYPE FROM W_LST_OF_VAL_G
WHERE
W_LST_OF_VAL_G.R_TYPE LIKE '% ETL' ORDER BY R_TYPE, VAL
LKPDP_1 > TE_7212 increasing [Cache of Index] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G] of [1048576] to [1050000].
LKPDP_2 > TE_7212 increasing [Cache of Index] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] of [20000000] to [20006400].
LKPDP_2 > TE_7212 increasing [Cache data] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] of [20000000] to [20004864].
READER_1_1_1 > DBG_21438 Reader: Source is [ANSDEV], [SIEBEL] users
READER_1_1_1 > code page Source of BLKR_16051 database connection [SEBL_VERT_811]: [Unicode UTF-8 encoding]
READER_1_1_1 > BLKR_16003 initialization completed successfully.
WRITER_1_ * _1 > WRT_8146 author: target's database [ANBDEV], user [dwhadmin], loose [on] mode
WRITER_1_ * _1 > WRT_8106 WARNING! Session Mode Bulk - recovery is not guaranteed.
WRITER_1_ * _1 > code page target database connection [Data Warehouse] WRT_8221: [Unicode UTF-8 encoding]
WRITER_1_ * _1 > target WRT_8124 W_GEO_DS of Table: SQL INSERT statement:
INSERT INTO W_GEO_DS(CITY,CONTINENT,COUNTRY,COUNTY,STATE_PROV,ZIPCODE,DATASOURCE_NUM_ID,X_CUSTOM) VALUES (?,?,?,?,?,?,?,?)
WRITER_1_ * _1 > WRT_8020 No. column that is marked as the primary key for the table [W_GEO_DS]. Updates not supported.
WRITER_1_ * _1 > connection WRT_8270 #1 target group consists of target (s) [W_GEO_DS]
WRITER_1_ * _1 > WRT_8003 writer initialization complete.
READER_1_1_1 > BLKR_16007 player run began.
WRITER_1_ * _1 > WRT_8005 writer run began.
WRITER_1_ * _1 > WRT_8158
START SUPPORT SESSION *.
Startup load time: my Jul 25 17:29:47 2011
Target table:
W_GEO_DS
READER_1_1_1 > RR_4029 SQ [SQ_S_ADDR_ORG] User Instance specified SQL query [SELECT DISTINCT
S_ADDR_ORG. CITY,
S_ADDR_ORG. COUNTRIES,
S_ADDR_ORG. COUNTY,
S_ADDR_ORG. PROVINCE,
S_ADDR_ORG. STATE,
S_ADDR_ORG. Zip code
'0' AS X_CUSTOM
Of
V_ADDR_ORG, S_ADDR_ORG
]
READER_1_1_1 > RR_4049 SQL query sent to the database: (my Jul 25 17:29:47 2011)
READER_1_1_1 > CMN_1761 Timestamp event: [lun 25 juil 17:29: 47 2011]
READER_1_1_1 > RR_4035 SQL Error]
ORA-00942: table or view does not exist
Database driver error...
Function name: run
Stmt SQL: SELECT DISTINCT
S_ADDR_ORG. CITY,
S_ADDR_ORG. COUNTRIES,
S_ADDR_ORG. COUNTY,
S_ADDR_ORG. PROVINCE,
S_ADDR_ORG. STATE,
S_ADDR_ORG. Zip code
'0' AS X_CUSTOM
Of
V_ADDR_ORG, S_ADDR_ORG
Fatal error Oracle
Database driver error...
Function name: run
Stmt SQL: SELECT DISTINCT
S_ADDR_ORG. CITY,
S_ADDR_ORG. COUNTRIES,
S_ADDR_ORG. COUNTY,
S_ADDR_ORG. PROVINCE,
S_ADDR_ORG. STATE,
S_ADDR_ORG. Zip code
'0' AS X_CUSTOM
Of
V_ADDR_ORG, S_ADDR_ORG
[Error fatal Oracle].
READER_1_1_1 > CMN_1761 Timestamp event: [lun 25 juil 17:29: 47 2011]
READER_1_1_1 > BLKR_16004 ERROR: prepare failed.
WRITER_1_ * _1 > WRT_8333 roll back all the targets due to the fatal error of session.
WRITER_1_ * _1 > rollback WRT_8325 Final, executed for the target [W_GEO_DS] at end of load
WRITER_1_ * _1 > WRT_8035 of full load time: my Jul 25 17:29:47 2011
SUMMARY OF THE LOAD
============
WRT_8036 target: W_GEO_DS (Instance name: [W_GEO_DS])
WRT_8044 responsible for this target data no.
WRITER_1__1 > WRT_8043 * END LOAD SESSION *.
MANAGER > PETL_24031
PERFORMANCE INFORMATION FOR TGT SUPPORT ORDER [1] GROUP, SIMULTANEOUS GAME [1] *.
Thread [READER_1_1_1] created [stage play] point score [SQ_S_ADDR_ORG] is complete. Running time total was enough for significant statistics.
[TRANSF_1_1_1] thread created for [the scene of transformation] partition has made to the point [SQ_S_ADDR_ORG]. Running time total was enough for significant statistics.
[TRANSF_1_2_1] thread created for [the scene of transformation] partition has made to the point [AGG_COUNTRY_CITY_ZIPCODE]. Running time total was enough for significant statistics.
Thread [WRITER_1_ * _1] created for [the scene of writing] partition has made to the point [W_GEO_DS]. Running time total was enough for significant statistics.
MAPPING > CMN_1791 size which would take [0] groups total lines of entry for [AGG_COUNTRY_CITY_ZIPCODE], in memory, it is [0] index cache bytes
MAPPING > CMN_1790 cached data size that would [0] groups total lines of entry for [AGG_COUNTRY_CITY_ZIPCODE], in memory, bytes [0]
MAPPING > CMN_1793 index cache size which would hold [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G], in memory, is bytes [0]
MAPPING > CMN_1792 cached data size that would [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G], in memory, is bytes [0]
MAPPING > CMN_1793 index cache size which would hold [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS], in memory, is bytes [0]
MAPPING > CMN_1792 cached data size that would [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS], in memory, is bytes [0]
MANAGER > PETL_24005 from tasks after the session. : (My Jul 25 17:29:47 2011)
MANAGER > task of PETL_24029 after the session completed successfully. : (My Jul 25 17:29:47 2011)
MAPPING > cache TE_7216 deleting files [PMLKUP14527_524289_0_260L64] for processing [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G].
MAPPING > cache TE_7216 deleting files [PMLKUP14527_524293_0_260L64] for processing [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS].
MAPPING > TM_6018 the session completed with errors of processing row [0].
MANAGER > TE_7216 deleting files cache [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.idx] for [AGG_COUNTRY_CITY_ZIPCODE] transformation.
MANAGER > TE_7216 deleting files cache [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.dat] for [AGG_COUNTRY_CITY_ZIPCODE] transformation.
MANAGER > parallel PETL_24002 engine Pipeline completed.
DIRECTOR > Session PETL_24013 run duly filled with failure.
DIRECTOR > TM_6022
PLENARY OF THE LOAD
================================================
DIRECTOR > TM_6252 Source load summary.
DIRECTOR > Table CMN_1740: [SQ_S_ADDR_ORG] (name of the Instance: [SQ_S_ADDR_ORG])
Output [0] lines, affected lines [0], applied [0] lines, rejected lines [0]
DIRECTOR > TM_6253 Target Load summary.
DIRECTOR > Table CMN_1740: [W_GEO_DS] (name of the Instance: [W_GEO_DS])
Output [0] lines, affected lines [0], applied [0] lines, rejected lines [0]
DIRECTOR > TM_6023
===================================================
DIRECTOR > TM_6020 Session [SDE_GeographyDimension_Business] to [my Jul 25 17:29:48 2011].
After reviewing the log, I found the select statement fails, the SQL below was wrong:
SELECT DISTINCT
S_ADDR_ORG. CITY,
S_ADDR_ORG. COUNTRIES,
S_ADDR_ORG. COUNTY,
S_ADDR_ORG. PROVINCE,
S_ADDR_ORG. STATE,
S_ADDR_ORG. Zip code
'0' AS X_CUSTOM
Of
V_ADDR_ORG, S_ADDR_ORG
There is no V_ADDR_ORG but the table S_ADDR_ORG in the transaction of Siebel database. So I don't know why he build this sql when data transfer to OBAW. It is the fate of bi box app.
Experts! How could I solve this problem? Please help, thanks a lot!
Best regards
Ryan
Ryan,
Yes, you missed to create views for the source tables. both in the design of dac > tables tab, select any table and clieck right on it and then click capture of change scripts > generate scripts from view. It will ask you if it can generate a script for all tables. so it will generate the script from view for you. now run the whole esript in the source database. then your problem will be solved.
If this answers your question. do my correct answer.
Thank you
Jay.
Tags: Business Intelligence
Similar Questions
-
Need help to resolve the error - below the SQL statement to execute cannot be
Below is my CO as, which creates a callable statement.
try {}
OAApplicationModule oaapplicationmodule = (webBean) pageContext.getApplicationModule;
OADBTransactionImpl t = (OADBTransactionImpl) oaapplicationmodule.getOADBTransaction ();
OracleCallableStatement proc = (OracleCallableStatement) t.createCallableStatement (lquery,-1);
proc. Execute();
t.Commit ();
}
catch (SQLException sqlexception)
{
throw OAException.wrapperException (sqlexception);
}
After the execution of the page, get the below error... (Please find below stack error)
I have referred the development guide but did not get something useful.
Please give me clues about the same.
Raghu cordially
-- Error Stack ---------------------------------------------------------
Error page
Details of the exception.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: Houston-27123: SQL error in the preparation of the call statement. Statement: null
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
in OA. jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
# # 0 in detail
java.sql.SQLException: the SQL statement to execute cannot be empty or null
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
in OA. jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: the SQL statement to execute cannot be empty or null
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
in OA. jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
Published by: Rambeau on Oct 14, 2010 02:58check the code stuck by me again
Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
Connection conn = oaapplicationmodule.getOADBTransaction().getJdbcConnection(); //Right one
Thank you
-Anil -
Identify the SQL statements that are executed frequently
I would like to identify SQL statements that are executed may times (e.g., > 1000 times) during an interval AWR.
I am aware of coloring a SQL_ID with exec ('...') dbms_workload_repository.add_colored_sql; but then the SQL ID must be known.
Is it also possible to do the same for the (not yet known) SQL statements that are executed > 1000 times? I think that the SQL statements that run very quickly (for example 1 s <) won't be captured automatically in a CWA even if those statements are frequently performed.
Version 11.2.0.4 on SLES11
Try this...
fixed lines 155
execs from collar to 999 999 999
Col min_etime to 999,999.99
Col max_etime to 999,999.99
Col avg_etime to 999,999.999
Col avg_lio to 999,999,999.9
Col norm_stddev to 999,999.9999
Col begin_interval_time to a30
node of col to 99999
break on plan_hash_value on startup_time skip 1
Select * from)
Select sql_id, sum (execs), min (avg_etime) min_etime, max (avg_etime) max_etime stddev_etime/min (avg_etime) norm_stddev
de)
Select sql_id, execs, plan_hash_value, avg_etime,
StdDev (avg_etime) on stddev_etime (sql_id partition)
de)
Select sql_id, plan_hash_value,.
Sum (NVL(executions_delta,0)) execs,
(sum (elapsed_time_delta) /decode (sum (nvl(executions_delta,0)), 0.1, sum (executions_delta)) / 1000000) avg_etime
-sum ((buffer_gets_delta/decode (nvl(buffer_gets_delta,0), 0.1, executions_delta))) avg_lio
DBA_HIST_SQLSTAT s, DBA_HIST_SNAPSHOT SS
where ss.snap_id = S.snap_id
and ss.instance_number = S.instance_number
and executions_delta > 0
Group of sql_id, plan_hash_value
)
)
Group of sql_id, stddev_etime
)
where norm_stddev > nvl (to_number('&min_stddev'), 2)
and max_etime > nvl (to_number('&min_etime'),.1)
order of norm_stddev
/
-
Get the SQL statement error programmatically
Hello
error SQL in the FORMS, you can display the erroneous SQL statement pressing (shift) (Ctrl) E on the screen. Is there a way to get the text of the SQL statement in a PL/SQL function for logging purposes?
I get the error using SQLERRM, it's not a problem. But how can I get the SQL text of the statement?
Thanks and regards,
Sascha
Sascha,
You should be able to use the: SYSTEM. System LAST_QUERY variable forms.
Craig...
-
Dear Experts,
I need a clarification. Is it possible to use the fn - bea: function execute sql (Oracle Service Bus) to perform an insert operation in a database with the data extracted from the message of the Organization (i.e. $body/Info/username)? If it is possible which is the right syntax?
Any suggestion is appreciated.
Kind regards
Mike
Published by: ITDeveloper on November 19, 2009 2.55
Published by: ITDeveloper on November 19, 2009 3.01Hi Mike,.
Please refer to my post for the same question to the fn - bea: sql performance with 'Insert INTO' the sql statement
Thank you best regards &,.
Vivek
-
How can I pass a condition of the table in the sql statement?
For example, in the table in the COND Varchar2 column (200) there is the value ' VAR > 10'.
| COND |
|' VAR > 10' |
where VAR is the name of the table column. I would like to make statement CASE WHEN VAR > 10 AND 0... I tried with as subquery
WHEN BOX (SELECT COND FROM TABLE WHERE...) THEN 0, but it does not work.
Hello
You can do this by using dynamic SQL.
that is to say:
declare v_stm varchar2(4000); v_cond varchar2(100); v_result integer; begin select cond into v_cond from yourtable where a=1; v_stm := 'select case when '||v_cond||' then 0 ...'; -- dynamic sql execute immediate v_stm into v_result; end; /
Remember that, in general, dynamic SQL has a performance degradation that SQL static and should be avoided when possible.
Storage condition or the SQL statements in the tables is not a good practice.
Kind regards.
Alberto
-
When I run the SQL below, I get the following:
08:00:08 [SELECT - 0 row (s), dry 0.000] [error Code: 904, SQL State: 42000] ORA-00904: "G". "" NAME ": invalid identifier
When I comment the lines "BOLD", it works fine. I tried to fully qualify the column without success. I'm sure it's a matter of formatting.
************************************************
Select
SR. SCHOOLID,
SR. StudentID, sr.coursenumber,
SR. REGISTREQ_ID,
(select
min (rr.ID |) » -'|| URI COURSEGROUP)
Of
REGISTREQ rr
where
RR.grade_level = (select s.sched_nextyeargrade from student s where s.id = sr.studentid)
and rr.yearid = 2100
and rr.id not in (6426,6415)
and rr. COURSEGROUP in
(select
g.Name
Of
g GEN
where
g.CAT = "coursegroups".
and instr (g.valuet, sr.coursenumber) > 0
and g.schoolid = sr.schoolid)
and ((g.name as 'ALT %' and sr. GLOBALALTERNATECOURSE = 1)
or (g.name not as 'ALT %' and sr. GLOBALALTERNATECOURSE = 0))
) as New_RegID
Of
SCHEDULEREQUESTS sr
where
SR. SCHOOLID = 703
and sr.yearid = 2100This is because the lines that you have Ringing are out of reach for the alias 'g', which is part of the inner query.
Maybe you want to just 'name' without the prefix "g.".
-
copy and paste the sql statement into sql * more
How do you paste the sql statement into sql * more... I tried the following options, get the windows interface for this sequel to the documentation below, but that did not work
http://download.Oracle.com/docs/HTML/A88829_01/ch3.htm
then I tried to create a simple .txt file with my sql statement and tried to run using @name (where name is the name of the file) and it gives me the following error SP2-0310: cannot open the file 'firstscriot.sql '.You name the file name.txt? Then you cannot start with @name, because SQL * PLUS will add the extension .sql
Try instead the @name.txt or name the file name.sql
And check if you have the correct path.
Concerning
Marcus -
CALL THE PROCEDURE IN THE SQL STATEMENT
Why we cannot call a procedure inside the SQL statement?Hello
Usually when you select an item should return you data. In the case of a procedure, you cannot return any return value from the procedure directly it has to be done through some settings and to access these settings, you cannot use a simple sql statement. Where as in a function, you must return one of data that can be easily obtained accordingly.
see you soon
VT
-
Hi all
How oracle SQL statements executes? Someone can explain to me the works of instructions SELECT, INSERT, UPDATE, and COMMIT?
Concerning
KrishnaKrishna,
Search for Execution of the SQL statement and see the flowchart.
http://download-West.Oracle.com/docs/CD/B19306_01/server.102/b14220/sqlplsql.htm-André
-
the SQL statements used to create views
Hello
How can I see the full text (with table) to create a sql view:
Thank you.SQL> select text from dba_views where rownum=1; TEXT -------------------------------------------------------------------------------- select "LIB_IDX","LIB_NAME","VENDOR_NAME","PROTOCOL_NUM","VERSION_NUM","PATH_NAM
Try the following in the SQL * faster before executing the SQL statement:
SET LONG 1000
If this does not work, increase it if necessary.
-
Hi all
I just created a function that returns a TABLE;
I am grateful if some body guide me how to display the values in the table at the call of my sqlplus as function
Select * from func_avg_cost() of double;
its fine when you return a single value of work. But I'm back a table to retrieve the value from the table in the sql statement
Thank you!now, I must return two numbers function. as possible through table.
which is also possible with a simple object:
SQL> create or replace type my_number_typ as object (n1 number, n2 number) / Type created. SQL> create or replace function my_numbers (n1 number := 0, n2 number := 0) return my_number_typ as begin return my_number_typ (n1, n2); end my_numbers; / Function created. SQL> select my_numbers (2, 3) from dual / MY_NUMBERS(2,3) -------------------------------------------------- (2; 3) 1 row selected. SQL> select my_numbers (sal, deptno) my_numbers from emp where empno = 7788 / MY_NUMBERS -------------------------------------------------- (3000; 20) 1 row selected. SQL> select my_numbers (sal, deptno).n1 sal, my_numbers (sal, deptno).n2 deptno from emp where empno = 7788 / SAL DEPTNO ---------- ---------- 3000 20 1 row selected.
-
Why my windows displays in the United States, when im in Great Britain
When I go to windows update shows im in the United States when I stay in the United Kingdom, Ive changed to uk .when I just off site and back, on his return to the United States. Help
Hello
- How have you changed the settings?
I suggest to change the locale associated with place and time then check. :Regional and Language Options overview -
I have NEED of HELP PLEASE I am trying to copy a CD but get an error in the column State of Rip. Has not changed any option, as I just ripped a CD yesterday. HELP PLEASE!
Hello
1. What is the exact error message?
2. is the issue specific to this particular CD/DVD?
3 did you changes to the computer, before the show?
Method 1:
Run the Windows Media Player settings troubleshooter.
Open the troubleshooting Windows Media Player settings Troubleshooter
Method 2:
Change the settings for the extraction of music and the audit.
-
How to analysis of the XML in the sql statement?
Hi friends, I have a table that contains a column of type CLOB, stores in xml format. For example, the data are like that
<Employees xmlns="http://TargetNamespace.com/read_emp"> <C1>106</C1> <C2>Harish</C2> <C3>1998-05-12</C3> <C4>HR</C4> <C5>1600</C5> <C6>10</C6> </Employees>
So how can I write the sql statement for the analysis of the data at the top
create or replace procedure parsing_xml
(
clob trans_payload
trans_dir varchar2
)
as
Start
if(trans_dir='inbound/emp')
then
insert into emp_proj
(
employee_id
last_name
hire_date
job_id
salary
department_id
)
Select t1.c1
t1.c2
t1.c3
t1.c4
t1.c5
t1.c6
from xmltable
(
XmlNamespaces ('http://TargetNamespace.com/read_emp' as 'emp').
' / ' emp:Employees by the way of xmltype (trans_payload)
columns
whole path of C1 'emp:C1. "
path of varchar2 (10) C2 'emp:C2. "
C3 varchar2 (10) path "emp:C3."
C4 varchar2 (10) path "emp:C4."
whole path of C5 "emp:C5."
C6 varchar2 (10) path 'emp:C6 '.
) t1;
end if;
commit;
end;
Maybe you are looking for
-
Question on Partition 'DATA' on the Satellite X 200 - 20 s
Hi, firstly it is great that toshiba has this forum directly from the page of the manufacturer. I wonder what is on the partition of DATA from my laptop. The 200 X 20 s comes with two 160 GB HARD drive. One is divided into two 73 GB. I would like to
-
Cannot install error code 80070643 live 1.5 office add-in
Hello there I am not able to install the office live added to 1.5
-
Maybe easily recovery Outlook Express folders and messages in WinXp Home v6?
I've performed on a system Windows XP Home sp3 v6.00.2900.5512 Outlook Express as the e-mail client. Make a few mistakes that took place I lost a number of records and messages [probably of thousands] (and how I got the installation folder tree) in O
-
I can't load videos on my rocket
I looked on my manual and it says click on the meia converter when it appears, but it never appears. I am a newbie
-
infection by the virus of windows
Windows 7 virus-infected ' IRP hook Rootkit Trojan located on the C drive. It probably occurred during the installation of Windows 7 by PC manufacturer using a generic player. All downloads are blocked (antivirus/malware) The diagnosis was finally ma