Sei sulla pagina 1di 2

1. Importing Autosys profile.

After loggin into the DB server, run the below com


mand.
2.
To Verify
draco:/ngs/app/ibdmt->
draco:/ngs/app/ibdmt->jr
Job
draco:/ngs/app/ibdmt->.
Name
whether the Autosys/ngs/lpp/autosyst/autouser/autosys.ksh.*
ibdm%
is imported
Lastfine.
Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_report_bbb_load
___
----10/27/2008 01:47:11 F
A 66585276/5
ibdm_m_c_cob_ww
-655
--------I
N 0/0 ibdm_t_c_refersh_stg_config 10/27/2008 18:30:10 10/27/2008 18:30:13 F
A 66622065/1
3.
To seecommand:
draco:/ngs/app/ibdmt->
draco:/ngs/app/ibdmt->jr
/*
insert_job:
the
----------------1job$AUTOUSER/monitor/bin/wrapper
description
ibdm_t_c_refersh_stg_config
ibdm_t_c_refersh_stg_config
of ibdm_t_c_refersh_stg_config
the existing job.
/ngs/app/ibdmt/scripts/ksh/ibdm_c
job_type:
----------------c-q
*/
onfig /ngs/app/ibdmt/scripts/ksh/ibdm_wrapper.ksh ibdm_refersh_master_data STG_C
ONFIGURATIONS_IBF
4.
To seeJob
machine:
#owner:
permission:
date_conditions:
days_of_week:
start_mins:
condition:
description:
max_run_alarm:
alarm_if_fail:
profile:
draco:/ngs/app/ibdmt->
draco:/ngs/app/ibdmt->jr
theName
last
ibdmt@draco
draco
/ngs/lpp/autosyst/autouser/auto.profile.tst
2VALUE(draco)=up
runtime
gx"This
00,30
all
1201 job
/ status
starts
ibdm_t_c_refersh_stg_config
AND
ofonSUCCESS(ibdm_t_c_refersh_stg_config)
a Last
all
job days
Startat 00 and 30thLast
minute"
End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_stg_config
___
10/27/2008 18:30:10 10/27/2008 18:30:13 F
A 66622065/1
5.
To create
draco:/ngs/app/ibdmt->
Type
jil
a1 new
'RU',
'ST',
'SU',
'FA',
'OI',
'IN',
'AC',
'OH',
'TE',
andjob:
hit=>enter.
running
starting
success
failure
inactive
activated
on
terminated
iceAnd copy paste the Jil file content to the termi
hold
nal.
jil>>1>
draco:/ngs/app/ibdmt/log->jil
Type exit/*when
----------------all the jil file
ibdm_t_c_refersh_fiscal_day
contents are pasted.
---------------- */ /* This job is to refresh the FISCAL_DAY_IBF mview. Log file name <refre
sh tablecommand:
insert_job:
name >_<timestamp>.log
$AUTOUSER/monitor/bin/wrapper
ibdm_t_c_refersh_fiscal_day
*/
/ngs/app/ibdmt/scripts/ksh/ibdm_c
job_type: c
onfig /ngs/app/ibdmt/scripts/ksh/ibdm_wrapper.ksh ibdm_refersh_master_data FISCA
L_DAY_IBFjil>>2>
#owner:
permission:
date_conditions:
days_of_week:
start_times:
condition:
description:
max_run_alarm:
alarm_if_fail:
profile:
machine:jil>>3>
ibdmt@draco
/ngs/lpp/autosyst/autouser/auto.profile.tst
draco
VALUE(draco)=up
gx"This
"19:30"
all
120jil>>4>
1 job starts
jil>>5>
ANDonSUCCESS(ibdm_t_c_refersh_fiscal_day)
jil>>6>
all daysjil>>7>
at 19:30
jil>>8>
PDT" jil>>9> jil>>10>
jil>>11>________________________________________________________________________
jil>>19>
jil>>12>exit
jil>>13> jil>>14> jil>>15> jil>>16> jil>>17> jil>>18>
______ ________________________________________________________________________
Scheduled:
Database
Insert/Updating
Change
10/27/2008
WAS
Job:Successful!
ibdm_t_c_refersh_fiscal_day
19:45:00
______ ________________________________________________________________________
Exit Code = 0
______
6.
Updatedraco:/ngs/app/ibdmt/log->
an existing
Here ijob:
am updating the previous job. The only change is - instea
d of insert_job,we
Theneed
pervious
to usestart
update_job
times ofcommand.
the job was 19:30. By the below,i am
udpatingdraco:/ngs/app/ibdmt/log->jil
jil>>1>
the same
/* ----------------to 19:45.
ibdm_t_c_refersh_fiscal_day ---------------- */ /* This job is to refresh the FISCAL_DAY_IBF mview. Log file name <refre
sh tablecommand:
update_job:
name >_<timestamp>.log
$AUTOUSER/monitor/bin/wrapper
ibdm_t_c_refersh_fiscal_day
*/
/ngs/app/ibdmt/scripts/ksh/ibdm_c
job_type: c
onfig /ngs/app/ibdmt/scripts/ksh/ibdm_wrapper.ksh ibdm_refersh_master_data FISCA
L_DAY_IBFjil>>2>
#owner:
permission:
date_conditions:
days_of_week:
start_times:
condition:
description:
max_run_alarm:
alarm_if_fail:
profile:
machine:jil>>3>
ibdmt@draco
/ngs/lpp/autosyst/autouser/auto.profile.tst
draco
VALUE(draco)=up
gx"This
"19:45"
all
120jil>>4>
1 job starts
jil>>5>
ANDonSUCCESS(ibdm_t_c_refersh_fiscal_day)
jil>>6>
all daysjil>>7>
at 19:45
jil>>8>
PDT" jil>>9> jil>>10>
jil>>11>________________________________________________________________________
jil>>19>
jil>>12>exit
jil>>13> jil>>14> jil>>15> jil>>16> jil>>17> jil>>18>
______ ________________________________________________________________________
Scheduled:
Database
Insert/Updating
Change
10/27/2008
WAS
Job:Successful!
ibdm_t_c_refersh_fiscal_day
19:45:00
______ ________________________________________________________________________
Exit Code = 0
______ Job
draco:/ngs/app/ibdmt/log->jr
draco:/ngs/app/ibdmt/log->
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
--------I
N 0/0
7.
How todraco:/ngs/app/ibdmt/log->sendevent
draco:/ngs/app/ibdmt/log->
make the job sucess manually.
-E CHANGE_STATUS -s SUCCESS -J ibdm_
t_c_refersh_fiscal_day
draco:/ngs/app/ibdmt/log->jr
Job
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
----10/27/2008 18:55:22 S
U 0/0
8.
How toJob
draco:/ngs/app/ibdmt/log->jr
force
Namestart the job:
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
--------S
T 66623038/1
draco:/ngs/app/ibdmt/log->jr
Job
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
10/27/2008 18:56:59 10/27/2008 18:57:04 F
A 66623038/1
9.
How to'se'
putis
1theanjobs
aliasonfor
HOLD.
'sendevent -E'. you could use either se or sendeven
t -E
draco:/ngs/app/ibdmt/log->jr
Job
draco:/ngs/app/ibdmt/log->se
Name
ibdm_t_c_refersh_fiscal_day
JOB_ON_HOLD
Last Start
-J ibdm_t_c_refersh_fiscal_day
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
10/27/2008 18:56:59 10/27/2008 18:57:04 O
H 66623038/1
10.
How draco:/ngs/app/ibdmt/log->sendevent
draco:/ngs/app/ibdmt/log->
to put1 the jobs OFF HOLD.
-E JOB_OFF_HOLD -J ibdm_t_c_refersh_
fiscal_day
Job
draco:/ngs/app/ibdmt/log->jr
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
10/27/2008 18:56:59 10/27/2008 18:57:04 I
N 66623038/1
11.
How draco:/ngs/app/ibdmt/log->sendevent
draco:/ngs/app/ibdmt/log->
to stop
1 or kill the job.
-E KILLJOB -J ibdm_t_c_refersh_fisca
l_day Job
draco:/ngs/app/ibdmt/log->jr
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
10/27/2008 19:02:16 10/27/2008 19:02:20 F
A 66623390/1
12.
How to see1 the last 5 runtime of a job. Copy paste the below lines into the
terminal.do
jr
foribdm_t_c_refersh_fiscal_day
i in 0 1 2 3 4
-l0 -r -$i -d | grep ibdm_t_c_refersh_fis
cal_day >draco:/ngs/app/ibdmt/log->
done
do ibdm_t_c_refersh_fiscal_day
jr
for i in-l00 -r
1 2-$i
3 4-d | grep ibdm_t_c_ref
ersh_fiscal_day
>
ibdm_t_c_refersh_fiscal_day
done
10/27/2008 19:02:16 10/27/2008 19:02:20 F
A 66623390/1
ibdm_t_c_refersh_fiscal_day
1
10/27/2008 19:01:31 10/27/2008 19:01:38 S

