Oracle Connection Release Issue with Latest Driver not with the legacy one

Hi
I came across a scenario in the http://www.oracleutilities.com/Packages/dbms_alert.html, which discuss about the usage of the dbms_alert (Alert.java program). I used this example with classes12.jar and terminated the program abnormally without raising the signal. When i checked the oracle session in v$session table i didn't see any stale session, however when i used the ojdbc6_g.jar (followed the same step as i mentioned earlier for classses12.jar) i found the connection is not released. Any help/pointers would be highly appreciated
More information of driver and db are given below
classes12.jar
Manifest-Version: 1.0
Specification-Title: "Oracle JDBC driver classes for use with JDK1.2 and JDK1.3"
Specification-Version: "Oracle JDBC Driver version - 9.0.2.0.0"
Specification-Vendor: "Oracle Corporation" .
Implementation-Title: "classes12 archives"
Implementation-Version: "Oracle JDBC Driver version - 9.0.2.0.0"
Implementation-Vendor: "Oracle Corporation"
Implementation-Time: "Fri Jun 9 04:27:20 2006"
ojdbc6_g.jar
Manifest-Version: 1.0
Implementation-Vendor: Oracle Corporation
Implementation-Title: ojdbc6_g.jar
Implementation-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produ
ction"
Implementation-Time: Thu Aug 28 18:32:51 2008
Specification-Vendor: Oracle Corporation
Created-By: 1.6.0 (Sun Microsystems Inc.)
Specification-Title: Oracle JDBC driver classes for use with JDK6
Specification-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produc
tion"
Main-Class: oracle.jdbc.OracleDriver
Database & OS info
OS : Linux bld-qa-ts26 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
ORACLE VERSION : 11GR2 ( 11.2.0.2.0 ) SE

>
I used this example with classes12.jar and terminated the program abnormally without raising the signal. When i checked the oracle session in v$session table i didn't see any stale session, however when i used the ojdbc6_g.jar (followed the same step as i mentioned earlier for classses12.jar) i found the connection is not released. Any help/pointers would be highly appreciated
ORACLE VERSION : 11GR2 ( 11.2.0.2.0 ) SE
>
Let me see if I understand this right
1. You are using an example from several years ago
2. The example is for code that captures the LOGON to the database
3. You don't mention anything about whether you got the LOGON notification but mention that you terminate the program abnormally.
4. You use a jar file that has been obsolete for over 10 years
5. You use the latest version of the Oracle database (which the jar file does not support)
Did I get that right?
And this surprises you?
Why on Earth would you do this? You should be using an example and jar files that support and are supported by the Database and JDK that your are using. When you don't you can expect to have problems and many of them you will not be able to resolve.
You don't provide the JDK version that you are using but there's a good chance it is the wrong version for this hodgepodge also.
1. Use JDK 1.6
2. Use OJDBC6 jar
3. Use examples for Oracle 11g
Here is the official Oracle JDBC page that shows the Oracle DB versions supported for each of the JDBC drivers available and also describes the JDBC jars and what JDK versions they support.
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_01
>
Which JDBC drivers support which versions of Oracle Database?
JDBC 9.0.1 drivers can talk to RDBMS
11.1.0
classes12.jar
Classes for the Thin and OCI drivers when using a Java 1.2 or 1.3 VM.
>
And here is the PL/SQL Packages and Types doc that has an example in Chap 18 DBMS_ALERT (not for LOGON)
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_alert.htm#BEHBCFCF
>
Examples
Suppose you want to graph average salaries by department, for all employees. Your application needs to know whenever EMP is changed. Your application would look similar to this code:
DBMS_ALERT.REGISTER('emp_table_alert');
<<readagain>>:
/* ... read the emp table and graph it */
DBMS_ALERT.WAITONE('emp_table_alert', :message, :status);
if status = 0 then goto <<readagain>>; else
/* ... error condition */
The EMP table would have a trigger similar to this:
CREATE TRIGGER emptrig AFTER INSERT OR UPDATE OR DELETE ON emp
BEGIN
DBMS_ALERT.SIGNAL('emp_table_alert', 'message_text');
END;
When the application is no longer interested in the alert, it makes this request:
DBMS_ALERT.REMOVE('emp_table_alert');
This reduces the amount of work required by the alert signaller. If a session exits (or dies) while registered alerts exist, the alerts are eventually cleaned up by future users of this package.
The example guarantees that the application always sees the latest data, although it may not see every intermediate value.

