Savepoint not supported with oracle 8i

when I am using the oracle thin driver I'm getting the following error
Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.supportsSavepoints()Z
at Svpt1.main(Svpt1.java:31)
but when odbc driver is used the
Checking savepoint support ...
Savepoint is not supported
Insert record(10, 'newregion1') ...
Establish savepoint 1 ...
Unexpected Exception null
java.lang.UnsupportedOperationException
at sun.jdbc.odbc.JdbcOdbcConnection.setSavepoint(JdbcOdbcConnection.java
:1713)
at Svpt1.main(Svpt1.java:49)
please tell me why this difference and how can I use savepoint with oracle 8i.
I'm using Oracle 8i and j2sdk1.5.0_06
import java.sql.*;
public class Svpt1
     public static void main(String args[])
          Connection conn = null;
     Statement stmt = null;
          int rows = 0;
          try
               // Load the Oracle JDBC driver
               DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
          String jdbcUrl = "jdbc:oracle:thin:@localhost:1521:gdn";
               // Connect to the database
               conn = DriverManager.getConnection (jdbcUrl, "srg", "srg");
               // Create a Statement
          stmt = conn.createStatement();
               // Cleanup table to original state
               stmt.execute("DELETE FROM employees WHERE ssn=10");
               // Turn off the auto-commit mode
     conn.setAutoCommit(false);
          DatabaseMetaData dbmd = conn.getMetaData();
          // Check whether Savepoint is supported
     show("Checking savepoint support ...");
          if (dbmd.supportsSavepoints())
                    show("Savepoint is supported");
               else
               show("Savepoint is not supported");
          // Insert a new record into the "regions" table
               show("Insert record(10, 'newregion1') ...");
               rows = stmt.executeUpdate("insert into employees(ssn,name) values (10, 'newregion1')");
          // Establish the first savepoint (named)
               show("Establish savepoint 1 ...");
               Savepoint svpt1 = conn.setSavepoint("svpt_1");
          // Insert a second record into the "regions" table
               show("Insert record(11, 'newregion2') ...");
               rows = stmt.executeUpdate("insert into employees(ssn,name) values (11, 'newregion2')");
          // Establish the second savepoint (named)
          show("Establish savepoint 2 ...");
          Savepoint svpt2 = conn.setSavepoint("svpt_2");
               // Establish the third savepoint (unnamed)
          show("Establish savepoint 3 ...");
          Savepoint svpt3 = conn.setSavepoint();
               // Insert a third record into the "regions" table
          show("Insert record(12, 'newregion3') ...");
               rows = stmt.executeUpdate("insert into employees(ssn,name) values (12, 'newregion3')");
               // Check names and ids of established Savepoints
          show("The name of txn savepoint 1 is: " + svpt1.getSavepointName());
               show("The name of txn savepoint 2 is: " + svpt2.getSavepointName());
          show("The id of txn savepoint 3 is: " + svpt3.getSavepointId());
               // Rollback to the first savepoint
          show("Rollback to savepoint 1 ...");
          conn.rollback(svpt1);
               // Commit the transaction
          show("Commit the transaction ...");
          conn.commit();
               // Close the Statement
          stmt.close();
               // Close the Connection
          conn.close();
          }//try
     catch(SQLException sqlexc)
               show("Unexpected SQL Exception " + sqlexc.getMessage());
               sqlexc.printStackTrace();
          catch(Exception exc)
               show("Unexpected Exception " + exc.getMessage());
     exc.printStackTrace();
     }//main
static void show(String mesg)
System.out.println(mesg);
}//class
thanks in advance.

change the tnsnames.ora you're forms 6i is using. Usually in the net80\admin path of your forms 6i home.

Similar Messages

  • SAP Note 378648 - Offline backup support with Oracle Fail Save

    I am trying to implement SAP Note 378648 - Offline backup support with Oracle Fail Save, but am unsure about part of the solution....
    Basically, I have to add several parameters into the Environment Variables of the MS Clustered Servers running Windows Server 2003 for the user xidadm... 
    Fairly straight forward apart from one parameter....
    BR_OFS_DOMAIN=<domain>
    I am unsure what is required/meant by domain.  Can anyone shed some light??

    Those are environment variables of the Windows user who is running brbackup; usually this is SAPService<SID>.
    You have to set this variables the same way as you set ORACLE_HOME and so on.
    (I am not sure about the details; never worked with MS cluster.)
    hope this helps

  • How to incorporate a Language that is not supported in Oracle Portal

    Hi,
    I want to know the preferred way to add support for a new language in Oracle Portal.
    If a language is not supported in Oracle Portal, how I can add the content for that language in the Portal?
    Please advise.
    Best Wishes.

    I've seen this in a statement of direction presentation as an enhancement for R11. So this should be a R11 feature. In the meantime you might investigate the NLS views and tables and try to find a way to extend this. BUT just in an emergency case and you have to know that is not supported (also you may lose support in general for this installation when hacking the repository). So I cannot recommend this with a clear conscience. You have to know exactly what you're doing.
    You can also open a SR to get an official statement from support. Maybe there's a note for this.

  • FDM is not supported on Oracle RAC?  Why not?

    [http://download.oracle.com/docs/cd/E12825_01/epm.111/fdm_11113_readme.pdf|http://download.oracle.com/docs/cd/E12825_01/epm.111/fdm_11113_readme.pdf] We are in the process of implementing Oracle Hyperion Financial Data Quality Management (FDM) version 11.1.1.3 as part of our Hyperion Essbase BI environment. I read over the documentation prior to building the databases, but apparently I missed an important bit of information. It seems that FDM is not supported on Oracle RAC. I just noticed this under in the "Known Issues" section of the FDM 11.1.1.3 release notes, and that was only one sentence. The release notes do not explain why this is the case.
    - Does anyone know why FDM release 11.1.1.3 is not supported for Oracle RAC?
    - Has this always been the case?
    - Can a single node database, running on an Oracle 10.2.0.4 two node RAC environment, be used instead of building a separate, stand-alone database?
    Link to readme document. The reference to RAC support, or non-support, is on page 6:
    http://download.oracle.com/docs/cd/E12825_01/epm.111/fdm_11113_readme.pdf

    Hi Daan,
    I belive we all shoud consider http://forums.oracle.com/forums/ann.jspa?annID=939
    I get upset to see people on this forum who answer the questions like *'use google'* or *'let me google it for you'* or *'use this forum filter'*
    I belive it is better to help them answer a better question or if you don't like the question ignore it.
    Hi user10511107,
    I belive your problem is with Windows not with BI, BI just can't get windows version,
    If you are on right version of windows go to MSDN and search for your error and how to fix it
    ERROR: Provider Load Failure.
    Regards
    Nicolae

  • "Your browser is not supported by Oracle BI Presentation Services"

    Hi,
    I have installed obiee11.1.1.5 on windows 7 and i am using Firefox 12.0 latest version.When I am trying to open analytics through firefox12.0 i am getting warning like “Your browser is not supported by Oracle BI Presentation Services” and it is opening in IE but charts are not displayed. Can any one tell me the solution for this?
    Edited by: Uma on Apr 26, 2012 5:24 AM

    Hi Uma,
    good that your issue is resolved. we are generally modifying/adding the header to override the existing version to previous version, so instead of using the FF10+ header we are just modifying it to FF9 inorder to make it work
    The UA string of Firefox itself is broken down into four components:
    Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion
    Mozilla/5.0 is the general token that says the browser is Mozilla compatible, and is common to almost every browser today.
    platform describes the native platform the browser is running on (e.g. Windows, Mac, or Linux). Note that platform can consist of multiple "; "-separated tokens. See below for further details and examples.
    rv:geckoversion indicates the release version of Gecko (such as "10.0"). From Firefox 5.0 and Gecko 5.0 onwards, geckoversion is the same as firefoxversion (described below).
    Gecko/geckotrail indicates that the browser is based on Gecko. geckotrail is "20100101" in desktop release builds and does not represent the actual build date of the browser. For desktop development builds, geckotrail presently indicates the build date of the browser, but this is likely to change in the future. Starting February 1st 2012, geckotrail is the same as geckoversion and firefoxversion in Firefox for Android with a native front end (aka. Fennec Native).
    Firefox/firefoxversion indicates the browser is Firefox, and provides the version (such as "11.0").
    Thanks,
    RM

  • Error message charging is not supported with this accessory

    I have an iPhone 3GS from Jul 2009. Fully updated. I normally charge it using a USB port on my MacBook Pro so it also syncs at the same time. This week began getting an alert on my phone which said "charging is not supported with this accessory". I resolved initially by unplugging/replugging the cord. In all cases the phone had been charging for some time before the alert appeared. In most cases the phone was sitting on the same surface as the macbook and had not been moved since beginning charge.
    The only support document I can find refers to firewire and does not apply to my device.
    Since starting this week it is happening more frequently and may require being re-connected several times.
    It is still intermittent issue but I depend on my phone.
    Thank you for your assistance

    I just found some on eBay for about 1.99 each with free shipping and ordered about 6 of them from the seller, I think they came from China so it takes a couple weeks. So far I never got a bad cable, but if you do use eBay please check their feedback to make sure they have a history of delivering quality cables and working cables. Always pay using PayPal if possible so you don't lose your money. There are online sites like Meritline and such that have cheaper cables for direct sales with PayPal checkout and free shipping.
    I use the 6' cable in the car, so I don't have figure where to put the iPhone or iPod when plugged into the stereo and it is helpful to have them when trying to charge when the plug is being a dresser or something when I travel.
    I also like the retractable cables ($0.99)
    I also have the Scosche FlipSYNC Keychain cable too, a bit expensive, but you always have a cable with you just in case.
    Message was edited by: cls24

  • My ipod touch 3rd gen doesnt work on usb charger but on dock it says "Charging is not supported with this device" How do I fix it?

    I'm taking it in to get it looked at but will they cover this? And is there a way to fix it before I take it in. I'm still under the 1 year warranty plan. My friend said that they might exchange it. It's a 64GB and I use it for a lot of things like my picture, music, contacts, and email. It's got scratches on the back but other wise its ok the screen isn't cracked or scratched.
    I have a usb charger for it but when I plug it into the PC or my wall charger it won't charge. It just says  "Charging is not supported with this device". It even says that sometimes when it's not charging. But it works on a dock station like my clock or radio.
    Also my home buttom won't work unless I press down real hard. This scares me because I'm afraid I wil persss it too hard and break it even more.
    Please help.

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • HT201493 Why when I try to sign in to Find my Friends does it tell me I cannot as my iPhone is not supported with free iCloud service? I do not use find my friends on another device.

    Why when I try to sign in to Find my Friends does it tell me I cannot as my iPhone is not supported with free iCloud service? I do not use find my friends on another device.

    So, have you created an iCloud account and is your device connected to iCloud?

  • What does this message mean Charging is not supported with this device?

    What does this message mean Charging is not supported with this device?

    You've gotten 2 good answers already, but there's a key assumption in both that you got the message when connecting the iPhone to some other device. If this is the case you can get an adapter in the Apple online store that will allow charging from older devices.
    If, however, this message appears when you are not connected to anything the problem is dirt or moisture in the dock connector at the bottom of the phone. Clean it with a dry toothbrush or air blast.

  • Why does my iPod(3rd gen) say charging is not supported with this accessory even though its not plugged in?

    I was eating breakfast one morning playing a game on my iPod and it slipped out of my hand and into my cereal bowl. So immediately I took off the case and put in a bag of rice for a day and a half to let it dry out. Then when it started working again (thankfully) a notification popped up saying charging is not supported with this accessory after I unplugged it from the wall. So I thought nothing of it and pressed dismiss. Now when ever I wake it up, instead of my wallpaper popping up in the lock screen that stupid notification does. How can I get rid of it? Also my home button doesn't work anymore so I have to use asisstive touch instead. How do I take a screen shot without the assisting touch menu in the way? Thank you.

    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
      Apple - iPod Repair price

  • HELP!!! "Charging is not supported with this accessory" suddenly happening CONSTANTLY with iphone 4

    Suddenly without warning my IPhone 4 has been giving me a "charging is not supported with this accessory error" every time I plug it into ANY charging device.  That means my car charger, USB to the PC... USB to a macbook pro... Directly to the wall with the included charger, etc.  It doesn't matter.  I guess I'm past the 1 year warranty so Apple is not any help.  Essentially I'm supposed to accept that my $200 (with a contract) phone has a 1 year life span and that I should be completely fine with it becoming useless out of nowhere.  Here's some facts.
    #1 - It has nothing to do with 3rd party accessories.  One day it was working... one day it wasn't. 
    #2 - I cleaned lint out of the charging port on the phone.  That was the first thing I tried. I used compressed air to blow it out, I used a soft bristle tooth brush...  It's lint free.  It has nothing to do with lint.  I understand this is the most likely cause of the problem.
    #3 - When I plug it into a PC or macbook via USB, I'm able to access the IPhone 4 like I ALWAYS have.  In other words, I can see pictures, I can back up the phone, I can restore the phone, I can transfer music, sync, etc.  So this would presumably rule out the idea that it's the dock connector, right?  Why would USB work, but the charging function will NOT work?
    #4 - On that note, I was able to update the software to the latest version 5.1.1.  That was one of the first things I tried.  No dice.  I still get the "charging not supported with this accessory" error literally every time I plug it in with a yellow triangle icon... Seen here for example: http://tapatalk.com/mu/4c5f44af-af20-d86c.jpg .
    #5 - So since it's not charging, the phone inevitably dies.  Here's the weird part... if I leave it plugged into the wall/pc/mac/car when it's dead... eventually it will charge enough to turn back on.  But once it's back on... that **** error will pop back up, it will stop charging... and inevitably die again.  So then... that would suggest that it actually IS capable of taking a charge... it's just that something in the software is preventing it from charging when the software is active, no?  Am I off base here?
    #6 - So I decided I'd take it to the genius bar to have them look at it.  Right before I did that, I got the brilliant idea to try using an alcohol swab on the dock connector just to make sure it was super duper extra clean.  Oddly enough, it suddenly started working without the error.  It was working on every charger I tried.  Wow.  I thought I had fixed it.  A day later it started happening again, though.  Bizarre.  I've tried the alcohol swab thing again and it didn't make a difference... maybe it was just a fluke.... the one day I take it to the Apple genius bar and it works.  Go figure, right? 
    #7 - The only helpful thing the tech at the Apple Genius Bar was able to tell me was that the phone did NOT have any kind of water damage.  That rules that out.  No water damage in the charging dock OR the headphone jack.  So there's that.
    #8 - Since it's no longer under warranty... I took it upon myself to buy a replacement battery via Amazon.com and installed it myself.  Didn't make a difference... still the same error.  
    What, if anything, can I try?  Could it really be the dock connector?  Should I try replacing the dock connector?  Is there any software-related thing I can try?  Has this happened to anyone else?   Apple has essentially told me it's my problem.  From my perspective... any product that randomly stops working a little over a year is a faulty product.  I'm not pleased at all.

    Tried at least 6 different cables.  It isn't the cable.  All of them worked one day... then stopped working the next day.  My girlfriend has an identical Iphone 4 and all of the cables still work for her. 
    Interesting point on the data and power using different pins.  So your suggestion would be to replace the dock connector?  Found this on Amazon: http://www.amazon.com/Apple-iPhone-dock-connector-cable/dp/B003UGVOO2/ref=sr_1_1 ?ie=UTF8&qid=1338277549&sr=8-1 ... and found a tutorial online:  http://www.ifixit.com/Guide/Installing-iPhone-4-Dock-Connector/3147/1#.T8SG_sXWu -o  ... Sounds like that might be my best bet here.
    It's just odd to me that the phone gives me that error and refuses to charge... then inevitably dies.  But once the phone is dead, it starts charging enough to actually turn back on.  Isn't that slightly odd? 

  • My iPod touch 4G suddenly pops up with 'charging is not supported with this accessory' no matter what cord or source I use. It worked fine for months before this. What can I do?

    This is crazy!  I love my iPod but it suddenly has a charging issue. Please HELP! I had absolutely no problem charging it for 7 or 8 months. Then last week I started getting an error message every time I try to charge it. I used to be able to charge it through my PC, PS3, wall adapter or car adapter. Now I get this message no matter where I try to charge it or with what cord! It says, 'charging is not supported with this accessory'. It happens after about 3-5 min of charging. Then I have to unplug it and plug it back in to keep charging it!  How or why did this happen and how do I fix it?

    If you did not do a reset of your iPod please try that (you will not lose any data)
    Reset iPod touch:  Press and hold the On/Off button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
    If this does not work inspect the opening in your iPod where the cable connects. Look for any debris and clean it (a magnifying glass may be required).

  • IPod Touch 4G "charging is not supported with this accessory"

    My iPod Touch 4g has been getting the message "charging is not supported with this accessory" ever since iOS 5, and I just recently updated to iOS 6.
    I currently use an Apple brand charging cord and a 3rd party charging cord, and none of them work.
    I've been looking around in forums and there have been several temporary fixes that haven't worked for me, such as:
    - closed all apps
    - purchased a new cord
    - did a hard reset
    - updated USB drivers
    - updated iPod Touch driver
    - updated iTunes( just covering all bases here)
    - plugged my iPod in several other computers
    - tried putting it in airplane mode, then turning the iPod off, and then plugging it into the computer
    - and cleaning out the dock with compressed air as well as the USB ports on my computer
    Does anyone with a permanent solution? Because this is starting to get very irritating...

    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • Hi i have an ipod 4 and i have a wall charger but every time i try to charge it it says "charging not supported with accessory" can i do anything to fix it ?

    Hi i have an ipod 4 and i have a wall charger but every time i try to charge it it says "charging not supported with accessory" can i do anything to fix it ?

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

Maybe you are looking for

  • Can't drag and drop actions into a set

    I'm using CS4 and haven't had this problem before. After loading various actions, I am unable to drag and drop them into one of my sets. The actions either drop above or below the set. I'd appreciate any suggestions. Thanks, Carole

  • Header fields in NSURLResponce.

    I need to get access to "Location" header. Wireshark says i received it. But NSHTTPURLResponse *hr = (NSHTTPURLResponse*)response; NSDictionary *dict = [hr allHeaderFields]; NSLog(@"HEADERS : %@",[dict description]); doesnt' show any "Location". Any

  • Iphone Limitations Question

    I'm so excited for its release within the next couple of days but I have a question about the limits/restrictions that apple has put on these applications. Can anyone elaborate on the possible apps (i.e. new themes, screen savers, video record, copy

  • Ical automatically starts when I boot up but I don't have it set to autostart. Why ?

    ical automatically starts when I boot. I have nothing set to auto start. Any ideas?

  • Trigger on Multiple tables

    Hello, I need some help rewriting a trigger, the data structure changed for one of our tables and now my trigger is invalid. I know that we can't have a trigger on multiple tables but I was hoping that someone could give me some ideas. Trigger: creat