U 66623368/1
ibdm_t_c_refersh_fiscal_day 10/27/2008 18:56:59 10/27/2008 19:01:24 T
E 66623038/1
13.
How draco:/ngs/app/ibdmt/log->sendevent
ibdm_t_c_refersh_fiscal_day
draco:/ngs/app/ibdmt/log->
to inacivate
9
the job.
Does -E
notCHANGE_STATUS
have a run 43 -s
times
INACTIVE
back! -J ibdm
_t_c_refersh_fiscal_day
draco:/ngs/app/ibdmt/log->jr
Job
Name
ibdm_t_c_refersh_fiscal_day
Last Start
Last End
S
T Run ____________________________
Pri/Xit
____________________ ____________________ _
_ _______ibdm_t_c_refersh_fiscal_day
___
10/27/2008 19:02:16 10/27/2008 19:02:20 I
N 66623390/0
14.
How draco:/ngs/app/ibdmt/log->jil
draco:/ngs/app/ibdmt/log->
jil>>1>
This
to delete
differs
/*the
----------------from
job.Insert and ibdm_t_c_refersh_fiscal_day
update jobs only the keyword--------------"delete_job"
-- */ /* This job is to refresh the FISCAL_DAY_IBF mview. Log file name <refre
sh tablecommand:
delete_job:
name >_<timestamp>.log
$AUTOUSER/monitor/bin/wrapper
ibdm_t_c_refersh_fiscal_day
*/
/ngs/app/ibdmt/scripts/ksh/ibdm_c
job_type: c
onfig /ngs/app/ibdmt/scripts/ksh/ibdm_wrapper.ksh ibdm_refersh_master_data FISCA
L_DAY_IBFjil>>2>
#owner:
permission:
date_conditions:
days_of_week:
start_times:
condition:
description:
max_run_alarm:
alarm_if_fail:
profile:
machine:jil>>3>
ibdmt@draco
/ngs/lpp/autosyst/autouser/auto.profile.tst
draco
VALUE(draco)=up
gx"This
"19:45"
all
120jil>>4>
1 job starts
jil>>5>
ANDonSUCCESS(ibdm_t_c_refersh_fiscal_day)
jil>>6>
all daysjil>>7>
at 19:45
jil>>8>
PDT" jil>>9> jil>>10>
jil>>11>________________________________________________________________________
jil>>19>
jil>>12>exit
jil>>13> jil>>14> jil>>15> jil>>16> jil>>17> jil>>18>
______ ________________________________________________________________________
Delete
Attempting
was successful!
to Delete Job: ibdm_t_c_refersh_fiscal_day
______ ________________________________________________________________________
Exit Code = 0
______ draco:/ngs/app/ibdmt/log->

Potrebbero piacerti anche