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

Launching oracle jobs from oledb

 
   Database Help (Home) -> Programming RSS
Next:  Error while trying to connect to SQL 2005 from AS..  
Author Message
jobs

External


Since: Dec 15, 2006
Posts: 44



(Msg. 1) Posted: Sat Feb 03, 2007 2:17 pm
Post subject: Launching oracle jobs from oledb
Archived from groups: microsoft>public>sqlserver>programming (more info?)

perhaps the wrong group, but I suspect somebody here has tried it...

Greetings.

I have a vb.net oledb procedure that can schedules an oracle procedure
to run and returns to me an oracle job number.

It looks like this:

FUNCTION CPM_SUBMIT (iprocname in varchar)
return number
is
jobno number;
BEGIN
DBMS_JOB.SUBMIT(jobno,iprocname||';',sysdate);
commit;
return (jobno);
END;



we are still in the design phase for an asp.net front end that will
manage both sqlserver and oracle processes. Nothing too fancy, looking
more for easy than features.


We need Oracle output, both the extracts and the any execution logs to
be accessable to this asp.net front end and the sql server databases
that will track processes. In the mix (soon), will be a new NAS access
able to both sides.

My Oracle Noobie questions - Your insite is greatly appreciated!!!

1. Any crafty way for us to to spool execution logs to files that
contain the oracle job number? from inside or outside the sp? can the
sp be aware of the job number it's running as?

2. Is it worth our time and performance to looking into changing
oracle sp extracts to write direct sql server tables? If so, at a high
level how?

3. The above SP is sitting inside a particular database schema. Say we
might want to launch sps on other Oracle databases/schemas/servers..
what would be the best way to attack that? Im thinking worse case we
have to leave a copy of that sp on every database. I have not tried
from ado.net, but I don't think I can run DBMS_JOB.SUBMIT outside of
an sp or function. Or maybe construct the sp (or job if such a thing
exsist in oracle) on the fly which is the way we are doing it in sql
server.

Again, thank you for *any* information you might have!

 >> Stay informed about: Launching oracle jobs from oledb 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
msdb..sp_start_job Launching NOW and getting Instance_Id b.. - I have sql server job defined, it currently does not have a schedule defined. In t-sql, how can I launch the job the instantly and get back Instance_Id or something that I can use to check to see if the job is running or finished in a later step?

problem using oledb + informix - Hi all. I have a problem writing a table on informix (IDS 10.0) using a linked server on SqlServer Express: This is the insert: INSERT INTO unixdb1.practor.informix.ven_rilcld (rilcld_rilcld,rilcld_entazi, rilcld_numter, rilcld_codbar, rilcld_qta, ..

openrowset and jet.oledb - Please help, since the introduction of SQL2005 the default mode for opening access mdb databases with Openrowset appears to be in exclusive open mode I wish to open the database in share mode so the other (non net) ADO threads can open the database at....

Microsoft.Jet.OLEDB.4.0 - Error - Hi, I am using SQL Server 2005 (SP1) on Windows Server 2003 EE (SP1). I get following error while accessing Excel or Text file data sources with OPENROWSET or OpenDataSource and Microsoft.Jet.OLEDB.4.0: From SQLAgent Job Log file: Cannot initialize....

Need a deadly row lock through oledb - Hi, I might have asked this before, but since SQL 2005 was there, MS strongly modified locking in favor of scalability. I never got an answer that solved the problem. I have an app that really needs to lock a certain row to be locked so that other..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
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 ]