1 2 Назад Вперед 20 Ответы Последний ответ: 22.08.2017 14:59, автор: Prashant Umap

    Cloning Dualfs

    Beauty_and_dBest

      Hi ALL,

       

      EBS R12.2.6

      12c

      OL6.8

       

       

      I have done adpreclone on our PROD instance, both the db-tier and apps-tier.

      Then I have tar gzip backup the entire apps tier folder (/u01/applprod/PROD)  and the entire db tier forlder (/u02/oraprod/PROD).

       

      Then I copied the backup folders and unzip to the target clone server.

      Then start cloning the db-tier.

       

      My question is, for the apps-tier, do I need to delete some folders? Or I can run dualfs cloning right away on the entire apps folder  /u01/applprod/PROD  copied from source PROD?

       

       

      Please help...

       

       

      Kind regards,

      jc

        • 1. Re: Cloning Dualfs
          mdtaylor

          Hi jc,

           

          Dualfs cloning has the same folder requirements as pre 12.2.5 cloning. You need to remove previous FMW_Home folders in fs1 and fs2 or the cloning will not execute.  Normally I only copy the run EBSapps folder then do the dual fs clone, so there is no benefit from having the prod inst folder.

           

          Regards,

          Michael

          • 2. Re: Cloning Dualfs
            Prashant Umap

            Hello,

            Please find below the updates -

            Copy Directory from Source to Target

            10.1.2 – just once, if its new clone please copy this one also
            comn, appl

            Remove Directory on the target instances from /fs1 and /fs2 -
            inst
            FMW_Home

            Once adcfgclone completed on /fs1 - Assuming RUN file system.
            Copy comn, appl Directory from /fs1 to fs2 and run adcfgclone.

             

            Prashant Umap

            • 3. Re: Cloning Dualfs
              Beauty_and_dBest

              Thanks Michael, Prasant,

               

              I really am not good at reading comprehension

              They way I understood your explanation is that it is the same way with cloning 12.2.3 or 12.2.4  as in the same here https://balaoracledba.com/2013/10/23/r12-2-cloning-step-by-step/

              I have been using this blog for cloning 12.2.4 successfully.

              But for 12.2.6, it seems the same process above but just adding "dualfs"  option to the command?

               

              Or can you please "spot" for me the difference for 12.2.6 and the above blog? I am really bilnded

               

              Kind regards,

              • 4. Re: Cloning Dualfs
                Prashant Umap

                Yes, From 12.2.5 dualfs is a new feature for adcfgclone.

                For more information John mentioned correctly - https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=hb3rnqift_173&_afrLoop=229036700155440

                 

                Prashant Umap

                • 5. Re: Cloning Dualfs
                  mdtaylor

                  Hi jc,

                   

                  And the balaoracle blog has a new one for 12.2.5 and above cloning with dualfs:

                   

                  https://balaoracledba.com/2015/11/16/r12-2-5-single-node-cloning/

                   

                  Regards,

                  Michael

                  • 6. Re: Cloning Dualfs
                    Prashant Umap

                    MOS - Cloning Oracle E-Business Suite Release 12.2 with Rapid Clone (Doc ID 1383621.1)

                     

                    Prashant Umap

                    • 7. Re: Cloning Dualfs
                      Beauty_and_dBest

                      Thanks all,

                       

                      I will check the docs...brb

                      • 8. Re: Cloning Dualfs
                        Beauty_and_dBest

                        Hi Michael,

                         

                        Balaoracle's blog for cloning 12.2.4  and 12.2.5 are  exactly the same except for  the adding of dualfs.

                         

                        His example for 12.2.4 cloning is more clear and correct that his example in 12.2.5.

                         

                        Below is the process:

                         

                        Here in the above picture, if run filesystem is on fs2 on the source then on the target also we should configure fs2 as run filesystem and automatically fs1 will become patch filesystem  <<  I agree, this is not available in 12.2.4  ( and this is only the difference between 12.2.4 and 12.2.5 which is the process  using dualfs)

                         

                        We copy only EBSApps folder from source fs2 filesystem which is RUN filesystem, to target fs2 filesystem << I agree, this is also done in 12.2.4

                         

                        NOTE: DO NOT COPY EBSApps folder from source fs2 run filesystem to target fs1 folder, this resulted in error. << I agree, this is also not done in 12.2.4

                         

                        IF FS2 FILESYSTEM IS RUN THEN WE SHOULD COPY SOURCE EBSApps FOLDER FROM FS2 of source TO TARGET FS2. THIS SHOULD BE DONE AFTER RUNNING adpreclone.pl ON SOURCE RUN FILESYSTEM. << I agree, this is also done in 12.2.4

                         

                        [applcrp4@crp4app1 fs2]$ cd /d01/oracle/CRP1/fs1  << This is wrong. because he uses fs2 as example run edition, but why is he using now  fs1 to run the cloning?

                                                                                                            << fs1 should currently be empty, becuse he did not say anything to copy files to it.

                        [applcrp4@crp4app1 fs1]$ ls -l

                        drwxr-xr-x 5 applcrp4 dba 4096 Nov 6 04:49 EBSapps

                        [applcrp4@crp4app1 fs1]$

                        [applcrp4@crp4app1 bin]$ perl adcfgclone.pl appsTier dualfs

                         

                         

                        In 12.2.4  if fs1 is the run edition, he mentioned to remove the contents of :

                        (On the target server)

                        Retain only /home/appprod/PROD/fs1/EBSapps

                        rm -rf   /home/appprod/PROD/fs1/FMW_Home

                        rm -rf   /home/appprod/PROD/fs1/inst

                        rm -rf    /home/appprod/PROD/fs2/*

                        rm -rf    /home/appprod/PROD/fs_ne/*

                         

                        So if your fs2 us the run edition:

                        (On the target server)

                        Retain only /home/appprod/PROD/fs2/EBSapps

                        rm -rf   /home/appprod/PROD/fs2/FMW_Home

                        rm -rf   /home/appprod/PROD/fs2/inst

                        rm -rf    /home/appprod/PROD/fs1/*

                        rm -rf    /home/appprod/PROD/fs_ne/*

                         

                         

                         

                        Please help if my  understanding is correct.

                        Or can you share other blogs which has clearer explanation?

                         

                         

                        Kind regards,

                        • 9. Re: Cloning Dualfs
                          Prashant Umap

                          Hello,

                           

                          For me the above process looks OK.

                           

                          Prashant

                          • 10. Re: Cloning Dualfs
                            Beauty_and_dBest

                            Thanks Prashant and ALL,

                             

                            So what is the correct process in 12.2.6?

                             

                            If run edition is fs1, I only copy the EBSapps to fs1 and fs2 is empty? The run configclone "dualfs" ?

                             

                            In 12.2.4  I only copy EBSapps to fs1 and run configclone (run edition), then after finishing. I copy again EBSapps from fs1 to fs2 then run again configclone (patch edition).

                             

                             

                            Kind regards,

                            • 11. Re: Cloning Dualfs
                              Prashant Umap

                              Hello,

                               

                              With the introduction of dualfs in R12.2.5 we can even configure patch filesystem with single run of adcfgclone  on the target node.

                              Lets Assume source run file system is fs2
                              we copy only EBSApps folder from source fs2 filesystem which is RUN filesystem, to target fs2 filesystem

                              perl adcfgclone.pl appsTier dualfs

                              -- While running this it will create automatically -

                              Target System Current File System Base set to /d01/oracle/TEST/fs2
                              Target System Other File System Base set to /d01/oracle/TEST/fs1

                               

                              Regards

                              Prashant Umap

                              • 12. Re: Cloning Dualfs
                                Beauty_and_dBest

                                Thanks Prasant,

                                 

                                What I usually do is the reverse process.

                                 

                                At source instance,

                                1.  I run adpreclone.

                                2.  I shutdown apps and db

                                3.  I backup both using tar gz.

                                4. I copied both to target server.

                                5. I unzip db first and run configclone( this is simpler and no chage in process since 11i?)

                                6. Then I unzip apps tar backup to /u02/appprod9/PROD9(fs1 & fs2) all files are intact from source.

                                7. Then I start remove unwanted files: (supposing fs1 is run edition file, I remove all but retain only fs1/EBSapps

                                8.  Then for fs2 I remove everything but retain only the structure.

                                9. Then at fs1  i run  > perl adcfgclone.pl appsTier dualfs

                                 

                                Actual Example: (fs1 is the run edition file)

                                 

                                [root@af0e12 PROD9]# cd /u02/appprod9/PROD9/

                                [root@af0e12 PROD9]# ls

                                EBSapps.env  fs1  fs2  fs_ne

                                [root@af0e12 PROD9]# cd fs1

                                [root@af0e12 fs1]# ls

                                EBSapps  FMW_Home  inst

                                [root@af0e12 fs1]# rm -rf FMW_Home/ inst/

                                [root@af0e12 fs1]# cd ../fs2

                                [root@af0e12 fs2]# ls

                                EBSapps  FMW_Home  inst

                                [root@af0e12 fs2]# rm -rf *

                                [root@af0e12 fs2]# cd  ../

                                [root@af0e12 PROD9]# ls

                                EBSapps.env  fs1  fs2  fs_ne

                                [root@af0e12 PROD9]# cd fs_ne

                                [root@af0e12 fs_ne]# ls

                                EBSapps  inst

                                [root@af0e12 fs_ne]# rm -rf *

                                 

                                Is this correct?

                                 

                                Kind regards,

                                • 13. Re: Cloning Dualfs
                                  Prashant Umap

                                  Till Step - 7 is correct

                                  8.  Then for fs2 I remove everything but retain only the structure. - Remove the structure also.

                                  9. Then at fs1  i run  > perl adcfgclone.pl appsTier dualfs

                                   

                                   

                                  • 14. Re: Cloning Dualfs
                                    Beauty_and_dBest

                                    Thanks Prashant, it is running now

                                     

                                    [root@af0e12 fs_ne]# su - appprod9

                                    [appprod9@af0e12 ~]$ cd /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/bin

                                    [appprod9@af0e12 bin]$ perl adcfgclone.pl appsTier dualfs

                                     

                                                         Copyright (c) 2002, 2015 Oracle Corporation

                                                            Redwood Shores, California, USA

                                                            Oracle E-Business Suite Rapid Clone

                                                                     Version 12.2

                                                          adcfgclone Version 120.63.12020000.56

                                     

                                    Enter the APPS password :

                                     

                                    Enter the Weblogic AdminServer password :

                                     

                                    Do you want to add a node (yes/no) [no] :

                                     

                                    Running: Context clone...

                                     

                                    Log file located at /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/bin/CloneContext_0822094116.log

                                     

                                    Provide the values required for creation of the new APPL_TOP Context file.

                                     

                                    Target System Hostname (virtual or normal) [af0e12] :

                                     

                                    Target System Database SID : PROD9

                                     

                                    Target System Database Server Node [oraprod] :

                                     

                                    Target System Database Domain Name [a467305.ora.com] :

                                     

                                    Target System Base Directory : /u02/appprod9/PROD9

                                     

                                    Target System Base Directory set to /u02/appprod9/PROD9

                                     

                                    Target System Current File System Base set to /u02/appprod9/PROD9/fs1

                                     

                                    Target System Other File System Base set to /u02/appprod9/PROD9/fs2

                                     

                                    Target System Fusion Middleware Home set to /u02/appprod9/PROD9/fs1/FMW_Home

                                    Target System Other File System Fusion Middleware Home set to /u02/appprod9/PROD9/fs2/FMW_Home

                                     

                                    Target System Web Oracle Home set to /u02/appprod9/PROD9/fs1/FMW_Home/webtier

                                    Target System Other File System Web Oracle Home set to /u02/appprod9/PROD9/fs2/FMW_Home/webtier

                                     

                                    Target System Appl TOP set to /u02/appprod9/PROD9/fs1/EBSapps/appl

                                    Target System Other File System Appl TOP set to /u02/appprod9/PROD9/fs2/EBSapps/appl

                                     

                                    Target System COMMON TOP set to /u02/appprod9/PROD9/fs1/EBSapps/comn

                                    Target System Other File System COMMON TOP set to /u02/appprod9/PROD9/fs2/EBSapps/comn

                                     

                                    Target System Instance Home Directory [/u02/appprod9/PROD9] :

                                     

                                    Target System Current File System Instance Top set to /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12

                                     

                                    Do you want to preserve the Display [fitr12:0.0] (y/n)  : n

                                     

                                    Target System Display [af0e12:0.0] :

                                     

                                    Target System Root Service [enabled] :

                                     

                                    Target System Web Entry Point Services [enabled] :

                                     

                                    Target System Web Application Services [enabled] :

                                     

                                    Target System Batch Processing Services [enabled] :

                                     

                                    Target System Other Services [disabled] :

                                     

                                    Do you want the target system to have the same port values as the source system (y/n) [y] ? : n

                                     

                                    Target System Port Pool [0-99] : 60

                                     

                                    Checking the port pool 60

                                    done: Port Pool 60 is free

                                    Report file located at /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12/admin/out/portpool.lst

                                     

                                    UTL_FILE_DIR on database tier consists of the following directories.

                                     

                                    1. /usr/tmp

                                    2. /tmp

                                    3. /u02/oraprod9/PROD9/12.1.0/appsutil/outbound/PROD9_af0e12

                                    4. /usr/tmp

                                    Choose a value which will be set as APPLPTMP value on the target node [1] :

                                    The new APPL_TOP context file has been created :

                                      /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12/appl/admin/PROD9_af0e12.xml

                                    Check Clone Context logfile /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/bin/CloneContext_0822094116.log for details.

                                     

                                    Creating Patch file system context file.....

                                     

                                    Log file located at /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0822094256.log

                                     

                                    Target System Other File System Instance Top set to /u02/appprod9/PROD9/fs2/inst/apps/PROD9_af0e12

                                     

                                    Target System Port Pool [0-99] : 61

                                     

                                    Checking the port pool 61

                                    done: Port Pool 61 is free

                                    Report file located at /u02/appprod9/PROD9/fs2/inst/apps/PROD9_af0e12/admin/out/portpool.lst

                                    The new APPL_TOP context file has been created :

                                      /u02/appprod9/PROD9/fs2/inst/apps/PROD9_af0e12/appl/admin/PROD9_af0e12.xml

                                    Check Clone Context logfile /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/bin/CloneContextPatch_0822094256.log for details.

                                     

                                    FMW Pre-requisite check log file location : /u02/appprod9/PROD9/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log

                                    Running: FMW pre-req check...

                                     

                                    Configuring: Run file system....

                                    LogFile located at /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12/admin/log/clone/run/RCloneApplyAppstier_08220943.log

                                     

                                    Configuring: Patch file system....

                                    LogFile located at /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12/admin/log/clone/patch/RCloneApplyAppstier_08221007.log

                                     

                                    Do you want to startup the Application Services for PROD9? (y/n) [n] : y

                                     

                                    Starting application Services for PROD9:

                                     

                                    You are running adstrtal.sh version 120.24.12020000.11

                                     

                                    The logfile for this session is located at /u02/appprod9/PROD9/fs1/inst/apps/PROD9_af0e12/logs/appl/admin/log/adstrtal.log

                                    1 2 Назад Вперед