Oracle 9i and PreparedStatement Date Problem

Hi, I am working with Oracle 9i and it's version of the classes12.zip driver and I am having difficulties in storing a date value using a PreparedStatement. I only care about the date, but I have tried going the Timestamp route as well and get the same results.
The PreparedStatement's parameters are being set successfully (using setDate or setTimestamp) but when the executeUpdate method is invoked, the process hangs. If I remove the Date (or Timestamp) from the insert, all works as expected.
Has anyone else came across this problem and if so, how did you get around this?
Thanks!
-Brian

That certainly hasn't happened with any other database including Oracle 8.
Perhaps you might want to take another look at your code to make sure that it really isn't hanging but instead appears to do so when an exception occurs.

Similar Messages

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • How to do integration between Oracle 11g and SAP Data services

    HI All,
              i want to load data from Oracle 11g data base to some other data bases. we have installed oracle 11g server in one machine and Data services server in one machine.we installed oracle 11g client in data services server machine . i created data store for oracle and when i was executing job i got the following error.
    how to resolve this issue. do i need to do any configuration between two servers (Oracle 11g and data services), and do i need create ODBC for oracle in data services machine.
    if any one know the solution please help me out ASAP.
    Thanks,
    Ramana

    Hi,
    we installed oracle client "win64_11gR2_client" version on DS Server.
    but i need the steps after installing oracle client tool. meaning integration between those two servers(Oracle and DS Server).and what are the variable create on DS Server and paths for variable and how to create ODBC for Oracle on DS Server.
    Thanks,
    Ramana

  • Wifi and mobile data problems

    Hello
    I am reporting a problem regarding the wifi and mobile data on my Xperia Z1. Whenever I lock my phone, the wifi and mobile data keeps turning on by itself again and again. I have tried to turning the "automatic turn on wifi when sleep" to "never" but it keeps turning "always" whenever I lock my phone, so does the mobile data. I look forward to some replies.
    Sincerely

    Hi @Nick2510 I suggest you to first run a backup of the device information like this: http://talk.sonymobile.com/t5/FAQ/Backup-amp-Transfer/m-p/407253#U407253 Try performing a system repair using PC Companion: http://support.sonymobile.com/gb/tools/pc-companion/ This will factory reset your phone and erase all data. You might need tocharge your device for about 1-2 hours before so the device has at least 80% battery. Make sure the device is not connected to computer or laptop and turned off (sometimes you have to press power button and volume up until the device vibrates 3 times or on some devices you have to press the small button near the SIM tray or on the back of the device). Start PC Companion and select Support zone then Update my phone/tablet then in Blue Repair my phone/tablet and follow the on screen instructions - When prompted connect your phone still switched off holding volume down or back button - This should start the repair or reformat process. If you are using Windows 8/8.1 or a 64bit operating system then adjust the settings for PC Companion and run in compatibility mode and chose
    Windows 7 or XP. I hope can be useful. I'm at disposal for any question. Best Regards,

  • APEX as frontend for Oracle Maps and Mapviewer data

    Just to let you know:
    I did some work with Oracle Application Express (APEX) integrating Oracle Maps and Mapviewer functionality
    and published it occasionly it in my Oracle Application Express (German) BLOG. : http://htmldb-de.blogspot.com/ -
    Guess you will understand from the screens, what all is possible and beyond...
    An integration (application) of APEX and Mapquest for Routeplanning done in APEX can be seen (and downloaded) as well.
    Feel free to have a look !
    Bernhard
    http://htmldb-de.blogspot.com/

    Just to let you know:
    I did some work with Oracle Application Express (APEX) integrating Oracle Maps and Mapviewer functionality
    and published it occasionly it in my Oracle Application Express (German) BLOG. : http://htmldb-de.blogspot.com/ -
    Guess you will understand from the screens, what all is possible and beyond...
    An integration (application) of APEX and Mapquest for Routeplanning done in APEX can be seen (and downloaded) as well.
    Feel free to have a look !
    Bernhard
    http://htmldb-de.blogspot.com/

  • Oracle 10G Java PreparedStatement.setString problem

    I am using jboss application server on a windows XP operating system. I installed Oracle 10G production release and am using the jdk 1.4.2.
    When I do a preparedStatment.setString method call to bind the code it does not appear to be binding the variable correctly. I don't get any exceptions it just returns nothing in the resultset. It's like it's binding it but not correctly so it distorts the query results.
    I read the 10G known bug list and found something stating this:
    * If the database character set is AL32UTF8, you may see errors
    under the following circumstances:
    - accessing LONG and VARCHAR2 datatypes.
    - binding data with setString() and setCharacterStream().
    I then tried preparedStatement.setInt to see if this worked and it does without a problem. It appears to be the setString method. I then tried doign a workaround and using setObject instead. Also does not work. I checked the database character set and it appears I have this:
    NLS_CHARACTERSET
    WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    I'm very confused as this is a big problem if I can't use the setString to bind. Has anyone else found this to be the case. Any workarounds or advice for fixing?
    Thanks in advance!
    L

    Character interpretation is up to the client- as long as the database character set can handle a specific character, the client software is responsible for accepting '<char code>' from the database and rendering it as the proper '<char>'. If the client doesn't know the code point '<char code>' you get the inverted question mark.
    Are you running the WE (Western European) charset or did you install the Universal one? A quick way to check that is to do a control file trace backup and check the create controlfile SQL generated ...
    $ sqlplus /nolog;
    show parameter user_dump;
    ... --- s.b. ...admin/XE/udump
    alter database backup controlfile to trace;
    And check the ...udump directory, view the latest .trc file- CREATE CONTROLFILE ... ; if its universal should be:
    CHARACTER SET AL32UTF8
    ;

  • Weblogic JTA timeout and PreparedStatement cache problem (Closed Statement)

    Hello,
    I am facing up a problem using a Weblogic connection pool with a PreparedStatement.
    Here is the environement :
    - Weblogic application server 10.3
    - JDBC connection pool with Oracle Thin driver (from server library) - all parameters by default i.e. StatementCache size = 10
    - JTA transaction timeout = 30s
    The problem is : if a prepared statement ends because of a JTA timeout, I receive the following stack exception/ stack trace
    java.sql.SQLException: The transaction is no longer active - status: 'Rolling Back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 33 seconds
    BEA1-000D8AE7230EFAA3EDC9]'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:178)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:188)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:92)
    at weblogic.jdbc.wrapper.Connection.clearCachedStatement(Connection.java:814)
    at weblogic.jdbc.wrapper.PreparedStatement.clearCachedStatement(PreparedStatement.java:1357)
    and then, if we try to re-execute immediately the same operation (*same statement* but new request, new thread, new JTA transaction ...) we receive without delay the following exception :
    java.sql.SQLException: Closed Statement
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    It seems like a bug in the caching mechanism of Weblogic, the 1st stack trace shows method from the statement cache implementation, I presume weblogic is trying the clear the statement from the cache after the iniitial TimedOutException (SQLException), but as the JDBC connection is unusable at this point, the clearing fails and the statement remains in the cache but is physically closed by JDBC.
    1st question, why weblogic does need to call JTSConnection.checkConnection() for clearing a statement from its internal cache, it is a pure java memory operation isnt'it ?
    2nd question : How to solve the problem without setting the StatementCache size to 0 (I tried, it solves the problem)? I don't want to disable completely the Weblogic statement caching, I have a small PreparedStatement called very frequently.
    Thanks for any help

    The main issue is that the transactional context that is supposed to underlay the JDBC code being executed,
    has gone away. Indeed, any DBMS changes that may have been made by your code so far, have been rolled
    back and are gone. Your code should not be trying to continue JDBC as normal, and WebLogic is trying to stop
    you. The control flow should go back up to the location where the transaction was initiated, so as to restart from
    the beginning if that is what is desired, including getting a new JDBC connection and remaking all the statements
    etc.
    HTH,
    Joe
    Edited by: Joe Weinstein on Dec 3, 2010 9:12 AM

  • Here we go again- 3g AND Edge data problems - NYC area

    Just great.... been having great 3G data speeds for the past several weeks (after the data outage) and since last night (10/12) I cannot get a page to load. Sometimes it doesn't load at all, other times it takes about 5 minutes. What the heck is going on? I am in Woodside, Queens. I tried restarting/Restoring/etc...all that usual good stuff. Also, Edge seems to be affected as well. Anyone else having the same problems?
    By the way- Same problem on my wife's 3G phone.

    Symptoms for a week and a half:
    -Full 3g signal but zero data throughput. I'll try to visit a page and there's zero progress for a few minutes so I give up.
    -Dropped calls, sometimes 5+ within a minute while you're helplessly trying to redial someone.
    I've done multiple soft-reset efforts such as 3G off/on, airplane mode on/off, rebooting, etc. to no avail. Nothing seems to help so I'm convinced it's ATT and their network.
    I live near Times Square and work in SoHo. 5 full bars of 3g everywhere I go and the sad thing is... I've resorted to using edge only since the 3G isn't functional.
    So yea... right now I paid a pretty penny to upgrade my 1st gen iPhone to essentially have GPS, a flush headphone jack and slightly improved speakers.

  • IOS 8.2 and cellular data problem

    Sorry for my broken english.
    I'm using Ipad mini - cellular data + wifi -16GB
    I have a problem with my ipad, when i try to upgrade ios 8.2 , a sign say that ''unable to install update'' and give me 2 choice which is''Close'' or ''settings''(setting means back to GENERAL again) .So i just ignored because i get info from one of the website say ''be patient,because many people try to download i.o.s 8.2'' and when i try to use CELLULAR DATA ,it appear searching....... keep searching until an hour.  I have try reboot 2/3 times but still my Cellular data still searching.....but my Wifi lines no problem .
    Can someone help me .

    I have try to turning off and on but no use because is still keep searching and till now while the ios cannot to install update even thought i have delete some of my application to upgrade.
    But when i take my sim and use to my phone, it work and when i insert back to my ipad i keep telling ''searching'.....''

  • Dequeue XML from Oracle AQ and insert data into table

    Using PL/SQL in a stored procedure, I need to dequeue a message from an Oracle AQ queue, parse the XML content and insert the data in an Oracle table. This is being done in Oracle 9.2.x.
    The payload for the message consists of 2 attributes, APPLICATION_DATA (VARCHAR2(32) and MESSAGE_BODY (CLOB). The MESSAGE_BODY is an XML document. A sample of the message is shown below:
    (M_NAME=MSG_LAW_WR_CRE_UPD, <?xml version = "1.0"?>
    <MSG_LAW_WR_CRE_UPD ID = "WMIS-4744" SRC_SYSTEM_CODE = "WMIS" SRC_SYSTEM_INSTANCE = "WMIS">
    <WR:CMP_LAW_WR_CRE_UPD xmlns:WR = "WR" >
    <WR:DATETIME>12/19/2005</WR:DATETIME>
    <WR:RUSCODE>100</WR:RUSCODE>
    <WR:WRNO>38213</WR:WRNO>
    </WR:CMP_LAW_WR_CRE_UPD>
    </MSG_LAW_WR_CRE_UPD>)
    This message needs to be dequeued from a queue named INBOUND, parsed and inserted into a table named INFO_TO_ACCT (CREATEDATE date, RUSCODE varchar2(10), WRNO number).
    Any help would be appreciated.

    SELECT EXTRACTVALUE(xmltype('<?xml version = "1.0"?>
    <MSG_LAW_WR_CRE_UPD ID = "WMIS-4744" SRC_SYSTEM_CODE = "WMIS" SRC_SYSTEM_INSTANCE = "WMIS">
    <CMP_LAW_WR_CRE_UPD>
    <DATETIME>12/19/2005</DATETIME>
    <RUSCODE>100</RUSCODE>
    <WRNO>38213</WRNO>
    </CMP_LAW_WR_CRE_UPD>
    </MSG_LAW_WR_CRE_UPD>'),'//DATETIME/text()') FROM DUAL;
    hope this helps.

  • Oracle Payroll and Payslip Report problem

    Hi everyone,
    When I am running the Saudi payroll registered and Saudi payslip report in oracle r12. in the parameter list i didn't getting the current reporting period end date, it showing me only old reporting end period date. please can anyone help me how to get lov of all the period end dates to run the payroll and payslip.
    Thank you

    Solved, Thank you

  • Oracle Portal and access data from OID

    I was trying to do the employee search on Portal. I need to enter firstname or lastname of an employee and click search button and it display employee details
    These are the steps I followed
    I created a database provider "Portal1" using the schema Portal
    Then I created a dynamic page using that provider
    This is the code I have in the dynamic page
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>SELECT * FROM PORTAL.WWSEC_PERSON
    </ORACLE>
    </BODY>
    </HTML>
    Dynamic page was created successfully.
    This is my intention. Create a dynamic page and run it as a portlet and publish it in the portal repository. Then use that portlet as any other portlet on the page.
    I assume if I use a bind variable in the sql, I'll be able to pass the parameter (lastname/firstname) from the page and display the employee details on the page.
    This is my problem. When I tried to run the dynamic page as portlet, I am getting the following error. Please advise if I am doing something wrong or is there any other way to access emplyee details
    INTERNAL ERROR
    "Failed to parse the query, ORA -00942 table or view does not exist
    Failed to parse as PORTAL_PUBLIC - SELECT * FROM PORTAL.WWSEC_PERSON$
    The preference path does not exist - ORACLE.WEBVIEW.PARAMETERS
    Thanks

    As the forum name says: "product-related questions cannot be answered here"
    Please choose an appropriate Portal forum for your questions.

  • Sales order with Compl.deliv., Lead time and Shipping date problems

    Hello, SAP gurus!
    We have some concerns with sales orders that won't start processing, and I'm wondering if there's anyone here who have had experience with this problem.
    If not, hopefully you understand this scenario.
    Scenario:
    * A salesorder with three lines, of which two lines are not in stock (itemcategory YBAB), one line in stock (itemcat TAN)
    * Requested delivery date is asap, ie 19/03-2014
    * Marked with Complete delivery
    * In the Shipping tab, it seems all dates are copied from lead time of the YBAB-lines, 11/06-2014.
    * We just received the two YBAB-lines on PO, but the date still shows 11/06-2014, almost a month from now.
    Is it possible to make SAP automatically change the shipping date to the date we actually receive the items and are ready to process the order?
    What we have now is a salesorder made 2 months ago, ready to be packed and shipped today, but SAP seems to hold on to the "expected" date a month from now. It's frustrating!
    Hope to hear from you

    Hello,
    You will need to trigger a av. check again to factor the impact of receipt of YBAB items.
    You could evaluate backorder processing to automate this as a daily run to work on the sales order relevant for re-ATP based on new availability situation.
       Thanks,
    Sudhir

  • ISV embedding Oracle XE and Seed Data

    Some older forum entries imply that it is possible to package your own seed data but I haven't found any documentation on this. Is it possible? Where can I find more info?
    What I'm looking to do is have my product installer run a silent install of XE on Windows. I would like for XE to be pre-configured with my schema, demo data, and other appropriate XE settings (if any). I realize I can run an SQL script post XE install, but is this my only option?
    Thank You

    Hi,
    Packaging and distribution
    I have applications distributed by myself and my colleague (non programmer). I moved all (9) Oracle files on same folder and zipped them. That is possible only for None Archive mode!
    It is possible to deploy everything for 15 min. on a desktop PC.
    I do next:
    1. Login as administrator, shut down any firewall and anti-virus application.
    2. Install Oracle XE.
    3. Edit InitXE.ora to show new place for
    SPFILE='C:\oraclexe\oradata\XE/spfileXE.ora'
    4. Delete Oracle files in C:\oraclexe\oradata\XE. Copy my ZIP file (200 MB in size) and unzip it.
    5. Connect as SYSDBA by SQL Command Line and set up the new server name.
    SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-host/text()', 'NewServerName'));
    Call completed.
    SQL> exec dbms_xdb.cfg_refresh;
    PL/SQL procedure successfully completed.
    Konstantin Gudjev

  • Sql date and util date problem: plz help

    Hi,
    Following is the scenario I am dealing with....
    I have two feilds in the DB, of type Datetime. First field say.. 'DBDate' have date in it, and second field 'DBTime' has time in it. This much part I can not change.... I can change rest of the part so please guide me accordingly....
    I am getting both the values from the DB using
    long day = rs.getDate("DBDate").getTime();
    long tme = rs.getTime("DBTime").getTime();Now I have to create a completly new java.util.Date object using this date and time. So, I am adding both the long values and trying to create a new data object usingjava.util.Date ext = new java.util.Date(day+tme); But the ext date over here is 6 hrs later time than actual text of the Date in the DB. that is if the date and time in the DB is "5/27/2003" and "4:40:00 PM" the resulting date is "5/27/2003 10:40:00 PM", which could be equivalent GMT time w.r.t. the DB Timezone.
    But I want the final date to be the same as the DB Time Zone.....
    if you need more detailed information reply me... i will post it .....
    Thank a lot in advance...
    Ri

    But the ext date over here is 6 hrs later time than
    actual text of the Date in the DB. that is if the date
    and time in the DB is "5/27/2003" and "4:40:00 PM" the
    resulting date is "5/27/2003 10:40:00 PM", which could
    be equivalent GMT time w.r.t. the DB Timezone.
    How do you know that that is the date in java?
    Are you doing this?
    System.out.println("d=" + mydate);
    If so, and as previously pointed out, you are printing out a time that is relative to your time zone. Is the time in the database relative to your time zone? If not then you have a problem. And if the time in the database is relative to any time zone other than GMT then your extraction method is incorrect as well.

Maybe you are looking for

  • How many ATVs can be connected to one itunes library?

    Hi, I want to share one iTunes library, on 8 Apple TVs, of-course not simultaniosly. Does anybody know is it possible?

  • STMS error

    Hi All, We are adding a System (new QAS replacing the Old QAS) to the CTS. The domain controller is DEV. We are getting the following error: This is tp version 370.00.09 (release 700, unicode enabled) E-* syfbusrt\sapmnt\trans\bin\TP_DOMAIN_DEV.PFL c

  • Is it possible to use a non-by default function to compute in categories?

    when you create a category and/or subcategory in numbers, by default, you can make just five numeric computations in every subgroup: subtotal, average, min, max and count. It is possible to add a new computation type to that menu, like standard error

  • Why do I get an error message each time I try to convert a doc?

    I just subscribed to Adobe Export PDF....each time I try to convert a PDF to WORD I get an error message.

  • Script to ease the pain of using setfacl

    Edit : New version - https://bbs.archlinux.org/viewtopic.php?id=176379 (29/1/2014) Hello everyone, setfacl is very useful, but I find setting files individually very frustrating, especially when you have to set a lot of files/folders, and you might h