Execution Steps
-
Upload
sgiridharan -
Category
Documents
-
view
8 -
download
0
description
Transcript of Execution Steps
Steps to execute note 1531014.1 (upd_gl_sl_link_util.zip)1) Copy upd_gl_sl_link_util.zip at appropriate location.2) Unzip/extract the zip file, it will create folder with name upd_gl_sl_link_util
e.g.
upg- unzip upd_gl_sl_link_util.zip
Archive: upd_gl_sl_link_util.zip
replace upd_gl_sl_link_util/launchadscript.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: upd_gl_sl_link_util/launchadscript.txt
inflating: upd_gl_sl_link_util/readme.txt
inflating: upd_gl_sl_link_util/upd_gl_sl_link_rev.sql
inflating: upd_gl_sl_link_util/vrunevlnd.sh
inflating: upd_gl_sl_link_util/launchadscript
3) Change dir inside the folder upd_gl_sl_link_util
upg- cd upd_gl_sl_link_util
4) Connect to Database
upd_gl_sl_link_util- sqlplus dbuser/dbpassword@dbinstance5) Drop (if exists) following temp tableSQL> drop table XLA_UPGRADE_DATES_TEMP
2 /
Table dropped.
SQL> create table XLA_UPGRADE_DATES_TEMP as
select /*+parallel(gjl),parallel(gir) */gjl.ledger_id ledger_id,
min(gjl.effective_date) start_date, max(gjl.effective_date) end_date
from gl_je_headers gjh, gl_je_lines gjl, gl_import_references gir
where gjh.je_header_id = gjl.je_header_id
and gjl.je_header_id = gir.je_header_id
and gjl.je_line_num = gir.je_line_num
and gjh.je_source = 'Receivables'
and gjh.je_from_sla_flag = 'U'
and gir.gl_sl_link_id is null
group by gjl.ledger_id; 2 3 4 5 6 7 8 9 10 11
Table created.6) Exit from the database
SQL> quit7) Open vrunevlnd.sh file and edit following statement with appropriate values for dbuser, dbpassword and dbinstancesqlplus dbuser/dbpassword@dbinstance @upd_gl_sl_link_rev.sql $1 $2 $3e.g. sqlplus apps/apps@fz1yd213 @upd_gl_sl_link_rev.sql $1 $2 $3-- Should be as per customer instance details.
8) (Optional) File launchadscript can be modified if customer wants to change number of workers to be used.
9) Type launchadscript. This will execute upd_gl_sl_link_util- launchadscript-- in the unix session, which will launch the ad parallel workers for
-- running the script upd_gl_sl_link_rev.sql
10) To check the status of the script, run the following query
SELECT status,
COUNT(*)
FROM ad_parallel_update_units
WHERE update_id IN
(
SELECT update_id
FROM ad_parallel_updates
WHERE script_name = 'upd_gl_sl_link_rev.sql'
)
GROUP BY status;
All the rows should have the status as P, which means completion
11) Now, check, if the issue is resolved.