The document provides steps to backup an Oracle database and application tier, clone them to a new SID, and complete post clone configuration. It includes commands to take database backups, run pre-clone scripts on the database and application tiers, rename directories and files to the new SID, update configuration files and profiles, run autoconfig, and address issues encountered during the clone process.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
216 views
Database Name Change
The document provides steps to backup an Oracle database and application tier, clone them to a new SID, and complete post clone configuration. It includes commands to take database backups, run pre-clone scripts on the database and application tiers, rename directories and files to the new SID, update configuration files and profiles, run autoconfig, and address issues encountered during the clone process.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4
Backup of all files under $ORACLE_HOME/dbs. (init.
ora), Database Context File, T
NS_ADMIN Directory, Application tier Context File ,Custom Env File, MWA.cfg fil e takebackup of o-h -->nohup tar cf - 10.2.0 | gzip > /data03/CHLK/10.2.0.tar.gz & Before running check /var/opt/oracle/oraInst.loc cd $ORACLE_HOME/appsutil/scripts/CHLK_cidcsORAgiea2 perl adpreclone.pl dbTier cd $COMMON_TOP/admin/scripts/CHLK_cidcsORAgiea2 perl adpreclone.pl appsTier Rename dir eg: mv /data02/OLDSID /data02/NEWSID chown -R oa<newsid>:dba /data02/<newsid>
mv /data02/CHLK /data02/ORACHK chown -R oaORAchk:dba /data02/ORACHK --- Unix Team
sudo /usr/local/scripts/adduser.ksh -g dba -c "ORA CRP" -m oaORA1c login with oa<newsid> user log in with oaORAchk shut down the databse check /var/opt/oracle/oraInst.loc cd $ORACLE_HOME/appsutil/clone/bin cd /data02/ORACHK/oraapps/10.2.0/appsutil/clone/bin $ adcfgclone.pl dbTechStack Get the control file backup using "ALTER DATABASE BACKUP CONTROLFILE TO trace;" Edit the control file using new path & new SID Start the database in No mount. Create the control file using new control file syntax. SQL>Alter database open resetlogs. SQL>alter tablespace temp Add tempfile /<sidname>/data/temp01.dbf size 2048M reuse ; SQL> connect apps/<password> SQL> @cmclean.sql SQL> commit; SQL> exec fnd_conc_clone.setup_clean; SQL> commit; Run Autoconfig on the database tier update profiles with new sid SQL>update fnd_profile_option_values set profile_option_value = replace(profile_ option_value,'CHLK','ORACHK') where profile_option_value like '%CHLK%'; commit; Configure <NEWSID> Apps Tier. Run commands as <NBEWSID Apps Owner Account cd <COMMON_TOP>/clone/bin perl adcfgclone.pl appsTier ################################################################################ ###############################
******************************************** POST STEPS:************************ **************** update /usr/users/oracle/l*/pp*/i*t and /etc/oratab, /etc/appltab, /etc/porttab /copoem/* files to have NEWSID check Custom env setup and custom forms are visible. Check WorkFlow Creatre Ticket to add newsid Global TNS Restore tnsifiles MWA Connectivity checking Recreatre DB directories with new path Check profile options where ever it is OLD sid plese change
upodate new sid in XXDBA.XXDBA_MIGRATION_PATH for migrations Change Temporary directory path for XML Publisher configure forgot password link if required Check SoftLinks For ORACHK a)create value sets in Chainlink b)need to change in Migration script s if you are sure please go head and do it) c)ssh configuration also we need to check Delte old instance & ADD New instances in OEM Need to change DB Structure erefer EBS File system Layout doc If Appworx/OBIEE is configured for ORA1C ,then update appworx
ISSUES Faced : Issue: there was no clone dir under $O-H/appsutil and in appstier also
Workaround :
p5035661_11i_SOLARIS.zip and poerform below steps : (a) Unzip the patch into the directory: unzip -od /data02/CHLK/oraapps/iAS /home/jm073/mahesh/p5035661_11i_LINUX.zip
(b) Source the Apps environment file : $. $APPL_TOP/APPSORA.env (c) Change directory to the /appsoui/setup $cd $IAS_ORACLE_HOME/appsoui/setup (d) Execute the perl script OUIsetup.pl: $perl OUIsetup.pl Rename $ORACLE_HOME/appsoui to $ORACLE_HOME/appsoui2.2 Remove $ORACLE_HOME/appsutil/clone Rename $ORACLE_HOME/appsutil to $ORACLE_HOME/appsutil_old mv $ORACLE_HOME/appsutil $ORACLE_HOME/appsutil_backup On the Apps Tier run "perl $AD_TOP/bin/admkappsutil.pl" Copy the appsutil.zip to the DB Tier and unzip to the $ORACLE_HOME Copy the Context File from $ORACLE_HOME/appsutil_old to $ORACLE_HOME/appsutil Run AutoConfig on the DB Tier The Clone Stage will be recreated when "perl adpreclone.pl dbTier" is rerun Error 2: AutoConfig Services Phase Running Service Process 1 of 1 for AppsUtil Executing script in InstantiateFile: /data02/CHLK/oraapps/10.2.0/appsutil/install/CHLK_cidcsORAgiea2/adcrobj.sh -ouiCLI techstack error Log file located at /data02/ORACHK/oraapps/10.2.0/appsutil/log/ORACHK_cidcsORAgi ea2/ApplyDBTechStack_12040432.log \ 0% completed AC-00402: Unable to read driver file: /data02/ORACHK /oraapps/10.2.0/appsutil/driver/instconf.drv adcfgclone.pl dbTechStack fails with error AC-00402 Unable to read driver file i nstconf.drv [ID 1093875.1] Workaround: Applied Patch 9577277 - 'FIXES FOR MISSING INSTCONF.DRV'
ERROR 3 [AutoConfig Error Report] The following report lists errors AutoConfig encountered during each phase of its execution. Errors are grouped by directory and phase. The report format is: <filename> <phase> <return code where appropriate> [PROFILE PHASE] AutoConfig could not successfully execute the following scripts: Directory: /data02/CHLK/oraapps/10.2.0/appsutil/install/CHLK_cidcsORAgiea2 afdbprf.sh INSTE8_PRF 1 AutoConfig is exiting with status 1 Updated profile option value - 1 row(s) updated Application Id : 174 Profile Name : ECX_UTL_XSLT_DIR Level Id : 10001 New Value : /usr/tmp Old Value : /usr/tmp Updated profile option value - 1 row(s) updated Application Id : 174 Profile Name : ECX_UTL_LOG_DIR Level Id : 10001 New Value : /usr/tmp Old Value : /usr/tmp Updated profile option value - 1 row(s) updated Application Id : 0 Profile Name : BIS_DEBUG_LOG_DIRECTORY Level Id : 10001 New Value : /usr/tmp Old Value : /usr/tmp declare * ERROR at line 1: ORA-12899: value too large for column "APPLSYS"."FND_PROFILE_OPTION_VALUES"."PROFILE_OPTION_VALUE" (actual: 376, maximum: 240) ORA-06512: at line 44 ORA-06512: at line 139 Workaround : eg: [oachlk cidcsORAgiea2 CHLK] $ grep -i s_db_util_filedir $CONTEXT_FILE <dbutilfiledir oa_var="s_db_util_filedir" osd="unix">/usr/tmp, /data02/ CHLK/oraapps/9.2.0/appsutil/outbound/CHLK_cidcsORAgiea2, /fs01/mwalog/CHLK, /dat a02/CHLK/oraapps/common/temp, /fs03/edi/CHLK/sqlcom/inbound, /fs03/edi/CHLK/sqlc om/outbound, /fs01/applog/CHLK/log, /fs01/applog/CHLK/out, /data02/CHLK/oraapps/ common/admin, /data02/CHLK/oraapps/common/admin/out/CHLK_cidcsORAgiea2, /data02/ CHLK/oraapps/common/admin/log/CHLK_cidcsORAgiea2</dbutilfiledir> [oachlk cidcsORAgiea2 CHLK] $ Update s_db_util_filedir with a value less than 240 chars.
Error 3:
While Running adcfgclone appsTier Beginning application tier Apply - Sun Apr 10 11:26:42 2011 Log file located at /data08/ORA1C/oraapps/11iApp/admin/ORA1C_cidcsORAgiea2/log/A pplyAppsTier_04101126.log RC-50004: Fatal: Error occurred in ApplyAppsTechStack: RC-50013: Fatal: Failed to instantiate driver /data08/ORA1C/oraapps/iAS/appsutil /driver/instconf.drv ERROR while running Apply... ERROR: Failed to execute /data08/ORA1C/oraapps/common/clone/bin/adclone.pl Workaround: Created softlink 6iServer in ias o-h cd iasoh ln -s /data08/ORA1C/oraapps/8.0.6 6iserver