473,378 Members | 1,354 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,378 software developers and data experts.

Oracle query.

16
I have a SP which stores data in a table, What I want is that whenever data is stored, another SP fires and collects data. But the first SP should not blocked.

I cannot use Trigger on that table and call the second SP from it.

Is there any means in oracle to have this?

Thanks.
Sep 18 '08 #1
4 1334
amitpatel66
2,367 Expert 2GB
I assume what you are looking at is when the secound procedure is called from the first, then first should continue its operation without waiting for second procedure to complete?

In this case, make use of PRAGMA AUTONOMOUS TRANSACTION in the second procedure. This should help.
Sep 18 '08 #2
saby
16
I assume what you are looking at is when the secound procedure is called from the first, then first should continue its operation without waiting for second procedure to complete?

In this case, make use of PRAGMA AUTONOMOUS TRANSACTION in the second procedure. This should help.

Thanks for the reply.
What I want to do is, the 1st procedure will keep a data in a table. And this data whenever comes to the table, acts as an event to fire the second procedure. But the two procedure runs independently.
I will try your advice.
Sep 18 '08 #3
amitpatel66
2,367 Expert 2GB
Thanks for the reply.
What I want to do is, the 1st procedure will keep a data in a table. And this data whenever comes to the table, acts as an event to fire the second procedure. But the two procedure runs independently.
I will try your advice.
Yes, in that case, just insert the data in the table in proc1, and commit and then call the second proc, and as i said include the PRAGMA AUTONOMOUS TRANSACTION in the second procedure
Sep 18 '08 #4
saby
16
Yes, in that case, just insert the data in the table in proc1, and commit and then call the second proc, and as i said include the PRAGMA AUTONOMOUS TRANSACTION in the second procedure
well, I want the second proc to be called automatically when data goes to the table. can I use trigger or in that case the 1st proc will be blocked.
Sep 18 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: francis70 | last post by:
Hi, I have these 2 problem? Is there a way in Oracle to read UNCOMMITED data. i.e. in Oracle the normal behaviour is that a user's updates to a table are visible to other users ONLY when the...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
1
by: Cern | last post by:
Is it somebody out there who has made a migration from an Oracle server to an MySQL server?? The scenario is as simply: I've got a Oracle 8 server with a database with content that I want to...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
8
by: Alfonso Esteban Gonzalez Sencion | last post by:
I am trying to use Access as a front end for extracting information from an Oracle database. I started using linked tables but I am getting a very curious behaviour. When I consult the linked...
4
by: robboll | last post by:
When I try to use an append query from an oracle link it takes forever. I am exploring the idea of doing an append action using a pass-through query. If I have an Oracle ODBC connection to...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Run multiple SQL statements from ASP/ADO to an Oracle 10g. Please help, I'm trying to write an ASP page to use ADO to run a long query against an Oracle 10g database, to create tables,...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.