Documente Academic
Documente Profesional
Documente Cultură
==========================
adchk.sql ( calls ad_zd_prep.initialize; )
----------
a) /home/sstomar/nzdt/diverma/zd/create_table.sh
b) sqlplus apps/apps @/home/sstomar/nzdt/diverma/zd/adzdprps.pls
c) sqlplus apps/apps @/home/sstomar/nzdt/diverma/zd/adzdprpb.pls
d) sqlplus apps/apps @/home/sstomar/nzdt/diverma/zd/adchk.sql
---------------------------------------------------------
-- For NZDT scripts : Login to system as ORA use ( ssh - ORA user)
-- And run scripts SYSTEM user or SYSDBA
As of now I haven't written the sql to see which task is running but from
DB side you can run :
select sql_fulltext from v$sql where sql_id in ( select sql_id from v$
session where osuser= '<Oracle Username>' );
select message from v$session_longops where sofar<>TOTALWORK;
To check which sql db is running.
If workers are not running in Autoskip mode then if their are failures for
a utility then all workers shall
come out and either you need to fix the issue and mark those ddl either as
'Not assigned'
(if you want to re-run them) or mark 'AUTOSKIP' ='Y' if you want to skip t
hat DDL.
And then re-run : /home/diverma/public_html/zd/run_execsql.pl to invoke wo
rkers.
To skip all failed tasks
update ad_zd_ddl_handler set autoskip = 'Y' where executed = 'F';
commit;
To skip a particular task :
update ad_zd_ddl_handler set autoskip = 'Y' where executed = 'F' where ddl
_id = <ddl_id>;
commit;
To know what all tasks have failed and what error, run :
set long 300
select sql,error from ad_zd_ddl_handler where executed = 'F' order by util
ity_id, batch_id, ddl_id;
Important note: I am creating simple views instead of Materialized views s
ince the latter is not able to finish in infinite time. If you want to create MV
s then :
uncomment line : 173 and 178
comment line :174
in /home/diverma/public_html/zd/adzdprpb.pls
4) In AQs we can not add columns directly, so we have to enable the trace to m
aks any kind of exceptions being thrown from DB
-- Enable Trace
-- Add a Queue
--
================================================================================
================
OPEN Issues
---------
1) CTXSYS indexesx
2) Objects PL/SQL packages belong to CTXSYS schema
-------------
- Hot patching Detail?
-
---- new script at Dinesh Home which just takes the rows only for that utility_i
d instead of querying all (cursor) all the rows.