Grant execute to newly created user upon user creation

Hi
I have a procedure test in schema of user1.
I have to grant exec on this procedure to the new user upon creation of the new user.
like upon
create user USER1 identified by ....
then USER1 should be able to execute user1.test after that
in short every user created should have grant to execute this procedure.
Please suggest.
Thanks in Advance

Hello, if you have a procedure in the schema of user1 then the user is user1, i.e., you cannot be creating a new user if user1 if user1 owns the test procedure.
To grant execute for a user on a procedure, just run:
GRANT EXECUTE ON user1.TEST TO <new_user>;If you want to allow every user to execute this procedure then run something like:
BEGIN
  FOR cur_rec IN (SELECT username FROM ALL_USERS WHERE username NOT IN ('SYS','SYSTEM'))
    LOOP
      EXECUTE IMMEDIATE 'GRANT EXECUTE ON user1.test TO ' || cur_rec.username;
    END LOOP;
END;
/And that will grant execute on the procedure for all users.

Similar Messages

  • GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER

    Hi,
    GRANT EXECUTE ON SCHEMA.PACKAGE.PROCEDURE TO USER
    returns:
    ORA-00905, do you know why? Can I grant privileges on procedure inside package?
    thanks

    As per my knowledge of oracle, we cannot grant privileges on procedure inside a package.
    <br><br>
    Raj<br>
    <b>www.oraclebrains.com<a>
    <br><font color="#FF0000">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>
    <br>
    Sorry Leonardo Horikian & Kamal Kishore, I was late and didn't know that you guys have already posted the answer.
    Message was edited by:
    rajs

  • Send email notification to user upon user creation

    Hi,
    Application : 12.1.1
    DB:11.1.0.7
    how to send email notification to user upon user creation in Oracle EBS r12
    Thanks
    Edited by: 843272 on Jun 19, 2011 5:32 AM

    You can create an alert for this requirement from 'Alert Manager' responsiblity.

  • Why do newly created folders have random creation dates? This is on a Seagate GoFlex USB drive.

    Why do newly created folders have random creation dates? This is on a Seagate GoFlex USB drive. Is there a fix? It appears to work fine in the internal drive.

    So your hard drive is setup for a PC using NTFS and you have the NTFS-3G driver installed (I wonder which version of the driver). I know many users have reported problems with file transfer speeds being slower on a Mac, but this is understandable due to the 3rd party driver you have to use to access the drive.
    There are other higher performance drivers available for a price, like Tuxera but their site shows they haven't updated their drivers since late in 2010. They do say that they are 64 bit drivers but they want about $37 for it. They maintain a support site that has quite a bit on info about NTFS-3G issues.
    I assume you've got a freeware or open-source version of the driver from Seagate. It's probably OK for occasional use to access the NTFS drive, but not the way you want to use a drive all the time on MacOS.
    Fat32 is compatible with both OS's, but there are some restrictions like not being able to use video files larger than 4GB (actually 1byte smaller than 4GB) and the 2TB partition size limit. Both HFS+ and NTFS have advantages due to the way the OS's can optimize transfer speeds and reliability, but a drive that's plugged into many machines is always going to have compromises until we get native support for NTFS (possible in the future because it's already been tested), or the Windows side supports HFS+ (probably not going to happen). There are programs/drivers on both sides that can accomplish this compatibility, but not native solutions at this time.
    Using 3rd party drivers could mean problems with some drives that don't work well or completely break with a system update in the future. Apple doesn't seem to try to break compatibility features, but they do control the transfer protocols and optimize the OS for reliability. Flash drives are mostly formatted with Fat32 and they seem to work well for data transfer with just about any OS.
    For me, I've chosen to use a NetGear ReadyNAS NV+  in an Xraid configuration for local storage and Time Machine support, and Dropbox for some files that I can easily transfer to Mac, PC, or Linux by just using a web browser, and I quit installing proprietary drivers to any computer, Mac or PC. I've also got a couple of the USB Fat32 laptop drives (250 to 320 GB) laying around for large file transfers if needed.
    Sorry, I got a long way from your original Folder Creation Date issue.

  • Grant execute permission to stord proc for user setup on inital DB server creation

    When I setup my SQL Azure DB it asked for me to create a login, which I did. Now I need to give that users execute permission on some stored proc but when I run
    GRANT EXECUTE ON ELMAH_GetErrorsXml TO MyUser;
    I get the error
    Cannot find the user 'MyUser', because it does not exist or you do not have permission.
    If I look under Security -> Users I do not see my user listed I only see dbo, quest, INFORMATION_SCHEMA, and sys.

    Hi,
    Please refer these links for more details.
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-get-started/
    http://msdn.microsoft.com/en-us/library/ms187965.aspx
    http://msdn.microsoft.com/en-us/library/ms173463%28v=SQL.100%29.aspx
    Girish Prajwal

  • Grant execute to all procedure to a user / public

    hey!
    simple question:
    how can i gran execute on all the procedures belong to a given user - for another user (or to public)?
    should i use a roll or can i do it without it?
    thanks
    yair

    I'm thinking that I read in 11G there was a new utility that allows you to grant all from one schema to another, but why in the world would anyone want to do that? (okay... no answer required on that one)
    Sounds like you might have to write some dynamic SQL.
    For tables and views, you will need to grant all on the object to the other schema.
    For packages and procedures, you can grant execute to them.
    Or, another option would be (arg... I hate to suggest this), grant a select any table, delete any table, insert any table, execute any procedure, etc... to the user.
    This is really bad, and I don't recommend this, only noting that it is an option. If this is just for some kind of temporary purpose (e.g., testing), then this might be acceptable, however, revoke these privileges immediately.
    The better option is to write dynamic SQL and grant directly to the other schema owner. You may run into problems with views and procedures if you use a role which is why I would recommend granting directly to the user. I've also run into problems with GLOBAL_LEXARs and things related to Oracle text when granting via roles.
    But now, I have to still wonder why you would not just grant the necessary privileges that the other schema needs rather than granting everything?
    Ji Li

  • De activating the users upon user Termination in GRC CUP.

    Dear Experts,
    I have a requirement to de-activate users(should not delete physically) in SAP after the users are terminated. we are planning to use HR triggers for HR terminate event in GRC CUP
    Q) I understand there is a De-provision functionality in GRC CUP.  Will this delete users in SU01 physically ? Is  there any way to use this functionality to deactivate the users ?
    Thanks
    Kumar

    Kumar,
       Delete request type will delete users in CUP. What do you mean by deactiving users? Do you mean to change the validity date of the users? You will have to use change request type if you want to change any other information in the user master record other than delete/locking/unlocking of the user.
    Alpesh

  • Need to automatically add newly created user account in an existing active directory group.

    Hi All ,
    In my  environment we are having window server 2012 active directory environment.We need to have the newly created active directory user account to get added automatically to the existing active directory group after that new user account creation.
    Please tell us the possible ways to achieve this scenario.
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

    Hi,
    Can you please confirm your requirement,
    When you create a new user account in AD, based on the user's property like Department, Job or Location, the user need to be added to your specific AD groups?
    Regards,
    Gopi
    JiJi
    Technologies

  • Retain newly created rows after page navigation.

    Hello,
    I have designed two pages. On First page I have to create multiple rows and to assign some values I need to open another page.
    The problem is once we create new rows on view object and if we redirect to any other page its view object is automatically executed and newly created rows will not be retained.!
    I have tested redirection using both methods with retain AM to True, but its not working.
    pageContext.forwardImmediately("page",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    pageContext.setForwardURL("page",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Please suggest something....
    Thanks,
    Swati

    Hi Krithika, Thanks for replying...
    Krithika wrote:
    If you want to create new row in table and commit to the db, please find this sample:
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    This is done automatically when user clicks on commit button on ADF create form, rows gets commited in database.
    I just need to display these newly created rows on ADF table on the same page below commit button.
    Can you give more details about your usecase..?
    What happens when the same user comes back after closing the session? Do you want still show the blank page/table with out any previous data created by the same user..? If yes, what happens to the previously stored data..?
    Basically, give a brief note on what you are trying to achieve..?
    When user comes back to this page after closing this session, it will not show any rows in the ADF table.
    user will enter new values to create new rows and this time again on click of commit button the newly row created for this session should be shown.
    The previously created rows are already commited to database table
    Hope I am able to explain the requirement. Please let me know for any questions on requirement
    Regards,
    Tanveer

  • Email notification upon account creation?

    I would like to have an automatic email generated and sent to a user upon the creation of a portal acct (username and pw)......
    I have dug around, but am unable to find anything relating to this in the admin piece....
    Can anyone put me down the right path?
    Thanks in advance for any help offered.....

    Go into Portal as orcladmin or portal_admin. Click builder, click on administrator, and in the services portlet go into Global Settings. Then in the main tab, you configure everything you are looking for.
    Martin

  • Does GRANT CREATE ANY PROCEDURE auto grants EXECUTE on created obj to user?

    I have a User ABC which has GRANT CREATE ANY PROCEDURE on schema XYZ. Now, I create a new Function in schema XYZ using my ID ABC named "func123". My question is, would my User ID ABC being creator of func123 be able to EXECUTE it by default ???
    Note: ID ABC has not been explicitly given GRANT EXECUTE on this func123 function, neither it has GRANT EXECUTE ANY PROCEDURE on schema XYZ.
    Thanks in advance.

    There is no such thing as 'create any procedure on schema xyz'. When an user has create any procedure, he can create a procedure in any schema, including SYS.
    You have an unprotected and unsecured database by granting this powerful privilege to multiple users.
    Also when you create a procedure in a different schema, that schema becomes the owner, not the user creating it.
    Kindly brush up your basics and (re)read documentation.
    Sybrand Bakker
    Senior Oracle DBA

  • How to Apply a Newly Created Access Policy on Existing Users in OIM????????

    How to Apply a Newly Created Access Policy on Existing Users in OIM?
    When the rule is getting failed the user is getting removed from the group but resource is not getting revoked. This is happening only for the old uses..for the users which i created now it working fine..i mean its resource is getting revoked.
    (Retrofit access policy" is checked on the Access Policyand Revoke if not longer applied is checked.)
    For the old users i see the POl_Key is null, for new users i see a value '10'. So i updated the pol_key for old users same as it got generated for new users '10'.
    i even updated the form version too but still revoke doesn't work.
    I cant go for the below approach..
    In order to apply a newly created Access Policy on existing users, one has to make sure that:
    1) "Retrofit access policy" is checked on the Access Policy.
    2) Then run the "Set User Provisioned Date" Schedule task to apply the Access Policy on the existing users in OIM.
    Note: After 9.1.0.1 BP03 the access policy execution has been moved to a new scheduled task "Evaluate User Policies" as mentioned inDocument 839368.1 :How to Use Access Policies to Provision with Groups.
    Is there any other approach i can try.. if you have any idea please reply me asap
    Thanks..

    Thanks for the reply kevin..
    We decided to try the Schedule task (Set User Provisioned Date).
    But i see one problem here after seeing this post in metalik --> Can Access Policies Manage The Life-cycle Of Users Created via Reconciliation? [ID 1136540.1]
    According to this post Access Policies framework does not manage users who are obtained either through trusted reconciliation or target reconciliation.
    Is there any custom way to achieve this??
    How does the access policy framework revoke resource work? (revoke if no longer applies)??
    Edited by: IDMuser19 on Jun 21, 2011 11:43 PM

  • Create a new user with Privileges to execute Seeded API's

    Hi,
    We have a requirement from our client, they want to create a new user with Privileges to execute Seeded API’s,
    So they dont want to execute using APPS user.
    We want to know is it possible to have a new user for executing seeded API's and if so what all priveleges we need to have.
    We are on 12.1.3 with 11.2.0.3  two node RAC Database on Exadata and Exalogic servers.
    Waiting for your suggestions and replies.
    Thanks

    Hi,
    Plz update this forum,
    and give me a suggestion at the earliest,
    Waiting for your valuable advice.
    Thanks

  • Permission to view content of table of SYS schema to newly created user

    Hi,
    I am facing issue giving permission to view contents of table p_users of SYS schema to newly created user.
    Regards,
    Phani Ram

    Hi Phani,
    Could you please check if you have an a authorization to give a permission to other users for particular schema.
    I mean check for privileges, user and roles.
    Warm Regards,
    Earesh kumar

  • Authorization newly created user

    hi experts,
    can any body explain, what infotype/authorization will be required for newly created user of HCM.
    Thanks,
    Waqas
    You should first go through the
    [SAP Help|http://help.sap.com/saphelp_erp60_sp/helpdata/EN/48/efa441d54eae5fe10000000a1550b0/frameset.htm]
    & then seek help for specific issues. Please do not post vague questions.
    Edited by: Suresh Datti on Aug 13, 2009 5:10 AM

    Hi Waq,
    Infotype access can be given based on client requirement. What ever infotype they will be using for their requirement you can add under role. Role can be created via Tcode PFCG. There are 2 objects named P_ORGIN & P_ORGXX can be used for giving infotype access under firld INFTY.
    Then creaed role can be assigned to user via Tcode SU01.
    If you want to give Tocde access, then authorization object P_Tocde & S_Tcode can be used.
    Regards,
    Purnima

Maybe you are looking for

  • Restrict Availability check for Line item in sales order

    Hi Folks,      My requirement is some what different than the usual,I want to stop availability check for a particular line item,while creating sales order on a particular condition (example when quantity is changed for that line item),please suggest

  • Best site for JSF 2.0 Discussions?

    Is this the replacement forum for http://forums.sun.com/forum.jspa?forumID=427 ? Or should we use http://forums.java.net/jive/forum.jspa?forumID=138 for JSF 2.0 discussions? Cheers- - Marty JSF 2.0 Tutorial: (Moderator edit: signature link removed) E

  • How to compare closeness of pixels?

    i'd like to create a photomosaic generator. the difficult part is to determine the best matching picture (from a database of pictures) to replace a tiled section of the original picture. given tile, pic0, pic1 (all bufferedimage objects of the same d

  • MRP Relevance for Storage Location

    All SAP Gurus, In SPRO where we need to maintain MRP Relevance for Storage Location? Regards,

  • Bonjour Gateway - Airplay / AirServer - Random Disconnects

    I am experiencing random disconnects during an Airplay session to AirServer. Airserver disappears from the screen and Airplay session is gone. Here is the details of my setup: WLC 5508 7.5.102.0 1142n APs AirServer (1.9.4) installed on wired PCs. Wir