Oracle 10G AS, Batch Update doesn't commit.

Hello,
We are using Batch uptdate to commit a set of records, but to our surprise one of the batches commits in DB and the other doesnt.
The below pseudo code explains our scenario :
String str1="INSERT INTO TBL1 (COL1,COL2) VALUES (?,?) ";
String str2="UPDATE TBL2 SET COL1=? WHERE COL2=?";
PreparedStatement pstmt1=conn.prepareStatement(str1);
PreparedStatement pstmt2=conn.prepareStatement(str2);
for(500 recs)
pstmt1.addbatch();
pstmt2.addbatch();
On 500 Recs
//This batch updates the DB and commits too
pstmt1.executeBatch();
pstmt1.clearBatch();
con.commit();
//The Batch executes successfully, but updates are not reflected in DB,
//which may mean that it must not be committing in DB
pstmt2.executeBatch();
pstmt2.clearBatch();
con.commit();
- In the above, pstmt1 is an INSERT and pstmt2 is an UPDATE.
- It so happens that at the end, DB reflects Inserts done by pstmt1, but it doesnt reflect the Updates of pstmt2.
- We have also fired a SELECT stmt immediately after pstmt2 Execute Batch, but the updated values are not reflected.
- Also the above scenario works absolutely fine if we use a STATEMENT instead of a PREPAREDSTATEMENT for pstmt2.
Set up Details:
App Server :: Oracle 10G AS for Linux 2.1,
Database Driver :: Oracle 10G Driver which is bundled with Oracle 10G AS
Database :: Oracle 9i
Any ideas in this regards would be highly appreciated.
Thanks !
- Khyati
Message was edited by:
user473157

I think this is not the right forum for this question; probably a JDBC forum or one of the Oracle AS forums.
Kuassi

