dbTalk Databases Forums  

How to execute SQL when file lands

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss How to execute SQL when file lands in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mary
 
Posts: n/a

Default How to execute SQL when file lands - 02-28-2006 , 04:45 PM






I could really use some pointers. Here is the problem: I have a IBM MVS
process that when complete will FTP a single row file to a Windows or
AIX server. I need the data to be loaded into my Oracle DB that lives
on an AIX server. The work has no preset time of day or day of week and
could occur multiple times per day. I would prefer to not have a
process wake up every 30 minutes (like a cron for example) to process
the row. Don't want to wait as much as 29 minutes for the data to be
handled nor do I want to run the process 48 times per day if there is
nothing to process.

I've toyed with the idea of trying to get the infrastructure in place
that would allow me to write a program to run on the mainframe that
would just update the AIX Oracle table directly. I think I would make
use of the PRO*yourlanguagehere but will have to get that preprocessor
installed as well as other systems level "stuff" to make this work.
Seems like a lot of work and (for my shop) red tape to work thru for a
simple update.

Any other ideas would be very welcome.

Thanks


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: How to execute SQL when file lands - 02-28-2006 , 05:06 PM






Mary wrote:
Quote:
I could really use some pointers. Here is the problem: I have a IBM MVS
process that when complete will FTP a single row file to a Windows or
AIX server. I need the data to be loaded into my Oracle DB that lives
on an AIX server. The work has no preset time of day or day of week and
could occur multiple times per day. I would prefer to not have a
process wake up every 30 minutes (like a cron for example) to process
the row. Don't want to wait as much as 29 minutes for the data to be
handled nor do I want to run the process 48 times per day if there is
nothing to process.

I've toyed with the idea of trying to get the infrastructure in place
that would allow me to write a program to run on the mainframe that
would just update the AIX Oracle table directly. I think I would make
use of the PRO*yourlanguagehere but will have to get that preprocessor
installed as well as other systems level "stuff" to make this work.
Seems like a lot of work and (for my shop) red tape to work thru for a
simple update.

Any other ideas would be very welcome.

Thanks
If the file name is identical build an external table. Use DBMS_JOB
or DBMS_SCHEDULER to check for modification.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)


Reply With Quote
  #3  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: How to execute SQL when file lands - 02-28-2006 , 05:07 PM




"Mary" <mary.steelman (AT) gmail (DOT) com> wrote

:I could really use some pointers. Here is the problem: I have a IBM MVS
: process that when complete will FTP a single row file to a Windows or
: AIX server. I need the data to be loaded into my Oracle DB that lives
: on an AIX server. The work has no preset time of day or day of week and
: could occur multiple times per day. I would prefer to not have a
: process wake up every 30 minutes (like a cron for example) to process
: the row. Don't want to wait as much as 29 minutes for the data to be
: handled nor do I want to run the process 48 times per day if there is
: nothing to process.
:
: I've toyed with the idea of trying to get the infrastructure in place
: that would allow me to write a program to run on the mainframe that
: would just update the AIX Oracle table directly. I think I would make
: use of the PRO*yourlanguagehere but will have to get that preprocessor
: installed as well as other systems level "stuff" to make this work.
: Seems like a lot of work and (for my shop) red tape to work thru for a
: simple update.
:
: Any other ideas would be very welcome.
:
: Thanks
:

what version of oracle? what file format?

you should be able to ftp the file directly into the database's XDB
repository, and (theoretically) have that trigger the necessary database
processing -- fairly simple to do if the file can be in XML format

++ mcs



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.