Is there a concept like "Impersonation" in Oracle DB?

Hello

Is there a concept/feature in databases Oracle which offer the possibility to 'borrow' a user, i.e., log in as a user Oracle DB (a "service account"), but then act as a user different Oracle DB, something similar to what is described here (for SQL Server):

Context switching or impersonation of database using EXEC AS - of SQL Server performance

The substance of this issue is that we want apps to be able to connect to an Oracle database as a service account (for example, myserviceaccount) but then to switch the context of a user (for example, in the case of a web application, the user logged on to the web application).

Is there a way to accomplish something like this in an Oracle database?

Thank you

Jim

The substance of this issue is that we want apps to be able to connect to an Oracle database as a service account (for example, myserviceaccount) but then to switch the context of a user (for example, in the case of a web application, the user logged on to the web application).

Why? What PROBLEM are you trying to solve?

What is the purpose to connect as a "service account" (whatever it is) but then acting as another user? Why not just connect as a user?

Oracle controls the access using privileges. You can grant privileges directly to users, or you can grant privileges to ROLES and then assign one or more roles to a user.

By default, PL/SQL code, runs as the owner of the code. If a privileged user can create code (default AUTHID DEFINE) and then grant EXECUTE privilege on this code to other users or roles.

Oracle also supports authentication and proxy connections that allow a user to connect as another user without having to know that another password to users. See examples here:

http://docs.Oracle.com/CD/B28359_01/Java.111/b31224/proxya.htm

Post an example that illustrates the reason why you should do what you ask the subject.

Tags: Database

