Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

disconnect errors

disconnect errors

disconnect errors

I am working on a win32 perl script that reads sql from a text file maniputlates it then executes the statement on oracle. (the text report is a log of activities from a diffrent program) I have certain error conditions where I give the user an error and exit the program, in particular the one I am having problems with is in the event that the user has updated a record that has been deleted on the server.  Now in my error procedure I report the error both to the screen and an error log, Rollback the transaction, then disconnect from my 2 databases,and exit.  The first is an oracle connection that gives me an error when I try to disconnect "Disconnect invalidates 1 active statement handle ....call destroy of finish on statement before disconnect."  I have tried to call destroy, finish, even undef on the statement, but I can't seem to find the first two and undef errors telling me I need to disconnect first.  Finish is supposed to be in the DBI module which is what I'm using but the windows perl can't seem to recognize it.   Any suggestions???

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close