Every organisation has more than one oracle apps instance for different purpose viz., PROD, TEST, DEV etc. and generating a report on missing apps patches on the available instances is a pain if it has to be done manually.
Often, the TEST instances will have more patches when compared to PROD, reason being first the patch will have to be tested on a TEST instance for resolving an issue on PROD or DEV, then it will be moved to DEV and by the time the patch gets applied to PROD it will be a month or so, or may be even more than that depending on the management policies and severity of the issue for which the patch is applied on TEST or DEV.
Now lets say you want to compare DEV instance based on the patches applied to TEST instance.
1. Login to TEST instance as apps user
2. SQL Command: create table patch_list as (select distinct patch_name from ad_applied_patches);
3. Now PATCH_LIST table has all the patches that are applied to TEST instance.
4. Generate an insert script for the available patches.
2. SQL Command: create table patch_list as (select distinct patch_name from ad_applied_patches);
3. Now PATCH_LIST table has all the patches that are applied to TEST instance.
4. Generate an insert script for the available patches.
SQL Command: spool patch_numbers.sql
SQL Command: select ‘insert into patch_list values(”’ || patch_name ||”’);’ from patch_list;
SQL Command: spool off
SQL Command: select ‘insert into patch_list values(”’ || patch_name ||”’);’ from patch_list;
SQL Command: spool off
5. Login to the DEV instance as apps user
6. SQL Command: create table patch_list (patch_name varchar2(120));
7. Run patch_numbers.sql in this instance. This will populate the PATCH_LIST table with the TEST instance patches.
8. Run below sql to get the missing patches in DEV instance.
6. SQL Command: create table patch_list (patch_name varchar2(120));
7. Run patch_numbers.sql in this instance. This will populate the PATCH_LIST table with the TEST instance patches.
8. Run below sql to get the missing patches in DEV instance.
SQL Command: set heading off pages 0
SQL Command: select patch_list.* from patch_list LEFT JOIN ad_applied_patches ON patch_list.patch_name = ad_applied_patches.patch_name where ad_applied_patches.patch_name IS NULL;
The resulting output is the missing patches on DEV instance.
Above information can also be achieved without creating the PATCH_LIST table if DB_LINK is used. If using DB_LINK dont forget to modify the above query with correct column and table names.
31 comments:
buy tramadol online tramadol hcl usa - pain killer tramadol 50mg
cheap xanax xanax withdrawal natural - xanax pill press
tramadol generic tramadol online pharmacy no prescription - tramadol otc
xanax online codeine xanax drug interactions - xanax online pakistan
legal buy tramadol online tramadol ultram 50 - buy tramadol online for dogs
generic xanax xanax dosage night - xanax pills side effects
buy tramadol online can you buy tramadol online no prescription - tramadol ultracet dosage
buy tramadol online tramadol to buy online in usa - tramadol 50mg tablets street value
generic xanax xanax effects fetus - xanax drug test levels
xanax online xanax 1mg bar - does xanax show up 10 panel drug test
buy tramadol online buy tramadol online in australia - tramadol jerking
buy tramadol online no prescription tramadol withdrawal day 4 - tramadol dosage and frequency
buy tramadol online tramadol hcl 50 mg recreational use - withdrawal symptoms of tramadol
buy cialis online cialis online secure - cialis online prescription order
xanax online xanax extended release generic - xanax generic . 5 mg
xanax online drug interactions xanax tylenol - xanax effects relationships
tadalafil online cialis price in the usa - free trial cialis coupon
cialis online no prescription buy online cialis 20mg - cialis us pharmacy
buy tramadol online tramadol 100 mg wiki - where to buy tramadol online forum
buy tramadol order tramadol online 100mg - buy tramadol online australia
buy tramadol tramadol hcl 50 mg dosage - get rid tramadol addiction
buy tramadol tramadol withdrawal how long - many tramadol 50mg get high
buy tramadol online can buy tramadol online usa - tramadol 50 mg compared to percocet
tramadol without prescription tramadol 50 mg many get high - cheap tramadol usa
ativan sale ativan breastfeeding - how to order lorazepam online
buy tramadol online tramadol hcl en espanol - buy tramadol online from usa
buy tramadol online get cheap tramadol - tramadol withdrawal headache
buy tramadol online best place to buy tramadol online reviews - buy tramadol online no prescription usa
http://ranchodelastortugas.com/#71453 xanax erowid drug test - 0.25mg xanax and alcohol
cheap alprazolam dosage of generic xanax - xanax ambien alcohol interaction
http://bayshorechryslerjeep.com/#2mg sonata and xanax drug interactions - generic xanax xr cost
Post a Comment