How to grant privilege for a specific function?

Hello all,
I wonder if exists a privilege, that i could grant to a user, just to run a specific function.
I searched in dba_sys_privs something about it but, returned nothing.
13:38:10 brunos@fastora1> select * from dba_sys_privs where privilege like '%FUNCTION%';
GRANTEE PRIVILEGE ADMIN_OPTION
Do you guys have any idea for my issue ?
Thanks in advance.

BSalesRashid wrote:
Hello all,
I wonder if exists a privilege, that i could grant to a user, just to run a specific function.
I searched in dba_sys_privs something about it but, returned nothing.
13:38:10 brunos@fastora1> select * from dba_sys_privs where privilege like '%FUNCTION%';
GRANTEE PRIVILEGE ADMIN_OPTION
Do you guys have any idea for my issue ?
Thanks in advance.GRANT EXECUTE ON SPECIFIC_FUNCTION TO NEWBIE_USER;

Similar Messages

  • How to grant privileges on all the tables in a schema

    Hi All,
    Can you tell me how to grant privileges on all the tables of a schema A
    to schema B.
    For Example:
    There are 200 tables in schema A, I wanted to grant select privilege on all the tables of a scheme A to schema B.
    Thanks in advance.

    note that USER is the user that will have the select priviledge
    the procedure includes views as well
    CREATE OR REPLACE PROCEDURE GRANT_ACCESS_ON_USER IS
    CURSOR c1 is select table_name from user_tables;
    CURSOR c2 is select view_name from user_views;
    tablename user_tables.TABLE_NAME%TYPE;
    viewname user_views.VIEW_NAME%TYPE;
    BEGIN
    tmpVar := 0;
    OPEN c1;
    loop
         fetch c1 into tablename;
         EXIT WHEN c1%NOTFOUND;
         EXECUTE IMMEDIATE 'GRANT SELECT on '||tablename ||' to USER';
    end loop ;
    close c1;
    OPEN c2;
    loop
         fetch c2 into viewname;
         EXIT WHEN c2%NOTFOUND;
         EXECUTE IMMEDIATE 'GRANT SELECT on '||viewname ||' to USER';
    end loop ;
    close c2;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END;
    /

  • Can't retrieve folder privileges for a specific user

    I am trying to get the granted privilege for a specified user for a certain folder. I am using the wwsec_api.get_granted_user_privilege function. When I run my code, nothing is ever returned. Here is my code:
    l_priv_varchar := wwsec_api.get_granted_user_privilege(
    p_user_id => 0,
    p_object_type_name => 'FOLDER',
    p_name => '2889');
    p_user_id is from wwsec_person.id$
    p_object_type_name is my object type
    p_name is from wwv_corners.id
    I have looked at the properties of this folder and this user, 0, is set up as the owner. So I am expecting to see 'OWN' returned. I have another user set up to only VIEW the folder and when I put that user's id into the p_user_id parameter I still do not get any return. I can run this same code (with different parameter values) and get the privileges for a 'PAGE', but never for a FOLDER.
    Does anyone have this problem or can tell what I am missing?
    Thanks.
    null

    p_name for a folder is "sitename/parentfolder/foldername". You can see that in the syspriv_name field on the WWV_CORNERS table.

  • How do i search for a specific artist in iTunes store on iPhone 5?

    How do i search for a specific artist in iTunes store on iPhone 5?

    Open the iTunes app > Search > then type the Artist's name

  • How do I search for a specific name of an email sender?

    I'm trying to locate, in the easiest way possible, a name that should have appeared in my inbox... How do I search for a specific name?

    type it in the big box on the toolbar and press enter.

  • ORACLE - How to GRANT privilegies on ALL the tables belonging to a schema

    Is there a way to grant to a user the same privilegies on ALL the tables belonging to the same schema, so that, in case a new table is created afterwards, the grant is automatically given ?
    Thanks in adance for any reply

    Yes of course ! Just do the same as Oracle Applications: an end user has no Oracle account, the application code connects with the Oracle account that is the schema owner:
    no more grant needed ... That's a joke but it's also true ! In this case, your application must implement its own security (password management, audit, privileges) and you will not be able to use Oracle privileges, auditing and advanced security features ... just like Oracle Applications.
    The above answers are of course correct. You can also create an Oracle role that you can grant to the Oracle users and grant the privileges to this role everytime a new table is created to avoid granting privileges for each new object to each user.

  • How do i search for a specific music video instead of browsing through thousands

    how do i search for a specific music video instead of browsing through thousands?

    Type a keyword or two in the search area - shown in the upper right here (the oval area):

  • How To Modify Privileges For APEX Objects Granted To PUBLIC?

    I have searched this forum but couldn't any threads relating to this...
    We have APEX 3.0.1 installed in some 10g (10.2.0.2) databases that host GIS data. I was informed by a GIS administrator that when using ESRI tool to search for data, the objects that belongs to FLOWS_030000 schema and ones that were granted to PUBLIC are shown. He would like to know if there is a way to hide these objects so they don't show up on the list? There are about 176 objects granted to public from the flows_030000 schema.
    Could we establish a different security scheme that could accomplish the same thing? Maybe we need to create a new account and a role. Grant all of the privileges for flows_030000 to public to the new role. Then grant the role to the new account and the flow_files schema?
    Our goal here is to make the flows_030000 objects hidden from the ESRI tools and still have APEX working properly.

    If you look at the grants, you'll see that there are over 170 objects from the FLOWS_030000 granted to PUBLIC:
    SQL> select count(*) from dba_tab_privs where owner= 'FLOWS_030000' and grantee = 'PUBLIC';
    173
    If we were go grant these privileges to a role, called APEX_APP_RU, and grant this role to APEX_PUBLIC_USER and any schemas an application is linked to (Workspace to Schema), would that be a workable solution?
    The only problem I see right off hand that this might not work is that PUBLIC has synonyms created for the FLOWS_030000 objects. If we revoke the underlying privileges, because of the synonyms, this might not work.
    SQL> select COUNT(*) from dba_synonyms where table_owner = 'FLOWS_030000' and owner = 'PUBLIC';
    176
    Does anyone else have any ideas?

  • How to grant privilege to Change Stored Password in External Application ?

    Hi,
    I have added an external application in portal but if I did not grant manage privilege for the page that I have added "External Applications Portlet" then the users are unable to change stored password. How can I grant users to do this action only?

    You cannot log in by supplying a password's hashed value. You should supply the real password. The SQL Authenticator (or the ReadOnlySQLAuthenticator) in the Weblogic Server then will calculate the hash value of the password you supplied and will compare it with the hash value stored in your database table. Of course, in order to do that you should configure the SQL Authenticator to retrieve the hashed password values from the DB table with the appropriate prefix (e.g. {SHA}, {SSHA} or {MD5} depending on the hashing algorithm you used for the passwords in the DB table) in order for the WLS to know which hashing algorithm to apply.
    Dimitar

  • How do I search for a specific word in the code using Dreamweaver?

    I need to search for a specific word in the code for all of my website pages. How can I do that using Dreamweaver?

    To search local files of a Defined Site in DW...
    Open the Find & Replace tool with Ctrl + F
    Change the Find In dropdown to Entire Current Local Site
    Change the Search dropdown to Text or Source code
    Add the text to find in the Find field
    Add the text to replace in the Replace field (or nothing if you just want to delete the text)
    Hit Replace All

  • Grant privileges for future object?

    Hi all. Need help.
    1) Bob grants object priveleges on cars to Anna
    2) Anna renames cars to cars_old
    3) Anna creates cars .
    4) Bob has no privelges to cars:(
    How to grant privelges on 'created in future' tables?

    Here Demo
    test - as Anna
    monitor - Bob
    Session : As Sys User
    SQL>
    SQL>
    SQL> create user test identified by test default tablespace users quota unlimited on
      2  users;
    User created.
    SQL> create user monitor identified by monitor default tablespace users quota
      2  unlimited on users;
    User created.
    SQL> grant create session, create table, create procedure to test;
    Grant succeeded.
    SQL> grant create session, create ANY table to monitor;
    Grant succeeded.
    SQL> create role test_access;
    Role created.
    SQL>
    SQL>
    Session : 2
    Test User
    SQL> create table job_parm_table( job number primary key, tname varchar2(30) )
      2  organization index;
    Table created.
    SQL> create or replace procedure do_grant( p_job in number )
      2    as
      3            l_rec job_parm_table%rowtype;
      4    begin
      5            select * into l_rec from job_parm_table where job = p_job;
      6            execute immediate 'grant select, insert, update, delete on ' || l_rec.tname || ' to
      7  test_access';
      8            delete from job_parm_table where job = p_job;
      9    end;
    10    /
    Procedure created.
    SQL> grant insert on job_parm_table to sys;
    Grant succeeded.
    SQL> grant execute on do_grant  to sys;
    Grant succeeded.
    SQL>
    Sys User -- SEssion 1
    SQL> create table msg ( txt varchar2(255) );
    Table created.
    SQL> create or replace trigger test_schema_trig
      2     before CREATE on database
      3     declare
      4       l_str varchar2(255);
      5       l_job number;
      6     begin
      7         if ( ora_dict_obj_type = 'TABLE' and ora_dict_obj_owner = 'TEST' )
      8           then
      9             dbms_job.submit( l_job, 'test.do_grant(JOB);' );
    10                     insert into test.job_parm_table( job, tname ) values ( l_job,
    11  ora_dict_obj_name );
    12         end if;
    13     end;
    14     /
    Trigger created.
    SQL>
    Test - USer
    SQL> create table t1( x int );
    Table created.
    monitor - User
    SQL> create table test.t2(name varchar2(30));
    Table created.
    Sys User
    SQL> select grantee, privilege from dba_tab_privs where owner = 'TEST';
    GRANTEE                        PRIVILEGE
    SYS                            EXECUTE
    SYS                            INSERT
    TEST_ACCESS                    DELETE
    TEST_ACCESS                    INSERT
    TEST_ACCESS                    SELECT
    TEST_ACCESS                    UPDATE
    TEST_ACCESS                    DELETE
    TEST_ACCESS                    INSERT
    TEST_ACCESS                    SELECT
    TEST_ACCESS                    UPDATE
    10 rows selected.
    SQL> select * from test.job_parm_table;
    no rows selected
    { Code }
    - Failed Atlast.. Checking the Code give osm time...
    I can access the table's created in "TEST" by monitor got the privlileges.... Successs but one thing is could not able to
    find the records in  job_parm_table...
    Is It Okay with you know...
    Problem.. Solved...  :-)
    - Pavan Kumar N
    Edited by: Pavan Kumar on Sep 20, 2008 12:58 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to enable "ValidateXML" for a specific Composite/process in 10g BPEL?

    Hi ,
    In *11g*, from em console, Its possible to enable/disable the XML(payload) validation both at server & just for a specific composite/process level. In case of *10g*, from the BPEL console, we could only enable/disable the XML(Payload) validation at *"domain/server"* level, but how do we enable/disable the payload(XML) validation only for the specific composite/process, instead of domain/server level? Is it possible in 10g? If yes, could you please throw some light on the same?
    Thanks in advance!
    Regards,
    Srinivas Medukonduru

    Hi Arik,
    Thanks for providing the detailed steps.
    Looks like these steps needs to be done from the JDeveloper and then redeploy the composite/process. Is it possible to enable the *"validateXML"* for a specific composite/process from the *10g BPEL Console?* So that we can avoid the code level changes & also the redeployment.
    Thanks & Regards,
    Srinivas Medukonduru

  • How toplink grant permission for direct field access

    I know already know that if I need to direct access private or protected field of an instance I must grant supressAccessChecks to ReflectPermission class using policytool or edit java.policy file directly ...
    but how Toplink grant this permission to ReflectPermission class since my java.policy file remain the original.
    Kowit Laison

    In my own experiences, the first release of JDK 1.2 had problems with reflection accessing private attributes. As you mentioned, you had to have a policy file that allowed TopLink access to reflectively access private attributes.
    Since subsequent releases (1.2.x, 1.3, 1.4, etc), it always has "just worked". I.e., it seems to be default behavior of JVM's that you can acess private attributes through reflection. Sometimes some app servers come with startup scripts that have policies that change this default behavior and you have to override it, but in general, a vanilla JVM simply will allow private attribute access through reflection.
    - Don

  • How to find user exit for a specific function

    Hello Gurus,
          I have some question about user exit:
        (1) how can I know which user exit can be used to implement my specific requirement ?
        (2) I think user exit is active subroutine in the main program. so if I know the name of some user exit, how can I get the program code for it ? ( ie. how to get name of main program,  name of include file ? )
    thanks very much!

    Hi friend,
         thanks for your suggestion. I have read that book. but this question is not clear in that book . I'd like to repeat may question again:
       (1) if I want to implement a tailored function by user exit, how can I know which userexit
           should I use ?
       (2.) I wonder if there is a document which shows which userexit corresponds which
           program?
      in fact, if I know the place where I can put my own abap subroutine in , everything will be done.
    thanks very much!

  • How do i search for a specific email in mail.

    I would like to know how do i search my inbox for an email that was sent more than a week ago. There is no search optin, or a "sort by" option as in mails on an i-Mac.

    Hi CarlaBez,
    If you are having issues searching for specific email messages on your iPhone, you may find the following articles helpful:
    iOS: Understanding Spotlight Search
    http://support.apple.com/kb/ht3636
    iPhone User Guide For iOS 7.1 Software
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    (pg. 50 for Mail options)
    Regards,
    - Brenden

