473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

spawning/launching a stored procedure as a seperate process? fork?, thread?

Im writing an SSIS script task using VB.NET. I'd like to be able to
initiate an oracle stored procedure call for a process that will run
for 8 hours, but I don't want my process to wait for it finish. In
fact, I'd like the ssis job to terminate after it launches it.

How can I do this using vb.net/ado.net?

How can I later electronically locate and track that process?

Thanks for any help or information.

Jan 5 '07 #1
6 3734
get a real database; there isn't a stored procedure in the WORLD that
should take 8 hours

maybe if you weren't using an obsolete database like Oracle then you
wouldn't have an issue like this in the first place

-Aaron
jobs wrote:
Im writing an SSIS script task using VB.NET. I'd like to be able to
initiate an oracle stored procedure call for a process that will run
for 8 hours, but I don't want my process to wait for it finish. In
fact, I'd like the ssis job to terminate after it launches it.

How can I do this using vb.net/ado.net?

How can I later electronically locate and track that process?

Thanks for any help or information.
Jan 5 '07 #2
aa*********@gmail.com wrote:
get a real database; there isn't a stored procedure in the WORLD that
should take 8 hours
It's not the database .. it's bad code.. but thats not my assignment
and moving a shop entrenched in Oracle to another platform takes a
massive commitment all the way from the top. I've heard of good shops
taking years and doubling developers to make that kind of move. In a
perfect world companies pick a single standard (any standard even a bad
one) and all decisions are made with that in mind. I'm yet to work in
such a dream shop.

Anyway to address my question? Lets pretend the SP is perfect and only
runs for 30 mintues. :)

Jan 5 '07 #3
You can use Oracle's DBMS_JOBS library to schedule jobs for immediate background
execution. SSIS sometimes frowns on multi-statement commands, so depending
on how you start up the command, you might need to wrap up your DBMS_JOBS
logic in a stored procedure. The DBMS_JOBS.SUBMIT() function returns a job
number value. You can monitor this job number by querying the DBA_JOBS, USER_JOBS,
or DBA_JOBS_RUNNING views.

-----
Tim Patrick - www.timaki.com
Start-to-Finish Visual Basic 2005
Im writing an SSIS script task using VB.NET. I'd like to be able to
initiate an oracle stored procedure call for a process that will run
for 8 hours, but I don't want my process to wait for it finish. In
fact, I'd like the ssis job to terminate after it launches it.

How can I do this using vb.net/ado.net?

How can I later electronically locate and track that process?

Thanks for any help or information.

Jan 5 '07 #4
Tim Patrick wrote:
You can use Oracle's DBMS_JOBS library to schedule jobs for immediate background
execution. SSIS sometimes frowns on multi-statement commands, so depending
on how you start up the command, you might need to wrap up your DBMS_JOBS
logic in a stored procedure. The DBMS_JOBS.SUBMIT() function returns a job
number value. You can monitor this job number by querying the DBA_JOBS, USER_JOBS,
or DBA_JOBS_RUNNING views.
Sounds promising. would you know, is it possible to schedule an SP
through a generic job, or turn it into a job on the fly? or do jobs
have to be configured up front?

Thank you!

Jan 5 '07 #5
its' easy to shell_no_wait; you should look at www.freevbcode.com

it should be about 2 minutes to figure out the API call and call it
from .NET

shell something to start the execution of the sproc on the oracle side

-Aaron
jobs wrote:
Tim Patrick wrote:
You can use Oracle's DBMS_JOBS library to schedule jobs for immediate background
execution. SSIS sometimes frowns on multi-statement commands, so depending
on how you start up the command, you might need to wrap up your DBMS_JOBS
logic in a stored procedure. The DBMS_JOBS.SUBMIT() function returns a job
number value. You can monitor this job number by querying the DBA_JOBS, USER_JOBS,
or DBA_JOBS_RUNNING views.

Sounds promising. would you know, is it possible to schedule an SP
through a generic job, or turn it into a job on the fly? or do jobs
have to be configured up front?

Thank you!
Jan 6 '07 #6
DBMS_JOBS.SUBMIT is just an ordinary function, accepting the command to run
and the start time as strings, and returning the job number as an out-parameter.
I guess you could just call it directly from your code. I'm just don't know
SSIS that well; that's why I suggested the stored procedure. If you're going
to call it directly from some .NET code, you can just use .NET's standard
ways of communicating with stored procedures/parameters.

-----
Tim Patrick - www.timaki.com
Start-to-Finish Visual Basic 2005
Tim Patrick wrote:
>You can use Oracle's DBMS_JOBS library to schedule jobs for immediate
background
execution. SSIS sometimes frowns on multi-statement commands, so
depending
on how you start up the command, you might need to wrap up your
DBMS_JOBS
logic in a stored procedure. The DBMS_JOBS.SUBMIT() function returns
a job
number value. You can monitor this job number by querying the
DBA_JOBS, USER_JOBS,
or DBA_JOBS_RUNNING views.
Sounds promising. would you know, is it possible to schedule an SP
through a generic job, or turn it into a job on the fly? or do jobs
have to be configured up front?

Thank you!

Jan 6 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lauren Quantrell | last post by:
Just wondering if this is good form: Alter Procedure "mySPName" @UniqueID int AS set nocount on set xact_abort off DELETE FROM tblNameOne
2
by: Dave Kirby | last post by:
I am working on a network management program written in python that has multiple threads (typically 20+) spawning subprocesses which are used to communicate with other systems on the network. This...
3
by: belgiozen | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it takes a lot of time(about 10 minutes) to run the...
5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
0
by: Nico Kruger | last post by:
I want to execute a command (in this case, and it seems to be significant, a Java program) in a thread in Python. When I execute the java binary in the main python thread, everything runs...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
0
by: DR | last post by:
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers memory limits? e.g. lets say my clr stored...
12
by: bhunter | last post by:
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's...
2
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.