in reply to Problem with ora_login function in oraperl

My first guess would be that the connection parameters are different for that last call to ora_login, and you are connecting to some different database (which somehow happens to have the same table schema as the database used in the first several calls).

Maybe you have "development" and "production" versions of the database (or "legacy" and "current" servers)? And maybe the script originally used one of them, then was edited to use the other -- but one of the login calls was missed by the edit?

You should have the connection parameters specified once for the whole application, perhaps in a separate module, so that if you need to change anything (host name, password, etc), you only need to update one data structure in one piece of code.

  • Comment on Re: Problem with ora_login function in oraperl