Query error

Hi Experts,

I dragged and dropped inputText for display object of the data control on the page.

I valueChangeListener = "#{pageBean.whenNewBlockInstanceSekDtl}" to inputText "

To the bean:

But I got error when the value inputText,.

If (valueChangeEvent.getNewValue ()! = null) {}

PreparedStatement stat = null;

ResultSet rs = null;

DBTransaction dbConnection = null;

String sql1 =

"SELECT EMPLOYEE_ID" +.

'FROM EMP ' +.

"(OÙ COMMENCER =?)" " +

;

try {}

dbConnection = ControllerUtil.getDefaultDBConection ();

= stat dbConnection.createPreparedStatement (sql1, 1);

stat.setString (1, "01/01/1440");

RS = stat.executeQuery ();

While (RS. Next {}

ADFUtils.executeOperator ("CreateInsert1");

ADFUtils.setAttributeValue ("DetailIterator", "Empid", "" + rs.getInt (1));

}

}

catch (Exception e1)

{

E1. PrintStackTrace();

}

}

}

java.sql.SQLSyntaxErrorException: ORA-00907: lack the right parenthesis

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

at hr.bean.pageBean.whenNewBlockInstanceSekDtl(pageBean.java:63)

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

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

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

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

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

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

at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1972)

at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:248)

at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)

at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)

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

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

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

at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)

at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)

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

at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)

at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...

at hr.bean.pageBean.whenNewBlockInstanceSekDtl(pageBean.java:63)

SR = stat.executeQuery ();

Jdev 12 c

Thanks in advance

User, tell us your version of jdev, please!

Have you read the error message?

It tells you that the sql statement does not have the correct syntax: a parenthesis is missing!

Copy the statement into an sql worksheet, remove all the ' "' and signs"+"who are only to concatenate the string and test the query in the spreadsheet!"

By the why, you don't call him never instructions jdbc or sql directly from a bean. What is a module of the application. I remember that we had this discussion before.

Timo

Tags: Java

