Error When Query Gets Blocked

I am wondering if there is a way that I can make a query error if it is going to (or does) get blocked during an insert where not exists. I have multiple sessions occasionally trying to insert the same row into a table. When the second session tries to insert, I want it to simply error instead of block until the first session commits. Any idea on how to accomplish this?
My first attempt was to select for update nowait, but that doesn’t work for rows not insert committed into the table. I feel like I should be able to do this with transaction isolation, but that does not seem to work either. I have some SQL below trying to use transaction isolation to accomplish this.
Any help would be greatly appreciated. Thanks.
CREATE TABLE t$test
    dummy NUMBER,
    CONSTRAINT t$test_pk
    PRIMARY KEY (dummy)
INSERT INTO t$test
     VALUES (1);
-- Session 2
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
INSERT INTO t$test
   SELECT 1
     FROM DUAL
    WHERE NOT EXISTS (SELECT 1
                        FROM t$test
                       WHERE dummy = 1);
-- I want this to error, but instead it still blocks

That was the approach I was taking. Problem is, with 25 batches of this running, the amount of blocking was putting a tremendous load on the database.
After some research, I could have implemented my own row locking scheme using the DBMS_LOCK package, but given the amount of data I have, I would need to create way too many locks than what is feasible.
I was hoping that Oracle would have a method for non-blocking write (error instead). Unless I can find one, I am just going to sacrifice some of my batch capabilities and commit more frequently to minimize the number of locks at one time.
I'd still be interested to hear other solutions if they're out there. Thanks for the help Tubby.
Below is the PL/SQL I was considering for my row locking scheme:
DECLARE
   v_lockname   VARCHAR2 (255) := 'lock_' || :dummy;
   v_lockid     LONG;
   v_result     PLS_INTEGER;
BEGIN
   DBMS_LOCK.allocate_unique (v_lockname, v_lockid);
   v_result := DBMS_LOCK.request (v_lockid, 6, 0, TRUE);
   IF (v_result = 0)
   THEN
      INSERT INTO t$test
         SELECT :dummy
           FROM DUAL
          WHERE NOT EXISTS (SELECT 1
                              FROM t$test
                             WHERE dummy = :dummy);
   -- Other return value handling needed
   END IF;
END;

