How to grant new user permission when the acct is created from application?

Our application team will randomly create users in DB. But the new user need to have the permission of "execute on DBMS_SNAPSHOT, DBMS_STAT, DBMS_SYSTEM" being granted from sys. We need to grant it automatically after the user is created. I was thinking about using DDL "create" trigger or just DDL database trigger. Once the trigger is fired off, issue the grant statement. We can capture the create even for the user, but got error when running the grant in the trigger or from the procedure called by trigger. My guess is that the "grant" is a DDL and DDL trigger cannot start another DDL statement. I also think about put the insert trigger on the sys.user$. But oracle would not let trigger being created on the sys tables or views.
What can we do now? The other option, I am wondering if there is a system package that can call external program (like Unix shell script) from the DDL trigger, to let the shell script do the grant, since this may not be considered as the same execution tree. Do we have such package to call from database to the UNIX shell script? Or for such need, do we have any other option?
Thanks for help!
Edited by: user5973955 on Oct 6, 2010 3:51 PM

The application teams do not have the sys permission. If the application has privileges to CREATE USER, it can then issue GRANT
Change the privileges.
But they want this being resolved from DBA.DBA did NOT make this problem.
The flawed application created the problem.
Alternatively CREATE PROCEDURE that can issue GRANT & have application call this new procedure.

