0% found this document useful (0 votes)
306 views5 pages

Refresh

- The document describes the steps to refresh an Oracle E-Business Suite (EBS) environment called HKDEV by copying it from a backup environment called HKSIT. - Key steps include mounting the HKSIT backup volume on HKDEV, recovering the database using HKSIT backups, configuring the database and application tiers, and running scripts to refresh the application.

Uploaded by

Krishna Ghanta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
306 views5 pages

Refresh

- The document describes the steps to refresh an Oracle E-Business Suite (EBS) environment called HKDEV by copying it from a backup environment called HKSIT. - Key steps include mounting the HKSIT backup volume on HKDEV, recovering the database using HKSIT backups, configuring the database and application tiers, and running scripts to refresh the application.

Uploaded by

Krishna Ghanta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

--> Refreshing HKDEV with HKSIT backup --> Mount HKSIT data volume (sjc1qd01 /d01) to HKDEV -->

Put an entry in /etc/exports folder in sjc1qd01 (HKSIT data volume i s on qd01) /d01 sjc1pa01(ro,no_root_squash,sync) --> run exportfs -a under root on sjc1qd01 above 2 steps will enable volume share from qd01 to pa01 --> login to pa01 and connect as root --> create mount point at /mnt/qd01_d01 (if it is already exists use it) --> Use below command to mount the volume mount -t nfs -o (options are optional) sjc1qd01:/d01 /mnt/qd01_d01 --> above command will mount the volume Issue "mount" command and make sure it shows the above mount point. --> Copy data files from qd01 to pa01 /b01/oradata/hkdev folder ----------------------------------------------------------------HKDEV refresh Port Pool : 40 all context files are already existed. So, just need to run config with context files. ----------------------------base location for all stacks /b01/app/oracle/hkdev Appl top --> <base>/hkdevappl comn top --> 806 top --> ias top --> 10g top --> data top --> /b01/oradata/hkdev -----------------------------If the env doesn't exists then we need to run adcfgclone.sh with dbTechStack opt ion Set the hkdev db environment. go to scripts dir /z01/appsdba/refresh/hkdev run ccf_hkdev.sql sqlplus> startup nomount sqlplsu> @ccf_hkdev.sql SQL> recover database using backup controlfile until cancel; ORA-00279: change 25661046295 generated at 06/07/2010 07:24:20 needed for thread 1 ORA-00289: suggestion : /b01/app/oracle/hkdev/hkdevdb/10.2.0/dbs/arch1_1341_719774290.dbf ORA-00280: change 25661046295 for thread 1 is in sequence #1341 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} cancel

Media recovery cancelled. SQL> alter database open resetlogs; SQL> ALTER TABLESPACE TEMP2 ADD TEMPFILE '/b01/oradata/hkdev/temp02.dbf' reuse; Tablespace altered. --- Restart database one time sql> shutdown immediate sql> startup ------------ After DB Started.. initiate step by step for app level refresh ----> connect as apps and cleare conc manager and app node information. SQL> exec fnd_conc_clone.setup_clean; SQL> commit; Note: Above command will clear all configuration settings in database related to old instance. (we can see it in fnd_nodes table an example) -> perl adconfig.pl contextfile=/b01/app/oracle/hkdev/hkdevdb/10.2.0/appsutil/h kdev_sjc1pa01.xml appspass=appshk5it Above command finishes the DB configuration. ------- App side configuration. ---Hence all context files existed in system, we can directly set the apps password and then run adcfgclone with new password. --> go to scripts directory and execute ch_cpass_apps.sh and ch_cpass_standard.s h commands ./ch_cpass_apps.sh <current apps pwd> <system pwd> <new apps pwd> --> validate by logging as apps with new apps pwd. ./ch_cpass_standard.sh <changed apps pwd> <system pwd> <new stdrd pwd> --> run cm_clean.sql to clean the pending concurrent requests from old instance under apps. sql> @cm_clean.sql --> Set dba_directories with proper paths related hkdev by connecting as system sql> post_prod_refresh_system.sql --> hence db is copied from hksit we may not need to run full version of post_re fesh_apps.sql sql> @post_apps_temp.sql --> go to application level set linux32 bash emulation copy gcc and g++ 32 bit version --> set apps environment b'coz we have environment files already existed. --> go to comn_top/clone directory and copy the Appl_top/admin/<context_file>.xm l to clone directory. make sure all below temp, log and out variables are properly set

s_applcsf = /b01/app/hkdev/admin s_appltmp = /b01/app/hkdev/temp s_applptmp = /b01/app/hkdev/temp s_reptmp = /b01/app/hkdev/temp s_logdir = /b01/app/hkdev/admin/log/hkdev_sjc1pa01 s_outdir = /b01/app/hkdev/admin/out/hkdev_sjc1pa01 s_temp = /b01/app/hkdev/temp Make sure below process status value set to disabled s_tcfstatus s_metcname s_icsmstatus s_jtffsstatus s_icxblkstatus s_discostatus s_mwastatus --> run adcfgclone.pl on app tier. perl adcfgclone.pl appsTier /b01/app/oracle/hkdev/hkdevcomn/clone/hkdev_sjc1pa01 .xml

------------------apps tier perl adcfgclone.pl database /q01/app/oracle/hksit/hksitdb/10.2.0/appsutil/hksit_ sjc1qd01.xml Enter the APPS password [APPS]:

[oracle@sjc1qd01 bin]$ perl adcfgclone.pl appsTier Enter the APPS password [APPS]: superb0wl First Creating a new context file for the cloned system. The program is going to ask you for information about the new system: Provide the values required for creation of the new APPL_TOP Context file. Do you want to use a virtual hostname for the target node (y/n) [n] ?: Target system database SID [oadiag]:hksit Target system domain name [corporate.local]: Target system database server node [linux-dba5]:sjc1qd01 Target system database domain name [corporate.local]: Does the target system have more than one application tier server node (y/n) [n] ?: Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?: Target system APPL_TOP mount point [/u02/app/oracle/oadiagappl]:/q01/app/oracle/ hksit/hksitappl

Target system COMMON_TOP directory [/u02/app/oracle/oadiagcomn]:/q01/app/oracle/ hksit/hksitcomn Target system 8.0.6 ORACLE_HOME directory [/u01/app/oracle/oadiagora/8.0.6]:/q01 /app/oracle/hksit/hksitora/8.0.6 Target system iAS ORACLE_HOME directory [/u01/app/oracle/oadiagora/iAS]:/q01/app /oracle/hksit/hksitora/iAS Do you want to preserve the Display set to linux-dba5:0.0 (y/n) [y] ?:n Target system Display [sjc1qd01:0.0]: Location of the JDK on the target system [/opt/java1.6]: Target system JRE_TOP [/opt/java1.6]: Do you want to preserve the port values from the source system on the target sys tem (y/n) [y] ?:n Clone Context uses the same port pool mechanism as the Rapid Install Once you choose a port pool, Clone Context will validate the port availability. Enter the port pool number [0-99]: 30 Checking the port pool 30 done: Port Pool 30 is free Complete port information available at /q01/app/oracle/hksit/hksitappl/admin/out /hksit_sjc1qd01/portpool.lst Verifying Database Connection... Database Connection on Port 1551: Successful Target system proxy port [80]: UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /q01/app/hksit/temp 3. /q01/app/oracle/hksit/hksitdb/10.2.0/appsutil/outbound/hksit_sjc1qd01 4. /q01/app/hksit/temp 5. /q01/app/oracle/hksit/hksitdb/10.2.0/appsutil/outbound/hksit_sjc1qd01 6. /usr/tmp Choose a value which will be set as APPLPTMP value on the target node [1]:2 Backing up /q01/app/oracle/hksit/hksitappl/admin/hksit_sjc1qd01.xml to /q01/app/ oracle/hksit/hksitappl/admin/hksit_sjc1qd01.xml.bak Do you want to reset custom variable settings(y/n) [n]:y Value for c_MARKVIEW_TOP[/q01/app/oracle/hksit/hksitappl/markview/11.5.0]:

You might also like