Similar Messages

  • Oracle 10g Windows  + CF8  Windows doesn't make the insert

    Hi!
    I have this simple query that is not inserting new values :
    <cfquery datasource="THEDATASOURCE">
    INSERT INTO SCHEMA.TABLE (ID_COLUMN, SECOND_COLUMN)
    VALUES
    (AUTOINCREMENT_TABLE.NEXTVAL,'<cfoutput>#form.FIELD#</cfoutput>');commit;
    </cfquery>
    where AUTOINCREMENT_TABLE.NEXTVAL is a sequence made for the
    ID column of the table.
    what can be?

    it's not inserting the text from the web form.
    I enclosed the code with a <cftry> but it's not
    throwing any error.

  • Laptop supporting Oracle 10g on RHEL 4 Update 2

    Hi,
    I am struggling to find a laptop supporting Oracle 10g on RHEL4 update 2. Though the Redhat HCL shows some laptops... those are all outdated.
    Now, I do find laptops supporting RHEL 5 workstation version. Is Oracle 10g supported on such desktop version ? Kindly help me find a Laptop for personal purpose.
    I am fine to have it Dual boot with Windows Vista / XP but equally want to ensure that it supports the OS as well. Please help me find one such personal Laptop !!!
    [ PS:  Looking for alternative solution other than VMWARE on windows]

    Hi
    This message should be in the linux section. Linux format wrote a quite good article on the issue 105 http://www.linuxformat.co.uk/modules.php?op=modload&name=NewArchives&issue=105
    You should may be go for a Thinkpad (http://www.thinkwiki.org/wiki/ThinkWiki) / (http://www.linux-laptop.net/ibm.html)
    or a DELL http://www.dell.com/content/topics/global.aspx/alliances/en/linux?c=us&cs=555&l=en&s=biz
    Personally I'm using both a Thinkpad with RedHat 5.2 and an Acer aspire on which linux works very well.
    Hope this help otherwise ask more

  • MIgration of Progress Open Edge ver. 9.1 to Oracle 10g rel. 3

    I'm planning for a DB migration project. The application is MFG Pro EB2 and the database is Progress Open Edge 9.1. Can anyone help me confirm the version compatibility of Progress 9.1 with Oracle 10g, so far i've only i've only confirmed ver. 7. Need all the tech documents i can find to use as part of my justification. thanks in advance

    ... to Oracle 10g rel. 3It doesn't exist, afaik, the last is 10g release 2.
    Nicolas;

  • Data source from Oracle 10g problem

    Dear Sir,
    We met a problem when we moved on Oracle 10g from Oracle 9i in the loading process. The scenario is that SQL Server as Data Warehouse, SSIS as ETL tool. But the length of string column as data source table in SSIS grows up 4 times when using Oracle 10g. For example, ABC table x varchar2(8) --> x varchar(32) -->x varchar(8) --> x varchar(8) {Oracle 10g        SSIS(source) }
    This doesn’t influence the loaded result (I did not find any problem until now), but that influence loading performance and we worry about potential problems.
    Do you have any idea or have you met the same problem before? Is I need setup some parameters like "code page"
    Thanks,
    Jacob

    You could try General Database Discussions the main db foum.
    What are you using to migrate your database? Why is it being mapped from varchar2(8) to varchar2(32). It sounds like someone/something is intervening here.
    Barry

  • Oracle 10g DB doesn't startup artomaticlly

    Oracle 10g (10.2.0.1) DB doesn't startup artomaticlly with the server.
    Navigate to the Windows HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\oracle_home_name , I find the
    ORA_SID_AUTOSTART already set to TRUE. In the Windows Service (local) tab , I find the OracleServiceSID
    already appear there and the Startup_type already set to AUTOMATIC.
    What is the reasons?
    Another issue: I open the Windows Task Manager, the ORACLE.EXE process does not appear in the Task Manager.
    In fact, the database is running.
    Edited by: qkc on May 16, 2011 12:37 PM

    It's a new created database, I don't know the auto-start condition after creating.
    2 days ago, I imported a schema and created the following error messages:
    The following message is from alertSID.log file:
    Errors in file c:\oracle\product\10.2.0\admin\millan\udump\millan_ora_828.trc:The following message is from the trace file:
    TKPROF: Release 10.2.0.1.0 - Production on Mon May 16 16:09:33 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Trace file: c:\oracle\product\10.2.0\admin\millan\udump\millan_ora_828.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    Trace file: c:\oracle\product\10.2.0\admin\millan\udump\millan_ora_828.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           1  session in tracefile.
           0  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
           0  SQL statements in trace file.
           0  unique SQL statements in trace file.
         162  lines in trace file.
           0  elapsed seconds in trace file.Edited by: qkc on May 16, 2011 1:14 PM
    Edited by: qkc on May 16, 2011 1:15 PM
    Edited by: qkc on May 16, 2011 1:16 PM

  • Oracle 10g RAC install on OEL5 update 5 OUI failing to write on tmp fs

    Dear Friends,
    I am attempting to install Oracle 10g R2 on Oracle Enterprise Linux 5 update 5 but facing some errors. Can't believe i have done everything right as far as oracle docs n my understanding concern. when i try to invoke runInstaller for CRS it fails with following error:
    [oracle@server01 clusterware]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-11-15_04-36-47PM. Please wait ...[../stage/Components/oracle.swd.oui.core/10.2.0.1.0/1/DataFiles/filegroup1.jar]
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    note: ../stage/Components/oracle.swd.oui.core/10.2.0.1.0/1/DataFiles/filegroup1.jar may be a plain executable, not an archive
    Error in writing to directory /tmp/OraInstall2010-11-15_04-36-47PM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    [oracle@serverr01 clusterware]$
    I am also attaching the cluster verfication result, if you wish to have a look at this.
    Please let me know if you see any pointers.
    Many Thanks

    hi
    did you extract the zip file without any errors and with oracle user?
    is the /tmp full? post "df -h"
    you can manually set another temp directory using "export TMPDIR=/any/path"
    hth

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0 (altered)

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the APEX 3.1.0.00.32 too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • Oracle 10g update from 10.2.0.1 to 10.2.0.4

    Hi all,
    I like to update oracle 10g database from 10.2.0.1 to 10.2.0.4 by applying patch sets, would one please suggest me the best way.
    I am planning to do in the way explained below
    method:
    # Install new Oracle Home
    # Apply the patch to the new Home
    # Shut down the database
    # Change Oracle Home to the new location
    # Start the database
    Can you one suggest me how to do "Change Oracle Home of database to the new location" and back to older oracle_home incase if there are any issues, how to do and what changes requried to make database is run without any probs..
    Thanks in advance..

    If you do it the best way is to read and follow the docs ... not ask strangers if they agree with a small number of bullet points.
    But I disagree with your entire direction. 10gR2 goes into desupport mode at the end of this month. Why move to something that will be desupported before you get there? Why not 11.1.0.7 or 11.2.0.1?
    If you must stay with 10g for awhile at least go to 10.2.0.5.

  • Oracle 10g Express Edition doesn't works on Win SBS 2011

    Deutsch
    Hallo zusammen!
    Ich ein kleines Problem mit der Installation von Oracle 10g Express Edition Release 10.2.0.1.0. Zuerst, ich muss die ältere Version nehmen, weil das Programm welches dann auf Oracle zugreift sehr „sensibel“ ist und wohlmöglich mit der neueren Version 11g nicht klar kommt.
    Die Version 10g habe ich nun auf einen Server mit Windows SBS 2011 Essentials SP1 64-Bit installiert. Doch leider bekomme ich nach der Installation keinen Zugriff zum Localhost 127.0.0.1:8080/apex. Weder mit IE noch mit Firefox.
    Meine Frage wäre funktioniert die Version 10g auf Windows SBS 2011 mit 64-bit überhaupt und falls ja, wo müsste man eventuell in Windows noch etwas einstellen damit man Zugriff auf 127.0.0.1:8080/apex hat?
    Vielen Dank vorab!
    English
    Hello at all!
    I’ve some problems with the installation of Oracle 10g Express Edition Release 10.2.0.1.0. At first i must take the old version of Oracle, because the program which needs Oracle ist very “sensitive” and i fear this program doesn’t cope with the new version.
    So i install the version 10g on a server with Windows SBS 2011 Essentials SP1 64-Bit. Unfortunately i don't get an access to the localhost 127.0.0.1:8080/apex. I try it with IE and Firefox.
    My question is does Oracle 10g works on Windows SBS 2011 64-bit and if yes, is there any setting to do on Windows to get the an access to 127.0.0.1:8080/apex?
    Thank!

    does Oracle 10g works on Windows SBS 2011 64-bitYou can see supported OSes in System Requirements for Windows platforms.
    As always, not certified does not necessarily mean it won't work, but if you have problems...

  • Updating data in oracle 10g

    hello everyone,
    Is there anyone who can explain to me, how to import only recently datas from other database to mine oracle 10g database.
    I wanto update only the newest datas to my database.
    Best regards
    Tony

    userThony wrote:
    Hi,
    I have oracle 10g database installed in 2 servers machines. One has the backup datas from other.
    I would like to import the latest datas from one to other database.
    I don't want to import all the entire database, only the information from 2 weeks ago.
    Best regardsWell, as alluded to earlier, first you have to be able to identify that data. There is nothing inherent in Oracle to do so. At least not after the fact. Is there any column in the table(s) that could be used to identify the data you need? If one database is a backup of the other, why would you NOT want to back up the entire 'source' database? A little more information about the business problem you are trying to solve might lead to some creative solutions.

  • Oel updates and oracle 10g

    Hi
    Can i get updates for oel4/5 ?(using for testing at home)
    can i install oracle 10g oel 5 ?
    thanks

    The ability to get updates for OEL 4 or 5 is a paid service, for which you need to have a subscription to oracle's repository. So, assuming you don't want to explicitly buy a subscription, you can only download the latest version of both OEL 4 and 5, and use it.
    The oracle 10g database (that's also a assumption, that you mean the database with 'oracle 10g') can be installed on OEL5, but because the 10.2.0.1 version was released before OEL5 (actually RHEL5) existed, the installer does not see the linux version as a valid one. This can be bypassed using two popular methods: use the -ignoresysprereqs commandline option with runInstaller, or by copying over the contents of /etc/redhat-release. Also, you need to extra packages (libXp and compat-libstdc++-33). But I assume there are a lot of installation examples to be found on the internet.

  • Oracle 10g R2 Enterprise Manager Web Interface doesn't see the database

    Been at this a few days now... so I hope you can help.
    Windows XP (sp2 slipstreamed)
    Logged in as "Administrator" to the local machine (not the domain)
    I have downloaded Oracle 10g for Windows and have installed it using the Universal installer. The only parameter I changed was the default name of the database from orcl to ORAC (and given the problem I have had with the manager, that's turned out to be an appropriate name!). I set the passwords to be all the same and then let it run.
    Before installation I logged in as "Administrator" and configured the environmental variables - oracle_home, oracle_sid, sid etc.
    It installs, sqlplus client and isqlplus (the web version) both connect fine and so does the windows administrator snapin.
    The only thing that refuses point blank to see the database is the Enterprise Manager.
    The Enterprise Manager takes the SYS logon (as sysdba) quite happily and then it states:
    Error
    java.lang.Exception: Exception in sending Request :: null
    Status Status Pending
    Status Pending Since Unavailable
    Last Known State
    Nice friendly error message there Oracle... thanks
    So more digging
    emctl status dbconsole produces
    EM Daemon is not running.
    which seems to go with
    Clicking Startup/Shutdown gets me
    Couldnot contact the agent. Verify that the url for the agent is null
    Trying the preferences in the EM webpage
    gets me "Io exception: Unknown host specified"
    As near as I can figure, the "agent" is missing - but according to the documentation I have read dbconsole is all that is needed (I not running the grid computing bit).
    Ideas?

    Hmmm no way to attach the error... but it a big error... this is what happened when I did the operations described this morning in the emoms.log
    The same errors show on previous times I have tried to start EM
    2005-10-18 06:48:52,569 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
    2005-10-18 06:48:53,050 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
    2005-10-18 06:48:53,340 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
    2005-10-18 06:48:53,530 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
    2005-10-18 06:48:53,561 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2005-10-18 06:48:53,561 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2005-10-18 06:48:53,601 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2005-10-18 06:48:53,611 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.reports.em.RepIntg
    2005-10-18 06:48:53,611 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2005-10-18 06:48:53,611 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2005-10-18 06:48:53,611 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2005-10-18 06:48:53,611 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2005-10-18 06:48:53,641 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2005-10-18 06:48:53,641 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    2005-10-18 06:48:59,289 [JobWorker 3:Thread-12] ERROR em.jobs executeCommand.159 - UpdateARUTables: Oracle MetaLink credentials are incorrect or missing. Click Patching Setup to set required parameters.
    2005-10-18 07:01:26,189 [EMUI_07_01_25_/console/database/instance/sitemap] ERROR perf.sitemap initializeGeneral.398 - Failed to initialize object: ORA-20206:
    ORA-06512: at "SYSMAN.EMD_DATABASE", line 1165
    ORA-01403: no data found
    ORA-06512: at line 1
    2005-10-18 07:01:27,130 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:01:27,170 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:02:26,972 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:02:26,992 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:03:26,974 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:03:26,994 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:04:26,976 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:04:26,986 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:05:26,978 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:05:26,988 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:06:26,980 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 07:06:26,990 [MetricCollector:HOMETAB_THREAD600:60] ERROR rt.DbMetricCollectorTarget _getAllData.328 - oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
    oracle.sysman.emSDK.emd.comm.CommException: Exception in sending Request :: null
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:1319)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:1212)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:637)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab._getAllData(DbHomeTab.java:324)
         at oracle.sysman.emo.perf.metric.rt.DbHomeTab.getData(DbHomeTab.java:139)
         at oracle.sysman.emo.perf.metric.eng.MetricCached.collectCachedData(MetricCached.java:402)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread._collectCachedData(MetricCollectorThread.java:596)
         at oracle.sysman.emo.perf.metric.eng.MetricCollectorThread.run(MetricCollectorThread.java:320)
         at java.lang.Thread.run(Thread.java:534)
    2005-10-18 10:15:55,570 [HealthMonitor] ERROR emd.main run.270 - HealthMonitor : Found errant task : TaskRegn:ID4,Callback:class oracle.sysman.emSDK.svc.cache.CacheManager$Checker,Iterative:true,Duration:300,DueTime:1129621228768
    2005-10-18 10:15:55,570 [HealthMonitor] ERROR emd.main restart.389 - HealthMonitor 18-Oct-2005 10:15:55 CacheManager error: CacheManager thread timed out.

  • Blank space updatation to Collection field in Oracle 10g

    Hi,
    we have the Oracle 9i database in the dev environment and Oracle 10g in Production environment.
    In Oracle 9i, the below scenario works find, but in Oracle 10g it won'nt, The scenerio is ,
    Update table1
    set test_collection = ' '; -- works fine in Oracle 9i , but it wont works in Oracle 10g,
    Update tabel1
    set test_collection = null; -- works in both the versions.
    Please suggest,.
    raja k

    What is myv, is that the collection name ?? See post number 5 of this thread where I declared it.
    >
    In Oracle 9i, we need not to specify the collection
    name while updating the collection type field in the
    table. 9.2.0.6 was notoriously buggy and wasn't considered stable till 9.2.0.7 if I recall correctly. And now (thankfully) it's unsupported.
    The sql code was written in concern to Oracle 9i, now
    while migrating to Oracle 10g, we are getting the
    problem with this. The problem is , i don'nt have the
    access to Production environment, which is migrated
    to Oracle 10g, we develop the code on Oracle 9i, and
    will release to deploy on Oracle 10g. Develop in 9i and deploy to 10g! Do you really think that's a good setup? How about upgrading your development environment to match production.
    update table1 set test_collection = null; - this
    works fine in Oracle 9i ,
    update table1 set test_collection = ''; - this works
    fine in Oracle 9i ,
    but in Oracle 10g ,
    update table1 set test_collection = null; - this
    works fine in Oracle 10g ,
    update table1 set test_collection = ''; - this won'nt
    works in Oracle 10g , Yes, I already understand what your issue is.
    as you suggested, do we need to specify the
    collection name while updating the collection type
    field. in Oracle 10g, In Oracle 9i , it won'nt
    required ?? Yes, this would be the correct way to do it.
    Karthick,
    because null is not same as ''
    SQL> select * from dual where ''=null
    2 /
    no rows selectedErrrm, yes it is actually...
    SQL> select 1 from dual where '' is null;
    1
    1
    SQL>
    ... if you use the correct condition for checking nulls.

Maybe you are looking for