The procedure, getJobInfo gets the important job information by giving a job id as input. All the important information is printed in below the api.
PROCEDURE getJobInfo (pi_nJobId IN NUMBER)
IS
vc_return_status VARCHAR2(1);
vn_msg_count NUMBER;
vc_msg_data VARCHAR2(4000);
vr_job_rec CDR_JOBS_V%ROWTYPE;
vr_sub_rec CDR_SUBMISSIONS_V%ROWTYPE;
BEGIN
cdr_pub_exe_runtime.getjobinfo(P_API_VERSION => 1
,P_INIT_MSG_LIST => CDR_PUB_DEF_CONSTANTS.G_FALSE
,P_COMMIT => CDR_PUB_DEF_CONSTANTS.G_FALSE
,P_VALIDATION_LEVEL => CDR_PUB_DEF_CONSTANTS.G_VALID_LEVEL_FULL
,X_RETURN_STATUS => vc_return_status
,X_MSG_COUNT => vn_msg_count
,X_MSG_DATA => vc_msg_data
,PI_NJOBID => pi_nJobId
,PO_RSUBMISSION_V => vr_sub_rec
,PO_RJOB_V => vr_job_rec
);
IF vc_return_status <> 'S'
THEN
print('ERROR: error occured in cdr_pub_exe_runtime.getjobinfo'||vc_msg_data);
display_api_errors;
END IF;
print('vr_job_rec.company_id : '||vr_job_rec.company_id);
print('vr_job_rec.obj_id : '||vr_job_rec.obj_id);
print('vr_job_rec.obj_ver : '||vr_job_rec.obj_ver);
print('vr_job_rec.namespace_obj_id : '||vr_job_rec.namespace_obj_id);
print('vr_job_rec.namespace_obj_ver : '||vr_job_rec.namespace_obj_ver);
print('vr_job_rec.namespace_name : '||vr_job_rec.namespace_name);
print('vr_job_rec.prref_id : '||vr_job_rec.prref_id);
print('vr_job_rec.prref_ver : '||vr_job_rec.prref_ver);
print('vr_job_rec.master_prref_id : '||vr_job_rec.master_prref_id);
print('vr_job_rec.full_reload_flag_rc : '||vr_job_rec.full_reload_flag_rc);
print('vr_job_rec.blind_break_flag_rc : '||vr_job_rec.blind_break_flag_rc);
print('vr_sub_rec.execution_setup_obj_id: '||vr_sub_rec.execution_setup_obj_id);
print('vr_sub_rec.execution_setup_obj_ver: '||vr_sub_rec.execution_setup_obj_ver);
print('vr_sub_rec.wa_obj_id : '||vr_sub_rec.wa_obj_id);
print('vr_sub_rec.force_execution_flag_rc: '||vr_sub_rec.force_execution_flag_rc);
print('vr_sub_rec.execution_priority_rc : '||vr_sub_rec.execution_priority_rc);
EXCEPTION
WHEN OTHERS THEN
print('ERROR: '||SUBSTR(SQLERRM,1,200));
END getJobInfo;
Showing posts with label LSH bugs. Show all posts
Showing posts with label LSH bugs. Show all posts
Thursday, December 15, 2011
How to get a Job Info in LSH?
Labels:
job,
job info,
life sciences data hub,
lsh,
LSH bugs,
lsh job,
lsh job info,
lsh jobs,
LSH program,
Oracle LSH Programming,
Oracle PLSQL,
oraclelsh,
PLSQL
Tuesday, December 13, 2011
New Bug in LSH ver 2.1.4.4
It looks like there is a bug in LSH 2.1.4.4 w.r.t installations.
Bug Description:
If you install a program instance, it is getting installed 2 times. In the installation history, you will be able to see 2 installations. This causing each installation time to be more than 30 minutes.
At the end of the installation, it is not showing the message like ‘The program installed successfully.’. But the LSH instance freezes and you will not be able to navigate further.
Currently, I observed this behavior w.r.t program instances only. This issue does not occur with table instances’ installation.
IMPACT:
This will have serious impact on the performance.
Bug Description:
If you install a program instance, it is getting installed 2 times. In the installation history, you will be able to see 2 installations. This causing each installation time to be more than 30 minutes.
At the end of the installation, it is not showing the message like ‘The program installed successfully.’. But the LSH instance freezes and you will not be able to navigate further.
Currently, I observed this behavior w.r.t program instances only. This issue does not occur with table instances’ installation.
IMPACT:
This will have serious impact on the performance.
Labels:
installation,
life sciences,
life sciences data hub,
lsh,
LSH bugs,
oracle,
oraclelsh
Subscribe to:
Posts (Atom)