Similar Questions

  • There is no option to select oracle technology in new model

    Hello

    I am trying to connect to oracle database. I created the oracle database server. Connection was successful.

    On the Designer tab, select the model tab. In this new model, I'm picking technology 'Oracle '. But there is no option to select "Oracle." Please help me?error4.png

    Normally, you scroll down the list of technologies and select 'Oracle' and that's all.

    Can you go the topology browser and make sure that Oracle is on the list of technology - just in case someone has deleted it

  • I'm using Adobe Photoshop 5.5 Windows XP & have no. SL. with me. Recently, I changed my Windows 7 operating system and tried on several occasions in compatible mode software is not downloading, is there another medium like patch etc, please suggest me

    I'm using Adobe Photoshop 5.5 Windows XP & have no. SL. with me. Recently, I changed my Windows 7 operating system and tried on several occasions in compatible mode software is not downloading, is there another medium like patch etc, please suggest me to solve the problem.

    as I know he never was a 5.5 ps, but something more old ps cs2 (version 9) is not likely to work on any modern operating system.

    You can use your old computer with them or try and install using compatibility mode or consider an updated version of the ps ($ 10 / month for lr and ps is the plan more economic that includes ps), plans, pricing and membership creative cloud | Adobe Creative Cloud

  • Are there discounts for employees of the Oracle

    Hello

    I'll take OCPJP 6: exam 1Z0-851 very soon. I have not yet voutcher.

    Are there discounts for employees of the Oracle? Where can I get more information on this topic?

    THX.

    Oracle employees can go to the University of my.oracle.com > Oracle > Certification > certify you > used to access delivery information. You will need to check with your administrator to determine if it will approve the refund.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator

  • Concept of table in oracle

    I wanted to know if there is the concept of table/list in oracle as we have c, c#.

    The reason for this question is. I have a CSV file that has thousands of line of integers separated by commas. So let said the first file contains the data looks like in -.
    File1.txt-
    1,2,3,4
    5,6,8,9
    12,22,23,1,3
    ..

    I have another CSV file that has thousands of integers separated by commas line which looks like.
    File2.txt
    5,6,7,8,9
    10,22,3,4,5
    ...

    What I was trying to achieve was a list of Int table which is present in File1.txt and File2.txt. Please note that the order of the numbers in a table is not relevant. Thus, 1,2,3,4,5 is the same as 4,5,3,2,1

    I tried to solve this problem with c#, but it takes too much time. So, I wanted to discover if this is possible by using the concept of table/list of oracle.

    Please suggest

    >
    Sorry, I have not included the full detail. So, for '4. Used a logic that exclude List1 List2. «what I used was the Linq query that looks like InputNumberList2.ForEach (x-online InputNumberList1.RemoveAll (inner-inner online.» SequenceEqual (x))); (I tried without using Linq too but no difference in time)
    >
    I'm not familiar with "Linq" queries, but according to the description on this page (http://msdn.microsoft.com/en-us/library/bb397676.aspx) that seems to make a complete iteration of the entire table for EACH ENTRY in File2. This performance would be TERRIBLE. It is roughly equivalent to a Cartesian join between two tables; something you almost never want to do.

    A hashmap.put and delete is very fast in comparison.
    >
    So, if I understand what you're suggesting is -.

    1. first of all, instead of int table, have an array of strings.
    2. use of Hashtable or a dictionary.
    >
    You have both. The int table contains the array of integers between the fact on a 'split' record: '4,2,3,1' becomes an array of int with 4 values.

    You sort the table and then create a chain of him: your input string is '4,2,3,1' and the new channel would be "1,2,3,4" in order.

    You use the new channel as the key of the hash table and the record number of that the chain came as value.

    When you add the new channel (the HashMap ' put' method) method 'put' returns 'nil' If this string existed already, but returns the previous value (registration number), if the channel existed.

    So if the file1 #1 file has the string '4,2,3,1' it will be stored in the card using myMap.put ("1, 2, 3, 4', 1") and the call will return NULL. So if the #4 file has the string '3,2,1,4' it will be stored in the card using myMap.put ("1, 2, 3, 4', 4 ') and that the call will return"1"because this string already exists. You can now connect as a duplicate that exist in file1: the string you would log is "1,2,3,4"et number registration connect is 1". By journal I mean write to a file, put in a list/map, etc.

    This way you can still use your list "duplicate" to find the originals in your input by their registration number file.
    >
    Also, I'm not clear on this part - "and when your deletion of a string in File2 is successful (which means that you have had the same value in File2 you had in file1) you can log THIS information in a file"file2_value_exists_in_file1"with the record number of times the file1 and file2 folder."
    >
    The same concept applies here. For each entry in File2 instead of myMap. Put that you use myMap.remove to try to remove the string File2. The "remove" method returns null if the string does not exist, and returns the record number if the key exists. So, if the return value is NOT NULL, then the returned registration number is the record number in file1 which had this same chain.

    You can save this value chain and the record number of file1 in a list which represents strings that also exist in File2 file1. And you can save the File2 registration number and the string as the corresponding record of File2.

  • Is there a free version of DBMS Oracle for learners?

    My teacher said that there used to be a free version of Oracle for people to download and use to learn. So I thought I would check with you guys to understand that if I can ensure that I have to download and install the right thing because I'm not familiar with Oracle products.


    Thank you!

    Yes, software of Oracle database downloaded according to the OTN Developer license is free for a test/development/prototyping

    See http://www.oracle.com/us/downloads/index.html

    and http://www.oracle.com/technetwork/licenses/standard-license-152015.html

    Most of us also use the downloaded software for self-learning like to develop us or test code and features.

    Hemant K Collette

  • Is there a user space free freeware Oracle DBA?

    Hello

    I spent a few days in Google, looking for a service to public housing, but so far no of seemed acceptable and available for free. Free blog sites, I checked have restrictions on file type for files, which is not as responsive. Google Docs does not work with tools like curl or wget. Y at - it a public ftp or web service available were Oracle users and administrators can get and store free Oracle database related software, such as scripts and utilities? Let's say you had anything you'd like to share for free - where would you put them?

    Thank you!

    Example of code?
    https://www.SampleCode.Oracle.com/SF/sfmain/do/home

    Nicolas.

  • Is there a program like MS Visio for Mac piping design?

    There is no alternative to Visio to design the schema piping and instrument on mac?

    Hi, I'm a fairly new apple, looking for some advice mac user, I made many drawings of network by using office visio, y at - it a version mac or equivalent or other ideas how to change some of these visio drawings. Thank you

  • Why does evrytime it there serch bar like google the background is always blue? It is difficult for me to see my text, how do I get rid of this? as he wrote the bar all im is blue. It's not white like its supposed to be.

    Whenever I type in a search like Google bar, then click the bar the bar immediately turns blue it is particularly difficult to see my text that I write. It happens on any type of google search bar, ask, yahoo, msn, facebook, even when im trying to connect to different sites or signature upward for things the bar turns blue. It is extremely annoying and I tried several times to uninstall and re install fire fox and the problem persists. I have fire fox on my other computer and it does not happen on this computer.

    Perhaps this issue with Comcast constant Guard (protection of hits)

  • There FCPX effects like photo booth to deform the faces?

    Hi, I have filmed a scene soon and want to have 2 faces peoples tripling resembling effects of Photo Booth, but I would need to add effects in FCPX. Does anyone know any available effect? Or is there a way to manage my images by photo booth or something similar?

    Thank you very much.

    Yes. There are a number of effects in the category of distortion.

    If you have the FCP now look to warp; If you do not, there is a recommended 30 trial you can download and test to see if it meets your needs.

    Russ

  • is there a program like garage band for microsoft?

    I heard on the internet that microsoft was working on a program called monaco a few years back just wondering if anyones heard anything on this subject?

    Hello

    Thank you for using the Microsoft Windows Vista Forums.

    There is no update on this software. However, you can always check for the latest software and download it at the link below.

    http://download.Microsoft.com/

    Please post back and let us know if it helped to solve your problem.

    Kind regards

    KarthiK TP

  • Is there a function like desktop access remotely raspberry pi?

    Hello

    I'm looking for Raspberry PI features like remote Deskop like Window XP, 7.

    As raspberry Linux OS, have the remote desktop functionality?

    Your comments will be appreciated.

    Thank you

    Hello

    I suggest you to contact the Linux support for more information.

  • Is there a tool like MyMobiler for BB? some kind of viewer of BB?

    Hi, I would like to see the screen of my camera on my PC? Do you know such a request? Thanks in advance! Marc

    I'm not sure other tools, but I use BBScreenShooter.

    Not sure if I can post the link here. Google the name and you should get the download link.

    Note: You can also do this with the javaloader.exe command-line tool, which is part of the JDE. But this tool also uses javaloader.

    Kind regards

    yosoh.

  • There is a matrix of Certification Oracle Client data provider?

    Hello

    Does anyone know where to find a Certification Matrix to know what Version of Oracle Client supports what?  for example .NET version 4.5.1

    Best regards, Manfred

    Hello

    From your tip in the Document, I found a releated link that helps:

    Supported by Oracle Data Provider (Doc ID 726240.1) configurations for .NET (ODP)

    Thank you

    Best regards, Manfred

  • Why my copy of Photoshop CS3 did stop working? The message tells me that Adobe has stopped licences there. I like it. I want to use. How?

    My copy of Photoshop CS3 has stopped working. I like it. I'm very familiar with it. I paid hundreds of dollars. When I click on it (W / my MAC) I get a message that says: "you cannot use this product at this time. You have to repair the product by contacting Adobe customer service. »

    So, how can I fix it so it works again? I called the 'Chat' forum three times, and they do nothing. Help, please... I use this Photoshop CS3 for work.

    I have the serial number, but not the original disk, which was damaged.

    Thank you in advance.

    Rob Taylor

    I'm moving Mac OS 10.9.5

    Benjamin:

    Thank you. But when I logged in and tried to download the Setup program for

    PS - CS3, I received this error:

    HTTP ERROR: 404 /support/downloads/dlm/main.jsp

    Do you know how can I error?

    Rob

    The game, 14:51, 2 April 2015, photograph by Benjamin root

Maybe you are looking for