IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Connecting Batch job with oracle db


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
barathirajavb

New User


Joined: 15 Feb 2008
Posts: 3
Location: chennai

PostPosted: Fri Feb 15, 2008 1:13 pm
Reply with quote

Hi

I'm running some 10 manual reports in oracle db (windows) daily, now i need to automate this process by running a batch job which will query against the oracle database and generate reports in flat files.

Could anyone suggest me an idea how to connect the job with oracle db ?

thanx
barathi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 15, 2008 2:03 pm
Reply with quote

Use the Oracle SQL*Plus utlity.
Back to top
View user's profile Send private message
barathirajavb

New User


Joined: 15 Feb 2008
Posts: 3
Location: chennai

PostPosted: Fri Feb 15, 2008 3:50 pm
Reply with quote

kevin

Currently i'm running this reports with Sql Plus utility, i need to automate this process by submitting a batch job which will query the oracle db and it should generate reports.

i have to run some 10 reports daily , so i thought of automating it.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 15, 2008 9:39 pm
Reply with quote

Maybe I'm missing something here. The only reason I originally responsed is because I was working on a very similar project a few weeks ago before I gave up on it.

SQL*Plus should exist as a PROC (ORASQL at my site) that you can use in your JCL. Provide it with the correct input for the TNSNAMES and SYSIN DD's and you should be able to do what you want:

Code:

//ORASQL   EXEC ORASQL,SSN=PGEN
//SYSERR   DD SYSOUT=*
//ORAPRINT DD SYSOUT=*
//TNSNAMES DD *
....
/*
//SYSIN    DD *
...
/*
Back to top
View user's profile Send private message
barathirajavb

New User


Joined: 15 Feb 2008
Posts: 3
Location: chennai

PostPosted: Mon Feb 18, 2008 3:56 pm
Reply with quote

hi kevin

i have done a search at my system libraries , but no such proc's or utilities were found , could u please let me know what were the utilities used in that proc...

thanx
barathi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Feb 21, 2008 8:04 pm
Reply with quote

That ORASQL proc executes the program PGM=SQLPLUS.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Batch install term/printer CICS 2
No new posts File Aid Batch IBM Tools 7
Search our Forums:

Back to Top