Maybe you are looking for

  • Upgrade error in Phase STARTSAP_NBAS

    Dear Experts, We are doing ECC 5.0 upgrade to ERP6.0 SR3 and during STARTSAP_NBAS phase DDIC locking out and cant start SAP original system. We tried to unlock the password and also did the reset using SAPup reset DDICpwd. But its still locking out.

  • ID attachment has bad format?

    Hi there, I have deleted silverlight from mac and still can't send any attachment from hotmail account please help me out from this issue have a good time cya:)

  • Not able to copy cd

    Hi there! i have a big problem, i bought a software cd(windows software) it require cd to be inserted for running the software. so i thought to copy the data rom it but i am able to copy only 100b of data out of 750 MB, the permission is  READ ONLY.

  • Running Servlet

    I am using jswdk-1.0.1 and JDK1.3 in Windows 2000. I start the servlet, but when I invoke the html page I have the following message, and the servlet didn't run. How could I do to run this application? JSWDK WebServer Version 1.0.1 Loaded configurati

  • In the jspdynpage how to implements file download!!!!

    in the jspdynpage how to implements file download!!!! in the portal's view i need to implements download file like *.xls,i don't know how to do. and if servlet can be used in the portal application! Edited by: xuhuanjun on Apr 8, 2009 9:57 AM