Get the privileges granted on a package
Dear Experts,
I've got a package and want to retrieve with a sql script all the privileges granted through roles on this package. Any piece of code to do so ?
Thanks for your help.
BR,
Guillaume
SQL> select * from role_tab_privs where table_name='<YOUR PACKAGE>';
Similar Messages
-
Isn't there DBA_ view to see the privileges granted to a role ?
DB version :11.2
I couldn't find a DBA_ view which would list all the privileges granted to a role. Finally I had to grant the role to a user and then connect as that granted user and then query ROLE_TAB_PRIVS view. As a DBA , I can't login into business schemas to check this.
The scenario
==============
SCOTT schema has two tables : HRTB_EMP_MASTER and HELLOWORLD
I want to grant SELECT privileges on these two tables to another user called TESTUSER but not directly ; through roles
SQL> conn / as sysdba
Connected.
SQL> grant create role to testuser;
Grant succeeded.
SQL> conn testuser/test123
Connected.
SQL>
SQL> create role testuser_ro;
Role created.
SQL> conn / as sysdba
Connected.
SQL> grant select on scott.hrtb_emp_master to testuser_ro; --- > Granting the SELECT priv to the role first
Grant succeeded.
SQL> grant select on scott.helloworld to testuser_ro;
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT'; ----> This won't work because I am connected as SYS
----> ROLE_TAB_PRIVS is user specific view
no rows selectedSince I couldn't find a DBA view which will the privileges granted to a role , I granted the role to the user I had to login to the user (against our security policy) and query
ROLE_TAB_PRIVS.
SQL> grant testuser_ro to testuser;
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
no rows selected
SQL> conn testuser/test123
Connected.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
ROLE OWNER TABLE_NAME PRIVILEGE
TESTUSER_RO SCOTT HELLOWORLD SELECT
TESTUSER_RO SCOTT HRTB_EMP_MASTER SELECTyou should search for grantee, not owner
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create role r1;
Role created.
SQL> grant select on sys.v$database to r1;
grant select on sys.v$database to r1
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
SQL> grant select on sys.v_$database to r1;
Grant succeeded.
SQL> select grantee, privilege, owner, table_name from dba_tab_privs where grantee='R1';
GRANTEE PRIVILEGE OWNER TABLE_NAME
R1 SELECT SYS V_$DATABASE -
Getting the file at runtime in package interfaces
Hello Friends,
ORACLE ODI 11G.
I have a package where in which I am having multiple interfaces.
The purpose of this package is to load the Text file to Oracle DB ( 11g ) .
All the interfaces will be processing the same text file -
I have a project variable where i can specify the file name but
In KM that I am using - IKM FAST FILE TO ORACLE ( SQLLDR ) I don't have options to use the variable that will get the file name at runtime.
How to implement where in which the interfaces take file name at runtime.
Appreciate your help.
Thanks/KUMARRead these:
https://blogs.oracle.com/dataintegration/entry/using_parameters_in_odi_the_dy_1
http://odiexperts.com/multiple-files-single-interface/ -
How to get the " com.sun.xml.* " package?
In a java xml sample, it uses a class "com.sun.xml.tree.XmlDocument". Its author said it is a internal class.But I can't find the class in "com.sun" package. Please tell me how to get the class?
Thanks very much!This set of classes was available in the J2ee.jar that was packaged with j2sdkee1.2.1, This set of classes is NOT in the j2ee.jar of the j2sdkee1.3.1. After we upgraded, we started to get these errors ... have no idea where/if these classes are still available as add on api or not. I downloaded the the java xml pack and this class is not available in any of the jars contained within.
-
How can i get the privilege to uninstall applications
Hello,
i am knew with mac and i am trying to uninstall some applications with ccleaner, but then i get the message that "i don´t have the privilege to perform this operation¨... any help?
Thanks,
PierreIf you want to delete applications, go to the developers web site and look for un-installation instructions. Use of so called 'uninstall' apps are not to be relied upon. Elements of the application to be deleted can and are easily missed.
Ciao. -
Is there any view to get the privileges of that particulatr role?
Hi,
I wanna know,what are the privileges for the role.How to get it?Please review the following;
Viewing Privilege and Role Information
http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/admusers.htm#sthref1804
Also mention the database version.
Adith -
Is it possible to get the source code of sun package in JDK1.4?
If i want to review the code of the HTTP protocol handler and some other things.
how can i get the source. or is it possible?
thank you.See this post if you can figure out something out of it ....
http://forum.java.sun.com/thread.jsp?forum=31&thread=391451 -
I get this following message when installing the latest itunes on mozilla or IE10 was working on this machine before crash and reinstalled for HP disc I tried at leat 15 times firewall off /on microsoft essentials on/off on windows 7 64 bit see message
This installation package could net be opened verify thatthe package exist and that you can access for contact the application vendor to verify this is a valid windows installer packageIf you are not already doing so, install from an Administrator account.
If you haven't already done so, download the iTunes Installer from:
http://www.apple.com/itunes/download/
Then right click on the installer and select "Run as Administrator." (Even though you are using an admin account).
If that doesn't work, try creating a new administrator account and installing from there. -
Getting the runtime environment to see packages in the jre/lib/ext dir
I've downloaded mysql-connector-java-3.0.6-stable-bin.jar so that i can connect to a mysql database. I can use it fine from tomcat, but when I try and write stand alone stuff I get
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at WebUtils.DatabaseConnection.Query(DatabaseConnection.java:27)
at AddToDatabase.main(AddToDatabase.java:13)
I suspect it could be a classpath related error but I have no idea how to fix it, or even how to set the classpath or view it's current value.
Any ideas,
PeteI've downloaded
mysql-connector-java-3.0.6-stable-bin.jar ...Can we assume you've put it on the JDK/jre/lib/ext dir ?
I suspect it could be a classpath related error but I
have no idea how to fix it, or even how to set the
classpath or view it's current value.Which OS are you using ?
Rafael -
Query to get the Discoverer privileges granted to user / responsibility
Hello,
I am discussing the oracle applications EUL here.
I am interested to know the privileges granted to a user / responsibility from backend or any option with "eulapi" utility which can be used to list the same.
Which EUL table should I query to get the privileges granted to a user / responsinility?
Thanks,
AjayHi Ajay,
Which EUL table should I query to get the privileges granted to a user / responsinility?Go through this link you wil get what your looking for.
Re: List of Users in Admin layer under Privileges
Hope this helps you.
Best Wishes,
Kranthi. -
Why does an error message say, you do not have the privilege to maje changes?
I tried to add a movie ti iTunes and a message came up saying I do not have the privilege to make changes. How do I get the privilege to make changes?
Solution:
Open Disk Utility.
Select your external hard disk and run a “verify” on it. After a few minutes (depending on the size of your drive), you should be good to go. You don’t need to run a “repair” on it... (at least I didn’t have to). See photo for reference.
This should fix the permissions issue, because on my Mac running Mountain Lion I was unable to edit the permissions in the get info dialog window even after "unlocking" the drive. -
The digital signature for this package is incorrect.
im trying to do a software update and i get The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by “Apple”. how do i fix it?
Are you using Software Update, or direct download?
Which exact one is it? -
Which view I can query to get the granted objects privilege to a user?
Hi all,
which view I can query to get the granted objects privilege to a user?
for example:
grant execute on accounting.get_name to scott;
Which view has above object granted information?
ThanksSQL> select * FROM all_tab_privs where grantor = upper('accounting');
no rows selected -
Getting the metadata of procedures defined inside packages...
Dear All,
i want to extract the metadata for procedures and functions in my db.
i am using the DBMS_METADATA.GET_DDL(ObjectType,ObjectName) to get the metadata of certain objects (PROCEDURES,FUNCTIONS and PACKAGE_BODY)
however this method is not quiet usefull when my target is to get the metadata for a single procedure/function defined inside package's body', where i dont need
the whole package body to be returned only the specific Procedure/ Function defined in it...
it seems that the Package Body is defined as one object regardless of how many Procedures / Functions are defined in it...
isnt there any place/repository that stores the procedures and functions defined inside a package body along with their metadata explicitly one bye one , so i can
extract them and search them one bye one...
Thank you
Basem Sayej...The whole point about defining procedures inside package bodies is that they are private. They are only exposed to those who have the necessary privileges to view the body's source code.
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
I'm trying to use "Home Sharing" feature in iTunes to import files from another user on the same iMac. We have 5 users and one user is unable to import files from other users. We get the error "You do not have enough access privileges to perform this operation." All users are logged in using the same Apple ID and everyone else can import files. What gives?
Had the same thing happen to me a few weeks back when I switched computers and migrated. Here's what worked on my iMac, so maybe it'll work on your iPad, too. Go to User(your home folder)/Music. Select/highlight your "Music" folder. Then do Command-I ("Get Info" from the File menu), click on the padlock icon in the lower right of the new window. Enter your user password. Click on your username just above the now-open padlock. Select "Read & Write" if it's on "Read Only," "Write Only," or "No Access." Now having your user account with "Read & Write" privileges (it may have been this way already; still do this next step), click on the gear on the bottom-center of that window. Click on "Apply to all enclosed items." When the pop-up says "Are you sure?" (or the equivalent), say "yes." This will grant access privileges to your user account for all the music files inside your music folder--all your iTunes stuff included). Then you should be good to go.
Maybe you are looking for
-
Remote desktop connection caused host to lose a monitor and other settings
Hello After a successful remote desktop login, on the host I can now no longer detect the 2nd monitor. Screen resolution on remaining monitor is off, it's gone over to use Microsoft Basic Display Adapter even though it was using the correct adapter p
-
How to stop automatic downloads after launching itunes...
Itunes sucked 10 years ago, and it still does today.... Here is the solution to that nagging problem of Itunes automatically downloading an app, music, book, etc everytime you launch it, even after you uncheck the settings for automatic downloads, an
-
3.0 - Provisioning Service - excel upload error
Just finished installing EID 3.0 and installed provisioning services on non-ssl / default settings (minus turning ssl off). I'm able to select an excel spreadsheet from the home page in Studio, when I click next, I get the following error. Looks like
-
I really need some help. I just got my brand new iphone 5s for Christmas and my screen is changing colors. Depending on what picture or app I may have up the colors tend to vary but remain long horizontal lines running from top to bottom. Please help
-
Hi Have been using my N91 since September without any problems up until a couple of days ago, when out of the blue I was getting "SIM CARD REGISTRATION FAILED" so I phoned O2 they said there was no problem with there Sim Card. I have tried the Sim in