"ORA-13787: lack of profile SQL ' acceptance of profile sql error!
Hi all.The oracle is 10.2.0.4 on solaris machine.
I tried to use the profile of sql, but I got some errors when acceptiing "sql profile.
I've done are as follwoings:
----------------------------------
1 create a tuning task
DECLARE
l_sql_tune_task_id VARCHAR2 (100);
BEGIN
l_sql_tune_task_id: = DBMS_SQLTUNE. () CREATE_TUNING_TASK
sql_id = > "1pyfat4wjj7t8"
plan_hash_value = > null,
scope = > 'GLOBAL ',.
time_limit = > 60,
Task_Name = > '1pyfat4wjj7t8_hoho',-replace TaskName
Description = > 'Tuning report');
Dbms_output.put_line ('l_sql_tune_task_id: ' | l_sql_tune_task_id);
end;
/
2 the task of tuning
BEGIN
DBMS_SQLTUNE. EXECUTE_TUNING_TASK (task_name = > '1pyfat4wjj7t8_hoho');
end;
/
3. report of the task of tuning
THE VALUE OF 10000 LONG
SET LONGCHUNKSIZE 10000
SET LINESIZE 100
SELECT DBMS_SQLTUNE. REPORT_TUNING_TASK ('1pyfat4wjj7t8_hoho') from DUAL;
4 accept the tuning task
DECLARE
my_sqlprofile_name VARCHAR2 (30);
BEGIN
my_sqlprofile_name: = DBMS_SQLTUNE. () ACCEPT_SQL_PROFILE
Task_Name = > "1pyfat4wjj7t8_hoho"
force_match = > true,
name = > '1pyfat4wjj7t8_lim');
END;
/
DECLARE
*
ERROR on line 1:
ORA-13787: lack of profile SQL of the statement '1' for task tuning "1pyfat4wjj7t8_hoho" object
ORA-06512: at "SYS." DBMS_SQLTUNE_INTERNAL', line 7087
ORA-06512: at "SYS." DBMS_SQLTUNE', line 5559
ORA-06512: at line 4 level
------------------------------------------------
I got the error at the final stage of 4.
What are my mistakes in step 4?
Thanks in advance.
Best regards.
869578 wrote:
Thanks for your reply.
DECLARE
*
ERROR on line 1:
ORA-13787: lack of profile SQL of the statement '1' for task tuning "1pyfat4wjj7t8_hoho" object
ORA-06512: at "SYS." DBMS_SQLTUNE_INTERNAL', line 7087
ORA-06512: at "SYS." DBMS_SQLTUNE', line 5559
ORA-06512: at line 4 levelThank you.
Hello
Check the output of SELECT DBMS_SQLTUNE. REPORT_TUNING_TASK ('1pyfat4wjj7t8_hoho') from DUAL;
Otherwise any recommendation that the error is thrown
See you soon
Tags: Database
Similar Questions
-
ORA-13786: lack of SQL text
Hello
11g R2, connected sysdba, I got the following errors. Any idea? Any help? Thanks before.
SQL> select sql_id, sql_text from v$sql where sql_text like '%SELECT A.BUSINESS_UNIT, D.DESCR FROM PS_SP_RECV1_NONVW%' and sql_text not like '%v$sq ; SQL_ID ------------- 6d66jzkkyg2sw SQL_TEXT -------------------------------------------------------------------------------- SELECT A.BUSINESS_UNIT, D.DESCR FROM PS_SP_RECV1_NONVW A, PS_SP_RCV1_NONVWLN D W HERE D.BUSINESS_UNIT LIKE 'IFP%' AND D.BUSINESS_UNIT=A.BUSINESS_UNIT AND D.LANGU AGE_CD='FRA' UNION SELECT BUSINESS_UNIT, DESCR FROM PS_SP_RECV1_NONVW A WHERE B USINESS_UNIT LIKE 'IFP%' AND NOT EXISTS (SELECT 'X' FROM PS_SP_RCV1_NONVWLN D WH ERE D.BUSINESS_UNIT=A.BUSINESS_UNIT AND D.LANGUAGE_CD='FRA') ORDER BY 1 SQL> variable stmt_task VARCHAR2(64); SQL> SQL> EXEC :stmt_task := DBMS_SQLTUNE.CREATE_TUNING_TASK(sql_id => '6d66jzkkyg2sw'); PL/SQL procedure successfully completed. SQL> SQL> EXEC DBMS_SQLTUNE.EXECUTE_TUNING_TASK(:stmt_task); PL/SQL procedure successfully completed. SQL> EXEC dbms_sqltune.accept_sql_profile(:stmt_task); BEGIN dbms_sqltune.accept_sql_profile(:stmt_task); END; * ERROR at line 1: ORA-13786: missing SQL text of statement object "1" for tuning task "TASK_2767" ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95 ORA-06512: at "SYS.DBMS_SQLTUNE_INTERNAL", line 16442 ORA-06512: at "SYS.PRVT_SQLPROF_INFRA", line 31 ORA-06512: at "SYS.DBMS_SQLTUNE", line 7544 ORA-06512: at "SYS.DBMS_SQLTUNE", line 7568 ORA-06512: at line 1 SQL> DECLARE 2 l_sql_tune_task_id VARCHAR2(200); 3 BEGIN 4 l_sql_tune_task_id := DBMS_SQLTUNE.accept_sql_profile ( 5 task_name => ':stmt_task', 6 name => 'TEST_PROFILE', 7 force_match => TRUE, 8 profile_type => DBMS_SQLTUNE.PX_PROFILE); 9 END; 10 / DECLARE * ERROR at line 1: ORA-13605: The specified task or object :stmt_task does not exist for the current user. ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86 ORA-06512: at "SYS.PRVT_ADVISOR", line 5878 ORA-06512: at "SYS.PRVT_SQLPROF_INFRA", line 28 ORA-06512: at "SYS.DBMS_SQLTUNE", line 7544 ORA-06512: at line 4
I think you forgot the taskname-online setting "TaskName":
DECLARE
stmt_task VARCHAR2 (64);
BEGIN
stmt_task: = dbms_sqltune.create_tuning_task (sql_id-online '6d66jzkkyg2sw', task_name-online 'task_name');
END;
/SQL > EXEC dbms_sqltune.accept_sql_profile ('task_name');
-
Hi all
I have create report sql in version 4.2, and now we have apex version 5.0 upgrade.
I encountered error when I change the State of sql
The error massage:
Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00905: lack of keyword
My SQL
SELECT VW.*
, CASE WHEN (VW.file_code is null
OR VW.cancel_flg = 'Y'
OR (TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = trunc (sysdate))
) THEN
' < font color = "Red" > < b > other < /b > < / police > '
ON THE OTHER
"< a href =" f? p = & APP_ID.:51: & SESSION. : O PR: & DEBUG. : 51:P51_FILE_CODE, P51_COSTING_CODE, P51_TOUR_REG_NO, P51_VERSION_NO, P51_REQUEST, P51_AGENT_NAME, P51_ADULTS, P51_CHILDS, P51_MKT_CODE, P51_QUOT_CURR:'
|| FILE_CODE | «, » || COSTING_CODE | «, » || TOUR_REG_NO | «, » || VERSION_NO | «, » ||' OPR' | «, » || AGENT_CODE | «, » || VW. FROM_PAX | «, » || 0||','|| VW.mkt_code | ',' | VW. QUOT_CURR |': ' > < font color = blue > < b > other < /b > < / police > '. "
END as "other Actions".
, CASE WHEN ((VW.file_code is not null AND TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = TRUNC (SYSDATE))
OR cancel_flg = 'Y '.
OR (VW. REF_COSTING_CODE = VW. ADDL_FIELD2 AND VW. ADDL_FIELD1 LIKE '% COPIED FROM % OF APPROVAL'
AND BOOKING_NAME LIKE "%-Backup")
) THEN
' < font color = "Red" > < b > edit < /b > < / police > '
ON THE OTHER
"< a href =" f? p = & APP_ID.:149: & SESSION. : & DEBUG. : 149:P149_COSTING_CODE:'
|| COSTING_CODE |': ' > < font color = blue > < b > edit < /b > < / police > '. "
END AS 'Edit '.
, CASE WHEN (Nvl (cancel_flg, 'n') = 'Y')
)
THEN
' < font color = "Red" > < b > add < /b > < / police > '
ON THE OTHER
"< a href =" f? p = & APP_ID.:33: & SESSION. : & DEBUG. : 33:P33_COSTING_CODE, P33_FILE_CODE, P33_MKT_CODE, P33_QUOT_CURR, P33_NO_OF_ADULT, P33_NO_OF_CHILD:'
|| COSTING_CODE | «, » || file_code | «, » || VW.mkt_code | ',' | VW. QUOT_CURR | «, » || VW. FROM_PAX | «, » || 0 | ': "> < font color = blue > < b > add < /b > < / police > '
END as 'Services '.
OF TOUR_MAS_VW VW
How to solve it.
Thank you
Dear friends
Thanks for your helping hands.
I found the solution for this. We can solve this problem by using these solutions
- A region of HTML:
click me
- Using PL/SQL:
htf.anchor('f?p=100:5:'||V('APP_SESSION'),'click me');
- Using a SQL query: SELECT htf.anchor('f?p=100:5:'||:APP_SESSION,'clickme') FROM DUAL;
We can write the query in the form
SELECT ' f? p = 100: 1 :'|| : APP_SESSION |': ' | : APP_UNIQUE_PAGE_ID |
': P1_EMPNO :'|| employe_id,
first name,
job_id
Employees
Thank you & best regards
CORINE
- A region of HTML:
-
ORA-00936: lack of Interface STEP expression for update flag lines
Hello world!
We have an interface that retrieves data of essbase and the load into a table target Oracle.
We use the Modules (KM) following Knowledge:
LKM Hyperion Essbase DATA SQL
IKM SQL incremental update
When we run the interface, at the stage of 'flag to update lines', we get the following error
Stage: 'make update'
Error: ORA-00936: lack of expression
This is definition message tab:
ODI-1228: Exportar Presupuesto General (integration) task fails on ORACLE ODI_STAGE connection target.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression
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.executeForRows(T4CPreparedStatement.java:1115)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)
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:662)
This is CODE tab:
Update HYP_INT. I _TRG_PRESUPUESTO_ESS_GENERAL $
Set IND_UPDATE = 'U '.
When there is)
Select 'X '.
of HYP_INT. TRG_PRESUPUESTO_ESS_GENERAL T
where
)
We do not know why query created the interface has some missing statements when the sql is created. Do you think that a lack or settings or just something worng or a bug?
The ODI client version is ODI_11.1.1.7.0_GENERIC_130128.1205
You give us any suggestions to fix this?
Any suggestions would be very helpful!
Thank you
Ivan Lemus
Since you're using IKM of SQL incremental update, you must mark a logical key on the fields of your target.
This key allows the comparison for insert and update.
-
Hi all
I started playing with OEMM and I get the following error when I try to 'Trace Data Impact' in an Oracle table. Here's what I do:
- I created a template and collected a few schemas/tables:
- Now when I try to "Trace Data Impact' on the table AP_DEF_STG, I get the following:
I already tried to create a "Configuration" for her, I tried to text instead of graphics, but the error is the same. If I go to a view of Oracle and do a "track Data Lineage", I get the same error again.
That someone was already been in this situation? This is the full error trace:
({"error": true, "errorMessage": "SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system"})
', 'errorType': 'Line error', 'errorCodes': "[LNGTRC_E0016]".
","stackTrace":"Error Codes - [LNGTRC_E0016].
Request - VizModelLineage
Settings - showInternalObject [false] showNoType [true] showControlLinks [false] startingIds [17 #4723 #0] isBizUI [false] ObjectID [17 #1 #0] showSummaryView [true] collapseLevel [features] resetCache [fake] profile [] showMappingsAsNodes [true] skipCache [false] tracingDirection [3] tracingType [DataLineage] [ReportTree2202015-104855025] originalStartingObject cacheId [17 #4723 #0] viewType actionType [loadlineage] of viewId [ReportTree2202015-104855025] [ModelLineage]
MITI.web.common.exceptions.LineageUIException: SQL for tracing line error: ORA-22813: value of the operand exceeds the limits of the system
at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:284)
at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)
at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)
at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)
at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:611)
to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:316)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:895)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:918)
to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)
Caused by: MITI.server.services.lineage.LineageException: (LNGTRC_E0016) SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system
at MITI.server.services.lineage.database.LineageDataSource.handle (LineageDataSource.java:41)
at MITI.util.database.CommonDataSource.handleSQLException (CommonDataSource.java:124)
at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:83)
at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)
at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)
at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)
at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)
at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)
at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)
... 21 more
Caused by: java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at MITI.util.database.Query.executeStatement (Query.java:45)
at MITI.util.database.Statement.execute (Statement.java:66)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)
at MITI.util.database.Transaction.execute (Transaction.java:92)
at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)
... more than 27
Caused by:
MITI.server.services.lineage.LineageException: (LNGTRC_E0016) SQL error during the tracing of lineage: ORA-22813: value of the operand exceeds the limits of the system
at MITI.server.services.lineage.database.LineageDataSource.handle (LineageDataSource.java:41)
at MITI.util.database.CommonDataSource.handleSQLException (CommonDataSource.java:124)
at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:83)
at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)
at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)
at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)
at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)
at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)
at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)
at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)
at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)
at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)
at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:611)
to org.apache.tomcat.util.net.JIoEndpoint$ SocketProcessor.run (JIoEndpoint.java:316)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:895)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:918)
to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at MITI.util.database.Query.executeStatement (Query.java:45)
at MITI.util.database.Statement.execute (Statement.java:66)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)
at MITI.util.database.Transaction.execute (Transaction.java:92)
at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)
... more than 27
Caused by:
java.sql.SQLException: ORA-22813: value of the operand exceeds the limits of the system
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1188)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at MITI.util.database.Query.executeStatement (Query.java:45)
at MITI.util.database.Statement.execute (Statement.java:66)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:50)
to MITI.util.database.CommonDataSource$ 1.run(CommonDataSource.java:47)
at MITI.util.database.Transaction.execute (Transaction.java:92)
at MITI.util.database.CommonDataSource.executeTransaction (CommonDataSource.java:80)
at MITI.util.database.CommonDataSource.executeStatement (CommonDataSource.java:54)
at MITI.server.services.lineage.impl.LineageImpl.traceLineage (LineageImpl.java:554)
at MITI.server.services.lineage.common.LineageTracer.traceLineage (LineageTracer.java:1078)
at MITI.server.services.lineage.common.LineageTracer.traceDataLineage (LineageTracer.java:313)
at MITI.server.services.lineage.common.LineageTracer.traceTechnicalData (LineageTracer.java:176)
at MITI.web.common.service.facades.LineageFacadeImpl.getLineageGraph (LineageFacadeImpl.java:245)
at MITI.flash.tabs.VizModelLineage.getLineageTree (VizModelLineage.java:429)
at MITI.flash.tabs.VizModelLineage.buildLineageGraph (VizModelLineage.java:356)
at MITI.flash.tabs.VizModelLineage.performAction (VizModelLineage.java:148)
at MITI.server.servlets.FlashServlet.doPost (FlashServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
Oracle has published OEMM 12.2.1 and this error is gone! So if you are facing this problem in an older version, just go to the newest one.
-
ODI-1228. ORA-00936: lack of expression
Hi all
I have an existing map where I load data flatfile Hyperion Essbase 11.
This is achieved in the 2 interfaces.
1. 1 flat file, 1 table Oracle to Oracle (staging)
2. oracle (Staging) to Hyperion Essbase
I am currently working on interface 1 that has 2 sources: a flat file and an oracle with a join condition table and an oracle target. The change is the addition of 2 new columns. I added 2 new columns in the flat file. I added these 2 columns to the target oracle table also. I changed all the MILES that are:
1. oracle to SQL file
2. LKM SQL for Oracle
3 control of the IKM SQL add - Mindstream - DataQuality - tests
Diff of the target staging area is not checked.
Data are not be fulfilled to target oracle table. I get the following error.
Error: ODI-1228: data_V2 load TXT_ORA 7B (integration) task fails on the target of ORACLE ORA_HYPTEST connection.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression
I tested the connection in the scheme physical and is very well. I am able to see the structure of the table also under the mapping tab with which I think that I am connected to the target.
Kindly advice.
Thank you
Hello
Can you please open the step failed ODi operator and goto code tab and copy and paste the code into the SQl command prompt and run manually and see the same error message comes or not, if there is error coming on yesy interface map.
hope this will help you follow the question
Kind regards
Phanikanth -
Could not commit: ORA-00928: lack of creating the table SELECT keyword
Hello guys.
I tried to create the table with web interface on oracle 11g.
I just follow this path on interface: schema-> table-> create-> standard (lot organized)-> SQl select on (set using the)->
and I just use these scripts to create the table:
CREATE TABLE suppliers
(the number (10) of supplier_id not null,)
supplier_name varchar2 (50) not null,
Contact_Name varchar2 (50)
);
but this error occurred: failed to commit: ORA-00928: lack of SELECT key word!
Please lock on this picture for more information: http://s17.postimg.org/kgoumzmvz/attachment.jpg
could you help me please?
and I could not find any manual for working with the web interface in oracle 11g.
Please give me somesources to start.
Thank you.1003778 wrote:
Thank you sybrand_b
but I already read this document.
Unfortunately, there is nothing on the creation of table with sql scripts in this document!and I really don't understand how to create table with SQL commands! My question has not yet been answered.
you please give me little details about it?
for example, how can create table using this sql command:CREATE TABLE suppliers
(the number (10) of supplier_id not null,)
supplier_name varchar2 (50) not null,
Contact_Name varchar2 (50)
);Thank you.
Edited by: 1003778 may 3, 2013 11:43
When you got to the CREATE TABLE screen, you have selected "set using the--> SQL.
Did you notice in the window that appears, just above this entry field is this text: "enter a SQL * select * statement below.» ' + This query results will be used to fill the table with Canada.* + "(underlining)
And hip, just to the left of this field is this text: «CREATE TABLE AS»He tries to build a ' CREATE TABLE AS SELECT... ». Creates a table with the same structure as the table in which you SELECT and fills with the results of this SELECT '. With your entry, you create a CREATE TABLE AS CREATE TABLE to read statement...
If you want to create your tables with a simple CREATE TABLE command, go to sqlplus and do it. You want to have a graphical interface to help build a simple CREATE table, when you get to the CREATE TABLE page, just to stay there with the default "use Define-> column specification." If you want, after completing "build" your table specification here, you will have a "Show sql" option to show you the actual sql statement that will be executed to create your table.
-
ORA-00928: lack of SELECT keyword
Hello
My version of oracle 9i, I need to use a dynamic array
I use the query but I'm below receive the error-ORA-00928: lack of SELECT keyword
declare
o_error_message VARCHAR2 (500);
l_query varchar2 (2000);
HEADER_TABLE VARCHAR2 (30);
BEGIN
Select TABLE_NAME in HEADER_TABLE
from sys.all_tables
where
Upper (table_name) = Upper ('cd_alloc_header_conv');
for r_allocconv in
(SELECT t.ORDER_NO
Of
shconv. CD_ORDER_CONV_TRACK t
WHERE
t.RMS_update_status = 'Y' AND
t.ALLOC_UPDATE_STATUS =' only)
loop
l_query: ='(insert en shconv.) CD_ALLOC_HDR_ACT_CONV (ALLOC_NO,
ORDER_NO,
WH,
SKU,
STATUS,
ALLOC_DESC,
PO_TYPE,
ALLOC_METHOD,
RELEASE_DATE,
ALLOC_TYPE,
ALLOC_RIB_STATUS,
CREATED_BY,
CREATE_DATE,
UPDATED_BY,
UPDATE_DATE,
CREATE_PGM_NAME,
ROW_ID,
EXCEPTION_DETAILS,
CONV_UPDATED_STATUS) select * from shconv.' | HEADER_TABLE | "WHERE order_no =' | r_allocconv.order_no |') ' ;
run immediately l_query;
END LOOP;
EXCEPTION
WHILE OTHERS THEN
o_error_message: = "error in CD_ALLOC_CONV_MAIN" | substr (SQLERRM, 1, 250);
dbms_output.put_line (o_error_message);
END;
ORA-00928: lack of SELECT keyword
Please suggestHello
990047 wrote:
...
l_query: ='(insert en shconv.) CD_ALLOC_HDR_ACT_CONV (ALLOC_NO,...
CONV_UPDATED_STATUS) select * from shconv.' | HEADER_TABLE | "WHERE order_no =' | r_allocconv.order_no |') ' ;
I don't think you want to Try parentheses
l_query := 'insert into shconv.CD_ALLOC_HDR_ACT_CONV(ALLOC_NO, ... CONV_UPDATED_STATUS) select * from shconv.' || HEADER_TABLE ||' WHERE order_no=' ||r_allocconv.order_no;
I wonder if you have the best table design for what you need.
Apparently, you have mulitple header_tables, who are all pretty similar. Would it not be simpler if you just had a header_table, with a column that distinguishes the lines that are now in separate tables? Her you wouldn't need dynamic SQL code at all. This work would be much simpler, more efficient and more robust.I hope that answers your question.
If this isn't the case, after a complete test script that people can run to recreate the problem and test their ideas. -
ORA-00905: lack of keyword
Hi all
CREATE OR PACKAGE BODY ORDER_MANAGEMENT IS
FUNCTION GETERROR (ERRORCODE NUMBER) RETURN VARCHAR2
IS
V_ERRORDESC VARCHAR2 (500)
Error on line 1
ORA-00905: lack of keyword
V_ERRORCODE NUMBER (10);
Error on line 9
ORA-00900: invalid SQL statement
CURSOR TEST_ERROR IS
Error on line 10
ORA-00900: invalid SQL statement
SELECT TEXTE_ERREUR
OF API_ERRORS
WHERE ERROR_CODE = V_ERRORCODE
*
Error on line 3
ORA-00904: "V_ERRORCODE": invalid identifier
Any idea?
KaiLine
V_ERRORDESC VARCHAR2 (500);
missing a semicolon.
SY.
-
ASM >; ALTER DISKGROUP >; error: ORA-00905: lack of keyword
Oracle 10.2.0.3.0 on RHEL 5 database
SQL > create diskgroup data4
external redundancy 2
3 disc "ORCL:DATA4";
DiskGroup created.
SQL > ALTER DISKGROUP DATA4 SET the ATTRIBUTE "compatible.rdbms" = "10.1 ';
ALTER DISKGROUP DATA4 SET the ATTRIBUTE "compatible.rdbms" = "10.1 '."
*
ERROR on line 1:
ORA-00905: lack of keyword
Is not the correct syntax? Please help... Thank you!
SQL > alter diskgroup DATA4 set attribute "au_size" = "4 M";
alter diskgroup DATA4 set attribute "au_size" = "4 M"
*
ERROR on line 1:
ORA-00905: lack of keywordCipherDBA wrote:
Hi, Aman-I have check the syntax before posting this message. I always get the error message, even if I believe that my syntax is correct.
SET the ATTRIBUTE 'attributeName' = "attribute_value".
Have you seen my 2nd answer where I asked that you are sure that 4 M size to THE East actually possible in 10g ASM (10203 your version) as far as I KNOW, this has begun to 11.1 from which can reach the size of the AU to a default value of 1 M 64 M. And this must explain the reason why your order is a failure since it was added in 11.1 Reference sql of the DSO. See 2nd link I gave.
Aman...
-
ERROR: ORACLE prepare error: ORA-00936: lack of expression
Hello
I am required to run the 'pass-through' Oracle SQL, to extract data from tables in the SAS for processing and handling. My code (attached) reads and writes (runs) but with zero records to test first. I can't get beyond the error to prepare.
The request is just like other queries that seem to work, but I can't get past this prepare error. I have no other access to individauls with an adequate knowledge of the PL SQL and as a last stop hoped others in the forum could quickly identify the source of the error.
Thank you very much in advance for any help.
Jeff
_______________________________________
1; *'; * « ; * / ; Quit; execution risk;
2 OPTIONS NUMPAGE = MIN;
3% LET _CLIENTTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
4% LET _EGTASKLABEL = % NRBQUOTE (rx_biplr_v3_2);
5% LET _CLIENTPROJECTNAME = %NRBQUOTE();
6% LET _SASPROGRAMFILE =;
7
8 ODS CLOSE SUBJECT;
NOTE: Some of your options or statements will not be managed with the Activex or Java Series devices. Chart by default for these
drivers may be different from other SAS/GRAPH device drivers. For more information, please contact Technical Support.
9 OPTIONS DEV = ACTIVEX;
10 EGHTML TEMP FILE NAME;
NOTE: Writing, body HTML (EGHTML) file: EGHTML
11 ODS HTML(ID=EGHTML) FILE = EGHTML ENCODING = 'utf - 8' STYLE = EGDefault.
11. STYLESHEET=(URL="file:///C:/program%20Files/SAS/shared%20Files/BIClientStyles/EGDefault.CSS")
11. ATTRIBUTES = ("http://www2.sas.com/codebase/graph/v91/sasgraph.exe"="CODE") NOGTITLE NOGFOOTNOTE GPATH = & sasworklocation
11.
12
gaccessible 13%;
14 /********************************************************/
15 * RX_BIPLR_V3. SAS;
16 /********************************************************/
17
18 dm 'journal clearly out; delete ";
19 linesize options = 120;
20 option obs = 0 NoReplace;
21
22 ****************************************************************************************;
23 * date reviewed programmer in WHICH WAS MADE;
24 *----- -------------- ------------ -----------------------------------------;
25 * 2005 creation of David Boyd program to the test population;
26 *;
27 * 06/02/2006 Ivon Jones changed to include the whole of the population;
28 *;
29 * 20/07/2006 Ivon Jones identified the holdout data elements;
30 * or inclusion in the consolidation with;
31 * Robin report;
32 *;
33 * 18/08/2006 Ivon Jones updated specific therapeutic Classes.
34 * 10 - 2009 J Shaf - changed to extract actual or potential of UBH bipolar Dx and medical claims.
35 ****************************************************************************************;
36
37
38
39 * % let allclmorgn = (', 'A'); / * claims origin code * /.
40% would let begdate ='01 SEP 2009;
41% let enddate = 30 SEP 2009 would be;
42% let q = %str(%');
43
44
45 data _null_;
46. call symput ("fdos", put (intnx ('month' ' and begdate "d,-27," starts"), date9.));
47 call symput ('ldos', put (intnx ('months', ' and enddate "d-0, 'end'" "), date9.));
48, run;
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
2 the system SAS 11:44 Friday, October 30, 2009
time CPU 0.01 seconds
49
50
51
52 **************************************************************;
53 *? Data _null_ stage allows to create a macro variable to;
54 * year and month, based on the macro ldos variable in the data;
55 * step up? ;
56 **************************************************************;
57
58
59 data _null_;
If 60 months ("& ldos" d) < 10
61, then call symput ("yr_mo", compress (year ("& ldos" d) |)) '0' || months ("& ldos" d)));
62 other call symput ("yr_mo", compress (year ("& ldos" d) | months ("& ldos" d)));
63 to run;
NOTE: The numeric values were converted to character values in the locations given by: (Line): (Column).
61:39 61:64 62:39 62:57
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
time processor 0.01 seconds
64
65 * make % & biplr_dx;
position 66% & begdate;
' 01 SEP 2009 would be
67% put & enddate;
30 SEP 2009 would be
68% put & fdos;
JUNE 1, 2007
69% put & ldos;
SEPTEMBER 30, 2009
70% put & q;
'
71
72
73 libname biplr ' / home/jshafi01/projects/adhoc/biplr_dprsn/data ';
NOTE: Libref BIPLR has been awarded with success as follows:
Engine: V9
Physical name: / home/jshafi01/projects/adhoc/biplr_dprsn/data
74 rosdwp libname = oracle user "& oracle_user." pass = "& oracle_pass." ' buffsize = 32767 path = "rosdwp"; "
NOTE: Libref ROSDWP has been awarded with success as follows:
Engine: ORACLE
Physical name: rosdwp
75
work.biplr_up_v1 76 data;
mbr_id length 77 attrib = $ 26;
78 the value biplr.biplr_ubh_med_v1;
79 to be performed;
NOTE: There were 0 read comments from the BIPLR data set. BIPLR_UBH_MED_V1.
NOTE: All data WORK. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: DATA statement used (total duration of processes):
time real 0.01 seconds
3 the system SAS 11:44 Friday, October 30, 2009
time processor 0.01 seconds
80
81 proc content;
82 to be performed;
NOTE: PROCEDURE used CONTENT (total duration of processes):
time real 0.03 seconds
time CPU 0.03 seconds
83
84 proc datasets
85 = rosdwp nolist library.
86. delete biplr_up_v1;
87 of quitting;
NOTE: The removal of ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: PROCEDURE used DATASETS (time Total of processes):
time real 3.74 seconds
time CPU 0.03 seconds
88
89 proc datasets
90 = work nolist library.
copy 91 = rosdwp move;
92 select biplr_up_v1;
93 of quitting;
NOTE: Move WORK. BIPLR_UP_V1 to ROSDWP. BIPLR_UP_V1 (memtype = DATA).
NOTE: Variable labels SAS, formats and lengths are not written to the DBMS tables.
NOTE: There were 0 read comments from the WORKING data set. BIPLR_UP_V1.
NOTE: All the data ROSDWP. BIPLR_UP_V1 has 0 comments and variables 1.
NOTE: PROCEDURE used DATASETS (time Total of processes):
real 0.32 seconds
time CPU 0.04 seconds
94
95
96
97 *****************************************************************************;
98
99 * execute (commit) by rosdwp
100 ******************************************************************************;
101
102
103 proc SQL noprint.
104, connect to oracle as rosdwp (user = "" & oracle_user. "password =" "& oracle_pass ' buffsize = 32767 path ="rosdwp")
104. preserve_comments);
run 105 (alter session set nls_date_format = 'ddmonyyyy') by rosdwp;
CREATE table biplr_rx like 106
107 SELECT
mrb_id 108,
pcp_spc 109,
rx_date 110,
4 the system SAS 11:44 Friday, October 30, 2009
Mark 111,
generic, 112
113 ahfs_cd
ahfs_dsc 114,
lbl 115,
strngth 116,
UNT 117,
spc_tx_cls_cd 118,
119 spc_tx_cls_dsc,
GCN 120,
rx_num 121,
rx_ingrd 122,
rx_paid 123,
rx_cnt 124,
rx_qty 125,
rx_day 126
127 rosdwp CONNECTION
128 (SELECT
129, middle of the year. UNIQ_MBR_ID as mrb_id,
130 DB. PRVDR_SPCLTY_DESC as pcp_spc,
FCP 131. LAST_SRVC_DT as rx_date,
132 JJ. BRAND_NAME as mark,
133 JJ. GNRC_NAME as generic,
134 JJ. AHFS_THRPTC_CLS_CD as ahfs_cd,
DD 135. AHFS_THRPTC_CLS_DESC as ahfs_dsc,
136 JJ. LABEL_NAME as lbl,
137 JJ. STRNGTH_NUM as strngth
138 JJ. STRNGTH_UNIT_DESC as unt,
139 JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd,
140 DD. SPECF_THRPTC_CLS_DESC as spc_tx_cls_dsc,
141 JJ. GCN_NUM as gcn,
FCP 142. PRSCRPTN_NUM as rx_num,
SUM of 143 (FCP. INGRDNT_AMT) as rx_ingrd,
SUM of 144 (FCP. PD_AMT) as rx_paid,
$ 145 (FCP. UNIT_SRVC_CNT) as rx_cnt,
SUM of 146 (FCP. DSPNSD_QTY) as rx_qty,
SUM of 147 (FCP. DAY_SUPLY_CNT) as rx_day
148
149 PHRMCY_CLM_FACT pcf,
150 MBR_ID_DMNSN environment,
151 DRUG_DMNSN dd,
152 PRVDR_DMNSN pd,
153 biplr_up_v1
154. WHERE THE
(155)
156 (biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
157 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
158 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
159 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
160 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
161 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
162 (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN q. & fdos. & q and & q. & ldos. & q)
163)
164 Group By
165 mi. UNIQ_MBR_ID,
166 pd. PRVDR_SPCLTY_DESC,
FCP 167. LAST_SRVC_DT,
168 JJ. BRAND_NAME,
5 the system SAS 11:44 Friday, October 30, 2009
169 JJ. GNRC_NAME,
170 JJ. AHFS_THRPTC_CLS_CD,
171 JJ. AHFS_THRPTC_CLS_DESC,
172 JJ. LABEL_NAME,
173 JJ. STRNGTH_NUM,
174 JJ. STRNGTH_UNIT_DESC,
175 JJ. SPECF_THRPTC_CLS_CD,
176 JJ. SPECF_THRPTC_CLS_DESC,
177 JJ. GCN_NUM,
FCP 178. PRSCRPTN_NUM
179);
ERROR: ORACLE prepare error: ORA-00936: lack of expression. SQL statement: SELECT middle. UNIQ_MBR_ID as mrb_id,
RDL PRVDR_SPCLTY_DESC like pcp_spc, FCP. LAST_SRVC_DT as rx_date, JJ. BRAND_NAME as brand, JJ. GNRC_NAME as generic,
DD. AHFS_THRPTC_CLS_CD like ahfs_cd, JJ. AHFS_THRPTC_CLS_DESC as ahfs_dsc, JJ. LABEL_NAME as lbl, JJ. STRNGTH_NUM as
strngth, JJ. STRNGTH_UNIT_DESC as unt, JJ. SPECF_THRPTC_CLS_CD as spc_tx_cls_cd, JJ. SPECF_THRPTC_CLS_DESC as
spc_tx_cls_dsc, JJ. GCN_NUM as gcn, FCP. PRSCRPTN_NUM as rx_num, SUM (FCP. INGRDNT_AMT) as rx_ingrd, SUM (FCP. PD_AMT)
as rx_paid, SUM (FCP. UNIT_SRVC_CNT) as rx_cnt, SUM (FCP. DSPNSD_QTY) as rx_qty, SUM (FCP. DAY_SUPLY_CNT) as rx_day
OF PHRMCY_CLM_FACT pcf, MBR_ID_DMNSN mi, DRUG_DMNSN JJ, pd of the PRVDR_DMNSN, biplr_up_v1 () WHERE the
(biplr_up_v1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and (PHRMCY_CLM_FACT. FINL_CLM_KEY =
PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
(PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
(PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND (PHRMCY_CLM_FACT. LAST_SRVC_DT BETWEEN ' 01 JUN 2007"
and 30 SEP 2009') Group By mi. UNIQ_MBR_ID, pd. PRVDR_SPCLTY_DESC, FCP. LAST_SRVC_DT, JJ. BRAND_NAME,
DD GNRC_NAME, JJ. AHFS_THRPTC_CLS_CD, JJ. AHFS_THRPTC_CLS_DESC, JJ. LABEL_NAME, JJ. STRNGTH_NUM,
DD STRNGTH_UNIT_DESC, JJ. SPECF_THRPTC_CLS_CD, JJ. SPECF_THRPTC_CLS_DESC, JJ. GCN_NUM, FCP. PRSCRPTN_NUM.
NOTE: PROC SQL set NOEXEC option and will continue to check the syntax of the instructions.
180 run (drop table biplr_up_v1) in rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
181 disconnect of rosdwp;
NOTE: Statement is not executed because the NOEXEC option.
182 of quitting;
NOTE: The SAS system is stopped at this stage of processing errors.
NOTE: PROCEDURE used SQL (total duration of processes):
time real 0.14 seconds
time CPU 0.03 seconds
183
184(1) assuming that LAST_SRVC_DT is a column of PHRMCY_CLM_FACT, to precede the table alias "FCP" rather than the full table name. If a table alias is specified in the FROM clause, it should be used rather than the full table name when you reference the columns.
2) there are two tables in the WHERE clause that do not appear in the FROM clause:PHRMCY_FINL_CLM_DMNSN
MBR_BNFT_DMNSNuser12142482 wrote:
Hello again,Wish Oracle was a bit more informative. Uses an Institute of SAS product called Enterprise Guide. A "hot fix" has been installed to solve a problem that the product appears unable to save the latest version of the revised code changes (hence "BETWEEN between" remaining even after an earlier edition). In any case, with the change, now get this error:
«ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT".» ' LAST_SRVC_DT': invalid identifier. (The log file is displayed below)
-The-Les restes remains of the error, no matter if code "pass" is used to move the date range to Oracle (which seems correct to the log output below that I believe), or if I hard code the date range in the query SQL PL itself.
-L' preparation error always appears at the end of the internal SELECTION.
-L' error of preparation remain, with or without the GROUP BY clause.Is there something else I'm missing? Someone suggested a reserve word - but other versions of the ANSI SQL standard, I don't see that is the case. I went to Support SAS and SAS list serve to the University of Georgia, but nothing definite from these sources. Have requested either able to run Oracle directly, outside this SAS Institute product - process.
Any suggestions are greatly appreciated. Thank you to all the world very much.
Jeff
150 OF
151 PHRMCY_CLM_FACT pcf,
152 MBR_ID_DMNSN environment,
153 DRUG_DMNSN dd,
154 PRVDR_DMNSN pd,
155 BIPLR_UP_V1 BLPR2
156. WHERE THE
157 (BIPLR_UP_V1.mbr_id = MBR_ID_DMNSN. UNIQ_MBR_ID) and
158 (PHRMCY_CLM_FACT. FINL_CLM_KEY = PHRMCY_FINL_CLM_DMNSN. FINL_CLM_KEY) AND
159 (PHRMCY_CLM_FACT. MBR_KEY = MBR_ID_DMNSN. MBR_KEY) and
160 (PHRMCY_CLM_FACT. BNFT_KEY = MBR_BNFT_DMNSN. BNFT_KEY) and
161 (PHRMCY_CLM_FACT. DRUG_KEY = DRUG_DMNSN. DRUG_KEY) and
162 (PHRMCY_FINL_CLM_DMNSN. CLM_ORGN_CD IN (', 'A')) AND
163 (PHRMCY_CLM_FACT. BETWEEN LAST_SRVC_DT & q. & fdos. & q and q & ldos. & q)
(164);
ERROR: ORACLE prepare error: ORA-00904: "PHRMCY_CLM_FACT." "' LAST_SRVC_DT ': invalid identifier. SQL statement: -
Automated row Fetch on Table with synonym causes ORA-00936: lack of expr.
Hello!
I have a form that displays a database record.
To select which record I want to see, I drop-down box that returns the primary key.
The elements in the form are populated by a standard automated row Fetch.
Everything works well, even if I replace the table with a point of view on this table or replace it with a local view of a view in a different schema. (I do this by changing the name of 'table' in the FRA process.)
When I define a synonym on the table or the view I get
ORA-06550: line 1, column 17: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 9: PL/SQL: statement ignored
-which is a complete mystery to me.
Does anyone have a tip for me?
Many thanks in advance,
Sabine
If you want to see the effect (login: demo/demo):
Table:
[http://apex.oracle.com/pls/otn/f?p=17361:3 | http://apex.oracle.com/pls/otn/f?p=17361:3]
Synonym:
[http://apex.oracle.com/pls/otn/f?p=17361:4 | http://apex.oracle.com/pls/otn/f?p=17361:4]Sabine,
What a view of the synonym?
See Re: Automated line Fetch of Public synonym error to learn more.
Greg
-
whenever I run this code I get this error
SQL Error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
Don't know wht goes wrong!
SQL:
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s
full outer join (select * provider where COMPANY_CODE = 2) d
on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
UPDATE SET s.VENDOR = d.VENDOR
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (SELLER, COMPANY_CODE)
VALUES (d.VENDOR, d.COMPANY_CODE)
Work request: (deleted the duplicate data in tables (source and target))
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR))
- AND D.ACTIVEDATE = S.ACTIVEDATE
and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))
and (d.COMPANY_CODE = s.COMPANY_CODE)
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from suppliers where COMPANY_CODE = 2) d
full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s
on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)
VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)
-
SQL Error: Invalid identifier ORA-00904
Hello
The Version of SQL Developer: 11g
Two tables: nav_vendors (source), vendor (destination)
Both having 16 'Same' columns (data will differ for some records of... for some data records are same to check the process DML works according to the need).
I'm trying to insert update and delete using merge operation
I m getting error below whenever I tried to merge them. All column names are the same in the table.
SQL error: ORA-00904: "S". "" COMPANY_CODE ": invalid identifier
SQL:
MERGE INTO s source
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.Name, s.Name) NAME.
NVL (d.NAME3, s.NAME3) Name3,
NVL (d.ADDRESS1, s.ADDRESS1) address1.
NVL (d.DISTRICT, s.DISTRICT) DISTRICT.
NVL (d.CITY, s.CITY), CITY,
NVL (d.Country, s.Country) COUNTRIES.
NVL (d.Postcode, s.Postcode) ZIP Code,
NVL (d.TELEPHONE, s.TELEPHONE), PHONE,.
NVL (d.Fax, s.Fax) FAX.
NVL (d.contact, s.contact) CONTACT.
NVL (d.URL, s.URL) URL.
NVL (d.email, s.email) EMAIL.
NVL (d.DELIVERY_TOLERANCE, s.DELIVERY_TOLERANCE) DELIVERY_TOLERANCE.
NVL (d.EXCLUDE_REWORK_TEXT, s.EXCLUDE_REWORK_TEXT) EXCLUDE_REWORK_TEXT.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case
When ((d.VENDOR = s.VENDOR)
and (d.NAME = s.NAME)
and (d.NAME3 = s.NAME3)
and (d.ADDRESS1 = s.ADDRESS1)
and (d.DISTRICT = s.DISTRICT)
and (d.CITY = s.CITY)
and (d.COUNTRY = s.COUNTRY)
and (d.POSTCODE = s.POSTCODE)
and (d.TELEPHONE = s.TELEPHONE)
and (d.FAX = s.FAX)
and (d.CONTACT = s.CONTACT)
and (d.URL = s.URL)
and (d.EMAIL = s.EMAIL)
and (d.DELIVERY_TOLERANCE = s.DELIVERY_TOLERANCE)
and (d.EXCLUDE_REWORK_TEXT = s.EXCLUDE_REWORK_TEXT)
and (d.COMPANY_CODE = s.COMPANY_CODE))
then "correspondence".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
on the other
"no match."
chck end)
of s nav_vendorz
full outer join of the seller d
On(d.COMPANY_CODE=s.COMPANY_CODE)
) d
(S.COMPANY_CODE = d.COMPANY_CODE AND (in d.chck ("not matched", 'match', 'DELETE')))
WHEN MATCHED THEN
->UPDATE SET s.company_code = d.company_code <-error line
WHERE in d.chck ("not matched", "DELETE")
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, NAME, ADDRESS1, NAME3, NEIGHBORHOOD, CITY, COUNTRY, CODE POSTAL, PHONE, FAX, CONTACT, URL, EMAIL, DELIVERY_TOLERANCE, EXCLUDE_REWORK_TEXT, COMPANY_CODE)
VALUES
(d.VENDOR, d.NAME, d.NAME3, d.ADDRESS1, d.DISTRICT, d.CITY, d.COUNTRY, d.POSTCODE, d.TELEPHONE, d.FAX, d.CONTACT, d.URL, d.EMAIL, d.DELIVERY_TOLERANCE,d.EXCLUDE_REWORK_TEXT,d.COMPANY_CODE);/
(1) use different alias names
(2) do not try to update a column that is used to 'ON' clause.
-
SQL error: ORA-31038: invalid number '420,05' when extracting data from XML
Hello everyone ,
J’ai créé dietingDBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >
" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">
< xs: element name = "Monsigniore" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "FechaCreacion" type = "xs: DateTime" / >
< xs: element name = "Version" type = "xs: String" / >
< xs: ELEMENT ref = "News" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "News" >
< xs: complexType >
< xs: Choice >
< xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "T_OrdenCompra" >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "News" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "OrdenCompraBusqueda" >
< xs:complexContent >
< xs:extension base = "T_OrdenCompra" >
< / xs:extension >
< / xs:complexContent >
< / xs: complexType >
< xs: element name = "Item" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
"< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >
< xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Fechas" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Comprador" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" nillable = "true" / >
< xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Proveedor" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,
FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);
I have a table with one xml domain.
CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,
Fecha_Ordenes number not null,
Correlativo_Ordenes number not null,
Codigo_Orden varchar2 (20) not not null primary key,
Cant_Item,
Date of InicioProceso,
Date of FinProceso,
Xmltype Orden_Detalle not null)
Orden_Detalle XMLTYPE COLUMN
STORE AS BINARY XML
XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "
ELEMENT "command";
I inserted data like that, without any Errors:" < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
< Number > 1 < / quantity >
< FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >
v1 < version > < / Version >
< Return >
< OrdenCompra xsi: type = "OrdenCompraBusqueda" >
3879-2661-SE14 < code > < / code >
< Number > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / number >
< CodigoEstado > 6 < / CodigoEstado >
3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >
< Description > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / description >
< CodigoTipo > 8 < / CodigoTipo >
< Type > SE < / Type >
< TipoMoneda > CLP < / TipoMoneda >
Is < State > < / Estado >
< CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >
Is < EstadoProveedor > < / EstadoProveedor >
< Fechas >
< FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >
< FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >
< FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >
< FechaCancelacion xsi: Nil = "true" / >
< FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >
< / Fechas >
< TieneItems > 1 < / TieneItems >
< PromedioCalificacion > 5 < / PromedioCalificacion >
< CantidadEvaluacion > 1 < / CantidadEvaluacion >
< Well > 0 < / well >
cargo <>0 < / cargo >
< TotalNeto > 53782 < / TotalNeto >
< PorcentajeIva > 19 < / PorcentajeIva >
< Impuestos > 10218 < / Impuestos >
< total > 64000 < / Total >
< Financing > 1140569 < / financing >
< Country > CL < / Pais >
< TipoDespacho > 12 < / TipoDespacho >
< FormaPago > 2 < / FormaPago >
< comprador >
< CodigoOrganismo > 118069 < / CodigoOrganismo >
< NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >
< RutUnidad > 69.141.200 - 8 < / RutUnidad >
< CodigoUnidad > 4799 < / CodigoUnidad >
Daem < NombreUnidad > < / NombreUnidad >
< Actividad / >
< DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >
Bulnes < ComunaUnidad > < / ComunaUnidad >
< RegionUnidad > Region del Biobio < / RegionUnidad >
< Country > CL < / Pais >
Antonella Brunetti < NombreContacto > < / NombreContacto >
Adquisiciones < CargoContacto > < / CargoContacto >
< FonoContacto > 56-42-2204053-2204054 < / FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / comprador >
< Proveedor >
< Code > 275020 < / code >
Luis < number > < / number >
< Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >
< CodigoSucursal > 280820 < / CodigoSucursal >
Luis < NombreSucursal > < / NombreSucursal >
< RutSucursal > 5.940.940 - 9 < / RutSucursal >
< Address > Carlos Palacios 125 < / address >
Bulnes < Comuna > < / Comuna >
Region del Biobio < region > < / region >
< Country > CL < / Pais >
< NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >
Gerente < CargoContacto > < / CargoContacto >
< FonoContacto > (56) (42) 631498 < /FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / Proveedor >
elements <>
< Quantity > 7 < / quantity >
< Return >
< item >
< Correlativo > 1 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1550 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 15500 < / Total >
< / point >
< item >
< Correlativo > 2 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1150 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 11500 < / Total >
< / point >
< item >
< Correlativo > 3 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 8 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 170 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1360 < / Total >
< / point >
< item >
< Correlativo > 4 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 580 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 2900 < / Total >
< / point >
< item >
< Correlativo > 5 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > NESCAFE < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 2 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 3900 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 7800 < / Total >
< / point >
< item >
< Correlativo > 6 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 340 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1700 < / Total >
< / point >
< item >
< Correlativo > 7 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 31 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto >420,05< / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 13021,550000000001 < / Total >
< / point >
< / News >
< / object >
< / OrdenCompra >
< / News >
< / Monsigniore >
However when I extract data, for example:
Select *.
from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))
passage (select Orden_Detalle
of xml_Orden_Detalle
where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)
path of columns Correlativo varchar2 (15) 'Correlativo '.
, Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.
, Path Categoria Varchar2 (100 CHAR) "category.
, Path of varchar2 (15) CodigoProducto 'CodigoProducto '.
, Path of Producto Varchar2 (100 CHAR) 'product '.
, Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".
, Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".
, Amount varchar2 (15) path 'amount '.
, Path of the Moneda Varchar2 (16 CHAR) "Moneda".
, Path of varchar2 (15) PrecioNeto 'PrecioNeto '.
, Path of varchar2 (15) TotalCargos 'TotalCargos '.
, Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.
, Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.
, Path of varchar2 (15) total 'Total '.
);
delivery the following error:
Informed of error:
SQL error: ORA-31038: Valor number no valido: "420,05."
«31038 00000 - "value not valid %s: \"%s\»»
* Cause: The text in the XML document does not represent a valid
value given the data type and other constraints in the schema.
* Action: Make sure the value specified in the XML documents is valid
regarding the data type and other constraints in the schema.
Note that extract le agenda [1] but the reported error is à la point [7]
Please If anyone can Help me with le solution for no report error
Thank you very much in advanceCarlosin Chile, the decimal point are ', 'no'.', the xml data table is OK for us
You do not understand.
Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.
(3) TO_CHAR (...) the code is part of a procedure
Again, do NOT build a dynamic path like that.
Why not just move through the records returned by the query (if you need close at all)?
FOR rec in)
SELECT x.*
From your_table t
XMLTABLE (...) x
)
LOOP
END LOOP;
What is the role of the v_CantItems variable? Paging?
Whence its value?
Maybe you are looking for
-
Question about connector Bluetooth internal on Tecra 8100?
Hi all.I have a laptop of 52 - sp pt810e - 13 c. Updated to 512 MB by using 2 toshiba 256 MB pc100 modules purchased on ebay, upgrade to a PIII 850 also obtained in a ebay and upgraded to a larger 40 GB wdc wd400e hard drive, with a lot less noise th
-
Portege M100 - how to replace the RTC battery?
Hello, my Portege M100 RTC battery is flat. I managed to order one of the internet, but I can't locate. I disassemble almost every part of the computer, but if someone could just guide me and give the procedure to replace, that would be great. Thanks
-
Satellite A300 - cannot install display driver
So I formatted my laptop (A300-PSAGCA-0C301N) two nights ago, and be the fool I am I forgot to download and save the necessary drivers for my laptop. So when I started the laptop on a new installation of Windows Vista 32 - bit on a freshly formatted
-
Solutions HP does not recognize my HP Photosmart C3180 printer
When I click on the HP Solution Center, I get the message: No. HP items found. Reinstall the drivers C3180 would help, or is the problem with the configuration of the HP Solution Center? Fine prints, scans to make copies, but I want to scan to a file
-
Certificates for IPSEC vpn in ASA 8.0 clients
Hello! I have configured MS CA and I have setup client vpn and ASA 7.0 make tunnel with certificates. Same configuration does not work with ASA 8.0 I get the error CRYPTO_PKI: Check whether an identical cert is already in the database... CRYPTO_PKI: