How can I get the SERIAL NUMBER after an INSERT

I am working on an application using Jdk1.2 connecting to an Oracle 8i
Database. The JDBC driver that I am using is Oracle's thin driver.
In the DB, I have a table that has a primary key as a sequence number.
Upon inserting a single row into this table, how can I get this serial
number that is generated by the Database.
Previously I was using INFORMIX database and welogic's JDBC drivers and this
is how I get the serial number.
PreparedStatement ps = ...
ps.setObject(......);
ps.executeUpdate();
int snumber =
(weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
Similarly I have tried to use
(oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
But this method does not exist in the JDBC thin drivers.
Is there some other way to get this serial number.
Thanks,
Suresh
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by syalaman:
I am working on an application using Jdk1.2 connecting to an Oracle 8i
Database. The JDBC driver that I am using is Oracle's thin driver.
In the DB, I have a table that has a primary key as a sequence number.
Upon inserting a single row into this table, how can I get this serial
number that is generated by the Database.
Previously I was using INFORMIX database and welogic's JDBC drivers and this
is how I get the serial number.
PreparedStatement ps = ...
ps.setObject(......);
ps.executeUpdate();
int snumber =
(weblogic.jdbc.informix4.Statement) ps.getSerialNumer()
Similarly I have tried to use
(oracle.jdbc.driver.OracleStatement) ps.getSerialNumber()
But this method does not exist in the JDBC thin drivers.
Is there some other way to get this serial number.
Thanks,
Suresh
<HR></BLOCKQUOTE>
========================================
ORACLE don't support serial number as Informix, but you can create sequence table
and every time get the next value from this table.
null

Similar Messages

  • How can I get the serial number for Premiere 11?

    In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No Serial number available!!
    I´ve registered the serial number for Photoshop Element 11 on Adobe, but not the key for Premiere (they are on the same dvd).
    How can I get the serial number for Premiere 11?

    I do not think there is any way for anyone here to help you (we are just other users) so you are going to have to contact Adobe
    Forum for Download & Install & Setup problems
    http://forums.adobe.com/community/download_install_setup
    Chat http://www.adobe.com/support/download-install/supportinfo/
    -or http://www.adobe.com/support/chat/ivrchat.html
    And tell your wife to be more careful about throwing things away

  • How can I get the serial number for registration and instalation?

    Hello ,How can I get the serial number for registration and instalation?

    contact your local sales representative.
    You don't need a serial number to install LabVIEW.
    Registration is optional.
    Activation is needed after the evaluation period.
    Install it without number and it will work for a limited time (30days?) in evaluation mode, giving you plenty of time to decide if you want to buy it.
    Check the license manager to see the activation status of everything installed.
    LabVIEW Champion . Do more with less code and in less time .

  • I won Lightroom 1.0 a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    I won Lightroom 1.0 as a door prize a few years ago at an Adobe clinic in Fremont. I have since misplaced the original disk and cannot get the program to open. It wants a serial number and I don't have one. How can I get the serial number so I can use the software?

    Thanks for replying, Jim. I wasn't planning to use it for raw images. I shoot film, black and white, and have many negatives I want to print. I am unfamiliar with the upgrades in Lightroom. I wasn't unhappy with the version I have. It was useful for my purposes.
    Because it was a few years ago, I don't remember if I registered the product. I was able to login to my account. But could not find a path to communicate with Adobe. I will keep trying.
    Ken

  • Did i buy Adobe Photoshop & Adobe premiere elments but uTrshed  the box before instalation how can i get the serial number?

    did i buy Adobe Photoshop & Adobe premiere elments but uTrshed the box before instalation how can i get the serial number?

    I suggest that you Contact Customer Care - click on the Still need help? button to chat with an agent.

  • How can I get the serial Number of...

    How can I get the serial Number of Table whether or the hardware and the serial Number Windows?

    There most be a way, becouse if you will got to this game site:
    http://en.dinorpg.com/ and try to register more then 3 times, you will get
    an error that you can only have 3 acount on one computer. Even if you will
    reinstall your windows version you still get the same error. If they can do
    it so there most be a way.
    2009/8/20 Greg Lafrance <[email protected]>
    You can't access such info from Flex/AIR apps. There's just no way.
    >
    If this post answered your question or helped, please mark it as such.
    >

  • HT1349 My Ipad was stolen, How can I get the serial Number from Apple. It was registered with them

    I had  2 Ipads, a mac book pro and a Mac Air stolen 2 weeks ago
    I am trying to locate one of the serial numbers, but cant find the last box.  Can I get the serial number from Apple. It was registered and now it is not showing up as one of my products.
    Thanks

    The easiest way to find your serial number is this Open Itunes...click help... run diagnostics.....(tick or untick as necessary) so that you just have ticked the last two,  device connectivity and device sync.  run these tests. it will say no ipod/ipad found but will give results of test....scroll down to bottom of results... here you will find the serial number of your last attached devices.

  • TS4000 how can i get the serial number of a lost iphone?

    Can i get the serial number of my lost iphone 5?

    Welcome to Apple Support Communities
    If you registered it with your Apple ID, open http://supportprofile.apple.com and log in with your Apple ID, so you will see the serial number. The serial number is in the box, too.
    <edited by host>

  • How can you get the serial number of your ipod touch when it has been lost?

    My daughter took her ipod touch to a friends house and it is now missing...can anyone tell me how to get the serial number so that we can report the missing device?  Thanks to anyone who can help.....

    On the syncing computer go to iTunes>Preferences>Device and hover the mouse pointer over the iPod backup and the SN will show in a box.  Also see:
    iPod: How to find the serial number

  • Lost my ipod nano.  How can i get the Serial Number from apple?

    Hi everyone, I recently Lost my ipod nano at work. How can i recover my serial number. I did register the ipod throgh itunes. Is there a way I can get my serial number incase someone at my work finds it and returns it so i can give security my serial number to prove that it is my ipod? thanks

    Hello franciscor,
    Sadly, there isn't much else Apple can do for you in this situation. However, I can tell you that there are a few other methods that can be used to retrieve your iPod's serial number other than from off the unit itself. Check out this Apple support document for more information. Hope it helps.
    [iPod: How to find the serial number|http://support.apple.com/kb/HT1459]
    B-rock

  • HT4061 How can I get the serial number off my 3 g I lost the sim card tray and the phone won't turn on so can't check with computer either

    How can I find my serial number on iPhone as I have lost the sim tray and my phone won't turn on because it is broken

    Go to the copmuter you normally sync to an dopen itunes and click on edit then click on preferences then click on the devices tab then hover the mouse pointer over the backup of your phone and the information will be shown

  • How can I get the serial number of the hard disk of my PC

    I want to get the serial number of my PC hardisk. Is there any command that I can pass to the System Exec.vi that will give this info.

    I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA
    http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How can I get the serial number for CS6 - I did not register it on my adobe account and I don't have the invoice/email from Aug 2012 nor the box anymore. I need the number to move software to a new computer.

    I am trying to move Indesign CS6 to a new computer.
    To do this I need the serial number of the license.
    It seems I did not register the number on my Adobe account as nothing is there.
    I bought the software in August 2012 - and no longer have the invoice.
    i think we got the software by box but am not sure.
    Please help!

    Hello Karen,
    in this case you should search for Adobe's staff members by writing a personal message. They can often help better than we, we the users like you. Please have a look in the forum to persons with this icon under their avatar:
    Hans-Günter
    P.S.
    Very often Preran works as the "good spirit".

  • "lost" my iPad.  Will the GPS still work after battery dies?  Also, how can I get the serial number for police report?

    Please help!  I "lost" my iPad at a local store.  The GPS on my phone shows the iPad is still in the store (over 24 hours.)  I've searched every square inch of the store and cannot find it.  I fear it may have been "stashed" by an employee.  The police need a serial number for a report.  How do I get that?  Will I still be able to locate it via GPS after the battery dies?

    Did you register it with Apple? If not, you would have had to write it down. Once the device goes out of wifi or if the thief turns wifi off...its gone. All they have to do is restore it as new, you wont be able to detect it again. Sounds bleak I know but its hard to get it back once its gone...no matter what Apple says.
    I really hope it turns up...I hate thiefs. Best of luck.

  • My ipad mini was stolen and i have activated the find my phone to lock it. how can i get the serial number off my itunes or icloud profile? and what are the chances that the find my iphone app works when someome erases the device?

    my ipad mini has been stolen and i have activated the find my iphone to lock. now it is only a wifi device so what are the chances that a person can get hold of it and log onto wifi without the password of my device to unlock. does that not make the app rather less useful as i have to hope that the person is apt enough to log onto the internet but not enough to erase it and start afresh. is it possible to find my device even afte someone has erased it?

    "Losing your iPhone feels lousy. Thankfully, iCloud can help you get it back. But if it looks like that’s not going to happen, new Find My iPhone features in iOS 7 make it harder for anyone who’s not you to use or sell your device. Now turning off Find My iPhone or erasing your device requires your Apple ID and password. Find My iPhone can also continue to display a custom message, even after your device is erased. And your Apple ID and password are required before anyone can reactivate it."
    http://www.apple.com/icloud/features/#fmip

Maybe you are looking for

  • ITunes showing wrong artist artwork. how do i find the image and delete it?

    iTunes is showing the wrong artwork for an artist.  What is strange and frustrating is that the image is not the artwork for any of the artist's albums.  iTunes seems to be pulling it from nowhere.  I can't figure out where iTunes is pulling the imag

  • Not able to paste in Dreamweaver cs5.5

    Uopn opening my Dreamweaver app to work this morning, I was not able to paste any text beyond the first character in the text. Anyone else ever encountered this, and what to do? Thanks!

  • Sharing the local file system on another machine

    Version : 5.10 We have an HP Proliant machine and a SunFire V40 machine. Both installed with solaris 5.10 (x86 AMD). In HP proliant machine we have filesystem with 600gb . We would like to mount this file system in the SunFire V40 machine . Is this p

  • How to create Selection texts in a generated program

    Hi there, Can anybody give me any hint of how can we create selection texts for any selection screen element where the selection screen itself will be generated via some other program? Thanks in advance. Best Regards, Deb.

  • Error: PLS-00216: NUMBER precision constraint must be in range (1 .. 38)

    While compiling one package i am getting the error> PLS-00216: NUMBER precision constraint must be in range (1 .. 38) The declaration is: lServerImportRetVal          number(40); Database is Oracle10gdb. Do i resize the variable to 38... is that advi