4 Replies Latest reply on Sep 6, 2019 11:19 AM by VishnuVinnakota

    use of CTXORIG.xml during clone

    3510875

      Hi Experts,

       

      We are on R12.2.5

      Can any one please update us the importance of file CTXORIG.xml ?

       

      Thank you

        • 1. Re: use of CTXORIG.xml during clone
          VishnuVinnakota

          Basically that is the Source System Context File and configuration used on the Target Node.

           

          You can see how its used as below:

           

          [oracle@apps comn]$ grep -irl CTXORIG.xml

          clone/bin/adcfgclone.pl

          clone/bin/adclonectx.pl

          clone/bin/adaddnode.pl

           

          So if you see adcfgclone.pl:

           

          Its used to clone the context and then modify based on the target values as I see it. Below is an example of how its used. You can explore further if interested.

           

          ##setTier required to set the tier way before clone_context

          #

          sub setTier {

            # Calculate Node: if appsutil/clone exists then dbTier

            # Set where to find the Orig context accordingly

           

           

            if ( -e "$CMDDIR/../../../appsutil/clone"

              || -e "$CMDDIR/../../../../appsutil/clone")

            {

              $tier    = "Database";

              $ctxorig = "$CMDDIR/../context/db/CTXORIG.xml";

            }

            else {

              $tier    = "APPL_TOP";

              $ctxorig = "$CMDDIR/../context/apps/CTXORIG.xml";

            }

           

           

            if (!-e "$ctxorig") {

              printf "\nERROR: could not find source system context in $ctxorig\n\n";

              usage();

            }

          }

           

           

          Thanks,

          Vishnu

          • 2. Re: use of CTXORIG.xml during clone
            3510875

            Thanks Vishnu for the updates.

             

            So far my understanding is,context file will be created based on the template file from the stage area which is created during preclone.When we run adcfgclone,this template file will take the values we entered on the screen and create the context file.so little confused with CTXORIG.xml and its use.

             

            Will this file has all configuration of source instance which will be used while creating target instance?

            • 3. Re: use of CTXORIG.xml during clone
              VishnuVinnakota

              Hi,

               

                Yes. You need to spend time on analyzing the adcfgclone.pl if you would like to know the internals of entire Rapid Clone process. Thats the only way you can understand each file and how they are related.

               

              Thanks,

              Vishnu

              • 4. Re: use of CTXORIG.xml during clone
                VishnuVinnakota

                Please mark the questions answered or helpful so that its useful for others. Thank you.

                 

                Best Regards,

                Vishnu

                https://vishnu.ae