AG Environment Refresh - Checklist

Embed Size (px)

Citation preview

  • 8/12/2019 AG Environment Refresh - Checklist

    1/62

    American Girl Environment Clone / Refresh Checklist

    American Girl Environment Clone / Refresh Checklist

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and thecontents of this document may not be disclosed in any form to any party who has not signed a non-disclosure agreement withMattel, Inc.

    of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    2/62

    American Girl Environment Clone / Refresh Checklist

    Revision History

    Date Version Description Author

    #-M$%-"&&' .&(draft)

    Merged all clone docs for the primary$* environments (M+, M, /P,C0M)

    1en ood

    2-M$%-"&&' .b 3pdates from T-instance refreshes.(issen 4eedbac5)

    1en ood

    "6-M$%-"&&' ." 3pdates from T-instance refreshes.(issen 4eedbac5)

    1en ood

    7&-M$%-"&&' .7 $dded $+ teps

    $dded missing steps from $+ Clone

    document.

    8ames $hn

    9-83:-"&&' .9 $dded updates based on notes from T-instance refreshes

    1en ood

    &7-P-"&&' .# Modified based on notes from issen. 1en ood

    Table of Contents

    Planning for Clones ( or " ee5s ;efore)................................................................................................... ........ 7" M+ Clones (Pre-0utage teps).......................................................................................................................... 97 M+ Clones (0utage teps).......................................................................................................................... ...... #9 M Clones (Pre-0utage teps)........................................................................................................................

    # M Clones (0utage teps)...............................................................................................................................#! /P Clones (Pre-0utage teps)......................................................................................................................... "96 /P Clones (0utage teps)................................................................................................................................"6' C0M Clones (Pre-0utage teps)........................................................................................................................ 992 C0M Clones (0utage teps)...............................................................................................................................96& $PP

  • 8/12/2019 AG Environment Refresh - Checklist

    3/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    ! "lannin# for Clones $! or % eeks &efore'

    !(! "lan the )ate properly *ith all user #roups affecte)(% % D&A%

    ." Approve) CR- Create a 4$T T/$C1 C/ for the refresh>cloningtas5s.

    % % D&A%

    .7 Verify + Re,uest -ount "oints $Disk .pace'.?erify that enough mount points e@ist with enough dis5space. If not, create a help des5 tic5et for the +MTeam Manager (or designate), who will reAuest thespace from the 3$ team.

    ee rrorB /eference source not foundMount Points neededB+atafile, temp file, and control file mounts.

    >var>oradata&,&",&7,&9>DC:0var>oratemp&>DC:0var>orasys&,&",&7>DC:0opt>wmsDsidF

    % % D&A%

    .9 otify users of planne) D&/Applications )o*ntime(if refreshingan existing instances).

    % % D&A%

    .# Remove ol) scripts from AD.0scripts )irectory./emove files fromBmdlux4:/opt/orastage/cloning/ADS_scripts/

    % % D&A%

    .! Do*nloa) AD. .cripts from "VC.- The latest scripts from $+should be downloaded from the Gadmin>cloneG folder in P?C.

    ave toBmdlux4:/opt/orastage/cloning/ADS_scripts/

    % % D&A%

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    7 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    4/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    !(1 "RE"ARAT23 3456 D3 3T .TART RE7RE.H 5ET(

    !(8 RE9:2RED 3RDER 37 DATA&A.E RE7RE.HE.6;ecause of interdependencies between instances,the database refreshes (duplicates or copies)must be done in the shown order to assure data isnot out of seAuence.

    Dev? Test? ho?

    !(8(! "4A2G 3456 -D ; .tart refresh/)uplicate of -D first(ometimes M+ is not done) % % D&A!

    !(8(% "4A2G 3456 -. ; Data from -. source shoul) bene*er timestamp than from -D(

    e.g., use later set until time than with M+ % % D&A!

    !(8(< "4A2G 3456 ER" ; Data from ER" source shoul) bene*er timestamp than from -.(

    e.g., use later set until time than with M % % D&A!

    !(8(= "4A2G 3456 C3- ; Data from C3- source shoul) bene*er timestamp than from ER"(

    e.g., use later set until time than with /P % % D&A!

    !(> ote that steps other than D& refreshes can overlap(

    Task/Activity Scripts/Notes Dev? Test? ho?

    % -D Clones $"re;3uta#e .teps'

    ". Verify Tar#et Database &ackups-- nsure that the last level &/M$< bac5up completed successfully for the Targetdatabase.

    % % D&A!

    "." Create a *orkin# )irectory(/var/orawork/cloning/

  • 8/12/2019 AG Environment Refresh - Checklist

    5/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    D3 3T :.E 34D .CR2"T./724E. 7R3- "REV23:.RE7RE.HE.(

    ".7 Copy an) :p)ate clonin# scriptsand $+ scripts from script

    locations under >var>orastage to the >var>orawor5>cloning>DI+F dir.

    Script Locations --/opt/orastage/cloning/DBA_scripts/*

    /opt/orastage/cloning/ADS_scripts

    % % D&A!

    ".9 "reserve D& 4inks in the e@isting targetenvironment.preserve_db_links.sql % % D&A!

    ".# "reserve D& :ser "ass*or)s (for non-apps users) from e@istingtargetsystem.

    preserve_pw.sql % % D&A!

    ".! "reserve C3GT.T .chemafrom the Target+;.Update script to recreate the COGSuser:

    !i cr_cogtst_user.sql"xport COGS schema using

    exp_cogtst_schema.sh

    % % D&A!

    ".6 9uery D&-. obs .che)ule) in the Target+;query_dbms_obs.sql % % D&A!

    %(8 TAR the homes from the source system $tar ;cvfp files to/opt/orasta#e/clonin#/@.2D'

    % % D&A!

    ".2 3sing Toad create a .94 script to recreate the 3".BC-D3&or3".BT-D3& user and grant all the appropriate rights.

    % D&A!

    Task/Activity Scripts/Notes Dev? Test? ho?

    < -D Clones $3uta#e .teps'

  • 8/12/2019 AG Environment Refresh - Checklist

    6/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    7.. .top/Hol) R-A &ackups of .ource D&-- 1eep 0

  • 8/12/2019 AG Environment Refresh - Checklist

    7/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    7..6.7

  • 8/12/2019 AG Environment Refresh - Checklist

    8/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    7.". Clone>/efresh the +atabase using /M$< duplicate.#S_AD$%# should point to tnsnames&orathat onl' points to Source( arget( and)man Catalog )++,-&

    #ot other non.related dataases&

    % % D&A!

    7."." ;rea5 +;M 8obs break!obs.s"l % % D&A!

    7.".7 Recreate the C3GT.T .chemapreserved from the Target+;before the refresh.

    )ecreate the COGS user:cr_cogtst_user.sql

    %mport COGS schema usingimp_cogtst_schema.sh

    % % D&A!

    7.".9 /estore 3ser Passwordspreservep#nonapps.s"l % % D&A!

    7.".# ?erify that TMP+$T$ password is set to original value.Ta!itionall set to "t#$!ata" % % D&A!

    7.".! /estart target database with original T

  • 8/12/2019 AG Environment Refresh - Checklist

    9/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    7.". Verify :T40724E0D2R settin#s in initDI+F.ora match one-to-onewith settings in the source environment.

    %0 directories exist in de!/testthat are not similar to those in thesource( the' can e remo!edusuall'-&

    Send a list o0 these directories

    to the users and DBA1 0or!eri0ication&

    % % D&A!

    7."." ;uild>rebuild the [email protected](orafile on target from init.ora.$ote: The spfile.ora is needed to assure10g features are available.

    % % D&A!

  • 8/12/2019 AG Environment Refresh - Checklist

    10/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    7.7. ?erify each +; :in5 connects without error.% % D&A!

    7.7." ?erify that :istener is running.% % D&A!

    7.7.7 Ma5e sure 3".BT-D3&or 3".BC-D3&is available andhas privileges (recreate if necessary).

    )ecreate user using script 0rom step

    1&2&

    Grant(L*#$ (N' )(*#$%(L%+#, "%#and%)_&LL_,(*(0(S#

    % % D&A!

    6/home/pm)*ob/s,lJ

    +est-- m)lu)ev6/home/cm)*ob/s,l ource--

    m)lu!>6/var/spool/erp/"-D/)atfilesJ+est--m)lu)ev6/var/spool/erp/C-D/)atfiles

    % % CG

    7.7.# &rin# co)e up;to;)ate6 /eapply C/$*s that have not gone toProduction yet.

    5 5 CG

    7.7.! or5 with +ata arehouse Team to verify that correct D&-. obs

    are .tarte)/Resche)ule)(3nbro5en).

    % % D&A!

    7.7.6 Cleanup T$/*T H0M and /emove wor5 files% % D&A!

  • 8/12/2019 AG Environment Refresh - Checklist

    11/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    = -. Clones $"re;3uta#e .teps'

    9. otify users of planne) D&/Applications )o*ntime(if refreshingan existing instance).

    % % D&A!

    9." Verify Tar#et Database &ackups-- nsure that the last level &/M$< bac5up completed successfully for the Targetdatabase.

    % % D&A!

    9.7 Verify sub)irectories are create)for target instanceB (see below)% % D&A!

    9.7. nsure/var/spool/erp/@C43E0.2Dand its subdirectories arecreated.

    This sho%l -e si'ilar to the /var/s+ool/er+/

  • 8/12/2019 AG Environment Refresh - Checklist

    12/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    the Targetdatabase(if refreshing existing db).

    9.' "reserve )b links in the e@isting targetenvironment (if refreshing

    target db).

    s3lplus / as s'sdapreser!e_d_lin5s&s3l

    ..Creates dlin5s&cs!

    % % D&A!

    9.2 "reserve )b user pass*or)s (for non-apps users) from e@istingtargetsystem (if desired) by running the following (if refreshingtarget db)B

    s3lplus / as s'sdapreser!e_p6&s3l..Creates preser!e_p6_non_apps&s3l

    % % D&A!

    9.& "reserve the -. )aemons pass*or) files by runningpreserveEwmsEpassEfiles.sh script (if refreshing target db)B

    grep D7$S /etc/orata

    nee) *ms top for parameter&/preser!e_6ms_pass_0iles&sh /opt/6ms_d6ms

    D7$S

    Creates )ir *ms0pro)uct0=0F0>0)aemons0D-.

    % % D&A!

    9. ave spfile(oraand init(orafrom target>destination database.This will allow 3T:E4I: to be able to write tothese directories, etc.m5dir init_ac5upcp 8O)AC9"_O$"/ds/*&ora init_ac5up/&

    % % D&A!

    9." Generate an) e)it the R-A )uplicatescript.% % D&A!

    9.". /un the shell script prepareErmanEduplicate.shprepare_rman_duplicate.sh % % D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    " of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    13/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    9."." Editthe ne* R-A shell an) comman) scriptsgeneratedby the+re+are_r'an_%+licatesh.

    2-"3RTATB These scripts must be revie!edand edited before running. Modify thefollowingB

    In all scri+ts, update the passwords,

    remembering that GauillaryG refers to thene* )b. In all scri+ts, verify that synta@ is correct.

    In the r'an_%+licatec'file, correctdirectory path(s) that may have beengenerated incorrectly for some data files, andchec5 for duplicated Gset newna'eG clauses.

    In the r'an_%+licatec'file, set until time(li5ely to time of last & bac5up of source db).

    In the r'an_%+licateshfile, modify thenotification email addresses (if necessary).

    In the Kc'files, verify that they will connectto the correct catalog (used for source dbbac5ups).

    !i clear_!ilesytems_;DU

  • 8/12/2019 AG Environment Refresh - Checklist

    14/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    9.7 Eport the table 433:"from the destination>target database.Save the export file for use after therefresh.

    % % D&A!

    9.9 IMP0/T$destinationdatabase.

    /un)S_S("#_$1S.sqlas w's_1_2_3_+r4This creates the PCEME$?+E/0 table.

    % % D&A!

    9.# IMP0/T$

  • 8/12/2019 AG Environment Refresh - Checklist

    15/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    #.. Disablethe following &i# &rother alertsfor the CLONE_SI"s hostbefore beginning the refresh process.

    % % D&A!

    #.." Disablethe following &i# &rother alertsfor the SO#$CE_SI"s

    hostbefore creating tar files on the so%rcehost.

    % % D&A!

    #..7 ?erify successful pre-clone bac5up of C:0

  • 8/12/2019 AG Environment Refresh - Checklist

    16/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    (% Clone Database from R-A backups $.EE .TE". &E43'3TEB In this section, the database beingrefreshed>created will be referred to as theC43Eor A:I244AR5database. The CloneI+ will be referenced as the $3=I::$/% in the

    /M$< +uplicate scripts.

    Dev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    ! of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    17/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    #.". Modify files and environment prior to /M$< restore (if creatingne! db clone).

    % % D&A!

    #.".. Copyinit"&'.ora and config"&'.orafrom source database

    to target database >opt>oracle>admin>, renaming the I+ to theC:0

  • 8/12/2019 AG Environment Refresh - Checklist

    18/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    #.".".9 /un /M$< duplicate script.cd /!ar/ora6or5/cloning/;C9O#"_S%D=/nohup 7pwd7/rman_duplicate.sh 87pwd7/rman_duplicate.sh.log 98:; :

    tail .0

    rman_duplicate_;S%D=&cmd&;??$$DD$%=&log

    3TE.B $ status notification will beemailed when doneJ however, the log filesshould be monitored to verify that thescripts are running correctly.

    AlsoJ if successfulJ the R-ADuplicate script *ill open the C43E)atabase *ith RE.ET43G. an) createthe temp files(

    % % D&A!

    #.".".# Perform clean restart of target database.% % D&A!

    #.".".! Modify run a))[email protected](s,lto recreate temp files afterrefresh.

    -o create add_tem0lates_"sid.s2l3 run thefollo!ing 2uer4

    select @A9") AB9"S

  • 8/12/2019 AG Environment Refresh - Checklist

    19/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    #.".7." Verify :T40724E0D2R settin#s in initDI+F.ora match one-to-onewith settings in the source environment.

    o %0 directories exist inde!/test that are not similar tothose in the source( the' can eremo!ed usuall'-&

    o Send a list o0 these

    directories to the users and DBA1 0or!eri0ication&

    % % D&A!

    #.".7.7 ;uild>rebuild the [email protected](orafile on target from init.ora.$ote: The spfile.ora is needed to assure10g features are available.

    % % D&A!

    #.".7.9 tart listener for the new instance. Modify port to not conflict withothers. This port will be from the port pool selection. :istenername should be [email protected].

    % % D&A!

    (< Reset Data .tepsDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    2 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    20/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    (etc>oratab withthe new database and the correct ME;$ (i.e. wmsout,wms@wms, etc.).)

    % % D&A!

    (

  • 8/12/2019 AG Environment Refresh - Checklist

    21/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    (0pr)!'alter table

    wms4_0_9_prd1.sku_category disable

    constraint SKUCAT_LKUP_FK;

    5 5 D&A!

    (

  • 8/12/2019 AG Environment Refresh - Checklist

    22/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    (=(! Verify that import ob has *rite permissions on )irectoryPermission on ;6ms.top=/product/4_+_2/daemons/log must be 111

    5 5 D&A!

    #.9." dit the f ile/o+t/w'sl/w's_verif&_configs>l. ?erifythat the new directories e@ist and that the new wmsDsidF user haswrite permissions to them.

    wms_veri!y_con!ig.sql % % D&A!

    #.9.2 ?erify settings in the M environment file (.profile) forME;$, etc.

    % % D&A!

    ( 7inal Clone .tepsDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    "" of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    23/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    #.#. Recompile all obects in Database((0/$C:EH0M>rdbms>admin>utlrp.sAl)

    utlrp.sql % % D&A!

    #.#." Modify *lobal tnsnames -- Create entry in global tnsnames for new

    database (not needed if this is a refresh).

    % % D&A!

    #.#.7 &rin# co)e up;to;)ate6 /eapply C/$*s that have not gone toProduction yet.

    5 5 CG

    #.#.9 tartup the M daemons for the C:0

  • 8/12/2019 AG Environment Refresh - Checklist

    24/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    !.7 otify "CG in a)vanceso they can preserve the users usingChainlin5.

    % % D&A!

    K(lA which can be runafter the refresh is com0lete to reset the

    % % D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    "9 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    25/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    0ass!ords to their original values.

    !." ave contents of tables "C3E("C02TER7ACE0.ET:".J"C3E("C0724E0&:24D0"R3CE..E.J "C3E("C0CT20D2.J"C3E("C0CT20TRA.7ER.

    @port tables from target>destination % % D&A!

    !.7 ave spfile(oraand init(orafrom target>destination database.This will allow 3T:E4I: to be able to write tothese directories, etc.

    % % D&A!

    K(!etc>oratab to determine correct>op>custDsidF dir for the target instance

    % % D&A!

    !.!. tar or cpio0Lip the homes from the so%rcesystem $tar Mcvf canreplace cpio on A2I'

    2-"3RTAT60nD& and7orms .ervers Dev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    "# of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    26/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    !.!.. Tar from >opt>oracle>product>applD03/CEI+F>&.".& (orcurrent +; tier home)

    % % D&A!

    !.!.." Tar from >opt>oracle>product>applD03/CEI+ I+F>'.&.!% % D&A!

    !.!..7 Tar from >opt>oracle>product>applD03/CEI+ I+F>i$% % D&A!

    !.!..9 Tar from >opt>applD03/CEI+F>apps% % D&A!

    !.!..# Tar from >opt>applD03/CEI+F>Djd5 directoryF% % D&A!

    !.!..! Tar from >opt>applD03/CEI+F>comn% % D&A!

    !.!..6 Tar from >opt>custD03/CEI+F>K% % D&A!

    !.!..' Tar from >opt>custEprd>K or >opt>custEint">K% % D&A!

    !.!..2 Tar from >opt>oracle>product>dev!& (if new server 0

  • 8/12/2019 AG Environment Refresh - Checklist

    27/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.. untar or cpio0unLip the homes on the targetsystem $tar Mvfcan replace cpio on A2I'

    % % D&A!

    6... 3nTar >opt>oracle>product>applDT$/*TEI+F>&.".&% % D&A!

    6..." 3nTar >opt>oracle>product>applD T$/*TEI+F>'.&.!% % D&A!

    6...7 3nTar >opt>oracle>product>applD T$/*TEI+F>i$% % D&A!

    6...9 3nTar >opt>applD T$/*T EI+F>apps% % D&A!

    6...# 3nTar >opt>applD03/CEI+F>Djd5 directoryF% % D&A!

    6...! 3nTar >opt>applD T$/*T EI+F>comn% % D&A!

    6...6 3nTar >opt>oracle>product>dev!& (if new server 0namidl7d

    4rom 4orms TierB PC0ET0P>binJPC0ET0P>formsJ PC0ET0P>lib

    % D&A!

    1(!(< 3verlay custom co)e tree $for Dev refreshes' +; Tier - namids'b

    4orms Tier - namidl7"a

    4rom 4orms TierB PC0ET0P>binJPC0ET0P>formsJ PC0ET0P>lib

    % D&A!

    1(!(= -o)ify perms un)er custom co)e tree(D&A!

    6..9. et perms to 66# for Test.chmod E) FF /opt/cust_;sid=/apps0ind /opt/cust;sid=/apps Ename H*&progI

    xargs chmod F

    % D&A!

    6..9." et perms to 666 for +ev.chmod E) FFF /opt/cust_;sid=/apps % D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    "6 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    28/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(!( :p)ate custom environment files(% % D&A!

    6..#. 3pdate the customI+.env in $PP:ET0P to reflect changes onI+.

    % % D&A!

    6..#." 3pdate the >opt>custI+>apps>C3T%.env for the new +;.Ma5e sure to retarget C0+ (end of file) -- Berif& with .S.

    % % D&A!

    6..#.7 3pdate :5CC#ST_TO5/ar/24D/vertex/+assworfile.% % D&A!

    1(!(K Verify that the file B"CC:.T0T3"/oe/=(F(!1%/bin/"C3E.5FJhas no references to the source )b or host(

    % % D&A!

    1(!(1 Recreate soft/symbolic links un)er the ne* homes on tar#etsystem(

    % % D&A!

    6..6. nsure that any soft lin5s are pointing to the right homes (fin *t&+e lwill list all the soft lin5s).

    !ind . -type l % % D&A!

    6..6." /un rebuild_soft_link.shto generate a script for rebuilding thesoft lin5s for the new>refreshed 0/$C:EH0M. (2-"3RTATBMa5e sure the 0/$C:EH0M directory is set correctly and

    e@ported.)

    rebuild_so!t_link.sh % % D&A!

    6..6.7

  • 8/12/2019 AG Environment Refresh - Checklist

    29/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6..6.9 ?erify manually correct softlin5s if necessary for links that pointto fn)cpesr(

    9ocations to chec5: 8

  • 8/12/2019 AG Environment Refresh - Checklist

    30/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.. &rin# up )atabase as TARGET .2D(ignore this step if /M$las the $PP user)break_obs.sql % % D&A!

    6..7." =C 4DsidF>cleanEnode.sAl)

    clean_node&s3l % % D&A!

    6..9 2n TARGET D& 345-- Drop A44 current links(e@cept for $PPlin5s created by $uto Config).

    This is VER5 important( No link sho%l +oint tothe original so%rce estinations

    % % D&A!

    1(!(! Recreate )atabase links ; Run recreate0)b0links(s,lrecreate_db_links.sql % % D&A!

    6..#. @tract list of +; lin5s currently in the database, and compare todatabase lin5s e@tracted in the pre-clone steps.

    Ma5e sure there is a - correspondence of thefunctioning lin5s only, and that the new lin5s pointto the correct +ev>Test instance.

    % % D&A!

    6..#." The two private $PP lin5sB $PPET0E$PP.0/:+,+E$PPET0EH.0/:+ lin5s do not need to be recreated,as they are created by autoconfig.

    These lin5s will be recreated with the ne@t

    autoconfig run.

    % % D&A!

    1(!(!K -o)ify the Contet 7ile $BA""40T3"/a)min/.2D0hostname(ml'; 9or a ne! clone3 or if :oa_context_version: is different insource1s context file.

    % % D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    7& of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    31/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(!(!1 -o)ify the Contet 7ile in D& Home$B3RAC4E0H3-E/appsutil/scripts/.2D0hostname(ml' ; 9or ane! clone3 or if :oa_context_version: is different in source1scontext file.

    % % D&A!

    6..' Run autoconfi# for D& home on the D& tier $as oram#r' -($:T/opt>erpcommon>DsidF>log>DsidFEDhostnameFe@ists with 666 permissions. This directory should match theinstance being cloned from.

    % % D&A!

    1(!(!>(% Verify that environment variables are correct in (env file(% % D&A!

    6..2.7 /un $+ET0P>bin>adconfig.sh% % D&A!

    6..2.9 ?iew :og for any errorsThe afadmprf error indicates a duplicate profile value and can besolved by doing the followingB+:T 4/0M applsys.fndEprofileEoptionEvalues H/applicationEidO& $

  • 8/12/2019 AG Environment Refresh - Checklist

    32/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6..2.# $dd the following line to applDsidF .profile fileB>opt>oracle>local>bin>orasid DI+F -- system bac5 to prior version (of target) if it differs fromthe source system

    % % D&A!

    6.."." 3se 4DsystempasswordF %TM $PP:% DpasswordF

    !ndcpassgen.sql

    After running FNDCPASS, make sure that allthe i user passwords e!cept for those "D#,$D%&$P, P"&'AL(), P"&'AL()*SS"and C'+SYS hae not changed-

    % % D&A!

    .--/-( 0f 1ou presered non2apps oracle user passwords prior toclone, run the password script34ar4orawork4cloning45sid64presere*pw*non*apps-s7l8

    generated from the pre2clone step-

    preserve_pw_non_apps.sql % % D&A!

    6..".9 2n Dev6 /eset common passwords to appsFapps-preserve_pw_non_apps.sql % D&A!

    6.."" After chan#in# apps pass*or)r%n a%toconfig to up)ate theproper files(

    $9"A*'"P4admin4scripts4S0D*hostname4adautocfg-sh8

    % % D&A!

    1(!(%< :p)ate .ite ame profile $3*ner N A"".'update 0nd_pro0ile_option_!alues setpro0ile_option_!alue K@;A)G"_S%D=cop' o0

  • 8/12/2019 AG Environment Refresh - Checklist

    33/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(!(%= Clean out Concurrent -ana#ers% % D&A!

    6.."9. /un the following N: to complete all pending>running reAuests.Updateappls's&0nd_concurrent_re3uests set

  • 8/12/2019 AG Environment Refresh - Checklist

    34/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(!(% .tart the 3racle 4istener from-%&_A8'% ;hostname8lsnrctl start LSN$>S%,8

    '8$R-A%-@ The listenerora '%st contain theExt5roc setting as shown -elowH otherwiseAIngrian will generate connection , +er'issionerrors@

    &&&S%D_9%S_9S#)")< K S%D_9%S K S%D_D"SC K O)AC9"_O$"K/opt/oracle/product/applterp/,+&1&+- S%D_#A$" K ")

  • 8/12/2019 AG Environment Refresh - Checklist

    35/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.."' Restore save) )ata ro*s (ex+orte in the 5re*Clone section).run $_$#S*1$#_$1S.sqlas a00s 5 5 D&A!

    1(% 2n#rian Confi#urationDev? Test? ho?

    1(%(! 2n#rian Decryption/Encription ;; 345 27 RE9:2RED

    >erif !ith #evel ? before continuing 5 D&A%

    1(%(% "oint the 2nstance to the Dev 2n#rian Devicesu . oramgr" loo#up ingrian db user p!dcd /opt/ingrian/4L+/%ngrian/DBools.oracle

    &/loadroperties.sh

    5 5 D&A!

    1(%(< 7i the 2n#rian 4ibrary settin#scd /opt/ingrian/4L+/%ngrian/DBools.oracle

    &/!ix_%N3L%0,%$.sh5 5 D&A!

    1(%(= Verify the 2n#rian 4ibrary settin#s( o reference to the source)b shoul) sho* up(

    s3lplus / as s'sdaS#L#2* G &$1) dba_libraries=#$# owner ? H%N3$%(NHI

    5 5 D&A!

    1(%( C3RRECT AE :.ER "ER-2..23. 2..:EBD 5 D&A!

    1(< .crub )ata for )ev/testDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    7# of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    36/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.7. Drop "C0OC3:T tables (as apps)( PCE/0I+EC03

  • 8/12/2019 AG Environment Refresh - Checklist

    37/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.9. Verify in)ees eistfor encrypted base tablesSELECTOWNER,INDEX_NAME

    FROMdba_indexes

    WHEREtable_name IN

    ('PC_CUSTOMER_CREDIT_CARDS_ENC',

    'PC_PAYMENTS_ENC',

    'PC_POS_PAYMENTS_ENC',

    'OE_ORDER_HEADERS_ALL_ENC');

    Ex0ected $ut0ut4"%N$& 0ND$+*NA#$222222222222222222222222222222 222222222222222222222222222222

    "N' 0N;*0D+*"N' "$*"&D$&*$AD$&S*N="N' "$*"&D$&*$AD$&S*N?"N' "$*"&D$&*$AD$&S*N("N' "$*"&D$&*$AD$&S*N/"N' "$*"&D$&*$AD$&S*N@"N' "$*"&D$&*$AD$&S*N."N' "$*"&D$&*$AD$&S*>/PCP"S 0N;*0D+*

  • 8/12/2019 AG Environment Refresh - Checklist

    38/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.9." Verify tri##ers eistfor encrypted base tablesSELECT OWNER, TRIGGER_NAME

    FROM dba_triggers

    WHERE table_nameIN

    ('PC_CUSTOMER_CREDIT_CARDS_IDV',

    'PC_PAYMENTS_IDV', 'PC_POS_PAYMENTS_IDV',

    'OE_ORDER_HEADERS_ALL_IDV');

    Ex0ected $ut0ut4"%N$& '&0;;$&*NA#$222222222222222222222222222222 222222222222222222222222222222PC"$ PC*PAY#$N'S*0NS*'&0;PC"$ PC*PAY#$N'S*>PD*'&0;PC"$ PC*C>S'*C&$D0'*CA&DS*>PD*'&0;PC"$ PC*C>S'*C&$D0'*CA&DS*0NS*'&0;PCP"S PC*P"S*PAY#$N'S*0NS*'&0;PCP"S PC*P"S*PAY#$N'S*>PD*'&0;"N' "$*"&D$&*$AD$&S*ALL*>PD*'&0;"N' "$*"&D$&*$AD$&S*ALL*0NS*'&0;

    5 D&A!

    6.9.7 Verify P":&P tri##er is correct(0E0/+/EH$+/E$::EI

  • 8/12/2019 AG Environment Refresh - Checklist

    39/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.#. Reset .e,uences(as apps) to start at Ma@ (ingErowEid).run $_S#*)%N_%N3_S#J#N2#S.sqlasapps

    5 5 D&A!

    1((% Reset Verte 4ibraryrun $_"#$*#A.sql.

    ill prompt for verte@Etop twice

    echo BVERTEI0T3"from the os (afterrunning orasid Dtarget-sidF)

    5 5 D&A!

    1((< Verify Verte A"2 *orksrun"#$*#A_2=#26.sql.

    hould return with a ta@ rate.

    5 5 D&A!

    6.#.9 Verify D& ame is set correctly( Chec5 thatO$._.T..SE_N.0Evariable and name f rom vdatabase pointto right I+.

    run"#$%&'_N()#.sql.

    Correct this if necessary.

    5 5 D&A!

    1(( Restore save) C:.T.5.(env file(Save %ring 5re*Clone ste+s 5 5 D&A!

    1((K Truncate tables6 "C02TER7ACE0.ET:".J"C0724E0&:24D0"R3CE..E.J "C0CT20D2.J"C0CT20TRA.7ER.

    efore i'+orting in next ste+A +lease tr%ncate theta-les first

    5 5 D&A!

    1((1 3ver*rite contents of "C02TER7ACE0.ET:".J"C0724E0&:24D0"R3CE..E.J "C0CT20D2.J"C0CT20TRA.7ER.(

    I'+ort fro' ata ex+orte %ring 5re*Cloneste+s

    5 5 D&A!

    1(K 7inal Clone .tepsDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    72 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    40/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(K(! .et the number of concurrent mana#er *orkers to +5for the&tandard 8anager(

    5 5 D&A!

    1(K(% Recompile all obectss3lplus M/ as s'sdaMN/rdms/admin/utlrp&s3l

    5 5 D&A!

    1(K(< Restart an) verify applications(%)1$*(N*D here should eN1 #$$1$S0rom the adstrtal&sh script output&

    5 5 D&A!

    1(K(= Confi#ure/Reset Database in R-A catalo# for TARGET( ?erify that the netbac5up lin5 is in place.

    cd 8O)AC9"_O$"/lils .ltr lio5*

    Perform a resync catalog and possibly anupgrade catalog (if refreshed from a laterversion of 0racle)

    5 5 D&A!

    1(K( Restore ER" user recor)s3se intana/Chainlinkfrom saved destination 5 5 CG

    1(K(K .et #reater 7orms session timeoutet system profile %2ADSession *imeoutto=8F

    5 5 CG

    6.!.6 &rin# co)e up;to;)ate6 /eapply C/$*s that have not gone toProduction yet.

    5 5 CG

    1(K(8 Enable &ypass obs

    nable /eAuestsBo TTE$3THECC

    o TTETT:ECC

    nable /eAuest etsB

    o 0M 3nit Test - 4ull 0rder Cycle

    o 0M 3nit Test - 0rder Cycle ;efore

    M

    o 0M 3nit Test - 0rder Cycle $fter

    M

    5 CG

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    9& of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    41/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(K(> Enable Ecom 3r)er :ploa) ob 3nder the Q"C M Ecom ResponsibilityR,

    start the concurrent set Q"C6 EC3- 3r)er:ploa) .etR and sche%le it to r%n ever& 4D'in%tes

    5 5 CG

    1(K(!F Create testin# ER" note /un S#N,_*1_)S_N1*#S.sql 5 D&A!

    1(K(!! Verify Chainlink )atabase links still functionterp0link, )erp0link, cerp0link, uerp0linkfromP0;M are able to pull.

    5 5 CG

    1(K(!% Verify that TER"042 )atabase link in "2C- is still functional( This lin5 connects as the

    EC3-0:".E44user in T/P. $fter a database clone of T/P or

    password change in T/P, this database lin5needs to be on the list of objects to rebuildwith the correct password.

    If necessary, rebuild the database lin5T/PE:I

  • 8/12/2019 AG Environment Refresh - Checklist

    42/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    6.!.7 Verify that all )atabase links are *orkin# correctlyB select *0rom dual;dlin5_name=

    The follo*in# must *orkB cecom_lin5

    cestg_lin5

    0pecom_lin5

    0pestg_lin5 mecom_lin5

    mestg_lin5

    pcecom_lin5

    pcestg_lin5

    oms_clu_re0_lin5

    oms_ecom_0c_lin5

    oms_md6_lin5

    oms_6ms_in!_lin5

    saolin5

    6emgr_lin5

    6msi0

    5 5 D&A!

    1(K(!= Verify that the links from 7& still *ork/un"#$%&'_&0_L%N6.sql

    hould return a number

    ?erifies lin5 .C"0ER"02TE-0EITRACT .

    5 5 D&A!

    1(K(! Verify output to :T40724E )irectoriesModify utlEfileEdir to point to the properdirectories, as needed.

    5 5 D&A!

    6.!.! $dd database listener information to/var/opt/oracle/orarun% % D&A!

    1(K(!1 Verify that "C03E03-.072IERF! is runnin#% % A&

    1(K(!8 &ook an 3-. 3r)er usin# a ne* customer(% % A&

    1(K(!> &ook an &ook2T 3r)er(% % A&

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    9" of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    43/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    1(K(%F Run booke) or)er throu#h or)er cycle to "ick Release% % A&

    Task/Activity Scripts/Notes Dev? Test? ho?

    8 C3- Clones $"re;3uta#e .teps'ample scripts can be found atnaberi'dB>var>orawor5>cloning>:C0M unlessotherwise noted

    '. otify users of planne) D&/Applications )o*ntime(if refreshingan existing instance).

    % % D&A!

    '." Verify Tar#et Database &ackups-- nsure that the last level &/M$< bac5up completed successfully for the Targetdatabase.

    % % D&A!

    8(< "reserve all ee)e) Database Content/2nformationDev? Test? ho?

    8(

  • 8/12/2019 AG Environment Refresh - Checklist

    44/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    '.9. Tar up B3RAC4E soft*are home on source system an) untaron tar#et

    % % D&A!

    '.9." Re,uest that "CG sync up ***0@si) on tar#et from source% % D&A!

    8( "repare 2nit 7ile an) Confi#ure R-A Duplicate .cript created will be referred to as theT$/*T database. The database the refresh iscoming from will be referenced as the 03/Cdatabase.

    Dev? Test? ho?

    8((! Verify full backup of source )atabase% % D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    99 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    45/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    8((% Create pfile from spfile on tar#et system an) e)it pfileN:F createpfileOS0/$C:EH0M>dbs>initDI+F.ora.refreshS from spfile.

    $dd the following lines to the pfileBcontrolEfilesODT$/*TEI+FE+$T$&S,DT$/*TEI+FE+$T$&SdbEfileEnameEconvertO(D03/CEI+FE+$T

    $&S,SDT$/*TEI+FE+$T$&S)logEfileEnameEconvertO(D03/CEI+FE+$T

    $&S,SDT$/*TEI+FE+$T$&S)logEfileEnameEconvertO(D03/CEI+FE4:$H&S,SDT$/*TEI+FE4:$H&S)

    ample pfileB naberi'dB0/$C:EH0M>dbs>init:C0M.ora.refresh

    % % D&A!

    8((< Verify rman script can connect to tar#etJ auiliary an) catalo#>var>orawor5>cloning>DI+F>rmanEduplicateEDI+F.cmd

    % % D&A!

    8((= -o)ify script *ith se,uence number one past last se,uence

    number liste) in backup lo# on source system

    e.g. last seAuence in log is so enter until

    seAuence &!

    % % D&A!

    8(( Verify that pfile path specifies ne*ly create)[email protected](ora(refresh

    D&A!

    Task/Activity Scripts/Notes Dev? Test? ho?

    > C3- Clones $3uta#e .teps'

    >(! "repare Tar#et Database an) Run R-A Duplicate .criptDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    9# of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    46/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    2.. 0n target, shutdown database and start in initDI+F.ora.refreshS

    % % D&A!

    2.." /emove target database files from $M& orasid AS$_;S")J")=asmcmdcd ;A)G"_S%D=_DAA+,/;S%D=

    2-"3RTAT6 &e etremely careful an) verifythat this is the correct location of the tar#et)atabase files to be remove)( The A.-control mana#es the files for all )atabases onthe server( The follo*in# steps *ill removethe )atabase in the )irectory chosen(

    cd datafilepwd (?erify that this is the correct location)rm Kcd into controlfile, tempfile, onlinelog, etc. pwd (?erify again that you are in the correctlocation)rm K

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    9! of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    47/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    2..7 /un /M$< duplicate script/!ar/ora6or5/cloning/;S%D=/rman_duplicate_;S%D=&sh

    tail .0

    rman_duplicate_;S%D=&cmd&;??$$DD$%=&log

    3TE.B $ status notification will beemailed when doneJ however, the log filesshould be monitored to verify that thescripts are running correctly.

    AlsoJ if successfulJ the R-ADuplicate script *ill open the C43E)atabase *ith RE.ET43G. an) createthe temp files $The status notificationmay come back as unsuccessful ifthere is a problem releasin# channelsJbut as lon# as the process opens the)atabase an) restores all filesJ it issuccessful'(

    % % D&A!

    2..9 If the rman duplicate does not complete successfully, shutdown

    database, remove datafiles, and startup nomount before retrying

    % % D&A!

    2." ?erify Target +atabase is 0pened with P4I: and /estore +ataDev? Test? ho?

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    96 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    48/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    2.". hutdown database immediately after successful completion of/M$< duplicate

    2."." Modify pfile with newly created controlfilescd 8O)AC9"_O$"/ds!i init;S%D=&ora&re0esh

    control_0ilesKP;S%D=_DAA+,/;S%D=/control0ile/Current&QQQ&QQQQQQQQQP(P;S%D=_DAA+,/;S%D=/control0ile/Current&QQQ&QQQQQQQQQP

    #e6 control0iles can e 0ound in AS$asmcmd-&

    % % D&A!

    2.".7 tart database with modified pfileSR9= Startupp0ileKPinit;S%D=&ora&re0reshP

    % % D&A!

    2.".9 Create spfile from pfilecreatesp0ileKP;S%D=_DAA+,/;S%D=/sp0ile;S%D=&ora 0rom p0ileKPinit;S%D=&ora&re0reshP

    init;S%D=&ora should point to the AS$S

  • 8/12/2019 AG Environment Refresh - Checklist

    49/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    2.".' 3pdate webmgr tableUpdate ser!er_name and in!alidation_portcolumns in 6emgr&pc_6e_cache_ser!erstale& Use !alues recorded in stepT&L&&

    % % D&A!

    2.".2 3pdate PC4TP tables Update

  • 8/12/2019 AG Environment Refresh - Checklist

    50/62

    American Girl Environment Clone / Refresh Checklist

    Task/Activity Scripts/Notes Dev? Test? ho?

    2.9. /ecompile all objects in +atabase.(0/$C:EH0M>rdbms>admin>utlrp.sAl)

    utlrp&s3l % % D&A!

    2.9." Modify *lobal tnsnames -- Create entry in global tnsnames for new

    database (not needed if this is a refresh).

    % % D&A!

    2.9.7 ;ring code up-to-dateB /eapply C/$*s that have not gone toProduction yet.

    % % "CG

    2.9.9 /egister database in /M$(=(!% Create or Truncate Table "C0C3-0.AVED0R3.(If table does not e@ist, create it.If table does e@ist, truncate it.

    5 5 D&A!

    2.9.7 2mport save) )ata (ex+orte in the 5re*Clone section).import 2_21)_S("#,_$1Stable 5 5 D&A!

    2.9.9 Restore save) )ata ro*s (ex+orte in the 5re*Clone section).run

    #21)_$#S*1$#_$1S.sqlas a00s 5 5 D&A!

    >(=(! Truncate tables6 "C02TER7ACE0.ET:".J"C0724E0&:24D0"R3CE..E.

    efore i'+orting in next ste+A +lease tr%ncate theta-les first

    5 5 D&A!

    >(=(!K 3ver*rite contents of "C02TER7ACE0.ET:".J"C0724E0&:24D0"R3CE..E.

    I'+ort fro' ata ex+orte %ring 5re*Cloneste+s

    5 5 D&A!

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contents of this document may not be disclosed in any formto any party who has not signed a non-disclosure agreement with Mattel, Inc.

    # of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    52/62

    American Girl Environment Clone / Refresh Checklist

    !F A""ED2I

    !F(! RE422G 3RAC4E H3-E.

    3TE6 These instructions are based on Metalin5 ote

  • 8/12/2019 AG Environment Refresh - Checklist

    53/62

    American Girl Environment Clone / Refresh Checklist

    & &/;sid=_;host=&en!& &/Tien!&sh

    o @port 0/$C:EH0M to I$E0/$C:EH0Mo vi B3RAC4E0H3-E/lib/stubs/libc(so--/eplace source sid with target.o Modify file I$E0/$C:EH0M>rdbms>lib>nmliblist to reflect sido /elin5 all

    %ou will receive a lot of errors, these can be ignored, unless they refer toproducts we use.

    !F(!(< 8FK Home

    o Ensure that any soft links are pointin# to the ri#ht homes $fin) ( Mtype l *ill list allthe soft links'(

    o Chan#e @si)0@host(env to reflect ne* server to set environment(

    o .ource your environment6& &/;sid=_;host=&en!

    o @port 0/$C:EH0M to '.&.! Homeo nsure that any soft lin5s are pointing to the right homes (you can usefind. $type l

    to find all soft lin5s under the home directories).o vi B3RAC4E0H3-E/lib/stubs/libc(so--/eplace source sid with target.o c) B3RAC4E0H3-E/r)bms/lib

    o Modify file B8(F(K03RAC4E0H3-E/r)bms/lib/nmliblistto reflect sido make M! ins_rdbms.mk install

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contentsof this document may not be disclosed in any form to any party who has not signed a non-disclosure agreement with Mattel, Inc.

    #7 of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    54/62

    American Girl Environment Clone / Refresh Checklist

    !F(% C432G DATA&A.E :.2G &CV ."42T/C3"5

    !F(%(! Verify successful pre;clone backup of Clone/Tar#et )b $if refreshin# eistin# system'(

    &."." Gro' So%rce -- .tart &ackup -o)e(+;$).

    export 1$(2L#_S%,?>S%&'()*S+export 1$(2L#_=1)#?>S%&'()*%'A(-)*%/)s3lplus /nologSR9= connect / as s'sda

    SR9= alter dataase s6itch log0ile .. execute se!eral times-SR9= alter dataase egin ac5up

    &.".7 #nix .'in- .tart&CV &reak(runs for hr) -- Copies datafiles at the ;C?>+is5 level.

    &.".9 Gro' So%rce **En) &ackup -o)e(+;$).

    export 1$(2L#_S%,?>S%&'()*S+export 1$(2L#_=1)#?>S%&'()*%'A(-)*%/)s3lplus /nologSR9= connect / as s'sda

    SR9= alter dataase end ac5upSR9= alter dataase s6itch log0ile .. execute se!eral times-

    !F(%( Verify that Clone/Tar#et D& is .H:T D3(

    &.".! #nix .'in - -ount/Remount 7ile .ystems on ne* &CVs.

    o 0ove CBs to New Stanar ?ro%+ing (on target host)

    o #+ate Stanars ** $everse S&nch

    o 0o%nt Gile S&ste's (on target host)

    oreak Target "s CBs

    !F(%(1 Copy Archive) Re)o 4o#s from &ource to -arget Host(

    oteB $t least one or two of the archive log files should be much smaller in siUe than the others. Ifyou do not see a smaller one, repeat a Glog switchG again until the smaller file appears in the archivelog destination directory.

    &.".' Gro' So%rce -- Alter Database &ackup Controlfile to Trace(+;$).

    export 1$(2L#_S%,?>S%&'()*S+export 1$(2L#_=1)#?>S%&'()*%'A(-)*%/)s3lplus /nologSR9= connect / as s'sda

    SR9= alter dataase ac5up control 0ile to trace

  • 8/12/2019 AG Environment Refresh - Checklist

    55/62

    American Girl Environment Clone / Refresh Checklist

    &.".2 Gro' Target host ;; Confi#ure Clone/Tar#et D&

    &.".2. Rename backup control file trace file to a .94 script(e.g., crEcontrolEfile.sAl).&.".2." E)it create controlfile scripteliminating e@tra lines and changing I+ to the target I+, and replace

    /3 with T 5ey wordJ for e@ample, C/$T C0

  • 8/12/2019 AG Environment Refresh - Checklist

    56/62

    American Girl Environment Clone / Refresh Checklist

    !F(< E.T2-AT2G TARGET D2. ."ACE $27 724E.5.TE-. D3QT -ATCH'

    &.7. The ata_file_'a++ing=csvfiles contain templates for mapping data files used by a source database tothe anticipated location of these data files on the target system.

    ;ased on whether the &ource 7is a 5ro%ctionor Non*5ro%ctionsystem, chose theappropriate 0o%nt +oint *to* atafile 0a++ing Te'+late(.csv) file.

    .ource D&? -ount point ;to; Datafile -appin# 7ile5ro ata_file_'a++ing_70S_+rcsv Non*5ro ata_file_'a++ing_70S_tstcsv

    @ample content from .csv template filesB

    o )ata0file0mappin#0-.0pr)(csv/!ar/oradata+,/GS%D(/!ar/mdlux1/oradata+/S)CS%D/S)CS%D_s'stem+1&d0/!ar/oradata+,/GS%D(/!ar/mdlux1/oradata+/S)CS%D/S)CS%D_s'stem+,&d0

    o )ata0file0mappin#0-.0tst(csv/!ar/oradata+,/GS%D(/!ar/oradata+,/S)CS%D/S)CS%D_s'stem+1&d0/!ar/oradata+,/GS%D(/!ar/oradata+,/S)CS%D/S)CS%D_s'stem+,&d0

    &.7." +etermine targetdatabaseLs )iskmount point siLe re,uirements(/un the scriptestimate_mount_0ts.shto determine how much dis5 space the new database will need)

    3sageB .>estimateEmountEpts.sh 03/C-I+ T$/*T-I+ csv-file default-mt-pt

    arametersDS%&'()*S+ . Source S%D o0 DB eing cloned(-%)*S+ . #e6 S%D to e created or re0reshedcsv$file . $ount point .to. Data0ile $apping CSJ 0ile see pre!ious

    paragraph-default$mt$pt . De0ault mount point to use 0or data0iles not 0ound in the

    CSJ 0ile&

    Exa'+leA cloning fro' 570S to C70S (with /var/oraata21/C70S/ is the efa%lt 'o%nt +oint)@

    ./estimate_mount_pts.sh )S 2)S data_!ile_mapping_)S_prd.csv /var/oradataC/2)S

    SR9*pwd8Connected&

    *($3#*_)1N*_* S%+#_)0------------------------------ -----------

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contentsof this document may not be disclosed in any form to any party who has not signed a non-disclosure agreement with Mattel, Inc.

    #! of !"

  • 8/12/2019 AG Environment Refresh - Checklist

    57/62

    American Girl Environment Clone / Refresh Checklist

    /var/oradataC;/2)S OBF;C.;F/var/oradataC9/2)S F;B;;.99

    /var/oradataC/2)S FCB.9/var/oradataC/2)S ;B9CC.CC

    Disconnected 0rom Oracle Dataase ,+g "nterprise "dition )elease ,+&1&+&1&+ .V4it

  • 8/12/2019 AG Environment Refresh - Checklist

    58/62

    American Girl Environment Clone / Refresh Checklist

    !F(= E 2.TACE "RE"ARAT23

    &.9. nsure/var/spool/erp/@C43E0.2Dand its subdirectories are created.

    This should be similar to the >var>spool>erp>DI+F directory for the source.

    4or e@ample, you can copy or tar the whole directory and subdirectories from the source, then onthe target delete files under each directory (after un-tarring).

    &.9." nsure/var/oraarch!/@C43E0.2Dis created.

    &.9.7 nsure/opt/oracle/a)min/@C43E0.2Dis created.

    &.9.9 nsure Target system has proper file systems and users configured (right owner ship, permission and filesystem space reAuired have to be in place).

    &.9.# Create C:0

  • 8/12/2019 AG Environment Refresh - Checklist

    59/62

    American Girl Environment Clone / Refresh Checklist

    !F( R-A C372G:RAT23 73R E 2.TACE

    &.#. Create new /M$< catalog owner in the catalog database (D/M$

  • 8/12/2019 AG Environment Refresh - Checklist

    60/62

    American Girl Environment Clone / Refresh Checklist

    Mattel, Inc. -- Confidential and Proprietary. This document is subject to a non-disclosure agreement in favor of Mattel, Inc., and the contentsof this document may not be disclosed in any form to any party who has not signed a non-disclosure agreement with Mattel, Inc.

    !& of !&

  • 8/12/2019 AG Environment Refresh - Checklist

    61/62

  • 8/12/2019 AG Environment Refresh - Checklist

    62/62