Similar Messages

  • How do I require a password when the computer boots up (from shutdown)?

    Hey guys,
    How do I require the input of a password for my user account when my computer is off and then is booted up?
    Thanks

    Open System Preferences
    Click on Accounts
    Click on the padlock and enter password
    Click on login options
    There you should see an option to disable "automatic login". You should also notice some other options there that you may or may not want. They should be pretty self explanatory.
    The Security panel has an option to require password after sleep or the screen saver is invoked if you need it.
    -KeithP

  • I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    When you say a new user ID, are you referring to your Apple ID that you use to make purchases in the iTunes Store, etc? Or are you talking about a new user account on the same Mac?
    iTunes alternatives
    http://www.wideanglesoftware.com/touchcopy/index.php
    http://www.ecamm.com/mac/phoneview/
    http://www.copytrans.net/

  • When I open iTunes, I get a message that "iTunes has stopped working".  I've tried reinstalling itunes, creating a new user file, changing the startup programs, and am having no success in getting iTunes to stay open. Any "fixes" for this problem?

    When I open ITunes, I get a message that "iTunes has stopped working".  I have tried reinstalling iTunes, creating a new user file, changing the startup programs in accordance with articles in iTunes troubleshooting, but am having no success in getting iTunes to stay open.  Any fixes for this problem?

     

  • Documents that are park in FBV0 do not update with the new user name when

    Hi,
         I need to find out why documents that are park in FBV0 do not update with the new user name when any changes are made.  Also when we park using MIR7 and make changes to the documents at a later time the document updates with the new users name.
    Requesting you to please suggest what could be the reason.
    Earliest reply will be highly appreciated,
    With regards,
    Rj

    Hi,
        I have checked this in system. I posted one Parked invoice using T.code FV60 and there i appeared my name because i created. But after some time one of my collegue changed the reference and text field with his login i.d. But still in the invoice it is showing as my name whereas if we go to the environmnet, there in the changes we can see what are the changes done and it is appearing my collegues user i.d. But in the main invoice it is still appearing my name.
    Regards,
    Rj.

  • I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access. i.e. my wife

    I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access ? . i.e. my wife

    Greetings Niel
    I was able to copy down the Word, Excel and PowerPoint icons and access "however" when I exit out of the guest user it deletes them from the tool tray at the bottom.... I need them to stay there not have to copy them down..
    Can you still assist?

  • How to add a new excel sheet  when the row count exceed more than 65 k

    am working on business intellignence am able to export the data to excel sheet but my data exceeds the sheet limit so how to add to another sheet when the last row is hit ..???
    any suggestions warm welcome...
    help me to fix this issue...

    You've not specified how you're generating the Excel file. Are you using POI? JExcel? What?
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How to give an user permission to access centain Transformations?

    I would like to know how to give an user permission to access centain Transformations in one InfoArea only. I already limited the selection in one InfoArea now. I want users can only Display Transformations for all the InfoObjects under this InfoArea. Does anyone know the detail steps? Thanks!

    HI,
    are you working under Analysis Auth (BI7) or Reporting Auth (BW 3.X)?
    If you work with the new concept you can restrict your authorization by using theinfoobjet: 0TCAIFAREA.
    before you Add 0TCAIFAREA as an external hierarchy characteristic to 0INFOPROV also when you restrict your auth by infoprovider you can choose the infoarea hierarchy
    hope it help
    Regard's

  • Can't create new user, Permission Errors in Console

    I just purchased a new 2013 iMac with a 3TB Fusion Drive. I'm trying to dig and fing out why I'm currently unable to create and log in to another user account. I haven't manually changed any permissions in the terminal, and I've booted into recovery mode and attempted restore all Disk Permissions (my next step is to run Onyx). After creating a new user account, when attempting to log into it, the log in screen hangs and just loads endlessly. The console output is as follows:
    3/8/13 9:23:00.852 PM
    SecurityAgent[417]
    Login Window login proceeding
    3/8/13 9:23:01.010 PM
    loginwindow[79]
    ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort, err: 1102
    3/8/13 9:23:01.034 PM
    WindowServer[110]
    Session 257 retained (2 references)
    3/8/13 9:23:01.034 PM
    WindowServer[110]
    Session 257 released (1 references)
    3/8/13 9:23:01.062 PM
    loginwindow[420]
    Login Window Application Started
    3/8/13 9:23:01.072 PM
    WindowServer[110]
    _CGXNewConnectionPort: Call from workspace.  Updating audit session 100000 -> 100014
    3/8/13 9:23:01.073 PM
    loginwindow[420]
    **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    3/8/13 9:23:01.090 PM
    WindowServer[110]
    Created shield window 0x74 for display 0x41dc9d00
    3/8/13 9:23:01.091 PM
    WindowServer[110]
    Display 0x41dc9d00: VirtualDisplay Unit 0; ColorProfile { 1, "Default(sRGB IEC61966-2.1)"}; TransferFormula (1.000000, 1.000000, 1.000000)
    3/8/13 9:23:01.109 PM
    launchctl[422]
    com.apple.findmymacmessenger: Already loaded
    3/8/13 9:23:01.127 PM
    com.apple.SecurityServer[16]
    Session 100014 created
    3/8/13 9:23:01.128 PM
    hidd[84]
    CGSShutdownServerConnections: Detaching application from window server
    3/8/13 9:23:01.128 PM
    hidd[84]
    CGSDisplayServerShutdown: Detaching display subsystem from window server
    3/8/13 9:23:01.129 PM
    WindowServer[110]
    _CGXNewConnectionPort: Call from workspace.  Updating audit session 100014 -> 100014
    3/8/13 9:23:01.134 PM
    loginwindow[420]
    Login Window Started Security Agent
    3/8/13 9:23:01.150 PM
    airportd[424]
    _doAutoJoin: Already associated to “Network Name”. Bailing on auto-join.
    3/8/13 9:23:01.176 PM
    SecurityAgent[431]
    MacBuddy was run = 0
    3/8/13 9:23:01.183 PM
    SecurityAgent[431]
    User info context values set for NewUserAccount
    3/8/13 9:23:01.212 PM
    UserEventAgent[426]
    cannot find useragent 1102
    3/8/13 9:23:01.372 PM
    loginwindow[420]
    Login Window - Returned from Security Agent
    3/8/13 9:23:01.375 PM
    loginwindow[420]
    ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort, err: 1102
    3/8/13 9:23:01.378 PM
    loginwindow[420]
    USER_PROCESS: 420 console
    3/8/13 9:23:01.381 PM
    loginwindow[420]
    Can not connect to /var/run/systemkeychaincheck.socket: Permission denied
    3/8/13 9:23:01.384 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[434]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:01.385 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:01.395 PM
    airportd[424]
    _doAutoJoin: Already associated to “Network Name”. Bailing on auto-join.
    3/8/13 9:23:11.386 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[436]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:11.386 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:20.987 PM
    warmd[63]
    [_bootcachectl_playlist_dir_for_user:2529] Assertion failed: ((*__error()) == 2): stat'ing /var/db/BootCaches/106DB82C-37AE-44CC-B0B9-6CA37911832C failed: 13 Permission denied
    3/8/13 9:23:21.387 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[438]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:21.387 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:31.389 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[445]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:31.389 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    Does anyone know what's causing the issue?

    Well, the possible fixes I tried ended up hosing my permissions (somehow considering they shouldn't have an I was re establishing root user permissions where they belonged). I had to boot into recovery mode and reinstall Mountain Lion (thank god that it keeps all of my files) and that pretty much corrected everything on it's own. Does anyone know of the exact reasoning for the above issue? Which file or folder it's coming from?

  • Can i use a 2nd iphone if i install itunes on another user account.when i tried to create a second library i messed up both phones, the second one now has all my contacts and when it sends txts it either says its my other phone or email address

    can i use a 2nd iphone if i install itunes on another user account.when i tried to create a second library i messed up both phones, the second one now has all my contacts and when it sends txts it either says its my other phone or email address. i can cope with the first phone and getting it back on itunes but dont want to syn the 2nd phone until i know it is independant of the other one. Does it matter that both phones use the same itunes store account?

    Deleting the account on your phone only removes if from your phone.  The account and it's data remain intact and doing so will not effect your daughter's phone.
    To do this, first go to Settings>iCloud on your phone and turn any synced data (contacts, calendars, etc.) to Off, and when prompted, choose to keep the data on the phone.  When finished, scroll to the bottom and tap Delete Account.  Then set up a new iCloud account with a different Apple ID and turn any data you want to sync with iCloud (contact, calendars, etc.) back to On.  This will upload your data to your new iCloud account.

  • How can I retrieve my password when the retrials email was not recoverable? I also can't use or pass the othere menace of recovery? Not being able to pass or answer the security questions?

    How can I retrieve my password when the retrials email was not recoverable either? I also can't use or pass the othere means of recovery? Not being able to pass or answer the security questions?
    I created a new ID but never being able to update the iTunes that were purchased/saved using the old id?
    I can't also delete.

    Hi Kazmania89,
    Welcome to the Support Communities!
    If you require additional assistance with this, click on the link below for guidance:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Once you are able to gain access to the old Apple ID, this article may be helpful:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?

    First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
    Mac:  iTunes for Mac: How to copy purchases between computers
    PC:  iTunes for Windows: How to copy purchases between computers
    Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch. 
    Cheers,
    - Judy

  • My ipod went to the ''connect to itunes mode'' and i want to use my itunes backup but how can i do that. also when the ''recover your ipod screen'' appeared i accidentally chose not to show it anymore.

    My ipod went to the ''connect to itunes mode'' and i want to use my itunes backup but how can i do that. also when the ''recover your ipod screen'' appeared i accidentally chose not to show it anymore. please help i just had it for half a day.

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success.
    If the issue persists...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • HT3231 I ended up having to create a new user name because the migration assistant wouldn't let me put the data back onto my original user name.  I now have to log into the new user name to see all my data, apps, photographs etc. What went wrong?

    I have a Mac that was part of the recall involved with the faulty Seagate hard drives.  The folks at the Apple Store near me changed the hard drive early December, 2012. I had my data, etc. all backed up on a portable hard drive.  When the Mac was returned with the new hard drive, I used the Migration Assistant to bring everything back over. Trouble was, it wouldn't let me bring it over to my original user name.  I was forced to create a new user name that became the place where everything was restored.  I can't see any data on my old user name, just the basics.  Everything is on the new user name but I wish I didn't have it (just want everything back the way it was originally).  Any suggestions?

    Probably the cleanest thing to do is to erase and freshly install the operating system on the new drive. Then, on the first boot up, don't create a new user, instead select the option in Setup Assistant to immediately bring things over from your backup, which you must connect via USB or firewire. Setup Assistant will then recretae your old user to look just like it used to.
    Before doing this, make sure you realize you will lose everything on the new drive by erasing it, and make sure your backup is still viable.

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • Hi, Im trying to install the CC installer on my new MacPro. When the installer loads it says there's a "Download Error" and can't get beyond that. Everything work fine on my old Mac. Any Ideas?

    Im trying to install the CC installer on my new MacPro. When the installer loads it says there's a "Download Error" and can't get beyond that. Everything work fine on my old Mac. Any Ideas?

    Chasel please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html for information on how to resolve download errors.

Maybe you are looking for

  • Image Links Not Linking in Dreamweaver

    I am evaluating Dreamweaver 8 but may not have it setup correctly. When I click on Image using Local View, Remote view or Testing Server I always get sent to the Image directory instead of linking to the page specified in the link. code <td><a href="

  • Captivate 7 html5 start screen blank - fixes?

    In Captivate 7, if I save as html 5, the start screen appears as blank if you choose not to have Autoplay  in the Settings.  I had read on this board a fix that involves creating a poster image, unchecking Autoplay, and browsing for and selecting tha

  • PHP MySQL sites created by dreamweaver mx 2004 crash on safari

    Hello, The title says it all, but i will elaborate. I develop PHP, MySQl driven database websites, I use Dreamweaver MX 2004 and I work on a macintosh, using both safari version 2 and 3. i have noticed that whenever I post a database item (add, edit

  • How can I ensure that the audio sample rare of my capture preset matches?

    Hi everyone When capturing tapes I get warning that the audio sample rate of one or more of captured files does not match the sample rate on my source tape. This may cause the vidio and audeo of the media files to be out of sync. How can I make sure

  • DW MX Flash Button Upload

    Can someone help me upload my flash button correctly. I can not find the scripts folder. Thanks very much. Mike