Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Perl DBI not working with Oracle DBD in 11g r2 environment

by seekhelp (Initiate)
on Nov 23, 2011 at 22:15 UTC ( #939758=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl DBI not working with Oracle DBD in 11g r2 environment
in thread Perl DBI not working with Oracle DBD in 11g r2 environment

Let me even get the DBD upgraded.
I read this below in link
http://search.cpan.org/~pythian/DBD-Oracle-1.34/Oracle.pm
It say :

“ORACLE_HOME can be left unset if you aren't using any of Oracle's executable, but it is not recommended and error messages may not display. It should be set to the ORACLE_HOME directory of the version of Oracle that DBD::Oracle was compiled with.”

Does it mean DBD oracle need to be upgraded if we have a new version of oracle.
for example : DBD was compile when the version was 9i and oracle home poin to 9.2 directory.
Now DBD is not compilled just we changes the oracle_home to 11.2.
Thanks all !!


Comment on Re^4: Perl DBI not working with Oracle DBD in 11g r2 environment
Re^5: Perl DBI not working with Oracle DBD in 11g r2 environment
by Tux (Monsignor) on Nov 24, 2011 at 07:48 UTC

    DBD::Oracle technically just needs the Oracle client, so even if you have a full version of oracle installed, it will just use the client part. In order to find all the required files, you will have to tell the build procedure where to find all of that. That information usually gets passed by means of the $ORACLE_HOME environment variable.

    You'll need to set that to a valid installation path. That may either be a full-fledged installation or to an installation of the Oracle Instant Client. Both will work. And as the client can speak to a different version of the server (the database itself does not need to run on the same machine), you are not bound to using the exact same version of the database: you can talk to a Oracle 9 database with an Oracle Instant Client version 11. FWIW You can have several versions of both installed on the same machine without any of them prohibiting any of the others to function. That is a great way to test your updates.

    When you have compiled and tested and installed DBD::Oracle, it then has builtin information about the libraries it uses, but it does not have enough information builtin to find all the message files (damn locales) or other diagnostical information. That is why you also need to set $ORACLE_HOME at runtime.

    I hope I interpreted your question correctly.


    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-08-27 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls