Triggers of connection and ROLE PLAY

Hello everyone

We try to place them in a trigger that according to the connection OSUSER (independent of the DB USER) would create different roles
-Please note that schemanames (except SYSTEM) and the procedures have been changed before this post. Even as the DBA role assignment.

Our code like below:

CREATE OR REPLACE PROCEDURE NKOSEC. ROLEGRANT AUTHID CURRENT_USER
AS
BEGIN
DBMS_SESSION. SET_ROLE ('DBA');
END;
/


CREATE OR REPLACE TRIGGER SYSTEM. LOGON_ROLE
AFTER LOGON ON DATABASE
DECLARE p_session_user varchar2 (64);
pragma autonomous_transaction;
BEGIN
SELECT TOP (SYS_CONTEXT ('USERENV', 'OS_USER')) INTO p_session_user FROM DUAL;
CASE p_session_user
When "NKOSEC" THEN BEGIN
NKOSEC. ROLEGRANT;
END;
-Other
-nada;
END CASE;
EXCEPTION
WHILE OTHERS THEN
-Consider recording the error and then re-raise
LIFT;
END;
/


SQL > CONN NKOSEC
Enter the password:
ERROR:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-06565: cannot run the ROLE VALUE in the stored procedure
ORA-06512: at line 15 level


Could you please say how to work around this problem?

Thank you.

System information:

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Release 11.2.0.3.0 - Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

Published by: user9030445 on 28-mar-2012 13:33

Have you explored the possibility of using operating system authentication for this problem?

http://docs.Oracle.com/CD/E11882_01/network.112/e10574/authentication.htm#i1007520

Kind regards.

Tags: Database

Similar Questions

  • USB Foot Switch triggers them connected and disconnected a beep

    Scythe USB Foot Switch Triple is originally the connected and disconnected beep continuously causing spike lag on my computer. Was started when I downloaded the Logitech software G600 Gaming Mouse on my computer. The pedal is showing as "usb composite device" on my device manager with an exclamation point. When I remove the Logitech Gaming Software the exclamation mark disappears and no beeps.

    Scythe USB Foot Switch Triple is originally the connected and disconnected beep continuously causing spike lag on my computer. Was started when I downloaded the Logitech software G600 Gaming Mouse on my computer. The pedal is showing as "usb composite device" on my device manager with an exclamation point. When I remove the Logitech Gaming Software the exclamation mark disappears and no beeps.

    You must contact probably two manufacturers (Logitech and false) to try to understand if there are newer versions of drivers and known issues.  They can work with you to resolve this conflict.

    A quick look indicates that you'll probably have more luck with Logitech that fake.  :-)

  • I would like to know if the IPOD Nano is able to connect and play the music of my Time Capsule Machine. Thank you

    I would like to know if the IPOD Nano is able to connect and play the music of my Time Capsule Machine. Thank you

    N ° iPod nano can play that media that is loaded on it.

    TT2

  • When I open Firefox, tab keeps flipping quickly between 'Connection' and 'new tab '. The browser does not connect to any site.

    This occurred just after the visit to the site of isohunt. I got a message saying "Firefox stops."

    IsoHunt from installing a program, will you allow?" (or words to that effect). I gave permission then the problem started.
    

    I used Firefox on my iMac for a long time without any problem. I'm running OS X 10.7.5

    I hope you can help

    I have this problem on my pc but I was watching youtube then fallout new vegas nexus so I closed it and then start playing a game, and then when I opened firefox again it was flashing between tap connection and new

  • Securities is no longer play in my music (using iTunes game, wifi...), has done before, can download and then play, but not stream - all, it was fine before!  Help!

    I hope that someone has had a similar problem and a solution!  I tried resetting the phone (5s, latest ios etc...) to factor settings, setting back via iCloud backup, reset connections network again, you name it!  Basically, I play all my music (which was more often downloaded from my PC at home using iTunes game, as I already had a vast collection of CDs before buying my first phone) via a wifi connection and have had zero problems (using various home wifi connections) and besides... until a week ago.  Today, only some beaches (and incredibly, they can vary from day to day...) on some albums (in general, not an entire album, either...) won't play - he simply "jump through" them.  However, I can upload them on my phone (on the same wifi connection, you mind) and they will play very well!  Obviously, however, I don't want to (can't - much too) to download all my songs to play!  Any suggestions would be most appreciated!

    Make sure that your device is updated... Sometimes new songs are not compatible with the old software.

  • I unplug from online games after 1 to 2 minutes. rate of good connection and then nothing more the link broken.

    My main game I play is guild wars and I had the same problem for a long time.i am a tech fool and don't know how to solve a large part.

    Well, how many times it will happen?  You could try to contact your Internet service provider and inquire with them about the problem.  They can troubleshoot your connection and see if you have one problem of latency or other.  You can also get updates of your network drivers if you know who makes your system.  Usually, they have a website where you can download the updated network drivers.

    Kevin

  • Two monitors, prompting connected and trying to get to work

    My friend and I try to connect two monitors on his desk and we have the computer connected properly, but the screen is not any kind of signal to the computer (it won't turn on, just has a black screen or say in power saving mode). The main monitor works (of course, as l write this) it connects to the NVIDIA DVI (a video card installed) card, and the second monitor is a VGA. The second monitor we want to plug that we want to use on the OLD card came with the computer video, and we have the ports for it. However we are unable to operate, and it is quite frustrating. We have tried to update the software, but we think he may have disabled the second video card without meaning to, and we know many things at this point:
    1 can I use two monitors to two different computers and use them to do different things (for example use it to surf the two different sites with two different keyboards/mouse, or play two different games (our intention is to play WoW the computer off) in this way)?
    1a. If Yes, can someone please a link to a site that would be easier to read and understand? (We were already posted some, but they are confused or just say the same things and do not work)
    2. how to reactivate the video card should it be disabled? Once again, the simple steps please.
    3. can we use two separate video cards to run two different items on the computer, or would both forced to run out of the video one card?
    3. If so, is there someone who can explain how to bind a monitor with a video card and not the other?

    Hi warpedchocobo,

    Windows detects and identifies each monitor and projector that you connect, and applies the video settings that are best suited to each display. When you connect an additional monitor for the first time, you can choose how you want your desktop to appear on the screen. In addition, Windows collects information about the video capabilities of the additional screen, including the size of the screen, the screen resolution and the color depth.

    On Windows Vista, older XPDM drivers still work and the behavior of multi-monitor with XPDM drivers has not changed, because the operating system uses the existing graphics stack.

    However, the Display Driver Model WDDM (Windows Vista) brings fundamental changes to the management of several graphics cards and external displays. This includes a new restriction, because WDDM drivers do not support multi-monitor «multicard and heterogeneous» implementations

    See the links below for more information.

    http://windowshelp.Microsoft.com/Windows/en-us/help/90b6964d-2673-40E5-9fdf-6edad3916af31033.mspx

    http://www.Microsoft.com/athome/organization/twomonitors.aspx

    http://windowshelp.Microsoft.com/Windows/en-us/help/16152337-A45C-4a1a-B302-cfd95399ce071033.mspx#EI

    http://windowshelp.Microsoft.com/Windows/en-us/help/c90105a0-57c1-4f0e-b095-b5ed1de8fc431033.mspx

    http://www.Microsoft.com/whdc/device/display/multimonVista.mspx

    Diamond

  • Netflix in Media Center returns a 'there was a problem of data recovery. "Check the works of your internet connection and try again" error instead of loading Netflix data.

    context: a previous thread with an identical title never responded, the problem just disappeared.  Well its been two weeks since then and the problem came back.

    somethings which may or may not apply: internet TV seems to work better in media center.  All updates have been applied to H.P. of Vista SP2. Netflix works fine in ie8 (such as the internet, of course). Tried to delete all the Internet Options, delete browsing history section of Internet Explorer. I get the same error message with my windows 7 professional media center, but netflix seems to play anyway (no game with vista). I recently installed quicktime alternative 2.72 to see what it was and how it worked, then removed and put back in quicktime.

    Tried / symptoms:

    -Remove all the browsing history (econcepts)
    -Same message on Win7pro but works even when (econcepts)
    -Works on Win7 no problem (omegafiler)
    -Works in ie 8 (econcepts)
    -Works in crome (Martin TX)
    -Consensus is that it started around December 30, 2009 (GeoffG1, johnetX, me)
    -Remove and reinstall silverlight (omegafiler)
    -Remove and replace netflix plugin (omegafiler)<- how="" did="" you="" do="" that="">
    -Netflix says: microsoft problem (Nitestalker)
    -Microsoft is silent (this thread - on vacation?)
    -Same problem on 32-bit and 64-bit VMC (JRSMiamiFL)
    -No applied update (johnetx)<- perhaps="" date="" related="" or="" drm="" date="">
    -Disconnect from netflix, you reconnect again - ultimately the same error (chicagokiwi)
    -Tried to reduce the number of items in the queues to well below the limit of 200 (econcepts)
    -Tried the register / unregister the third wire procedure, no joy (does not break anything else however)
    -Disabled the firewall, no change (econcepts)

    related topics:
    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/0c154c0a-1fcb-4353-8c5e-b394e885256d

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/aaab24a0-4BB9-42FA-a5ee-46a733d6560f

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/f05f69c7-6456-4117-B302-27c08886ea1e

    Someone else knows Netflix not being is not able to connect?  It started yesterday (30/12/2009) for me.  I looked fine the day before without problem.  The message I get says "there was a problem of data recovery.  Check the works of your internet connection and try again. Ok.  I make it work with both my VMC - one with the service pack and the other without.  My OS updates have been loaded in early December, so I don't see how this could it be.  I searched and found this problem has come up before, but I have not found a solution.  I made NO changes to my HTPC.

    Those who have and solved this problem.

    UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE *.

    2009-01-05 has attempted to start Netflix this morning and you know, it works on both my VMCs.  That's the good news.  So now the real questions are:

    Only 20 people reported it as a problem and only 6 on the green button.  I believe that it affected all the world with Media Center.  So why not discussed much?

    It already happened, causes a stir and silently slips without known cause or cure.  How can we find out what caused this and how to prevent it from happening again in the future?

    *******************************************************************************************

  • Connect and cancel the box

    Hello. the problem is the connect and cancel box appears every time you feel. It happens while on the internet, playing cards, etc., the machine is a hp Pavilion, and the hook from the internet to the top is Verizon that works as a cell phone. Thank you

    Should be in the Internet Options window and check the Connections tab and which is checked. Should be "a connection each time that there is no" or always compose.

    If you are Verizon DSL or FIOS. If this is FIOS you should not get this message and it's fixable.

  • I have unstable connections when im playing games online

    I used to play games online in this PC and it works fine, until I made a new user and I did know that I have connection problems whenever I logged in this user. (the new user is an administrator)

    Hello Mike,.

    Thanks for posting your question on the Microsoft community.

    Thank you for details on the issue.

    This problem can occur because of incorrect or damaged Internet connection settings or due to corrupted browser modules.

    I suggest you run the troubleshooter for Internet connections and check.
    Reference:
    Using the troubleshooter from network in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    If this does not help, follow the steps in this article and check the issue.
    Reference:
    The problems of games online using Internet Explorer
    https://support.Microsoft.com/en-us/KB/2528246

    Note: The feature reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings. Reset Internet Explorer is not reversible, and all the previous settings are lost after reset.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Why Windows Media Player suddenly not recognized my portable device even if the device is connected and is displayed in my computer?

    Until a week ago, Windows Media Player and my portable device of Sanza fuse got along beautifully when sudden WMP ceased to recognize the device.  This despite the fact that the Sanza is correctly connected and appears in the personal devices from my computer.  The Sanza even shows on its screen that is connected, but it's like OMP no longer sees it? Any thoughts? This who could I have inadvertently done to cause this painful ' divorce? Thanks for any help.

    Hi Cynthia,.

    Welcome to the Microsoft Community and thanks for posting the question.

    According to the description, it looks like you are facing a problem with Windows Media Player.

    It would be awesome if you could answers to these questions in order to help you further.

    1. have you made changes on the computer before this problem?

    2. are you able to play other files using Windows Media Player?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Run the troubleshooter in Windows Media Player and check if that helps.

    Open the troubleshooting Windows Media Player settings Troubleshooter: http://windows.microsoft.com/en-US/windows7/Open-the-Windows-Media-Player-Settings-troubleshooter

    Method 2:

    Try to uninstall and reinstall Windows Media player from Windows features and check if it helps.

    Enable or disable Windows features: http://windows.microsoft.com/en-US/windows7/Turn-Windows-features-on-or-off

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • Why does my Radio Music Apple page in iTunes for Mac only display stations 'Featured Stations' and 'recently played '?  Where are the more specific pre-made stations such as 'Chill '?

    In the Radio to iTunes with Apple's music section, the kind most stations (i.e. "Chill") beyond the generic 'Star centres' and 'Recently played' sections have disappeared in the last week or two.

    Anyone know what is happening?

    I notice in the version of iOS of Apple music genre stations are still...

    At the top of the Radio display, you will see 3 tabs in blue. "Star", "beats 1" and "Stations". "." Click on 'Stations' to see the genre stations.

  • ITunes store does not connect and then does not close help please

    OK, so pretty much whenever I try to enter the Apple store that I get a little pop-up that says it can not connect to the Itunes store, I have to check my connection and try again, but whenever I close this box it appears immediately back to the point I can not even close Itunes with having to go Task Manager and ending the process manually.  I can't use the store at all and it's just getting really frustrating, because I know my connection and everything is not fine so it is no reason for this pop up.

    is anyone else having this problem or if you have had this problem and know how to fix?

    Hello LadyJibril,

    Thank you for using communities of Apple Support.

    I see that you have problems connecting to the iTunes Store. I would recommend from the suggestions in this article: If you can not connect to the iTunes Store

    If that doesn't help and you still have questions, then you can proceed to the procedure described in this article: Advanced steps for fixing iTunes Store connection issues

    Best regards.

  • I think my account has been usurped. Tried to connect and change the password. Unrecognized user name.

    People I know receive emails from what appears to be my [email protected] account. I tried to connect and change my password and get an error message saying that the account is not recognized.

    Try the Gmail Help Center - which is not a problem of Firefox support.
    https://support.Google.com/mail/?hl=en#topic=3394144

  • 7th generation iPod connected and says sync completed immediately but no music transferred

    new 7th generation iPod connects and configure the sync seems ok, but the iPod shows

    icon for 10 seconds and the iMac to sync iTunes say synchronization is complete but not transferred music

    Check the tab music for the device that you have selected is part of the content to be synchronized with the device.

    TT2

Maybe you are looking for