otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Database Administration Database installation, creation, administration and related topics.

Tags:

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old November 15th, 2007, 11:17
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
khushal is on a distinguished road
Send a message via Yahoo to khushal
How to run PL/SQL Package Procedure in OTM?

Hello Experts,

I have a client specific requirement for which I to run a pl/sql package procedure through the front-end. I have developed pl/sql package procedure for this but not able to call it through OTM front end. Now I want this backend package procedure to run from OTM front end. Further if possible I want to schedule this process (of running package procedure from front end) on daily basis so that there is no manual need to go in front end then run the package.

It would be great help if anyone knows the solution.

Waiting for your reply.



Thanks,
Khushal

Last edited by khushal : November 15th, 2007 at 11:21.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old November 15th, 2007, 11:30
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: How to run PL/SQL Package Procedure in OTM?

Hi

What is the requirement that needs to have a PL/SQL Procudure?
Having this level of customisation in OTM is not "Out of the Box" functionality and makes support difficult at best.

There are two ways of having a Procedure run regularly..
1) Oracle dbms job
2) Recurring Process in OTM
the later needing an object to reference in the data query so an agent event can be triggered.

Is there no way your requirements can be dealt with using automation agents?

Cheers
Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to cunninghamg For This Useful Post:
khushal (November 15th, 2007)
  #3 (permalink)  
Old November 15th, 2007, 11:54
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
khushal is on a distinguished road
Send a message via Yahoo to khushal
Re: How to run PL/SQL Package Procedure in OTM?

Hi Gary,
Thanks for the reply.
Yes as of now (to avoid any customization), I am trying to run package procedure through Automation agent. But while running the package procedure I am getting error. For this the process I am following is as follows:Let me know if I am doing something wrong in it.
1. In Agent Header, LOCATION - MODIFIED is given in Agent events.
2. In Actions>>Direct SQL Update
3. In SQL Statement "call XXPO_OTM_TEST_PKG.main"
4. In statement Type "Stored Procedure".

Now I am doing some update in Location and in the logs I am getting many debug level errors. Mainly error is of type:
PLS-00201: identifier 'XXPO_OTM_TEST_PKG.MAIN' must be declared

Whether I am following wrong procedure to call this package? What might be wrong?

Regarding second way of approach for run procedure regularly, how we can achieve it? Please let me know in details.

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old November 15th, 2007, 12:33
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: How to run PL/SQL Package Procedure in OTM?

Hi

Try prefixing the procedure with the schema owner.

like glogowner.XXPO_OTM_TEST_PKG.MAIN

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old November 15th, 2007, 12:54
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
khushal is on a distinguished road
Send a message via Yahoo to khushal
Re: How to run PL/SQL Package Procedure in OTM?

Tried same error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old November 15th, 2007, 13:02
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: How to run PL/SQL Package Procedure in OTM?

Hi

Make sure the procudure is declared in the Procedure Header Section

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old November 15th, 2007, 20:27
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 2
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
cheekythought is on a distinguished road
Re: How to run PL/SQL Package Procedure in OTM?

Hi,

Try through sql backdoor, if you can run the procedure by following command

exec <procedure name>

I think, you will get the same error as you are getting in the logs.

This will mean, you need to get the procedure corrected before triggering it through application [Automation agents]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old November 16th, 2007, 10:09
Senior Member and Blogger
 
Join Date: Dec 2006
Location: Singapore
Posts: 149
Blog Entries: 5
Thanks: 5
Thanked 11 Times in 10 Posts
Groans: 0
Groaned at 1 Time in 1 Post
Rep Power: 2
ianlo is on a distinguished road
Send a message via AIM to ianlo Send a message via Skype™ to ianlo
Re: How to run PL/SQL Package Procedure in OTM?

Hi Khushal,

Please also ensure that the stored procedure is granted execute priviledges to GLOGDBA.

Ian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old December 6th, 2007, 09:50
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
khushal is on a distinguished road
Send a message via Yahoo to khushal
Re: How to run PL/SQL Package Procedure in OTM?

Hi Ian and all,
Thanks for all the replies. Actually the stored procedure was not having the execute privileges. Now after assign permissions its working fine.

Thanks once again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedure in Direct SQL muthaharotm Workflow 3 April 15th, 2008 12:49
Executing The Procedure in the database gokul Database Administration 2 December 31st, 2007 13:07
Invalid state of package in BPEL jeff.depaul OTM / EBS / JDE E1 Integration 1 September 10th, 2007 09:54



All times are GMT. The time now is 20:01.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37