Similar Questions

  • Run database query error; Help, please

    I had trouble getting this recording to publish on my DB, I have the same shape, put in place to modify an existing record, as well as the addition of a new record. I have 2 errors, can someone help me see what I'm doing wrong? I write the code that I have a problem with and two errors. I'm sorry, this is probably simple. But I looked at this code too long and miss me the problem.

    Code:
    < cfelseif ParameterExists (Form.btnEdit_OK) >

    < ParameterExists (Form.RecordID) cfif >
    < cfset eDate = DateFormat (form.eventDate, "mm/dd/yyyy") >
    "< cfquery datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "dbtype ="ODBC">"
    UPDATE SEEevents
    SET SEEevents.display =' #form.display #', SEEevents.title =' #form.title #', SEEevents.eventDate ='#eDate #', SEEevents.eventTime =' #form.eventTime #', SEEevents.location =' #form.location #', SEEevents.contact =' #form.contact #', SEEevents.phone =' #form.phone #', SEEevents.fax =' #form.fax #', SEEevents.email =' #form.email #', SEEevents.URL ='#form. URL #', SEEevents.sponsor =' #form.sponsor #', SEEevents.Body ='#form. "PDSeditor #
    WHERE RecordID = #form. RecordID #.
    < / cfquery >
    < cflocation url = "events_RecordView.cfm? RecordID = #Form.RecordID # ">"
    < cfelse >
    < cfset eDate = DateFormat (form.eventDate, "mm/dd/yyyy") >
    "< cfquery datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "dbtype ="ODBC">"
    INSERT INTO SEEevents (display, title, eventDate, eventTime, location, contact, telephone, fax, email, URL, sponsor, body)
    VALUES (' #form.display # "," #form.title # "," # #eDate # "," #form.eventTime # "," #form.location # "," #form.contact # "," #form.phone # "," #form.fax # "," #form.email # ', ' #form.) URL #', ' #form.sponsor # ', ' #form. PDSeditor #')
    < / cfquery >
    < cflocation url = "events_RecordView.cfm? RecordID = #GetNewRecord.ID_Field # ">"
    < / cfif >

    Here are the two errors:
    error when editing an existing record:

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Too few parameters. 1 expected.

    The error occurred in C:\websites\108392zj7\admin\events_RecordAction.cfm: line 70

    68: < cfif ParameterExists (Form.RecordID) >
    69: < cfset eDate = DateFormat (form.eventDate, "mm/dd/yyyy") >
    "70: < cfquery datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "dbtype ="ODBC">"
    71: UPDATE SEEevents
    72: SET SEEevents.display =' #form.display #', SEEevents.title =' #form.title #', SEEevents.eventDate ='#eDate #', SEEevents.eventTime =' #form.eventTime #', SEEevents.location =' #form.location #', SEEevents.contact =' #form.contact #', SEEevents.phone =' #form.phone #', SEEevents.fax =' #form.fax #', SEEevents.email =' #form.email #', SEEevents.URL ='#form. URL #', SEEevents.sponsor =' #form.sponsor #', SEEevents.Body ='#form. "PDSeditor #



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

    SQL UPDATE SEEevents SET SEEevents.display = '0', SEEevents.title = 'VIP dinner', SEEevents.eventDate='04/13/2007', SEEevents.eventTime =' 8:30 pm - 23:00 ', SEEevents.location = 'person Restaurant', SEEevents.contact = 'person', SEEevents.phone ='(000) 000.6262', SEEevents.fax = ", SEEevents.email ="[email protected]", SEEevents.URL =' http://www.person.com', SEEevents.sponsor =", SEEevents.Body =' < font size = "2" face = "Verdana, Arial, Helvetica, sans serif" > < strong > Notes: facilities > bookings must be confirmed with a great Cardinal < br > < strong credit > price : < Facilities > Advance: $125. per person (including drinks and tips) at the door: $150. per person, < i > Limited places available < /i > < / police > ' WHERE RecordID = 13
    DATASOURCE ETUCE
    VENDORERRORCODE-3010
    SQLSTATE 07002

    This is the error when publishing a new record:

    Run database query error.
    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Type mismatch of data in the expression of the criteria.

    The error occurred in C:\websites\108392zj7\admin\events_RecordAction.cfm: line 78

    76: < cfelse >
    77: < cfset eDate = DateFormat (form.eventDate, "mm/dd/yyyy") >
    "78: < cfquery datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "dbtype ="ODBC">"
    79: INSERT IN SEEevents (display, title, eventDate, eventTime, location, contact, telephone, fax, email, URL, sponsor, body)
    80: VALUES ("#form.display #", "#form.title #", "# #eDate #", "#form.eventTime #", "#form.location #", "#form.contact #", "#form.phone #", "#form.fax #", "#form.email # ', ' #form.) URL #', ' #form.sponsor # ', ' #form. PDSeditor #')



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

    SQL INSERT INTO SEEevents (display, title, eventDate, eventTime, location, contact, telephone, fax, email, URL, sponsor, body) VALUES ('0 ', 'test', ' # #03/25/2007 ", 12:47 ', 'Home', 'CJD', '' 000-000-0000,", '[email protected]', 'www.saratogaexpo.com', ' ', ' ')
    DATASOURCE ETUCE
    VENDORERRORCODE-3030
    SQLSTATE 22018

    Can someone help me tweek this code? I see double at this stage. Thank you.

    Phoenix

    I thought about it. It's a java tag used by my editor throwing the error in the backup / update of the function.

    Thanks a lot for all the help everyone!
    If I can ever help anyone in any way, feel free to ask.

  • Inconsistent database query error

    I get an error for a simple display query. I use MS Access and CF8. The error is as follows:-

    Run database query error.
    ''

    And to clarify that two single quotes.

    The query I use is as follows: -.

    SELECT *.
    OF tbl_positionRequest
    WHERE position = ' #URL. Position #'
    ORDER BY Position CAD

    He said that the error occurs in the line WHERE.
    The variable is passed correctly, I the debugged in the origin and home page. The funny this is that the output in the debug information is correct when I run it in access and the same query works for another data base (with different domain names).

    In CF Admin I use access Unicode driver and I think that might be the problem.

    Any help would be appreciated.
    See you soon
    David

    Run the query with just the select and from clauses. Do not display the data, just look at the recordcount. I guess a word reserved with position problem.

  • query error - 410 in reading R &amp; S fsp30 Analyzer using agilent usb-gpib?

    Dear users of or,.

    I'm new to Labview. I use labview 8.6.1 to retrieve data from the fsp30 Analyzer R & S helps Agilent gpib 82357 B usb. When I use the trace reading VI provided by R & S, I had problem of query - 410 error code and only get a table of 3 data elements. Could help me solve the problem take I can true data table?

    Thanks in advance!

    Jstin

    It is a specific error of the instrument and should be explained in the manual.

    If you need additional assistance, provide an explanation of the error and the code you are running. Someone with experience with the instrument may be able to see something.

  • SE 'error in the execution of legend ODCIEXTTABLECLOSE' select query error

    Hello

    On query select shooting or read data from the table using the connection, I am getting following error:

    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLECLOSE legend

    ORA-04030: memory of process when trying to allocate 696 bytes (kxs-bunch-p, kkxmixcx: kgmagv)

    ORA-04030: memory of process when trying to allocate 4024 bytes (koh hard lot d, klxctlCreateTmpLob)

    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.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)

    at oracle.jdbc.driver.T4CCallableStatement.fetch(T4CCallableStatement.java:1201)

    at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:658)

    at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:520)

    at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next (unknown Source)


    Note that I use an external table.

    Solved this problem by giving line continuation

    TAILLELUE 2097152
    in the context of

    SETTINGS of my external table ACCESS.

  • Query - error converting data type varchar to float.

    All pop up error message is

    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] [SQL Server] error...

    I use CF10 Report Builder. Here's my query:

    SELECT name.first_name, name.last_name, name.soc_sec, name.name_le1, name.camp_cod, term AS LEFT(MMTemp.term_int, 6), MMTemp.st_addr, MMTemp.add_addr, MMTemp.city, MMTemp.state, MMTemp.zip, transact.sch_yr AS SchYr, transact.ref_id AS AwardDesc, transact.offered AS AwdAmt, nmact.act_memo, MMTemp.Operator, rpt_schy.token, nmbudget.nmbudget_tuition AS tuition, nmbudget_RM_BRD AS RoomBoard,

    CASE

    WHEN finaideurekaawdcat.finaidawdcat_cod like '% E' GOLD finaideurekaawdcat.finaidawdcat_cod as "OT" and THEN "Gift aid & schlorships.

    WHEN finaideurekaawdcat.finaidawdcat_cod = 'FG' THEN 'need based aid.

    WHEN finaideurekaawdcat.finaidawdcat_cod = "FL" AND "federal ready direct.

    ELSE 'work study' END as CatType

    / * CASE WHEN name.camp_cod = "AdultLearn" THEN '17911' ELSE '20510' END HAVE tuition.

    CASE WHEN name.name_le1 = 0 THEN '8835' ELSE '0' END AS RoomBoard * /.

    Name, MMTemp, nmact, transact, finaideurekaawd, finaideurekaawdcat, rpt_schy, nmbudget

    WHERE (MMTemp.Operator = rpt_schy.token or MMTemp.Operator = Right(MMTemp.Operator,8))

    AND MMTemp.soc_sec = name.soc_sec

    AND MMTemp.soc_sec = nmact.soc_sec

    AND MMTemp.activity_cod = nmact.activity_cod

    AND MMTemp.soc_sec = transact.soc_sec

    AND MMTemp.activity_cod = 'AM'

    AND MMTemp.soc_sec = nmbudget.soc_sec

    AND transact.tcodes = 'AW'

    AND transact.accept <>'v '.

    AND transact.sch_yr = rpt_schy.sch_yr

    AND rpt_schy.token = ' #session.token # '.

    AND transact.awd_id = finaideurekaawd.finaidawddesc_cod

    AND finaideurekaawd.finaidawdcat_cod = finaideurekaawdcat.finaidawdcat_cod

    UNION

    SELECT finaideurekaawddesc.finaideurekaawddesc AS AwardDesc, finaideurekaawd.finaideurekaawdtot AS AwdAmt, name.first_name, name.last_name, name.soc_sec, name.name_le1, name.camp_cod, LEFT (MMTemp.term_int, 6) AS a term, MMTemp.st_addr, MMTemp.add_addr, MMTemp.city, MMTemp.state, MMTemp.zip, MMTemp.activity_cod, MMTemp.Operator, finaideurekaawd. Sch_years AS SchYr, nmact.act_memo, nmbudget.nmbudget_tuition AS tuition, nmbudget_RM_BRD AS RoomBoard,

    CASE

    WHEN finaideurekaawdcat.finaidawdcat_cod like '% E' GOLD finaideurekaawdcat.finaidawdcat_cod as "OT" and THEN "Gift aid & schlorships.

    WHEN finaideurekaawdcat.finaidawdcat_cod = 'FG' THEN 'need based aid.

    WHEN finaideurekaawdcat.finaidawdcat_cod = "FL" AND "federal ready direct.

    ELSE 'work study' END as CatType

    / * CASE WHEN name.camp_cod = "AdultLearn" THEN '17911' ELSE '20510' END HAVE tuition.

    CASE WHEN name.name_le1 = 0 THEN '8835' ELSE '0' END AS RoomBoard * /.

    OF MMTemp, nmact, finaideurekaawd, finaideureka, finaideurekaawddesc, finaideurekaawdcat, rpt_schy, nmbudget

    WHERE (MMTemp.Operator = rpt_schy.token or MMTemp.Operator = Right(MMTemp.Operator,8))

    AND MMTemp.activity_cod = 'AM'

    AND MMTemp.activity_cod = nmact.activity_cod

    AND finaideurekaawd.sch_years = rpt_schy.sch_yr

    AND rpt_schy.token = ' #session.token # '.

    AND MMTemp.soc_sec = name.soc_sec

    AND MMTemp.soc_sec = nmbudget.soc_sec

    AND name.soc_sec = nmact.soc_sec

    AND name.soc_sec = finaideurekaawd.soc_sec

    AND name.soc_sec = finaideureka.soc_sec

    AND finaideurekaawd.finaidawddesc_cod = finaideurekaawddesc.finaidawddesc_cod

    AND finaideurekaawd.finaidawdcat_cod = finaideurekaawdcat.finaidawdcat_cod

    ORDER BY name.soc_sec

    I don't see anywhere that I convert varchar to float.

    Which data fields are defined as floating point?

  • Union - generator of grid view layout query error could not create the checkerboard to correct view

    I get the error while I'm trying to run a simple union query below. The query uses simple areas. I use columns the same type of data in the same order in each of the areas and when I run the sql generated backend query, it returns the correct result. Only in obiee front end, it is not showing any result but giving the below error instead. I use version 11.1.1.6.8 Please help!

    The presentation view grid generator could not create the checkerboard to correct view. It lacked the logical column with the following ID: c6d9af7a1de3ca97a.

    Error details

    Error codes: WUSYDB5K

    Geographical area: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.

    handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads

    This is a bug, you must connect your environment to min 11.1.1.6.10 max 11.1.1.6.12/11.1.1.7.x

  • Get blocking detected when waiting for resource query error select...

    Hi all

    I get an error below each time that the execution of the select query below...

    a few times, it will show lock detected while you wait resource and finished...

    a few times, it runs and give the result...

    but all the time, he writes a journal to alert to the alert

    Plesae suggest how to solve the problem...

    Thanks in advance

    .

    Env: Linux / Oracle 11.2.0.3.3

    .

    .

    Alerts log error:

    Errors in the /u01/oracle/oracle/diag/rdbms/bdrdb/bdrdb/trace/bdrdb_p017_6076.trc file:

    ORA-00060: Deadlock detected while you wait resource

    ORA-10387: interruption of server a (normal) parallel query

    Trace file... information bdrdb_p017_6076.trc:

    Trace file /U01/Oracle/Oracle/diag/RDBMS/bdrdb/bdrdb/trace/bdrdb_p017_6076.TRC

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    ORACLE_HOME = /u01/oracle/oracle/product/11.2.0/dbhome_1

    Name of the system: Linux

    Name of the node: bdrdb.cteplindia.com

    News Release: 2.6.18 - 308.el5PAE

    Version: #1 SMP kills Jan 27 17:40:09 EST 2012

    Machine: i686

    Instance name: bdrdb

    Redo thread mounted by this instance: 1

    Oracle process number: 92

    Unix process pid: 6076, image: [email protected] (P017)

    2013-11-04 23:18:57.915

    SESSION ID: (423.59970) 2013-11-04 23:18:57.915

    CUSTOMER ID :() 23:18:57.915 2013-11-04

    SERVICE NAME: (bdrdb) 2013-11-04 23:18:57.915

    MODULE NAME :() 23:18:57.915 2013-11-04

    ACTION NAME :() 23:18:57.915 2013-11-04

    .

    .

    2013-11-04 23:18:57.915

    DEADLOCK DETECTED (ORA-00060)

    .

    [Transaction blocking]

    Deadlock graph event:

    -Blockers - Waiter (s).

    Resource name process session held process session expected holds expected

    PS-00000001-00000011 92 423 S 33 128 S X

    BF-2ed08c01-00000000 33 128 S 92 423 S X

    session 423: C 005-0001-00081126 session 128: DONE 01/21/67 D 23

    session 128: MADE 21/01/67 D session 23 423: have you 0001-005 C-00081126

    DEADLOCK DETECTED (ORA-00060)

    [Transaction blocking]

    Deadlock graph event:

    -Blockers - Waiter (s).

    Resource name process session held process session expected holds expected

    PS-00000001-00000011 92 423 S 33 128 S X

    BF-2ed08c01-00000000 33 128 S 92 423 S X

    session 423: C 005-0001-00081126 session 128: DONE 01/21/67 D 23

    session 128: MADE 21/01/67 D session 23 423: have you 0001-005 C-00081126

    Expected number of lines:

    Session 423: no line

    Session 128: obj - rowid = 00021DC1 - AAAh3BAAVAAAQL/AAA

    (dictionary objn - 138689, file - 21, block - 66303, machine slot - 0)

    -Information for OTHER waiting sessions-

    Session 128:

    SID: 128 ser: 46176 audsid: 1836857 user: 102/DBLOCAL

    indicators: (0 x 8000041) USR /-flags_idl: (0 x 1) BSY /-/ - /-/ - / -.

    Flags2: (0 x 40009) - /-/ INC.

    PID: 33 info o/s: user: oracle, duration: UNKNOWN, ospid: 31611

    image: [email protected]

    Customer details:

    Info of the o/s: user: hidden, term: hidden, ospid: 5924:568

    machine: hidden program: Toad.exe

    application name: TOAD background query session, the hash value = 526966934

    SQL courses

    application name: TOAD background query session, the hash value = 526966934

    SQL courses

    SELECT DISTINCT B_FP_TEST. TEST_ID

    OF B_FP_TEST.

    B_USER_INFO,

    J_FP_INVESTIGATOR,

    L_TEST_STATUS,

    L_ATMS_TEST_TYPE,

    j_op_test_anml

    WHERE B_FP_TEST. TEST_ID = J_FP_INVESTIGATOR. TEST_ID

    AND B_FP_TEST. TEST_TYPE_ID = L_ATMS_TEST_TYPE. ATMS_TEST_TYPE_ID

    AND B_USER_INFO. B_USER_INFO_ID = J_FP_INVESTIGATOR. INVESTIGATOR_ID

    AND B_FP_TEST. BATCH = L_TEST_STATUS. BATCH

    AND B_FP_TEST.IS_DELETED =: "SYS_B_00."

    AND B_FP_TEST. TEST_NUM NOT IN (: 'SYS_B_01,': 'SYS_B_02': 'SYS_B_03')

    AND L_ATMS_TEST_TYPE.IS_DELETED =: "SYS_B_04."

    AND J_FP_INVESTIGATOR.is_pi =: "SYS_B_05."

    AND L_TEST_STATUS. STATUS (: 'SYS_B_06': 'SYS_B_07': 'SYS_B_08')

    AND j_op_test_anml.test_id = B_FP_TEST. TEST_ID

    .

    .

    -End of information for OTHER waiting sessions-

    .

    .

    2013-11-04 23:18:57.916

    dbkedDefDump(): from a dump of diagnosis non-event (flags = 0 x 0, level = 3, mask = 0 x 0)

    -Error stack dump-

    ORA-00060: Deadlock detected while you wait resource

    ORA-10387: interruption of server a (normal) parallel query

    -SQL statement (none).

    Run SQL information not available - no cursor.

    -Call trace stack memory-

    call call entered the argument values in hex

    location point type (? means dubious value)

    More...

    .

    .

    .

    .

    Query:

    SELECT DISTINCT B_FP_TEST. TEST_ID

    OF B_FP_TEST.

    B_USER_INFO,

    J_FP_INVESTIGATOR,

    L_TEST_STATUS,

    L_ATMS_TEST_TYPE,

    j_op_test_anml

    WHERE B_FP_TEST. TEST_ID = J_FP_INVESTIGATOR. TEST_ID

    AND B_FP_TEST. TEST_TYPE_ID = L_ATMS_TEST_TYPE. ATMS_TEST_TYPE_ID

    AND B_USER_INFO. B_USER_INFO_ID = J_FP_INVESTIGATOR. INVESTIGATOR_ID

    AND B_FP_TEST. BATCH = L_TEST_STATUS. BATCH

    AND B_FP_TEST.IS_DELETED = 0

    AND B_FP_TEST. TEST_NUM NOT IN (1, 2, 99)

    AND L_ATMS_TEST_TYPE.IS_DELETED = 0

    AND J_FP_INVESTIGATOR.is_pi = 1

    AND L_TEST_STATUS. STATUS ('regular', 'In progress', 'completed')

    AND j_op_test_anml.test_id = B_FP_TEST. TEST_ID

    AND ((j_op_test_anml.end_date ENTRE TO_DATE (28 octobre 2013 ") - 1))

    AND TO_DATE (4 November 2013 ') + 1).

    OR (j_op_test_anml.start_date BETWEEN TO_DATE (28 October 2013 "") - 1).

    AND TO_DATE (4 November 2013 ') + 1).

    OR (TO_DATE (28 October 2013') BETWEEN j_op_test_anml.start_date)

    AND j_op_test_anml.end_date)

    OR (TO_DATE (4 November 2013") BETWEEN j_op_test_anml.start_date)

    (AND j_op_test_anml.end_date))

    AND L_ATMS_TEST_TYPE.IS_DELETED = 0

    AND B_FP_TEST. DATASOURCE_ID = 9

    .

    .

    .

    Exp query plan:

    Hash value of plan: 3398228788

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

    | ID | Operation                                          | Name                | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop |    TQ | IN-OUT | PQ Distrib.

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

    |   0 | SELECT STATEMENT |                     |  1501 |   102K |  1929 (1) | 00:00:24 |       |       |        |      |            |

    |   1.  HASH UNIQUE                                       |                     |  1501 |   102K |  1929 (1) | 00:00:24 |       |       |        |      |            |

    |   2.   CONCATENATION.                     |       |       |            |          |       |       |        |      |            |

    |   3.    COORDINATOR OF PX |                     |       |       |            |          |       |       |        |      |            |

    |   4.     PX SEND QC (RANDOM). : TQ30005 |   241. 16870 |   800 (1) | 00:00:10 |       |       |  Q3, 05 | P > S | QC (RAND) |

    |*  5 |      HASH JOIN                                     |                     |   241. 16870 |   800 (1) | 00:00:10 |       |       |  Q3, 05 | SVCP |            |

    |   8 2       PX RECEIVE                                   |                     |   246. 15990.   797 (1) | 00:00:10 |       |       |  Q3, 05 | SVCP |            |

    |   7.        PX SEND HASH | : TQ30004 |   246. 15990.   797 (1) | 00:00:10 |       |       |  Q3, 04 | P > P | HASH |

    |*  8 |         HASH JOIN                                  |                     |   246. 15990.   797 (1) | 00:00:10 |       |       |  Q3, 04 | SVCP |            |

    |   9.          RECEIVE PX |                     |   573. 29223 |   793 (1) | 00:00:10 |       |       |  Q3, 04 | SVCP |            |

    |  10.           PX SEND HASH | : TQ30003 |   573. 29223 |   793 (1) | 00:00:10 |       |       |  Q3, 03 | P > P | HASH |

    | * 11 |            HASH JOIN                               |                     |   573. 29223 |   793 (1) | 00:00:10 |       |       |  Q3, 03 | SVCP |            |

    |  12.             KIND OF BUFFER.                     |       |       |            |          |       |       |  Q3, 03 | ISSUE |            |

    |  13.              RECEIVE PX |                     |       |       |            |          |       |       |  Q3, 03 | SVCP |            |

    |  14.               PX SEND BROADCAST | : TQ30000 |       |       |            |          |       |       |        | S > P | BROADCAST |

    |  15.                NESTED LOOPS |                     |       |       |            |          |       |       |        |      |            |

    |  16.                 NESTED LOOPS |                     |   485. 20855 |   781 (0) | 00:00:10 |       |       |        |      |            |

    |  17.                  TABLE ACCESS BY INDEX ROWID | J_OP_TEST_ANML |   485. 10185 |   296 (0) | 00:00:04 | ROWID | ROWID |        |      |            |

    | * 18.                   INDEX RANGE SCAN | IDX$ $_2D190001 |   485.       |     4 (0) | 00:00:01 |       |       |        |      |            |

    | * 19.                  INDEX UNIQUE SCAN | FT_TEST_ID_PK |     1.       |     0 (0) | 00:00:01 |       |       |        |      |            |

    | * 20.                 TABLE ACCESS BY INDEX ROWID | B_FP_TEST |     1.    22.     1 (0) | 00:00:01 | ROWID | ROWID |        |      |            |

    |  21.             ITERATOR BLOCK PX |                     | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q3, 03 | ISSUE |            |

    | * 22.              TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q3, 03 | SVCP |            |

    |  23.          KIND OF BUFFER.                     |       |       |            |          |       |       |  Q3, 04 | ISSUE |            |

    |  24.           RECEIVE PX |                     |     3.    42.     3 (0) | 00:00:01 |       |       |  Q3, 04 | SVCP |            |

    |  25.            PX SEND HASH | : TQ30001 |     3.    42.     3 (0) | 00:00:01 |       |       |        | S > P | HASH |

    | * 26.             TABLE ACCESS FULL | L_TEST_STATUS |     3.    42.     3 (0) | 00:00:01 |       |       |        |      |            |

    |  27.       KIND OF BUFFER.                     |       |       |            |          |       |       |  Q3, 05 | ISSUE |            |

    |  28.        PX RECEIVE                                  |                     |    30.   150.     3 (0) | 00:00:01 |       |       |  Q3, 05 | SVCP |            |

    |  29.         PX SEND HASH | : TQ30002 |    30.   150.     3 (0) | 00:00:01 |       |       |        | S > P | HASH |

    | * 30 |          TABLE ACCESS FULL | L_ATMS_TEST_TYPE |    30.   150.     3 (0) | 00:00:01 |       |       |        |      |            |

    |  31.    NESTED LOOPS |                     |       |       |            |          |       |       |        |      |            |

    |  32.     NESTED LOOPS |                     |     3.   210 |   329 (1) | 00:00:04 |       |       |        |      |            |

    |  33.      NESTED LOOPS |                     |     3.   195.   329 (1) | 00:00:04 |       |       |        |      |            |

    | * 34 |       HASH JOIN                                    |                     |     2.   114.   325 (1) | 00:00:04 |       |       |        |      |            |

    |  35.        NESTED LOOPS |                     |       |       |            |          |       |       |        |      |            |

    |  36.         NESTED LOOPS |                     |     6.   258.   322 (1) | 00:00:04 |       |       |        |      |            |

    |  37.          RANGE OF SINGLE PARTITION |                     |     6.   126.   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 38 |           TABLE ACCESS FULL | J_OP_TEST_ANML |     6.   126.   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 39 |          INDEX UNIQUE SCAN | FT_TEST_ID_PK |     1.       |     0 (0) | 00:00:01 |       |       |        |      |            |

    | * 40 |         TABLE ACCESS BY INDEX ROWID | B_FP_TEST |     1.    22.     1 (0) | 00:00:01 | ROWID | ROWID |        |      |            |

    | * 41.        TABLE ACCESS FULL | L_TEST_STATUS |     3.    42.     3 (0) | 00:00:01 |       |       |        |      |            |

    | * 42 |       TABLE ACCESS BY INDEX ROWID | J_FP_INVESTIGATOR |     1.     8.     2 (0) | 00:00:01 |       |       |        |      |            |

    | * 43.        INDEX RANGE SCAN | FI_TEST_ID_PK |     1.       |     1 (0) | 00:00:01 |       |       |        |      |            |

    | * 44 |      INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK |     1.       |     0 (0) | 00:00:01 |       |       |        |      |            |

    | * 45 |     TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE |     1.     5.     1 (0) | 00:00:01 |       |       |        |      |            |

    |  46.    COORDINATOR OF PX |                     |       |       |            |          |       |       |        |      |            |

    |  47.     PX SEND QC (RANDOM). : TQ20003 |       |       |            |          |       |       |  Q2, 03 | P > S | QC (RAND) |

    |  48.      NESTED LOOPS |                     |       |       |            |          |       |       |  Q2, 03 | SVCP |            |

    |  49.       NESTED LOOPS |                     |    33.  2310 |   399 (2) | 00:00:05 |       |       |  Q2, 03 | SVCP |            |

    | * 50 |        HASH JOIN                                   |                     |    33.  2145.   397 (2) | 00:00:05 |       |       |  Q2, 03 | SVCP |            |

    |  51.         RECEIVE PX |                     |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q2, 03 | SVCP |            |

    |  52.          PX SEND HASH | : TQ20002 |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q2, 02 | P > P | HASH |

    | * 53 |           HASH JOIN                                |                     |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q2, 02 | SVCP |            |

    |  54.            KIND OF BUFFER.                     |       |       |            |          |       |       |  Q2, 02 | ISSUE |            |

    |  55.             RECEIVE PX |                     |       |       |            |          |       |       |  Q2, 02 | SVCP |            |

    |  86 M |              PX SEND BROADCAST | : TQ20000 |       |       |            |          |       |       |        | S > P | BROADCAST |

    |  57.               NESTED LOOPS |                     |       |       |            |          |       |       |        |      |            |

    |  58.                NESTED LOOPS |                     |    66.  2838 |   382 (1) | 00:00:05 |       |       |        |      |            |

    |  59.                 RANGE OF SINGLE PARTITION |                     |    66.  1386 |   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 60 |                  TABLE ACCESS FULL | J_OP_TEST_ANML |    66.  1386 |   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 61.                 INDEX UNIQUE SCAN | FT_TEST_ID_PK |     1.       |     0 (0) | 00:00:01 |       |       |        |      |            |

    | * 62 |                TABLE ACCESS BY INDEX ROWID | B_FP_TEST |     1.    22.     1 (0) | 00:00:01 | ROWID | ROWID |        |      |            |

    |  63.            ITERATOR BLOCK PX |                     | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q2, 02 | ISSUE |            |

    | * 64 |             TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q2, 02 | SVCP |            |

    |  65.         KIND OF BUFFER.                     |       |       |            |          |       |       |  Q2, 03 | ISSUE |            |

    |  66.          RECEIVE PX |                     |     3.    42.     3 (0) | 00:00:01 |       |       |  Q2, 03 | SVCP |            |

    |  67.           PX SEND HASH | : TQ20001 |     3.    42.     3 (0) | 00:00:01 |       |       |        | S > P | HASH |

    | * 68 |            TABLE ACCESS FULL | L_TEST_STATUS |     3.    42.     3 (0) | 00:00:01 |       |       |        |      |            |

    | * 69 |        INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK |     1.       |     0 (0) | 00:00:01 |       |       |  Q2, 03 | SVCP |            |

    | * 70 |       TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE |     1.     5.     1 (0) | 00:00:01 |       |       |  Q2, 03 | SVCP |            |

    |  71.    COORDINATOR OF PX |                     |       |       |            |          |       |       |        |      |            |

    |  72.     PX SEND QC (RANDOM). : TQ10003 |       |       |            |          |       |       |  Q1, 03 | P > S | QC (RAND) |

    |  73.      NESTED LOOPS |                     |       |       |            |          |       |       |  Q1, 03 | SVCP |            |

    |  74.       NESTED LOOPS |                     |    33.  2310 |   399 (2) | 00:00:05 |       |       |  Q1, 03 | SVCP |            |

    | * 75 |        HASH JOIN                                   |                     |    34.  2210 |   397 (2) | 00:00:05 |       |       |  Q1, 03 | SVCP |            |

    |  76.         RECEIVE PX |                     |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q1, 03 | SVCP |            |

    |  77.          PX SEND HASH | : TQ10002 |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q1, 02 | P > P | HASH |

    | * 78 |           HASH JOIN                                |                     |    78.  3978 |   393 (1) | 00:00:05 |       |       |  Q1, 02 | SVCP |            |

    |  79.            KIND OF BUFFER.                     |       |       |            |          |       |       |  Q1, 02 | ISSUE |            |

    |  80.             RECEIVE PX |                     |       |       |            |          |       |       |  Q1, 02 | SVCP |            |

    |  81.              PX SEND BROADCAST | : TQ10000 |       |       |            |          |       |       |        | S > P | BROADCAST |

    |  82.               NESTED LOOPS |                     |       |       |            |          |       |       |        |      |            |

    |  83.                NESTED LOOPS |                     |    66.  2838 |   382 (1) | 00:00:05 |       |       |        |      |            |

    |  84.                 RANGE OF SINGLE PARTITION |                     |    66.  1386 |   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 85 |                  TABLE ACCESS FULL | J_OP_TEST_ANML |    66.  1386 |   316 (1) | 00:00:04 |     7.     7.        |      |            |

    | * 86 |                 INDEX UNIQUE SCAN | FT_TEST_ID_PK |     1.       |     0 (0) | 00:00:01 |       |       |        |      |            |

    | * 87.                TABLE ACCESS BY INDEX ROWID | B_FP_TEST |     1.    22.     1 (0) | 00:00:01 | ROWID | ROWID |        |      |            |

    |  88.            ITERATOR BLOCK PX |                     | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q1, 02 | ISSUE |            |

    | * 89 |             TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 |   549KO |    11 (0) | 00:00:01 |       |       |  Q1, 02 | SVCP |            |

    |  90.         KIND OF BUFFER.                     |       |       |            |          |       |       |  Q1, 03 | ISSUE |            |

    |  91.          RECEIVE PX |                     |     5:    42.     3 (0) | 00:00:01 |       |       |  Q1, 03 | SVCP |            |

    |  92.           PX SEND HASH | : TQ10001 |     5:    42.     3 (0) | 00:00:01 |       |       |        | S > P | HASH |

    | * 93 |            TABLE ACCESS FULL | L_TEST_STATUS |     5:    42.     3 (0) | 00:00:01 |       |       |        |      |            |

    | * 94 |        INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK |     1.       |     0 (0) | 00:00:01 |       |       |  Q1, 03 | SVCP |            |

    | * 95 |       TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE |     1.     3:     1 (0) | 00:00:01 |       |       |  Q1, 03 | SVCP |            |

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

    Information of predicates (identified by the operation identity card):

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

    5 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")

    8 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')

    11 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")

    18 - access("J_OP_TEST_ANML".") Start_date"> = TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-11-05)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss"))

    19 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")

    20 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND

    'B_FP_TEST '. ("' TEST_NUM" <>99)

    22 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)

    26 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"

    30 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)

    34 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')

    38 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "' End_date ' < = TO_DATE (' 2013-11-05)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "Start_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "

    LNNVL ("J_OP_TEST_ANML". "Start_date" < = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')))) "

    39 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")

    40 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND

    'B_FP_TEST '. ("' TEST_NUM" <>99)

    41 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"

    42 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)

    43 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")

    44 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")

    45 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)

    50 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')

    53 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")

    60 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-11-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-11-04)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "End_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "

    LNNVL ("J_OP_TEST_ANML". "End_date" < = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL ("J_OP_TEST_ANML".) " Start_date"> = TO_DATE (' 2013-10-27)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss")) or LNNVL("J_OP_TEST_ANML".") Start_date"< = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))))

    61 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")

    62 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND

    'B_FP_TEST '. ("' TEST_NUM" <>99)

    64 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)

    68 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"

    69 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")

    70 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)

    75 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')

    78 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")

    85 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-10-28 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-10-28)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "End_date" > = TO_DATE (' 2013-11-04 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "

    LNNVL ("J_OP_TEST_ANML". "Start_date" < = TO_DATE (' 2013-11-04 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL ("J_OP_TEST_ANML".) " End_date"> = TO_DATE (' 2013-10-27)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss")) or LNNVL("J_OP_TEST_ANML".") End_date"< = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND)

    (LNNVL ("J_OP_TEST_ANML". "Start_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) or LNNVL ("J_OP_TEST_ANML".) " Start_date"< = TO_DATE (' 2013-11-05)

    00:00:00 ', "syyyy-mm-dd hh24:mi:ss")))

    86 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")

    87 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND

    'B_FP_TEST '. ("' TEST_NUM" <>99)

    89 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)

    93 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"

    94 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")

    95 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)

    aanto wrote:

    Thanks for the update... but if we perform also using Toad... showing the same error...

    Thanks for this update, but it does not change the reality.

    If it hurts when you push you in the eyes, the only way to stop the pain should stop poking you in the eye.

    Oracle is not related ORA-00060 just to make life more difficult.

    ORA-000600 is thrown when a deadlock between two session is detected. PERIOD!

    The order in which the DML is run needs to change.

  • SQL query error

    Any new request related to query below to display under the column data?

    IDSITE, IDVISIT, COUPON_ID, TRIM (INITCAP (PAGE_PATH) SELECT), INITCAP (keywords), LOCATION_IP, REFERER_NAME, REFERER_URL, VISIT_ACTION_TIME OF WEB_STATS with TRIM (INITCAP (PAGE_PATH)) = "Boston Pizza" and to_date (visit_action_time, 'DD-MON-RRRR') between to_date (5 July 2011 ',' DD-MON-RRRR') and to_date (5 July 2011 ',' DD-MON-RRRR')
    *
    ERROR on line 1:
    ORA-00979: not a GROUP BY expression

    863765 wrote:
    Any new request related to query below to display under the column data?

    IDSITE, IDVISIT, COUPON_ID, TRIM (INITCAP (PAGE_PATH) SELECT), INITCAP (keywords), LOCATION_IP, REFERER_NAME, REFERER_URL, VISIT_ACTION_TIME OF WEB_STATS with TRIM (INITCAP (PAGE_PATH)) = "Boston Pizza" and to_date (visit_action_time, 'DD-MON-RRRR') between to_date (5 July 2011 ',' DD-MON-RRRR') and to_date (5 July 2011 ',' DD-MON-RRRR')
    *
    ERROR on line 1:
    ORA-00979: not a GROUP BY expression

    SELECT idsite,
           idvisit,
           coupon_id,
           Trim(Initcap(page_path)),
           Initcap(keywords),
           location_ip,
           referer_name,
           referer_url,
           visit_action_time
    FROM   web_stats
    WHERE Trim(Initcap(page_path)) = 'Boston Pizza'
           AND To_date(visit_action_time, 'DD-MON-RRRR') BETWEEN
               To_date('05-jul-2011', 'DD-MON-RRRR') AND
               To_date('05-jul-2011', 'DD-MON-RRRR')  
    

    I doubt that all lines will be returned

    Published by: sb92075 on July 9, 2011 11:52

  • expdp with query error

    I have an error in my statement expdp which I couldn't... then, please help :)
    D:\TMP>EXPDP TXV/IS DIRECTORY=EXP_DP DUMPFILE=TEST.DMP LOGFILE=VIDI.LOG TABLES=txv.IS_PODACI2 QUERY=is_podaci:'WHERE TO_CHAR(DATUM, "YYYY")="2008"'
    LRM-00116: syntax error at ')' following 'YYYY'
    I would like to export the data from the year 2008 only, and the condition is on a timestamp column is...

    DB is 11g R2

    Quotation marks, apostrophes etc... will be a big problem in the command line. It is dependent on the operating system, and you must use escape characters. Please use one parfile and you don't have to worry about those.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/dp_export.htm#BEHJHGHB

  • CQL - incorrect statement query error: select an in &gt; &gt; inputChannel

    Hello
    I am new to the cep of the oracle, I wrote a simple query...

    "Select * from inputChannel KEEP 5 EVENTS" but some how it shows the error like.

    Invalid statement: "select a certain > > inputChannel RETAIN < < 5 EVENTS.
    Cause: generic syntax error
    Action: The syntax is expected ' [(', as, match_recognize, xmltable, fin de fichier, ' ') "'", ",", where group,]
    seen, order, left, right, score, on, primary token

    Any help is greatly appreciated.
    Thank you
    S.Vishal

    You are using EPL and not CQL. EPL is removed. You can try equivalent construct CQL - [LINES [5].

  • Run database query error - help!

    I have a cfquery code that looks like this:

    < CFQUERY DATASOURCE = "MaBase" username = "myuser" PASSWORD = "MonMotpasse" NAME = "codelist" CACHEDWITHIN = "#CreateTimeSpan (0,1,0,0) #" >
    SELECT *.
    OF systemcode
    WHERE (((systemcode) TRIM) LEN = 2 OR LEN (TRIM (systemcode)) = 4)
    < CFSWITCH EXPRESSION = "#CAT #" >
    < CFCASE VALUE = "1" > (MID (systemcode, 1, 2) BETWEEN ' 01 'AND ' 05') AND < / CFCASE >
    < CFCASE VALUE = "2" > AND (MID(systemcode,1,2) BETWEEN ' 06 "AND 15") < / CFCASE >
    < CFCASE VALUE = "3" > AND (MID (systemcode, 1, 2) FROM 16 'TO 24') < / CFCASE >
    < CFCASE VALUE = "4" > AND (MID (systemcode, 1, 2) BETWEEN 25 'AND 27') < / CFCASE >
    < CFCASE VALUE = "5" > (MID (systemcode, 1, 2) FROM 28 "TO 38") AND < / CFCASE >
    < CFCASE VALUE = "6" > AND (MID (systemcode, 1, 2) BETWEEN 39 'AND 40') < / CFCASE >
    < CFCASE VALUE = "7" > (MID (systemcode, 1, 2) 41 "TO 43") AND < / CFCASE >
    < CFCASE VALUE = "8" > AND (MID (systemcode, 1, 2) WITH 44' 49') < / CFCASE >
    < CFCASE VALUE = "9" > (MID (systemcode, 1, 2) FROM 50 "TO 63") AND < / CFCASE >
    < CFCASE VALUE = "10" > AND (MID (systemcode, 1, 2) FROM 64 "TO 67") < / CFCASE >
    < CFCASE VALUE = "11" > AND (MID (systemcode, 1, 2) BETWEEN 68 "AND 71") < / CFCASE >
    < CFCASE VALUE = "12" > AND (MID (systemcode, 1, 2) BETWEEN 72 'AND 83') < / CFCASE >
    < CFCASE VALUE = '13' > AND (MID (systemcode, 1, 2) WITH 84' 85') < / CFCASE >
    < CFCASE VALUE '14' = > (MID (systemcode, 1, 2) BETWEEN 86 'AND 89') AND < / CFCASE >
    < CFCASE VALUE = "15" > AND (MID (systemcode, 1, 2) 90 '-97') < / CFCASE >
    < CFCASE VALUE = "16" > (MID (systemcode, 1, 2) BETWEEN 98 "AND 99") AND < / CFCASE >
    < CFDEFAULTCASE > < CFLOCATION URL = "somewhere.htm" > < / CFDEFAULTCASE >
    < / CFSWITCH >
    ORDER BY systemcode
    < / CFQUERY >

    It works perfectly in CF 5.  However, when running in CF 8 I get the error message:

    Error running Query.FUNCTION of database mydatabase. LEN does not exist the specific sequence of files included or processed is: home/httpd/vhosts/somedomain.com/httpdocs/reference/systemcode.cfm, line: 24

    (which refers to the cfquery above)

    "mydatabase" is the name of the database and LEN is a function.    It checks the length of systemcode to 2 or 4, if they are then check if the value of #CAT # is 1 and the 2 first characters from 01 to 05, then select the line.  I don't know what's wrong with CF5 but CF8?  It's driving me crazy.  Any help is appreciated.

    I don't see why

    all of a sudden it does not work with CF8 and MySQL,

    If you changed databases, which is the source of the problem, do not upgrade CF.  MySQL won't understand specific features of MS Access and vice versa. Don't expect applications written for type of databases operate automatically with another.  Although there are sql standards, each database is different. It is quite common for database providers have names completely different functions, the types of data and same syntax. You'll need for any check your database queries and convert all specific syntax of access, data types, etc. for the MySQL equivalents.

    Is there the equivalent MySQL for these two functions (TRIM and)

    LEN)?

    Yes. See the string functions section in the mySQL online documentation.

    http://dev.MySQL.com/doc/refman/5.0/en/string-functions.html

    I don't know that he had a PLATE and LEN in MS Access

    database.  I guess I mixed them.

    Yes. It's a little confusing because CF and MS Access have these functions.  In this case, you use access functions, not of CF.

    http://www.techonthenet.com/access/functions/index_alpha.php

    > Yes, I put a

    CFLOCATION inside the cfquery.  Never meet that

    scenario, so I did not know if it works.

    Well, if you use code, it should be something that you tested. So, you know how it behaves. But CFLOCATION really does not belong inside a database query.

    `

  • Query of query error

    This is the error I get-
    Query of queries syntax error. Met ".» Error running query of queries.
    The Cold Fusion Server is running 7,0,1,116466 MX.
    The sql is ' Select * from Invlotquery2 where lotnum = ' 2011-61-12. ' "." (The extra space after the single quotation mark is for clarity).
    I have already built the application and the user tries to filter on a batch number. Whenever the batch number starts as digital and is 10-digit long(2011-61-12) the above error occurs. An of the lotnumber that starts out as a character or a batch number that starts and less than 10 digital characters or more than 10 characters works well. I still have the code in place to create a dummy record from the query that defines the query fields up as characters. I discovered that previous versions of Cold Fusion could create query in the numeric form fields, if it is not specified.
    This really seems to be a specific user error, but I thought I'd post here to see if anyone has had a similar problem or knows a solution.

    Thank you

    Dale

    My guess is that Cold Fusion interprets the field lotnum as a date instead of a string. To get around this, you can add an extra field to the select clause of your initial query that adds a letter to the lot number. Then, in your q, use this field in which your article.

  • XML to query error

    I have an XML document that I'm turning into a query, but I get an error: "the P element is undefined in MYDOC." I have an item called 'P-Info' and I think that the code does not like the dashboard.

    I am trying to extract the TS, the Latitude, the Longitude and the values out of the XML document.

    I'm using CFMX 7.





    Unleashed says:
    > I have an XML document that I'm turning into a query, but I'm getting a
    > error: "the P element is undefined in MYDOC." I have an item called "P-Info".
    > and I think that the code does not like the dashboard.
    >
    > I try to extract the TS, the Latitude, the Longitude and the eigenvalues of the
    > XML document.
    >
    > CFML Document:
    >
    >
    >
    >
    >

    Yes, when you use the dot notation, each element must be a valid ColdFusion
    the name of the variable meaning no spaces, dashes, the ect.

    If you have things like this you must use the rating table.
    I.E.

    OR if you don't mind mixing dot and array notation.

  • Oracle on the SQL Server tables dblinked query error ORA-00904

    Hello

    I created a dblink to a SQL from Oracle database using generic connectivity.
    The following query returns the error ORA-00904 invalid identifier in the (tblEmp.Empno) WHERE clause

    SELECT 'EmpNo', "EmpName", "DeptName".
    OF tblEmp@sqlserver.
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno

    I had to include the column names between double quotes because of the case review of the columns, but I can't do the
    same thing for the WHERE clause.

    (1) so how can I fix this error?
    (2) also how can I include the Deptno column with the table alias in the columns list?
    (Deptno is ambiguous in the Emp and Dept tables)

    Kind regards
    Sam

    Looks like you have case-sensitive column names, try this

    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver e,
    tblDept@sqlserver d
    WHERE d."DeptNo" = e."Empno" --<--- are you sure this is the correct join condition
    

    What should we not

    WHERE d."DeptNo" = e."DeptNo"
    

    Published by: Alex Nuijten on September 22, 2009 13:28

Maybe you are looking for

  • Adobe flash player unstable and disabled by Firefox

    Adobe Flash plugin stopped working on YouTube and other sites. Firefox claims that flashplayer is "unstable" and therefore disabled. It says I need to update, but the update crashes. Things were fine until that Firefox missed this morning. How does a

  • Satellite L500D can't seem to DC reviews

    I have 2 x L500D.Including charges is no longer plugged power. She was still running on batteries. Until they went flat. I tried exchanging power supply between laptops and it did not help. The same laptop could not examine the power and the second m

  • I need help to fix the sound on my macbook air

    Well well... my macbook air will start of the carillon, but when I try to listen to something on my macbook air... it won't play it... and when I go to system preferences... There only headphones! ... idk what else to do!

  • Deploy the Wyse Image via PXE on WDS

    Hi I was wondering if there was an instruction manual / somewhere that explains the process of deploying an image of wyse by using a WDS PXE server? I was not able to find any useful material.

  • Œuvres of 'stereo' Bluetooth headset, but 'hands-free' is not

    I can't connect my Plantronics 590 headset with my Win7 Home Premium SP1 system in hands-free mode. Details: in the window "My Bluetooth" for this headset: (1) I push the Connect button next to the heading "calls of VoIP before handsfree.  (2) upward