Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Triggers and Window Service

 
   Database Help (Home) -> Oracle RSS
Next:  Search using a VarBinary  
Author Message
LuAnn

External


Since: Feb 22, 2005
Posts: 3



(Msg. 1) Posted: Tue Feb 22, 2005 1:23 pm
Post subject: Triggers and Window Service
Archived from groups: comp>databases>oracle>misc (more info?)

Hi,
Is there a way to create an oracle Trigger that will start a window
service? I am trying to get the service away from running a timer.
Running Oracle 9i and windows 2K or XP

Thanks

 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
DA Morgan

External


Since: Oct 17, 2004
Posts: 115



(Msg. 2) Posted: Tue Feb 22, 2005 2:00 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LuAnn wrote:

 > Hi,
 > Is there a way to create an oracle Trigger that will start a window
 > service? I am trying to get the service away from running a timer.
 > Running Oracle 9i and windows 2K or XP
 >
 > Thanks

Please explain what it is you are doing with more clarity. I can not
cipher "trying to get the service away from running a timer."

--
Daniel A. Morgan
University of Washington
damorgan.DeleteThis@x.washington.edu
(replace 'x' with 'u' to respond)<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
LuAnn

External


Since: Feb 22, 2005
Posts: 3



(Msg. 3) Posted: Tue Feb 22, 2005 2:20 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Without going into too much detail, there is a data entry program that
writes to the database. A service is running that fires every 4 mins
to see if there are any unprocessed rows in its defined table. If
there is, it handles the necessary data manipulation to send the
information outside of the database to be pickup by our external
vendors. As timing is critical for this process, I am trying to find
out if a trigger can be written to fire the service. This will
eliminate the up to 7 minute delay to send this information. Let me
know if you need more detail.
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
LuAnn

External


Since: Feb 22, 2005
Posts: 3



(Msg. 4) Posted: Tue Feb 22, 2005 2:58 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, the information needed for the external vendors can be selected
by SQL but the information is presented for the vendors in a variety of
ways (tagged flat file, XML and in a view) I am limited by the vendor
as to the method of presenting the information. The view is simple.
It is the creating of the tagged files that have my concern. FTP or
mail is not an option. Any other suggestions?

Thanks
LuAnn
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
Malcolm Dew-Jones

External


Since: Aug 05, 2003
Posts: 303



(Msg. 5) Posted: Tue Feb 22, 2005 3:12 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LuAnn (bearpackexpress@hotmail.com) wrote:
: Well, the information needed for the external vendors can be selected
: by SQL but the information is presented for the vendors in a variety of
: ways (tagged flat file, XML and in a view) I am limited by the vendor
: as to the method of presenting the information. The view is simple.
: It is the creating of the tagged files that have my concern. FTP or
: mail is not an option. Any other suggestions?

The database can write the data out in various ways. Though I have never
done this, I understand you can write a file into the server's file space
directly from sql running on the server.

So - your trigger outputs anything to the file system. The windows
service monitors the file system. A windows system function can wake your
windows service whenever a file appears in a directory. I don't know the
call to do that, but am pretty sure such a call exists.

When your service wakes then it looks up the data (or reads it from the
file itself if that makes sense) and does what it needs to do.



--

This space not for rent.
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
Niall Litchfield1

External


Since: Jan 20, 2004
Posts: 25



(Msg. 6) Posted: Tue Feb 22, 2005 5:40 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"LuAnn" <bearpackexpress RemoveThis @hotmail.com> wrote in message
news:1109107224.509508.241380@g14g2000cwa.googlegroups.com...
 > Without going into too much detail, there is a data entry program that
 > writes to the database. A service is running that fires every 4 mins
 > to see if there are any unprocessed rows in its defined table. If
 > there is, it handles the necessary data manipulation to send the
 > information outside of the database to be pickup by our external
 > vendors. As timing is critical for this process, I am trying to find
 > out if a trigger can be written to fire the service. This will
 > eliminate the up to 7 minute delay to send this information. Let me
 > know if you need more detail.

If the data manipulation can be done in SQL and the data needs to be sent
via mail or ftp then yes it can be done. I believe that this probably
answers you in the level of detail you require given your expanded question.


--
Niall Litchfield
Oracle DBA
<a style='text-decoration: underline;' href="http://www.niall.litchfield.dial.pipex.com" target="_blank">http://www.niall.litchfield.dial.pipex.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
Mark C. Stock

External


Since: Dec 06, 2003
Posts: 31



(Msg. 7) Posted: Tue Feb 22, 2005 5:40 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"LuAnn" <bearpackexpress RemoveThis @hotmail.com> wrote in message
news:1109109501.884977.205020@g14g2000cwa.googlegroups.com...
 > Well, the information needed for the external vendors can be selected
 > by SQL but the information is presented for the vendors in a variety of
 > ways (tagged flat file, XML and in a view) I am limited by the vendor
 > as to the method of presenting the information. The view is simple.
 > It is the creating of the tagged files that have my concern. FTP or
 > mail is not an option. Any other suggestions?
 >
 > Thanks
 > LuAnn
 >

how are the datasets transported to or picked up by the vendor? files?

formatting should be no problem with a PL/SQL procedure, which can easily
output to a fie (UTL_FILE) or directly to the web (if you're using AS or
HTMLDB)

++mcs<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
DA Morgan

External


Since: Oct 17, 2004
Posts: 115



(Msg. 8) Posted: Tue Feb 22, 2005 10:43 pm
Post subject: Re: Triggers and Window Service [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LuAnn wrote:

 > FTP or mail is not an option. Any other suggestions?
 >
 > Thanks
 > LuAnn

This is not an appropriate response on your part if you are asking
others for help. Instead of telling us what isn't an option ... tell
us what is.

One simple solution is DBMS_PIPE and write whatever you want in C.

Personally I think you entire design doesn't make business sense.
It may be technically feasible but why any delay at all? Why not
real-time?
--
Daniel A. Morgan
University of Washington
damorgan RemoveThis @x.washington.edu
(replace 'x' with 'u' to respond)<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Triggers and Window Service 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Triggers, UTL_TCP - Hi, I've encountered a problem that is caused by lack of my Oracle knowledge. Please help Here are details: I've got a java TCP/IP based server that listens on specified port. In my row-level type triggers (delete action) I connect to the server using...

What is the OracleCSService service? - Could someone tell me what the OracleCSService service does, and when its needed? I have a batch file that starts and stops a local database on my (windows) PC, and this service I set (once off) by hand to manual start/stop, and stopped the service. I..

Replacing a subselect with Collections - Hi all oracle users, I have a cursor which fetches a few thousand records. Inside it I have a subselect which is used for decoding one field. CURSOR snap_crs IS SELECT decode (snap.id, 1, (select code_ptr from anag_ptr where desc_ptr =..

how to refresh a sequence - How could I refresh a sequence in Oracle using an SQL statement? I've got the problem, that the current number of a sequence is less the highest index in a table, where I want to use the sequence. Regards, Robert

Using NonUnique Index to Enforce Uniqueness - Oracle manual describes using non unique index to enforce unique constraint so that the index will not be dropped with constraint is diabled. But I dont understand why non unique index can enforce uniqueness?
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]