Oracle Event Based Job

I don't understand what those queue are in Oracle
and why event based job needs to use queue and agent?
anyone can explain it in a simple way?
Thank you!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wasim Akram ShaikCommented:
Queues are basically data structures.

Oracle has implemented queues in relational database model.

As you are aware that Queue logic is FIFO(First IN First Out) model.

To implement this in Database, Oracle has come up with this approach, QUEUE a combination of QUEUE+QUEUE_TABLE

QUEUE TABLE has all the records which is actual data, queue has some external parameters to manage out the FIFO concept.

mawinghoAuthor Commented:
that's make some sense to me now.
Ok, then why event based job need to enqueue before the database can raise an event?
slightwv (䄆 Netminder) Commented:
I think the docs have all the information you need:

>>then why event based job need to enqueue before the database can raise an event?

If it was backwards the triggering event would have nothing in queue for the event.  You need to queue up the message then trigger the event.
Wasim Akram ShaikCommented:

Why Events are needed in general is:

I will explain you a scenario,

Queues are used when there is an integration with external systems and the response from the other external system is asynchronous

 you will queue the data from your application and will send that data to other application/system by the interface and as we are unaware when the external system would respond we will place events.

Whenever the external system sends the response, the event gets generated and will dequeue the response and goes on for further processing.

This is the normal scenario where in the queues are used.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.