Similar Messages

  • When I connect my nano to my computer I receive the following message: There is a problem with this drive. Scan the drive now and fix it. My computer recognizes the ipod but the play lists saved in my itunes library are not the playlists that are on my na

    When I connect my nano to my computer I receive the following message: There is a problem with this drive. Scan the drive now and fix it.
    In addition, when I connect my nano, my computer does recognize but the library and playlists in my Itunes is not the same as the library/playlists on my ipod (on this ipod). If I purchase new songs from itunes, they go to the library on the computer but I cant get them to the ipod playlist.

    bump, I have same issue. thanks, MM

  • D7360 automatic duplex printing is not available with latest driver

    d7360 automatic duplex printing is not available with latest driver
    This question was solved.
    View Solution.

    Hello ephsh,
    Welcome to the HP Forums.
    I see that you are having an issue attempting to do some duplex printing.
    So I can better assist you, please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    I am going to attach a document that deals with a Two-Sided Print Option Is Not Available Even Though an Automatic Two-Sided Printing Accessory (Duple....
    Please feel free to write me back at your convenience.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • No "Fiery Features" with latest driver from Canon only "Printer features".

    No "Fiery Features" with latest driver from Canon only "Printer features".  iRC5235's using 'OSX installer PKG'.  Installation completes successfully.  Can successfully add the printer(s).  Just cannot access the "Fiery Features" just "Printer Features".  Other users are working fine.  The driver is "Canon iR-ADV C5200s-B2 PSV10US".  Already have removed, restarted and reinstalled numerous times - no progress.  It should be noted that this user may print to the devices, just cannot access any of the "Fiery features" which are desired.  Any thoughts?  Thank you in advance for your assistance.

    If the user is only getting Printer Features, then it would suggest that the wrong PPD is being selected when the printer is being added. For example, the PPD's for the internal Canon board will show Printer Features in print dialog. So while you mention the B2 driver is being used, are you sure it was selected when the print queue was created?
    To check, you can open System Information (Applications > Utilities) and select Printers in the left column. Then in the top right pane, select the iR ADV C5235 with the B2 attached. The bottom right pane will give information about the print queue. The entry PPD will show which PPD is being used and it should show as you have shown above, ie "Canon iR-ADV C5200s-B2 PSV10US".
    If the correct PPD was selected then another possible cause is a problem with the Fiery Features plugin. Via Finder, navigate to
    /Library/Printers/Canon/PS3/PDEs/EF005626
    and check that you have the file "EF005626(FF).plugin". This is the Fiery Feature plugin. If it is present, then maybe this user is having access issues to this folder/plugin.

  • TS1398 hi my ipad is connected to my wifi but it keeps coming up with safari could not open the page because the server stopped responding its saying this know matter what i try to open what am i doing worng please help

    my ipad will not load any pages an after about 10 mins comes up with safari could not open the page because the server stopped responding but iam conected to wifi please help as i have been trying for 2 days now and is doing my head in

    Does the iPod connect to other networks OK?
    Do other devices now connect and work OK?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • To connect my ipod to itunes with windows 8 not see the option to add to add songs from itunes library. As I can solve this?

    To connect my ipod to itunes with windows 8 not see the option to add to add songs from itunes library. As I can solve this?

    Since you can only sync your iPod with one computer at a time, you'll need to copy the contents currently on your iPod to your new iTunes library first.  See this older post from another forum member Zevoneer covering the different ways to accomplish this task.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....

    This error has just recently started happening, and i cannot figure out why, i have not changed anything in tnsnames.ora file.
    i am always able to "test connection" in ODBC. even when i get the error in crystal.
    so i restart Crystal, and i am able to connect to db.
    strange thing is that always when i do a tnsping to db i always get the message :-
    TNS-12541: TNS:no listener
    Any ideas ?

    Re: 08004:[oracle][odbc][ora]ora-12154: TNS: could not resolve the connect ....  
    Posted: Aug 22, 2011 5:56 PM     in response to: John Fleming          
         Edit                          Reply
    I am receiving a similar error.
    Failed to open the connection.
    Details: 08004:[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified [Database Vendor Code: 12154]
    I've seen all sorts of discussion on the intertubes about possible fixes however, none stated are practical or they do not address my error specifically. I've exhausted resources on the net as well as those available to me.
    I'm currently running SAP Crystal Reports 2011 on WIN7 64bit and using Oracle in OraClient 10g_home1.
    Please let me know what insight you have. I cannot roll back to previous versions of Windows nor less encryption.
    Thank you for your time.

  • HT4528 i am having problems since downloading ios8.  app freezing, display orientation locking up, calls coming into multiple phones associated with same apple id.  Anyone else having these issues?  i did not download the update

    i am having problems since downloading ios8.  app freezing, display orientation locking up, calls coming into multiple phones associated with same apple id.  Anyone else having these issues?  i did not download the update

    No.  But thank for asking.

  • The user account in which the Oracle VSS Writer Service is running does not have the DBA privileges to log in to the Oracle instance.

    VSS-00011: Connection to database instance <instance_name> failed.  
    Cause : The user account in which the Oracle VSS Writer Service is running  does not have the DBA privileges to log in to the Oracle instance.  
    Action : Run the Oracle VSS Writer Service in a user account that can connect to the Oracle instance with DBA privileges.  
    I have assigned ora_dba group to the user that runs the Oracle VSS Writer Service which is the only Oracle solution but still getting
    the above error. Was advised to raise the issue here that it is an OS issue. Pls help

    The user account cannot access Oracle Database instance. And also how do you temporarily disable security software on the server.
    Have you checked what I already asked for? "Try using the user account and access the Database Instance.
    That will let you see if the problem is with the user account permissions or not."
    If this does not help then you can contact Oracle as suggested by Dave.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Whenever I update from Windows 7 get error 1602, iPod shows USB connection to iTunes, but iTunes will not recognize the device. None of the Apple documentation helps.

    Whenever I update from Windows 7 get error 1602, iPod shows USB connection to iTunes, but iTunes will not recognize the device. None of the Apple documentation helps. The Apple Mobile Device driver is loaded and operating. The anti-virus software and firewall are not at fault (were uninstalled, and made no difference). The iTunes on my older machine running Vista does recognize the inoperative iPod (iTunes has detetced an iPod in recovery mode) and allows me to restore the device. Can anyone help to resolve this problem on the Windows 7 PC?

    So yu tried all of this:
    Error 1600, 1601, 1602: Try the following steps to resolve this error:
    Ensure proper USB isolation troubleshooting has been performed, and test with a known-good cable.
    Follow the steps listed for Error 1604.
    This error may be resolved by disabling, deactivating, or uninstalling third-party security, antivirus, and firewall software. See steps in this article for details on troubleshooting security software.
    Error 1604: This error is often related to USB timing. Try changing USB ports, uninstalling and reinstalling USB ports, and other available USB troubleshooting steps (troubleshooting USB connections, device not recognized properly, computer won't recognize a FireWire or USB device). If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode,put it into Recovery Mode.
    Restore and wait for error 1604.
    When prompted, click OK.
    Close and reopen iTunes while iPhone remains connected.
    iPhone should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
    If you had then time for an appointment at ther Genius Bar of an Apple store.

  • I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem)

    I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem).  I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge.  So,
    1.  why doesn't my cmputer see the old TC
    2  once i have solved that, how do I erase the old one
    3.  Can I use the old one as a supplemental hard drive
         a.  wired?
         b. wirelessly?
    4.  Can I use the old one as a range extender?
    I know .. a lot of questions but I would appreciate any help.
    Thanks

    sgetraer wrote:
    I have a new time capsule (replace my old time capsule).  I want to erase my old one.  My computer does not see the old one anymore, how do I connect it (the old TC is not connected to modem).  I want to erase it and then use it as either a second hard drive (sired/sirelesly?) or as a hard drive/bridge.  So,
    1.  why doesn't my cmputer see the old TC
    2  once i have solved that, how do I erase the old one
    3.  Can I use the old one as a supplemental hard drive
         a.  wired?
         b. wirelessly?
    4.  Can I use the old one as a range extender?
    I know .. a lot of questions but I would appreciate any help.
    Thanks
    1. Because it is either the same IP as the new one or hidden by being plugged in as a second router.
    To access it, isolate one computer from the existing network and plug it directly by ethernet to a lan port of the TC. Use the erase function in the TC to remove all the content of the hard disk.
    Then go to the internet tab, connection sharing and select off bridged. You can then reconnect the TC to the network.. and the computer as well. The TC will act as bridged device.. getting IP from the main router and should then appear correctly in Airport utility.
    2. I covered in 1. But you just go in airport utility manual setup. disk, and you will see the erase function. You can also set it to bridge and leave the erase until you put it back in the network.. but be careful you erase the right one.
    3. You can use the old TC via wired or wireless.. although I would always stick to wired connection if possible. Speed on wireless is 10x worse than wired.
    Also note the reliability goes down dramatically after 2 years.. a series 1 3 years old or more is ebay fodder unless you want to repair it. Do not trust vital data to it.. when it dies you will have issues recovering it.
    4. Yes, all apple routers will function as wireless extenders. when you do that the ethernet ports turn off so it becomes a purely wireless device.. strange apple decision on what you want to use your TC for.

  • Business Catalog updated with BPEL refs, not with BPMN refs

    When adding BPEL processes to the SCA component you see the Business catalog modules "References" and "Services" are updated. However, when adding BPMN processes the Business catalog is not updated (and btw you cannot check "Expose as an web service" when creating a BPMN process like you can with BPEL processes). In my opinion the current solution seems incomplete: viewing the "Exposed services" lane of my composite.xml I should expect all of them in the Business Catalog, not only the BPEL ones. It seems Oracle's work behind the Business Catalog component has not finished yet or is there some logic behind this behaviour?
    I am working with version 11.1.1.6
    Edited by: GSmink on Jul 9, 2012 5:12 AM
    corrected spelling errors

    Dan,
    No I did not use Reusable or Manual processes, I use processes (asyn) with a Message Start event, and yes, I see them nicely in the Composite's Exposed Services and the wsdl's in the project's SOA Content folder. But my 'concern' is why the Business Catalog (BC) is not populated with BPMN processes like it is with BPEL processes. In the "Services" module of the BC I see the submodule BPEL with my BPEL processes so I had expected a submodule BPMN with my BPMN processes. From a business perspective I certainly would also see my business processes in the BC, so for me it seems 'unbalanced'
    (I ran against this issue when using correlation:
    In the process receiving an 'in flight' message I defined a Message catch event step in where I defined in the box "Message Exchange" Type :"Define Interface". Then building the process that throws the message to the in-flight process instance I defined the Message Throw event step and in that step I had expected to be able to use the Message Exchange Type "Use Interface" but that was not possible because I could only select BPEL services.
    I solved this by selecting "Process call" in stead of "Use Interface".)

  • When I open iTunes and am also connected to my iPad, I do not get the screen where my device should be listed.

    When I open my iTunes and am also connected to my iPad, I do not get the screen where I can select a device or choose the Summary tab.  What am I doing wrong?

    Hello Hegsted60,
    Sorry to hear that your iPad is currently not recognized by iTunes.  I found an article with steps you can take when you experience an issue like this.  I wasn't sure whether you were using a Windows or Mac computer, so I included the respective articles for each:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT4623 My iPad2 is frozen, I am trying to download the upgrade software but fails after a while, how can I solve the issue. I have not upgraded the iPad 2 since I bought it.

    y iPad2 is frozen, I am trying to download the upgrade software but fails after a while, how can I solve the issue. I have not upgraded the iPad 2 since I bought it.

    Try and force iPad into Recovery Mode:
    1. Turn off iPad
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Sync Problem - "There is a problem with this drive. Scan the drive now and fix it".

    Have new desktop computer with Windows 8.When I connect my iPod to my computer to sync, I get the message – “There is a problem with this drive. Scan the drive now and fix it”. It is identifying the drive on the iPod as the problem. iPod works fine on my laptop computer and older desktop (both with Windows Vista). iTunes seems to momentarily recognize my iPod then it doesn't.  Any thoughts about a fix?

    bump, I have same issue. thanks, MM

Maybe you are looking for