Avatar of mmoore
mmooreFlag for United States of America

asked on 

Running DEBUG on objects not owned by logged in user

What I am trying to accomplish is to allow our QA people, in schema A, to run debugger on packages that reside in schema B.

so far I've done:

GRANT debug any procedure, debug connect session TO A;
Grant execute on B.my_proc to A;

While logged in a user A, Oracle Developer, has the problem:
won't load the BODY of my_proc into their built-in source code editor.
So, no way to set break points etc.
It's the same problem with TOAD

I am looking for any solution (developer, toad, whatever) that will allow USER A to debug packages where the owner is USER B.
SoftwareOracle Database

Avatar of undefined
Last Comment
Sean Stuber
Avatar of Sean Stuber
Sean Stuber

set our tools to use dba_xxxx views instead of all_xxxxx or user_xxxxx views.

you may need to grant select_catalog_role or select any dictionary to view the dba_xxxxx  views
Avatar of mmoore
mmoore
Flag of United States of America image

ASKER

Ok, you've lost me a little bit. I'm not sure what you mean by "our tools", I assume you mean "your tools". I am working with Oracle Developer.  Can you tell me how to set Developer to use the dba views, or should I get that information from OTN?
thanks,
Mike
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mmoore
mmoore
Flag of United States of America image

ASKER

I first tried Grant SELECT_CATALOG_ROLE and it still did not work. Then I added "grant select any dictionary" and it worked. Not sure at this point if the select_catalog_role was actually needed.
Avatar of Sean Stuber
Sean Stuber

did you enable the role or just assign it?

you don't really need it if you have select any dictionary
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo