How to revoke everything from a user when opening a new session.

HI,
I am using oracle 10g Express Edition and SQL Developer.
I have 2 user, 2 database connections in my SQL Developer.
First user is Oracle and its database connection is called TCF.
Second user is SMITH and its database connection is called TCF_SMITH.
Oracle user has privileges to do anything.
SMITH user has no privileges except for CREATE SESSION.
What I am trying to achieve is assign a user to a role (this role will have grants to select, insert , update from tables) for the current session (this step is successful), and then revoke
The role from that user (set it back to its default/or revoke everything from it) if opening another session, or session has been terminated (what I am trying to achieve).
From TCF I was able to do the following:
CREATE synonym SMITH.EMP_IOD FOR EMP_IOD;
CREATE ROLE TCF_I;
GRANT SELECT, INSERT, UPDATE ON EMP_IOD TO TCF_I;
GRANT TCF_I TO SMITH;In TCF_SMITH
SMITH has the same privileges as TCF_I.
so, smith now can select, insert , and update from EMP_IOD table.
If I open another TCF_SMITH session, and select * from EMP_IOD I should not be able to see any of the records.
I am trying to make this session base only. Unfortunately when opening another session I am able to select, update and insert records in the new session.
Is there a way to make this session based ?
How can I revoke everything from user SMITH from TCF connection ?
Thanks,

Oh My Good Lord!
Rooney,
What are you attempting to do ?
In programming anything can be achieved, but there are speicifc tools to solve specific problems .
I think you are trying to use fork to paint a wall* (If painting the wall indeed is your requirement).
The "need" as you say...
+The need for this is to grant the user different roles each time the user logs in.
for example I can log in 5 different time in one week with different role each time.
Moday I could have access to X,Y,Z,
Tuesday I could have access to X,A,B
Wednesday I could have access to A,B,C.+
... is to solve WHAT PROBLEM?
Please describe your original requirement , not what you think should be the solution/tool to satisfy the requirement.
In your previous thread you "solved" privilege/role problem by creating SYNONYM. That does not compute at all.
Re: database roles seems like its not working for me - your help is appreciated
Think about it. We are here to help each other as best we can.
Please read more* about Oracle capabilities and "tools" it provides.
http://tahiti.oracle.com/
Especially the Oracle Concepts Guide ...
http://download.oracle.com/docs/cd/B14117_01/server.101/b10743.pdf
Also, please take time to respond as "helpfully" as possible. each response from you should take you closer to the solution.
Hopefully, your original requirement will be solved.
vr,
Sudhakar B.

Similar Messages

  • How not to get back on the page i just closed when opening a new session

    How not to get back on the page i just closed
    when opening a new session?
    I do have a live stream radio on now...
    Therefor new session might not be the complete truth.
    Gerard

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How do i set it to yahoo when opening a new tab??

    i have windows 7 home premium,, when opening a new tab ,, why is it always blank... how can i change it to be automatically in yahoo or goggle??

    https://addons.mozilla.org/en-US/firefox/addon/newtaburl/

  • Is there a way to focus the Firefox proxy authorization window to be on top or be the focus when opening a new session?

    Using FF 3.6.7 through a Squid proxy server on Windows XP Pro at my office. When starting FF, the proxy authorization dialogue box (for proxy user ID and password) is always hidden behind other open windows. A new tab for the box doesn't even appear in the Windows taskbar. I have to ALT-TAB may way through the windows to get to it, and sometimes, I even forget that it's there and I wonder why FF isn't opening.
    Is there any way to force that proxy authorization dialogue window to be the focus when opening FF? This problem does not happen with IE.

    This addon ought to do the job
    * https://addons.mozilla.org/en-US/firefox/addon/always-on-top/
    You will need to open your video in a window and not minimise it fully only shrink it to the size you want.

  • How to remove a from email address when composing a new email?

    when I compose a new email in the from drop down list there are three emails that are mines that i can use. there is an @icloud.com email there that i did not create. how do i remove it?

    Hi, AC360.
    First, ***** won't help you here. People here are users just like you and I, and as both of us, they like to be treated with respect. So, adding bad-word-like characters won't get you any faster or closer to your solution. And even if you don't want it, you got it. iCloud is here to stay and until Apple decides to change its cloud-based service name, we'll all have icloud.com e-mail addresses.
    But as stated before, you didn't lose your @me.com address and you're not forced to use your icloud.com one.
    Now, focusing on your problem, since you're annoyed because the @icloud.com address is listed in your "from" drop-down, you can simply remove it from there by:
    1. Access iCloud web interface at www.icloud.com
    2. Click the Mail icon (it's the blue one with an envelope in the middle. You can't miss it. )
    3. On the top right corner of the next screen, you'll see a gear-like icon. Click it.
    4. Click "Preferences"
    5. Click "Composing"
    6. In the "Send From" section, uncheck the address [email protected] (where "yourname" is your own iCloud username)
    7. Click "Done"
    8. You're done.
    See? Problem solved. Now you can sleep tight not worrying about what Bad Apple tried to force down your throat.
    Hope I have helped.
    Be good, stay calm, and respect other children here at the playground, ok?
    Cheers,
    JP

  • How to recover everything from wd time capsule to a new mac mini

    Hi
    My mac mini just died on me.  The good thing is i backed everything up on a wd 2tb external hardrive.   I just purchased a new mac mini and when i recieve the new mac mini, what do i need to do in order to recover everything i had on the old mac mini from my external drive.  Any help would be appreciated. 
    Eric

    Welcome to Apple Support Communities
    During the initial setup of your Mac mini, it will ask you to restore a backup. Connect the external drive, select the option to restore a backup from an external disk and follow the steps. You will be able to select what you want to restore. If you want more information > http://pondini.org/OSX/SetupLion.html

  • How to stop password from automatically polulating when opening email page

    when i open my Network Solutions webmail page, my password automatically populates so anyone can enter by simply hitting login. i would like my password bar to stay blank, but it does not, even if i change my password...the new one starts to appear! i have spoken to NS twice, and both times they say i have to clear it through Firefox. can you help. also, they say my "Tools" button should have an "Options" dropdown. which it does not. what's with that?
    thank you.

    You should try this :
    Go to System Preferences -> General
    Uncheck "Restore windows when quitting and reopening apps"
    By holding shift key might be a temporary solution
    This should solve the question
    P.S. : In fact, this helps in booting the Mac quite faster as it opens all the unclosed apps again while shutting down!

  • How to get links from other applications to open a new Firefox window

    I have non-Web browser applications that want to open browser windows. I have Firefox as my default Web browser. When these other applications pass a URL to Windows, Windows passes the URL to Firefox. Unless there are no Firefox windows running, Firefox then opens the URL in a new tab of the most recently used Firefox window. I would prefer that Firefox open a completely new window. Where can I find the setting for this behavior?
    Thank you,
    Dan

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    See also:
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Preferences_not_saved

  • How to backup files from other user logged in as administrator

    RE: How to backup files from other user logged in as administrator AND/OR how to repair drive with "Invalid catalog PEOF"
    Hello,
    My MacBook Pro computer’s hard drive is not booting.
    I booted with the base operating system and ran Disk utilities and I got the following messages:
        Invalid catalog PEOF
        The volume could not be verified completely.
        This disk needs to be repaired.
        Disk utility can’t repair this disk. Backup as many files as possible, reformat the disk,
        and restore your backed-up files.
    The problem is that I have a couple of USERS set up on this computer, and it won’t let me backup the files of the second user.  The folders are locked and I can’t access them, even though I am logged in as the administrator.
    I made a boot disk on my other computer ( a MacPro Early 2008 ) desktop computer with the DiskWarrior 4.4 updater,
    but it won’t boot on my MacBook Pro.
    How can I backup these user files so that I can copy them back once I fix the drive?
    or better yet,  How can I repair the Invalid catalog PEOF on this drive?
    Thank you in advance for your time! 
    Bill
    THIS IS THE COMPUTER
    ================
    17” MacBook Pro 2.8GHZ 4GB Ram (purchased in 2009).
    Model: A1297
    Running Mac OSX 10.9.5

    Try using Disk Utility/Restore to copy the backup to a new location. Please note that this will reformat the destination partition which will erase all data.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors.  Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)
    When you reboot, use Setup Assistant to restore your data.

  • HT4527 How I transfer everything from my Ipod to anew PC?

    How I transfer everything from my Ipod to anew PC? and cancel previous PC

    Try this user tip: Recovering your iTunes library from your iPod or iOS device
    tt2

  • How to move everything from my 3GS to my new 4s

    how to move everything from my 3GS to my new 4s without losing anything (all apps messages notes etc. also on Macbook Pro)
    the carrier provided a new smaller SIM card.

    Connect to iTunes and backup your 3GS.  Connect your 4S and and go through the initialization process.  When it asks you to setup your phone as new or restore from a backup, select "restore from backup".  Select the most current backup you just made of your 3GS.  You should be good to go after that.

  • How do I copy everything from my old Iphone to my new one?

    How do I copy everything from my old iphone to my new one?

    Refer to these articles:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751

  • I just received a new ipad and presently have an ipad 1. I was wondering how i can transfer everything from my old one to my new one and keep the same accounts and passwords or is it even possible or do you have to repurchase all of your apps

    I have an ipad 1 and just receive the new one.  I was wondering how i can transfer the apps and things that i have on my old one to my new one and keep the same account names and passwords.  Or do I have to purchase averything over again.

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • HT201269 how do I move everything from my Iphone 5 to my new macbook pro?

    how do I move everything from my Iphone 5 to my new macbook pro?  the previous Macbook Pro was stolen and I don´t want oto loose all the information... music, photos, apps, videos, movies, that are in the Iphone 5...
    Someone can help me?

    https://discussions.apple.com/docs/DOC-3141

  • HT1379 Summary: how to transfer files from SD card when the system (Mac OS X v 10.7.5) will NOT recognize SD cards.

    How to transfer files from SD card when the system (Mac OS X v 10.7.5) will NOT recognize SD cards?
    Insert the SD card.
    System opens iPhoto with SD contents.
    Want to transfer files from SD card to system drive.  iPhoto closes
    SD card directory removed from the Finder window and is not available again. 
    I don't want to have to reboot the system every time I want to perform this option.
    What's wrong here. 
    The support columns show this isn't an isolated incident with all sorts of solutions possible.
    This is a simple task - there should be a simple method for the system to recognize SD cards.
    What's the answer?
    I've reviewed a recommendation to reset the SMC.
    https://discussions.apple.com/message/18500187#18500187
    and
    http://support.apple.com/kb/HT3964
    and another thread that says, basically, you must buy extra hardware to perform this simple task,
    https://discussions.apple.com/message/16911326#16911326
    another one that has the same problem with OS Mountian Lion,
    https://discussions.apple.com/message/21919740#21919740
    another one with the problem that says SD cards can't be read by Apple unless the card is formatted specifically for Apple, ie. that Apple is not compatible with other cards, but the problem maybe something else that requires Apple service - (bad SD card reader?).
    https://discussions.apple.com/message/18711818#18711818
    there are probably more discussions, but I dont' want to spend my entire sunny in Seattle day working this.
    thanks for the help!

    Bucky Fullmeister wrote:
    When I plug in an SD card, the finder window shows it under the DEVICES section.  At this point, I can drag the contents to the hard drive.  However, when I screw up and click the character on the right side of the name - it apparently closes the SD card and I can't find any command to reload or re-recognize the card.  I have to remove and reinsert the card and then sometimes it recognizes the card.  Other times I reboot and it will recognize it.
    What does that character on the right side of the SD card name do?  Is it an eject function - with no way to subsequently reread the drive?
    It ejects or unmounts the card. When the SD card mounts click on it once to highlight it and then drag the files shown within it to the new folder.
    Pete

Maybe you are looking for

  • How do i use two ipods on the same computer?

    I have had my ipod for 4 years now.I have 1500 songs in my itunes library. My wife has just bought an ipod. How do I put songs on to hers without mine going on to hers, which is what keeps happening.

  • Sending an iPhoto picture gallery to MobileMe

    When synchronizing an iPhoto picture gallery to MobileMe, is there any way to filter out which pictures in the gallery you want posted. For instance, can is there a way to only upload the "flagged" photos?

  • SWF file not playing in flash player

    Hello All I am working on this project for a client, suddenly no-one can get the SWF file to play. https://drive.google.com/folderview?id=0ByWDl-PaRWIFY0c1SnEwbUNraUE&usp=sharing The file is there. If anyone can help please do. I know this file works

  • Getting a new 8 core!!!

    so my questionis can I link the new G5 to my old PPC G5 and use it as a "file" server... I have a lot of files to move otherwise....

  • Profit centre in Document Splitting

    Hi! I am facing problem with profit centre in document splitting. My client is posting document with two Balanse sheet accounts like Accrued Expenses Dr to Bank A/C, where both are Balance sheet accounts and there is no profit centre in those line it