Similar Messages

  • Error when querying REST web services from web-based InfoPath form 2013 environment

    Error when querying REST web services from web-based InfoPath form 2013 environment, we are trying to consume REST web service in InfoPath form ( SharePoint 2013 version) 
    http://spapp/sites/litigation/Intake/_api/web/lists/getbytitle('Email%20Profiles')/items(1)
    it works in preview but does not when it is published. because of claim based authentication i m getting below error
    The form cannot run specified query, the underlying connection was closed. An expected error occurred 
    same works in 2010 environment .. are we missing anything in 2013 servers?? please let me know how we can resolve it.. thank you 
    guru

    everyone face this issue, nothing in event viewer, its easy to reproduce error at ur end also.. 
    just you need to use below web service in infopath and populate some data on form load like id = 1 pull the title and try to set in form any field...the
    list has one item thats all
    guru

  • Pls have been having issues upgrading to the os 10.9. downloads encounter error when it gets to 955mb and starts over again-.suggestions pls?

    pls have been having issues upgrading to the os 10.9. downloads encounter error when it gets to 955mb and starts over again….suggestions pls?

    http://www.apple.com/support/mac/app-store/contact/

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Intermittent errors when querying the AD

    HI,
    We recently replaced 2 old windows 2003 dc'S with windows 2008r2 dc'S. All is working ok except on odd occasions when query the AD i get errors such as "Server not operational" or "Domain does not exist" Everything looks correct on DNS
    and there are no entries for the old servers so i am looking at alternatives. If i run wireshark i get entries such as
    192.168.180.132     192.168.180.255     NBNS     92 Name query NB XXXXXXX
    192.168.180.132 is the ip of a standard workstation
    192.168.180.255 is an ip that has no harware associated with it
    XXXXXX is the server name for one of the old servers i removed
    not sure if this is realted or not, but i think both need to be resolved. 
    New to all this, can anybody guide on where to start
    Thansk
    Gareth

    running standard dcdiag produces:
    DC1
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = JIGSAWFS6
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\JIGSAWFS6
          Starting test: Connectivity
             ......................... JIGSAWFS6 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\JIGSAWFS6
          Starting test: Advertising
             ......................... JIGSAWFS6 passed test Advertising
          Starting test: FrsEvent
             ......................... JIGSAWFS6 passed test FrsEvent
          Starting test: DFSREvent
             ......................... JIGSAWFS6 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... JIGSAWFS6 passed test SysVolCheck
          Starting test: KccEvent
             ......................... JIGSAWFS6 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... JIGSAWFS6 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... JIGSAWFS6 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=jigsawtransport,DC=com
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=jigsawtransport,DC=com
             ......................... JIGSAWFS6 failed test NCSecDesc
          Starting test: NetLogons
             ......................... JIGSAWFS6 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... JIGSAWFS6 passed test ObjectsReplicated
          Starting test: Replications
             ......................... JIGSAWFS6 passed test Replications
          Starting test: RidManager
             ......................... JIGSAWFS6 passed test RidManager
          Starting test: Services
             ......................... JIGSAWFS6 passed test Services
          Starting test: SystemLog
             An error event occurred.  EventID: 0xC0002719
                Time Generated: 12/06/2013   09:29:59
                Event String:
                DCOM was unable to communicate with the computer 8.8.8.8 using any of the configured protocols.
             ......................... JIGSAWFS6 failed test SystemLog
          Starting test: VerifyReferences
             ......................... JIGSAWFS6 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : jigsawtransport
          Starting test: CheckSDRefDom
             ......................... jigsawtransport passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... jigsawtransport passed test
             CrossRefValidation
       Running enterprise tests on : jigsawtransport.com
          Starting test: LocatorCheck
             ......................... jigsawtransport.com passed test LocatorCheck
          Starting test: Intersite
             ......................... jigsawtransport.com passed test Intersite
     DC2
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = JIGSAWFS8
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\JIGSAWFS8
          Starting test: Connectivity
             ......................... JIGSAWFS8 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\JIGSAWFS8
          Starting test: Advertising
             ......................... JIGSAWFS8 passed test Advertising
          Starting test: FrsEvent
             ......................... JIGSAWFS8 passed test FrsEvent
          Starting test: DFSREvent
             ......................... JIGSAWFS8 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... JIGSAWFS8 passed test SysVolCheck
          Starting test: KccEvent
             ......................... JIGSAWFS8 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... JIGSAWFS8 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... JIGSAWFS8 passed test MachineAccount
          Starting test: NCSecDesc
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=ForestDnsZones,DC=jigsawtransport,DC=com
             Error NT AUTHORITY\ENTERPRISE DOMAIN CONTROLLERS doesn't have
                Replicating Directory Changes In Filtered Set
             access rights for the naming context:
             DC=DomainDnsZones,DC=jigsawtransport,DC=com
             ......................... JIGSAWFS8 failed test NCSecDesc
          Starting test: NetLogons
             ......................... JIGSAWFS8 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... JIGSAWFS8 passed test ObjectsReplicated
          Starting test: Replications
             ......................... JIGSAWFS8 passed test Replications
          Starting test: RidManager
             ......................... JIGSAWFS8 passed test RidManager
          Starting test: Services
             ......................... JIGSAWFS8 passed test Services
          Starting test: SystemLog
             An Error Event occurred.  EventID: 0xC0002719
                Time Generated: 12/06/2013   09:31:07
                EvtFormatMessage failed, error 15100 Win32 Error 15100.
                (Event String (event log = System) could not be retrieved, error
                0x3afc)
             ......................... JIGSAWFS8 failed test SystemLog
          Starting test: VerifyReferences
             ......................... JIGSAWFS8 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : jigsawtransport
          Starting test: CheckSDRefDom
             ......................... jigsawtransport passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... jigsawtransport passed test
             CrossRefValidation
       Running enterprise tests on : jigsawtransport.com
          Starting test: LocatorCheck
             ......................... jigsawtransport.com passed test LocatorCheck
          Starting test: Intersite
             ......................... jigsawtransport.com passed test Intersite

  • Errors when querying against universe with DBlink tables

    Running XI 3.1
    DB1: MS SQL Server
    DB2: Oracle 11g
    Universe created on DB2 has linked tables from DB1.
    I created a view as Select * from table@DB1
    Using Webi Rich Client: successful query results
    Using Webi Lite: ORA-12154 error: TNS:could not resolve the connect identifier specified
    Using Deski: ORA-01002: fetch out of sequence. ORA-02063: preceding line from DBlink_name
    I've tried numerous array fetch size parameters but Deski still has that error message. Is there a different way to fetch data from a DBLink table? Why no errors when using Webi Rich? when creating universe against DBlink tables
    Thanks

    In our environemnt, we have encountered ORA-4030 and ORA-4031 in the past in one particular windows server. What i remember from that is , a single process in windows will be limited to use 2Gb of memory(irrespective of how much you allocate and how much RAM the server has). All the oracle user and server processes in windows has to get their share from this 2Gb allocated to a single process called oracle.exe. There is some way to extend this 2Gb limit to 3Gb or 4Gb by enabling a switch on some windows config file. You can easily get that by google.
    Check the memory used by oracle.exe in 10g server's task manager.
    Next, you may need to reduce SGA size... to give more room for user processes. You may investigate on these lines.

  • ORA-0907 error when querying XMLDB Table using XMLExists

    Hi All,
    Get ORA-00907 error when trying to use XMLExists:
    SELECT *
    FROM tnmab_agreement_xml_binary A
    WHERE
    ( XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/ShippingPartyGroups/ShippingParties/CustomerHolder[SAP_ID="$ARG"]')
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")
    OR
    ( XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/NamedCustomerGroups/NamedCustomer/SAP_IDs/StringWrappers[Value="$ARG"]')
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")
    ORA-00907: missing right parenthesis
    *00907. 00000 - "missing right parenthesis"*
    **Cause:*
    **Action:*
    Error at Line: 6 Column: 176
    Any help is appreciated
    Thanks
    Auro

    XMLExists('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; $XML/Agreement/ShippingPartyGroups/ShippingParties/CustomerHolder[SAP_ID="$ARG"]'
    passing agreements.AGREEMENT_XML as "XML", '5000003001' as "ARG")no ')' after the closing quote

  • QBE Error when query by String for Number column

    Hi,
    I have a table with Number column.
    The column structure is like below:
    <af:column>
    <af:inputText>
    <f:validator .../>
    <af:converNumber ..../>
    </af:inputtext>
    </af:column>
    QBE is enabled for this column.
    It works fine when query by Number value, such as '123'. But when I query by string like 'asd', it will return an error.
    Anyone met this problem?

    Hi Arun,
    I am using Jdev 11.1.1.7.0.
    In my case,
    I have a application table, from where user can create new row inline. Some fields in the row have type Long or Number. We are also using <af:converNumber ..../> inside <af:inputText> to do format.
    I do have a query panel above the table. But we want the user can also filter the records using QBE. Other columns are working fine, except the columns with type 'Number' or 'Long'.
    I checked the incident log, below are some useful information:
    Caused by: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number
    Caused by: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT ... FROM ... WHERE ... AND ( ( (MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1 ) ) )
    It seems 'MeaRulesEO.DEFAULT_MEA_PERIOD = :vc_temp_1' causes the error. Jdev assumes every input from QBE header as number. If String is entered, Jdev will return error.
    I also checked that if the table is read-only, this problem does not exist.
    Please help on this. Thank you.

  • ORA -12569 error when querying dba_change_notification_regs table

    Hi,
    I am getting ORA-12569 error when i am trying to execute Select * from dba_change_notification_regs from sys user .we are working on oracle 10.2 version.
    Please help in resoving the issue.
    Thanks In advance.
    Priya

    ORA-12569:     TNS:packet checksum failure
    Cause:      The data received is not the same as the data sent.
    Action:      Attempt the transaction again. If the error is persistent, turn on tracing and reexecute the operation.
    If this doesn't resolve your issue, please see metalink 4933023.8 (problem fixed there)

  • Getting an error when query is executed

    Hi,
       I have created a query in designer.
    When i Execute the query i am getting an error like this:
    "Warning your user master record is not sufficiently maintained for object 0VENDOR"
    I have this Vendor in the dimentions but i did not use this in any Rows but still i am getting it.
    what might be the cause.
    And also people i am new to this forum, can any one tell me how to give the points for correct answers.
    I really appreciate your patients.
    Regards,
    Pallavi

    Hi,
    Welcome to SDN.
    Please check wheather you are using any navigaional attributes of 0VENDOR in the query. Try to load the master data of 0VENDOR, run the attribute change run and excute the query.
    To assign points you can able to see some colours for every answer, depending upon the answer how it helps you can check the radio button
    Cheers,
    Malli.

  • Get SBL-EAI-04316 error when query asset page

    When using web serives to query asset object, get SBL-EAI-04316 error. Error while processing argument urn:/crmondemand/xml/asset:ListOfAsset for operation AssetQueryPage(SBL-EAI-04316).

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Error while processing argument urn:/crmondemand/xml/asset:ListOfAsset for operation AssetQueryPage(SBL-EAI-04316)
    faultActor:
    faultNode:
    faultDetail:
         {http://www.siebel.com/ws/fault}errorstack:<siebelf:error><siebelf:errorsymbol/><siebelf:errormsg>Error while processing argument urn:/crmondemand/xml/asset:ListOfAsset for operation AssetQueryPage(SBL-EAI-04316)</siebelf:errormsg></siebelf:error><siebelf:error><siebelf:errorsymbol>IDS_XMLCNV_ERR_CMPINSTTAG</siebelf:errorsymbol><siebelf:errormsg>Error in XML document: expecting component instance tag Asset, found AssetId(SBL-EAI-04423)</siebelf:errormsg></siebelf:error>
    Error while processing argument urn:/crmondemand/xml/asset:ListOfAsset for operation AssetQueryPage(SBL-EAI-04316)
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at crmondemand.Default_BindingStub.assetQueryPage(Default_BindingStub.java:445)
         at crmondemand.AssetHelper.queryAssets(AssetHelper.java:62)
         at crmondemand.AssetExport.main(AssetExport.java:77)

  • Error when querying a table through the Query Window

    I am running a query on the following table in the ODT Query window - for some reason I get the error below when trying to retrieve the data - I can query the table just fine through SQL Plus - it errors out whether I use grid or text window
    ERROR
    Arithmetic operation resulted in an overflow.
    CREATE TABLE "RF3_PROD_1"."F_EXTRACTMETRICS" ("EXTRACT_NAME" VARCHAR2(50) NOT NULL,"RUN_START_DATE" DATE NOT NULL,"RUN_END_DATE" DATE NOT NULL,"DURATION" NUMBER DEFAULT 0 NOT NULL,"EXTRACT_START_DATE" DATE NULL,"EXTRACT_END_DATE" DATE NULL,"NUM_RECS_ADDED" NUMBER DEFAULT 0 NOT NULL,"NUM_RECS_DELETED" NUMBER DEFAULT 0 NOT NULL,"STATUS" VARCHAR2(50) NOT NULL,"COMMENTS" VARCHAR2(500) NULL) TABLESPACE "EXTRACT_TAB_01_TS" PCTFREE 15 PCTUSED 75 INITRANS 1 MAXTRANS 255 STORAGE ( FREELISTS 1 FREELIST GROUPS 1 INITIAL 8388608 NEXT 516096 MAXEXTENTS 2147483645 MINEXTENTS 1 PCTINCREASE 0 )
    I would have formatted it nicer - but that is the way that ODT created it :)

    Christian,
    I found that this happens when trying to query number fields that are reals with a large decimal value (26 decimal values and above seem to be the magic number). What is strange is that I don't get this problem when I retrieve data from the same table using the Retrieve data option (versus a query for all the data in the Query Window) so they don't seem to be utilizing the same basic code to grab and then display the data interestingly enough (I am sure you knew that). Does this allow you to replicate the issue?
    Thanks,
    Bryan

  • Got error when query from QaaWS.

    Hello expert.
    I have some problem about QaaWS.
    When I create and build my query then click next to run query it appear error
    Get data provider warning
    getDocumentInformation exception (Error: WIS 10901)
    A database error occured. The database error text is: (CS) "Specified RDBMS is invalid" . (WIS 10901)
    But when I query in Web Intelligence Rich Client it work normally.
    When I enter url http://<hostname>:8080/dswsbobje/services/Session
    I got message.
    "Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
    Please give me some suggestion
    Thank you.
    - Chai -

    Hello.
    I have a 32bit window version.
    Thank you.
    And the problem about CLASSPATH is solve.
    The solution is I add  the path in the file "jdbc.sco"
    on C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc
    as below.
    <DataBase Active="Yes" Name="DB2 v9">
                <Class JARFile="dbd_jdbc,dbd_db2">com.businessobjects.connectionserver.java.drivers.jdbc.db2.DB2Driver</Class>
                <JDBCDriver>
              <ClassPath>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2java.zip</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc.jar</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\function</Path>
              <Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc_license_cu.jar</Path>
              </ClassPath>
                    <Parameter Name="JDBC Class">com.ibm.db2.jcc.DB2Driver</Parameter>
                    <Parameter Name="URL Format">jdbc:db2://$DATASOURCE$/$DATABASE$</Parameter>
                </JDBCDriver>
    But When I query form QaaWS it appear the same error.
    Please help.
    Thank you.
    -chai-
    Edited by: ChaiChai2 on Jul 15, 2009 11:10 AM

  • Error when Querying Object

    Hope someone can help with this problem...
    I am querying an object based on the query results of an
    another object. If the Contact email does not exist, CF8 throws an
    error. What I need to do for this query is to substitute a default
    value for a contact record that does not have an email (or some
    other fix) so that the error does not occur.
    Once again, if the email contact email DOES exist, there is
    no problem.
    Below is the code for my query:
    <cfloop query="oppty">
    <cfset getContacts = myObject.QueryObject(
    "SELECT Id, accountID, Name, Email
    FROM Contact
    WHERE accountID ='#oppty.accountID#'").results>
    <cfoutput>#getContacts.email#<br></cfoutput>
    </cfloop>
    Any help would be greatly appreciated...!!
    Thanks!

    Sorry for not being clear. The error is as follows:
    Error Occurred While Processing Request
    You have attempted to dereference a scalar variable of type
    class java.lang.String as a structure with members.
    51 : ").results>
    52 : <cfoutput> #getContacts.ID#
    #getContacts.accountid# #getContacts.name#
    #getContacts.email#<Br></cfoutput> <!--- --->
    53 : </cfloop>
    54 :
    This error happens when the object is queried an no results
    come back. What is happening is in the query
    SELECT Id, accountID, Name, Email
    FROM Contact
    WHERE accountID ='#oppty.accountID#'"
    When no data comes back for "Email", I get that java error. I
    need to rewrite the query so that there is a default replacement
    email if an email does not come back in the query.
    Thanks!

  • Error when querying long raw

    Hi,
    I am using developer 6i with oracle 10.2.0.4 on win 2008.
    I created a table as below:
    create table image_table (filename varchar2(255) primary key, image long raw);
    i created a trigger in forms to upload a image and store the link in the database. The image is stored in a directory.
    The image link is saved in image_table.
    But when i query the table, i get the below error
    SQL> select * from image_table;
    ERROR:
    ORA-00932: inconsistent datatypes
    no rows selected
    When i query the table in TOAD, i get the output as
    FILENAME, IMAGE
    ateeq, (BLOB)
    Please suggest how to solve this problem.
    Thanks,

    the LONG and LONG RAW datatype have been deprecated in Oracle 8.0, in 1998, so 14 years ago!
    Is there any sound reason why you can't use a BLOB?
    a LONG ROW column can not be displayed directly, so a
    select * from image_table
    where one of the columns is a LONG RAW is expected not to work,
    and if you would have read documentation (which you never do, I remember you from previous doc questions), you would have known and not have asked Yet Another Redundant Question!
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • InDesign JPG Compression vs Illustrator/Photoshop

    I am working on a website and need to put in a lot of images. For most images, I use photoshop. I create the correct size then export using "Save As for Web & Devices." This works great, but I need to display several small images in a grid format. Wh

  • Trying to continue a download for a game cant find it

    Ok starting to annoy me. I purchase a game and it started downloading yesterday and it said 6 hrs it would take. I let it download till about 3 hrs were remaining and then I paused it or really stopped for time being. And closed out I woke the next d

  • Critical error with default host

    Hi, I am relatively new to Web Logic and think I have made an error within the Web Logic Console with the default host parameter. As a result, I can no longer start up my WLS. Is there a way I can edit this parameter outside of the Web Logic Console?

  • IOS 4 sync issue for Visages through iTunes

    In iTunes, under the Photos tab, I select certain visages that I want to sync to the iPhone. 3 out of the 25 different persons I have but they will all (that the 25 differents people) be sync on the phone... If I select only one, same... Seems that s

  • Saving files such as doc, pdf to a table

    dear all; I have googled this and tried reading the documentation but might need a bit of help. I have the following code below create table file_test (id number, name varchar2(4000), clob_column clob, primary key(id));now I would like to test it out