Multiple Oracle Homes & php

Hi
I currently have ora8i, ora9i , 10XE & Zend Core for PHP installed on my machine.
When I have just installed Zend, the PHP side works and can find the XE - no problem.
When I have 'work' to do and need a different 'oracle_home' setup, I use the 'home selector'. When I want to re-connect to PHP/XE the link to oci8 has gone and nothing fixes until I re-install Zend.
Anyone know a better way? (Please!)

Try changing ORACLE_HOME and LD_LIBRARY_PATH to whichever home you want to use and restarting Apache (that comes with Zend Core). That may work, but no guarantees.
~Jer

Similar Messages

  • Multiple Oracle home and multiple Oracle database versions on same server?

    Hi all,
    I want to setup a test environment on single Windows XP server with an instance
    of Oracle 10g and Oracle 11g. How can I install both versions without problems?
    Thanks

    Hi,
    I am facing a problem on the same..
    below is the link to my thread.
    Multiple Oracle Home in Windows
    Please reply me how to solve this problem
    Thanks
    Bhavik Fuletra

  • Multiple Oracle home

    Hi ,
    I have some doubt which needs to be cleared.
    If I will install multiple oracle home like ORACLE_HOME=/u01/app/oracle/product/10.1.0/asm
    ORACLE_HOME=/u01/app/oracle/product/9.2.0
    ORACLE_HOME=/u01/app/oracle/product/10.2.0
    ORACLE_HOME=/u01/app/oracle/product/crs
    Now in this when I will set export ORACLE_HOME then which version will be picked up.
    Is ORAENV isgoing to come into picture.
    Please throw some light on it.
    Mk

    asifkabirdba wrote:
    You have installed your oracle product (db,application server) using one of os user like oracle,appl,oraprod ect. When you log in to your OS by using OS user then .profile file executed automatically to export necessary environmental variables. You did not mention your OS. Normally you will find it to your OS user home directory. You can edit this file to set your desired ORACLE_HOME.
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
         . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    ORACLE_HOME=/oracle/product/102
    ORACLE_SID=ogtest
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    TNS_ADMIN=/oracle/product/102/network/admin/
    export ORACLE_HOME
    export ORACLE_SID
    export LD_LIBRARY_PATH
    export TNS_ADMIN
    export PATH=$PATH:$ORACLE_HOME/bin
    Regards
    Asif KabirAsif,
    Your advice to hard code the Oracle environment directly into the profile is poorly thought out. And a direct carry over of 'worst practices' unfortunately taught in some Oracle related classes.
    The OP did correctly identify oraenv (as described in the "Administrator's Reference for UNIX-Based Operating Systems" at http://www.oracle.com/pls/db102/portal.portal_db?selected=4) as the preferred solution. Putting THAT into the profile (using ORAENV_ASK as described in the manual) is OK.
    I'll leave you to figure out why the difference - I've posted many times about that in these forums.
    /Hans

  • Multiple Oracle Homes

    Hi everybody,
    I have Oracle 9i installed on my Windows machine.
    I installed Oracle Developer Suite, but could not login due to TNS errors.
    I have a little idea of what the problem is. We need to edit TNSNAMES.ORA file so that it could resolve the service name.
    Can u please help me out in configuring Developer Suite to work properly?
    Thanks.
    -- Kishore.

    Not quite sure why your title is Multiple Oracle Homes. Can you connect to SQLPLUS or any other product in the suite? Is it just Designer you are having hassles with? Do you have the database on the same machine and can you connect to that? If you are successful at connecting to SQLPLUS, then take a look at the tnsnames file in the Database network /admin directories.
    There was a bug at one point where the tnsnames would fail if the network connect string was between 184 and 192 characters in length. You may be running into this. In which case if your tnsnames.ora contains
    (CONNECT_DATA =(SID = <SID>), you can change this to use (CONNECT_DATA =(SERVICE_NAME= <SID>)
    Regards
    Sue

  • Guidelines regarding directory structure for multiple Oracle homes on Unix!

    Hi All,
    Are there any guidelines published regarding directory structures that should be defined while using multiple Oracle homes on Unix/Linux box?
    I am looking for guidelines regarding admin and oradata folders so that we dont accidentally mess up with the DB contents with a wrong Oracle home.
    Its a development server with 8i and 10g. 11g might also get loaded on the same server in future.
    Thanks in advance...
    Regards

    Thanks Maran.
    I have already checked many installation guides before posting here. All of them mention about creating folders like /admin or /oradata on various mount points but none of the naming conventions really indicate whether it is a 8i database or a 10g database.
    This is required when you are having multiple Oracle installations under /opt and databases are running from different mount points.
    Regards,

  • Shared cluster with multiple oracle homes

    Hi All,
    I got to build a shared oracle RAC cluster with multiple oracle home installation ( 10g R1 , 10g R2 , and 11g R1 & 2).
    Of course the cluster ware will be version 11.2, but I wondered if there is any dependency on how I install oracle software? Do I have to start with 10g installation first? can I do 11g and then 10g?
    Is there anything I should be aware of ?

    I installed Oracle Application Server Enterprise which includes AS, Database, OID, Web Cache, SSO etc. and OSES on the same machine. Everything works except I think the windows version of OSES and AS need some patches so the crawler isn't working right. Everything does, however, install and run. I think Oracle develops everything in Linux (rumors of them now using Solaris) so on Linux everything should go smoother.

  • Regarding Multiple Oracle Homes

    Hello,
    Does all of the Oracle products support multiple homes ?
    Can oracle 8i and oracle 8 products be kept in same oracle home ?
    thanks
    null

    Hi Raj,
    To answer your first question, No, not all of Oracle products
    support multiple homes. All Oracle7 products and all release
    8.0.3 are non-multiple Oracle home products. Oracle 8i lite
    cannot support multiple oracle homes either.
    In regards to your second question, no Oracle8i and and Oracle
    8.0 products cannot be kept in the same Oracle home. Releases
    prior to 8.1.3 cannot be installed in an Oracle home that was
    created by a release of 8.1.3, 8.1.4 or 8.1.5.
    Hope that helps,
    Thanks & Regards,
    Sudi Narasimhan
    Associate Consultant
    Partner Services
    Raj Thomas (guest) wrote:
    : Hello,
    : Does all of the Oracle products support multiple homes ?
    : Can oracle 8i and oracle 8 products be kept in same oracle home
    : thanks
    null

  • Oracle XE (Windows) Multiple Oracle Homes

    I have a question in regards to Oracle Express Edition and how it maintains Oracle Home.
    I currently have multiple Oracle Homes on my machine. In order for apps like SQL Developer or PLSQL Developer to see the correct TNSNAMES entries, I usually have to use the Home Selector from the Installation tools to properly obtain the correct tnsnames entries in the dropdowns.
    Now, I'm a Linux DBA, not to keen on Oracle environments for Windows. But, when I installed Oracle Express Edition, none of my Applications SQL Developer or PLSQL Developer recognize the tnsnames entries for my environment. From the 9i Home Selector I see that it is in the correct environment I want it to use. But it seems Express has overriden somehow.
    Can anyone lead me into the right direction to switch between my XE Environment to my 9i environments?
    Thanks.
    Lee

    I did it too, but the beta over beta software is just too dangerous.. you never know what is crashing your system :)
    []s
    Marcio

  • Multiple oracle homes installation

    i have installed oracle 9i database on single sever where 8i is residing using multiple oracle homes.After installation some folders and files related to 9i created in 8i home directory(eg:9i admin related folder create in 8i admin folder).but i dont want to create like that.is there any way to create all files related to 9i should reside on that 9i home directory only?

    You didn't specified the OS.
    Assume that your OS is Unix-like (Solaris, Linux) and your user is oracle.
    The answer is very simple. Use different enviroments.
    create in home directory (oracle user) two files:
    1. .ora_8i
    2. .ora_9i
    All enviroment variables related for 8i database (ORACLE_BASE, ORACLE_HOME, ORACLE_SID, LD_LIBRARY_PATH etc.) are defined in .ora _8i and all variables for 9i are defined in .ora_9i.
    Now, you want working with 8i so you need apply 8i enviroment. To do that simply execute following from shell ". ~/.ora_8i". Now you decided working with 9i so simply execute the ". ~/.ora_9i" from shell.
    For installation use the same way. So before you run ./runInstaller load the apropriate enviroment.

  • Multiple oracle homes problem

    Hi!
    I have multiple oracle homes on my machine: Oracle9DB, DevsuiteHome_1 and now as I have just installed Oracle Discoverer 10g....BIToolsHome_1.
    The problem is ever since I installed Discoverer, nothing is working......
    Can anyone help?
    Best regards,
    Aparna

    Dear Rod,
    What I mean by nothing is working is I cannot connect to the dataases. I get 'No listener' error message.
    Oracle Hone selector gives the following message:
    The is only one Oracle Home defined on this machine and so this tool cannot be used to change your primary Oracle home.
    I tried to start the listener service, however, it says:
    Listener service started and then stopped.
    Is there any solution to this problem?
    Thanks and best regards,
    Aparna

  • Multiple oracle homes on Windows and the "Path" environment variable

    Hi There,
    We have a windows 2003 database server that has few databases running oracle 10.2.0.3. We are installing oracle 11.2.0.1 on the box as well, and we were wondering, which binaries should come 1st in the path environment variable? and how does this effect the working oracle environment?
    Going to the oracle home selector and swapping the 2 oracle homes around will have the same effect on the windows path variable - which will treat the 1st oracle home to be the default home - are there any general rules reg. multiple oracle homes on a server and the default home?
    Should the earlier version of oracle always proceed the newer one (i.e. c:\oracle\product\10.2.0.3\bin;c:\oracle\product\11.2.0.1\bin) or should the newer oracle version comes 1st as newer oracle versions are usually backward compatible?
    Your thoughts are highly appreciated.
    Thanks

    That isn't going to happen.
    If you install 11.2 last it will appear in the PATH variable first
    If you don't want that you need to Oracle Home Selector utility in the Installer to change it.
    Obviously, as usual, all of this is documented.
    Sybrand Bakker
    Senior Oracle DBA

  • OPMN Controlling Multiple Oracle Home Processes

    OK,
    Have OC4J,HTTP in a 10.1.3 Oracle Home.
    Have Webcache in a 10.1.2 Oracle Home.
    GOAL: opmnctl <start|stop> controls all processes (OC4J, HTTP Server, 10.1.2 Webcache).
    Is it possible to have 10.1.3 OPMN control the webcache process in the 10.1.2 Oracle Home? Would this be implemented via OPMN's custom process fuctionality or some ONS/OPMN discovery mechanism?
    Thanks,
    KB

    Interesting how OPMN claims to support Grid computing but it can't (in a supported manner) support processes in multiple OHs ON THE SAME BOX! I guess I'll build a shell script.
    And yes, opmnctl is working in both the OHs.
    KB

  • How to install oracle discoverer 4.1.37 when multiple oracle homes exist

    Dear gurus,
    Can anybody put some light on this issue. I have 2 oracle homes in my machine. When i select any one of them to install oracle discoverer, it says oracle 6i for nt, oraHome92 is already used for ora 82 Beta. I tried to create a Newfolder for Discoverer installation, it also does not work. Please anybody can solve this.
    Plus i need to have know the steps involved in installing Oracle Discoverer 4.1.68.06?
    Help me please
    arizudding

    This is a known 'challenge' on the ol' 4.x and before version of Disco where Disco needs the default Oracle home and doesn't expect anybody else to be camping on it.
    Since Michael's already got the instructions on his site, I won't go over them again - and I'm sure he's given good instructions.
    As for the steps involved in installing Disco 4.1.68.06:
    1. find the software (metalink, otn, etc).
    2. realize it doesn't exist
    3. get mad as you'll think Oracle screwed up
    4. realize that there is NO version 4.1.68.06
    5. be embarrassed!
    OK, kidding, but the version you most likely are talking about is: 4.1.48.06. Also, there is one final, final, no more, we ain't coming out with another version, version. That's 4.1.48.08.
    Assuming you already have a version such as: 4.1.36 or 4.1.47, etc. you can get old patches, upgrades, etc. by checking metalink. Note that in some cases (ie: maybe 4.1.48.08) you have to put in a TAR with Oracle (and go through the usual "we don't support that version anymore" discussion with them).
    Russ
    PS. By the way, I worked in SA for about 3 1/2 years many, many moons ago (multiple places like Jeddah, Riyadh, Taif, etc.). Where's Jabail?

  • Multiple oracle homes on unix?

    We have 3 databases with the same oracle home. we want to move them to separate oracle homes(not going to explain the reasons, but the decision was done).
    so we install 2 more oracle homes. How do we point databases to different oracle homes?

    You do not need to move the database datafiles, copy them or anything of the sort.
    Backing them up is always a good idea before making changes to the system like this.
    Here are the things that I have found that you need to be aware of you the unix platforms.
    /etc/oratab (and sometimes /var/opt/oracle/oratab depending on whom setup the system and how). This tells is a file that is used to tell Oracle the home of each database. (Research oratab for more detailed information)
    If you are going to apply patches to the different Oracle Homes I find often that I have to have my System Administrator change the oraInst.loc file to point to the correct Oracle Home that I want to patch. (Research oraInst.loc file for more detailed information).
    Is management going to make you have a different listener for each database? If so so research Multiple Listeners for Oracle databases for more detailed information.
    And of course you did need to hit the highlights that everyone else has mentioned about the configuration files:
    Move everything under the current $ORACLE_HOME/dbs directory to the $NEWORACLE_HOME/dbs directory for the database being moved.
    Edit the files as needed ( you don't HAVE to change things like the controlfile location or the dump file locations, but you may want to).
    Regards
    Tim
    Edited by: user2846257 on Apr 17, 2009 10:32 AM

  • Multiple oracle home installation

    I am going to install oracle 11g2 on hpux server. The server already has 10g on it and the plan is to run both for sometimes.
    Unfortunately, IUnfortunately, I don’t have prior experience installing multi-homed oracle software and I
    need help on how to supply the oracle home directory name to the installer:
    Do I have to supply the installation (OUI) with the oracle home directory: i.e
    Exiting oracle home: /u00/app/oracle/product/10.2.0/db_1
    For the new oracle home: /u00/app/oracle/product/11.2.0/db_2
    Is this correct?
    thank you,
    Lou

    What I did was create two profiles. My OS is similar, but NOT the same
    My default is Oracle 11.
    However I need a way to go back between Oracle Homes so I created an "o10g.profile" and a "o11g.profile"
    o10g.profile
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=STANDBY
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    unset PATH
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlibNotice the unset ORACLE_HOME at the top, this is key. Also the unset PATH.
    Now compare it to my o11g.profile file
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=PRIMARY
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    export NLS_LANG=AMERICAN;
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    # Set shell search paths
    unset PATH
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlibIts probably a great idea to review the document Srini refers to. However this is a short and sweet example. In my case I can issue a
    source o10g.profileAnd be on Oracle 10. So to install the other version I created the profile for it and then then used it to switch to that ENV for the install.
    Best Regards
    mseberg

Maybe you are looking for

  • Unable to update Photoshop CC with Creative Cloud

    I have tried multiple times to download and update the Photoshop CC update that just came out. Everytime I try it gets to the end and then I get an error message that pops up. I click on more details and this is what I get when I open up the file. 09

  • Help with Newsletter Extension

    This is my first time installing a Dreamweaver extension, and I found this one on the Adobe Dreamweaver Exchange page. I'm running Dreamweaver MX on a Mac with OS X 10.4.10. The extension seems to have installed properly, but when I use it to insert

  • Error when encrypting external hard drive

    When I tried to encrypt my external harddrive I get the message "Core storage volume is already encrypt". And it isnt. It has been but i decrpyted it for a couple of days, and no I cannot encrypt the disk. Can any1 help me?

  • Adding new items in ME21N using USEREXIT/BADI with BOM explosion

    I have following business scenario. There is purchase requisition consisting just one material. In ME21N we are creating new purchase order. This purchase order needs to consist that item (we drag&drop this item from purchase requisition). The proble

  • Scn_to_timestamp and timestamp_to_scn

    Hello, I have such strange(?) behaviour in my database SQL> select to_timestamp('09.10.2008','dd.mm.yyyy') from dual; 08/10/09 00:00:00,000000000 SQL> select timestamp_to_scn(to_timestamp('09.10.2008','dd.mm.yyyy')) from dual; 612168 SQL> select scn_