1 2 Previous Next 25 Replies Latest reply: Feb 16, 2013 7:22 AM by 864103 Go to original post RSS
      • 15. Re: cloning oracle home
        864103
        okay guys thanks actually i can't install any packages so i will install centos 6.3 and cloning oracle home from oracle linux 5.6 .
        • 16. Re: cloning oracle home
          Nicolas.Gasparotto
          861100 wrote:
          okay guys thanks actually i can't install any packages so i will install centos 6.3 and cloning oracle home from oracle linux 5.6 .
          Doh ! CentOS 6.3 ? Why not Ubuntu or any other unsupported plateform ? I really don't understand the point. Your source OS is OL5.6 and you want to clone to CentOS6.3 ?
          Anyway, you seem totally loss whereas sometime just re-install the software may be faster than cloning, especially when you have no clue...

          Feel free to do whatever you want, it's your environment after all, but I would want to be there.

          Nicolas.
          • 17. Re: cloning oracle home
            864103
            dear thanks , but till now i can't solve my issue in oracle linux 5.6 and the destination server is test i just want to do upgrade in my source database
            due to i face a bug but i need to test the upgrade before apply it in production so i just install oracle linux 5.6 and i search for oracle 11.2.2 to downloaded
            but i can't found it and some of the member here told me do a cloning to oracle home , i do cloning of oracle home and it successfully done but i don't know why it's not work
            some of the member here told me must install gcc packages but my test server is not register , this is all the story so i go with centos due to i can install all the packages that i want
            and then test the upgrade if it is work i delete everything from the test and go a head with a production.
            • 18. Re: cloning oracle home
              Srini Chavali-Oracle
              Using an OS version that is different than your production version to test a database upgrade (or any other upgrade, for that matter) is a bad idea.

              Use the public yum server to get RPM updates - http://public-yum.oracle.com/

              HTH
              Srini
              • 19. Re: cloning oracle home
                864103
                thanks sir for your time and support please see the below :
                [root@TCCBS ~]# cd /etc/yum.repos.d
                [root@TCCBS yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
                --2013-02-15 22:42:37--  http://public-yum.oracle.com/public-yum-el5.repo
                Resolving public-yum.oracle.com... 141.146.44.34
                Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 4220 (4.1K) [text/plain]
                Saving to: `public-yum-el5.repo'
                
                100%[======================================>] 4,220       12.4K/s   in 0.3s
                
                2013-02-15 22:42:40 (12.4 KB/s) - `public-yum-el5.repo' saved [4220/4220]
                also the same error
                 export LD_LIBRARY_PATH=$ORACLE_HOME/lib
                [oracle@TCCBS ~]$ cd /u01/app/oracle/product/11.2.0/
                [oracle@TCCBS 11.2.0]$ pwd
                /u01/app/oracle/product/11.2.0
                [oracle@TCCBS 11.2.0]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0
                [oracle@TCCBS 11.2.0]$ cd bin
                [oracle@TCCBS bin]$ ./rman target /
                ./rman: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
                [oracle@TCCBS bin]$ ./sqlplus
                ./sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
                thanks in advanced
                • 20. Re: cloning oracle home
                  Srini Chavali-Oracle
                  You have not completed all of the steps to start using yum to download RPM updates

                  >
                  3. Enable the appropriate repository by editing the yum configuration file

                  Open the yum configuration file in a text editor
                  Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
                  Change enabled=0 to enabled=1

                  4. Begin using yum, for example:

                  yum list

                  yum install firefox
                  >

                  Make the changes in Step 3, then install appropriate version of gcc using yum, then try and re-link the Oracle software

                  http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
                  http://gavinsoorma.com/2011/10/using-the-oracle-validated-rpm-to-install-oracle-11g-on-linux/

                  HTH
                  Srini
                  • 21. Re: cloning oracle home
                    864103
                    okay thanks , i do the same step but not work
                    [root@TCCBS yum.repos.d]# uname -a
                    Linux TCCBS 2.6.32-100.26.2.el5 #1 SMP Tue Jan 18 20:11:49 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
                    
                    vim public-yum-el5.repo
                    
                    [ol5_u6_base]
                    name=Oracle Linux $releasever Update 6 installation media copy ($basearch)
                    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
                    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
                    gpgcheck=1
                    enabled=1
                    
                    yum update
                    Loaded plugins: rhnplugin, security
                    This system is not registered with ULN.
                    ULN support will be disabled.
                    el5_latest/primary                                       | 5.4 MB     02:52 ...
                    http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
                    Trying other mirror.
                    Error: failure: repodata/primary.xml.gz from el5_latest: [Errno 256] No more mirrors to try.
                    
                    
                    yum list
                    Loaded plugins: rhnplugin, security
                    This system is not registered with ULN.
                    ULN support will be disabled.
                    el5_latest/primary                                       | 6.3 MB     01:42 ...
                    http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/repodata/primary.xml.gz: [Errno 4] Socket Error: timed out
                    Trying other mirror.
                    Error: failure: repodata/primary.xml.gz from el5_latest: [Errno 256] No more mirrors to try.
                    please advice
                    • 22. Re: cloning oracle home
                      Srini Chavali-Oracle
                      Looks like there were errors in downloading the RPMs - you will have to retry the command

                      Srini
                      • 23. Re: cloning oracle home
                        Nicolas.Gasparotto
                        i just want to do upgrade in my source database due to i face a bug but i need to test the upgrade before apply it in production so i just install oracle linux 5.6 and i search for oracle 11.2.2 to downloaded but i can't found it and some of the member here told me do a cloning to oracle home
                        Maybe because it's 11.2.*0*.2 ? Or 11.2.*0*.3 ? And you are saying about cloning, but where it is coming from ?
                        Anyway, all patches and bug fixes are available on MOS. If you have no access to there, you certainly have no right to use patch, and the given suggestion by some members is just wrong.

                        After you original thread and 20+ posts, this one is also about 20+ posts, we will reach the end of the help which can be done. Time to go to discuss to your manager and get MOS access to work properly. You can read some Linux/Oracle docs in the meantime.

                        Nicolas.
                        • 24. Re: cloning oracle home
                          864103
                          thanks man for your time , now it's work i just retry the command and it work
                          # cd /etc/yum.repos.d
                          # wget http://public-yum.oracle.com/public-yum-el5.repo
                          Change enabled=0 to enabled=1 in update 6 (OL5 .6)
                          yum list
                          yum update 
                          yum install oracle-validated
                          
                          
                          [root@TCCBS ~]# rpm -qa | grep  oracle-validated
                          oracle-validated-1.1.0-17.el5
                          and the below is my environment variable :
                          export TMP=/tmp
                          export TMPDIR=$TMP
                          export ORACLE_HOSTNAME=TCCBS
                          export ORACLE_UNQNAME=ABSNL
                          export ORACLE_BASE=/u01/app/oracle
                          export ORACLE_HOME=$ORACLE_BASE/product/11.2.0
                          export ORACLE_SID=ABSNL1
                          export PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH
                          export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
                          export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
                          
                          [oracle@TCCBS ~]$ vi .bash_profile
                          [oracle@TCCBS ~]$ . .bash_profile
                          [oracle@TCCBS ~]$ sqlplus
                          sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
                          [oracle@TCCBS ~]$ rman
                          rman: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
                          
                          root@TCCBS ~]# yum install gcc
                          Loaded plugins: rhnplugin, security
                          This system is not registered with ULN.
                          ULN support will be disabled.
                          Setting up Install Process
                          Package gcc-4.1.2-54.el5.x86_64 already installed and latest version
                          Nothing to do
                          please help .
                          • 25. Re: cloning oracle home
                            864103
                            thanks man , it's done at the end just i run
                             
                            [oracle@TCCBS bin]$ genclntsh
                            
                            oracle@TCCBS bin]$ ./rman target /
                            
                            Recovery Manager: Release 11.2.0.2.0 - Production on Sat Feb 16 16:21:20 2013
                            
                            Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
                            
                            connected to target database (not started)
                            
                            RMAN>
                            thanks for all member here for your support.
                            1 2 Previous Next