the user can only read

Hello
Should I create a user who can only read the tables in another schema. (this schema has 65000 tables and I want to avoid execution grant select on table1, table2... to MYUSER).
Then, I created a trigger:
CREATE TRIGGER set_empno_ctx_trig AFTER LOGON ON DATABASE
     BEGIN
     IF USER='MYUSER' THEN
      execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = SCHEMA';
     END IF
     END;
    / 
Any way to restrict it to read-only? How can I revoke Insert or UPDATE?

I published that follows, but does not work and the user can INSERT:
CREATE TRIGGER set_empno_ctx_trig AFTER LOGON ON DATABASE
     BEGIN
     IF USER='MYUSER' THEN
      execute immediate 'ALTER SESSION SET CURRENT_SCHEMA = SCOTT';
      execute immediate 'REVOKE INSERT ANY TABLE FROM MYUSER';
     END IF
     END;
    / 

 
Thanks for the help.

user522961 wrote:
I thank once again.

For the first query cannot send the result. MY_WRITE role is a role with:
GRANT SELECT, insert, update, delete any table. Without which MYUSER cannot see the tables in the SCHEMA. MY_WRITE revoked if:

So, what's you want? You cannot revoke insert, update, delete the grant of the user, if they are granted by a role.

Grant select any WHAT TABLE or SELECT ON .

the role of the user and revoke.
He will be able to choose, but not change data.

Tags: Database

Similar Questions

  • The user can only download the columns that I choose?

    Hey, guys:

    Is that possible I put somewhere in the APEX so that the user can download only the columns that I choose instead of all the columns in the report, that this user can see, like some columns of links that directs the detailed individual pages? It makes no sense for the user to see these columns in a CSV file.

    Thank you.

    Sam

    Published by: lxiscas on May 20, 2013 14:24

    Published by: lxiscas on May 20, 2013 14:26

    lxiscas wrote:

    Is that possible I put somewhere in the APEX so that the user can download only the columns that I choose instead of all the columns in the report, that this user can see, like some columns of links that directs the detailed individual pages? It makes no sense for the user to see these columns in a CSV file.

    For standard reports, use the property to include export in the column definition.

    To view interactive reports + {message identifier: = 10556630} +.

    * When it comes to 'reports' always make it clear if you use a standard or interactive report.

  • The user can see all the resources, not only allowed for access to its organization

    Hello

    I put three self-serviceable resources resources authorized for a specific organization. So if I click on resources authorized for this organization, I can see only these three...

    When a user of this organization click on request for new resources, all self-serviceable resources are listed to the user, not only allowed resources. I thought that the user can only see authorized resources...

    If I connect as sys admin and request resources for a user of that organization, I can see that the three resources allowed.

    I saw the sql statement that run of IOM to inventory resources:

    Select
    obj.obj_key, obj_name, obj.sdk_key, sdk_name, obj_order_for, obj_auto_prepop, obj_type,
    obj_allow_multiple, obj_self_request_allowed, obj_autosave, obj_allowall,
    obj_rowver, obj_note, obj_autolaunch
    to obj obj
    outer join Software Development Kit sdk left obj.sdk_key = sdk.sdk_key
    where obj.obj_key in
    (
    Select distinct obj.obj_key from obj obj
    outer join Software Development Kit sdk left obj.sdk_key = sdk.sdk_key
    Left outer join acp acp on obj.obj_key = acp.obj_key
    OBA oba on obj.obj_key = oba.obj_key left outer join
    where
    (
    obj.obj_self_request_allowed = '1' or obj.obj_key in
    (
    Select obj_key in acp where act_key in
    (
    Select act_key
    of the usr
    where usr_key = 5 and acp_self_servicable = '1'
    )
    )
    ) and
    obj.obj_order_for = 'U' and
    (obj.obj_type ='Application ' or obj.obj_type ='Generic ') and
    obj.obj_key not in
    (
    Select pop.obj_key
    pop pop, pol pol, pog pog, PMU PMU, usg usg
    where
    pop.pol_key = pol.pol_key and
    pol.pol_key = POG.pol_key and
    POG.ugp_key = UGP.ugp_key and
    UGP.ugp_key = USG.ugp_key and
    USG.usr_key (5) and
    pop.pop_denial = '1'
    ) and
    obj.obj_key not in)
    Select distinct obj.obj_key
    to obj obj, obi obi, ost ost ouedraogo ouedraogo
    Join external orc orc left on oiu.orc_key = orc.orc_key
    where
    OIU.obi_key = Obi.obi_key and
    OIU.ost_key = OST.ost_key and
    Upper (OST.ost_status) "REVOKED" <>and
    OBI.obj_key = obj.obj_key and
    OIU.usr_key (5) and
    obj.obj_allow_multiple = '0'
    ) and
    obj.obj_key in
    (
    Select distinct obj_key
    pkg
    where pkg_type = 'Configuration '.
    )
    )

    As you can see in the query above, if I change the excerpt below the result is what I expect.

    ...
    obj.obj_self_request_allowed = '1' AND obj.obj_key in
    ...

    I missed to set something or something wrong?

    Thank you

    Renato.

    Sorry, but I do not understand your last answer. You mentioned the following:

    for option B, even if option A is not checked, you can set automatic ask for organization when assign authorized resources.

    -isn't that what you wanted? You define the resource resources as authorized in all organizations whose users can request this resource. I implemented this and it works fine. This works for both types of applications. (a) my resources-> request for new resources and b) applications-> resources-> Grant resources.

    In the case of b, according to the Organization to which the user is selected, the resource is displayed. all resources are not displayed.

    So the solution is to uncheck in RO and bring the resource authorized specific organizations as resources in self down. It should work fine. Let me know your exact problem if it works that way.

  • Explorer.exe Application error the instruction at "0x5ad8c78d" referenced memory at "0x082c9c7". The memory can be "read".

    I am running Mirosoft Windows XP Professional Version 2002 Service Pack 2

    Before that, I really want to customize my windows and then I search in google "how to customize windows xp visual styles. After that, I follow the 7 steps how to customize. This is the link I will:
    http://www.WikiHow.com/customize-Windows-XP-visual-styles
    Then, after I followed the steps, it asks me to install this: Neowin patch. When I installed it, it says that my OS is not original, but I just reinstalled the last time.
    Are the cause of the problems of the patch that I installed it in the first place?
    Is it related with my OS?
    How to solve this problem?
     
    URGENT!

    Hello

    Thank you to contact Microsoft Community and we will be happy to help you with your concern.

    According to the description, it looks like you are facing a problem with the Windows XP operating system.

    It would be great if you could answer these questions to help you further.

    1. When you receive this error message, Explorer.exe Application error the instruction at "0x5ad8c78d" referenced memory at "0x082c9c7". The memory can be 'read '?

    2 is the issue limited only to Neowin patch installation?

    There could be a conflict of memory with a driver or due to the bad memory or memory.

    I recommend you to check with the activation status of Windows XP.

    a. Click Start.

    b. click on all programs, then accessories.

    c. click System Tools.

    d. click on activate Windows.

    Windows XP Visual Styles, see the steps in the following Microsoft article.

    http://msdn.Microsoft.com/en-us/library/aa289524 (v = vs. 71) .aspx

    http://msdn.Microsoft.com/en-us/library/5d1acks5.aspx

    Keep us informed on the status of the issue.

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

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

  • How can I display table 2D tabular on the Panel before the user can delete any subdashboards

    Hi guys and girls.

    It is my first post here, so go easy on me. I promise you that I used my best GoogleFu I before posting here.

    I am a self taught amateur LabView. I worked on a User Interface for my Robot SAGAR. See some of my work so far (girlfriend used as a draft classes, but we have both worked together on it, which got hooked me in the first place on LV):

    Now, I'm working on the use of LV and Google Earth as a planner of mission right now.

    My question is this. I have a 2D array that stores the Lat/Lon each waypoint. I's like to have posted on my

    front tabular, with WP # (the 1st dimension array index), Lat and Lon on line, like this.

    More importantly, have the user can select a point of full path (or just the number of WP would be ok) and remove it using key DELETE or any other button on the Panel.

    I am at a loss on how to do it. Ideas?

    Thanks for the help!

    Heal the little robot.

    You said that you were using a table. I suggest using a multicolumn listbox. In this way, you can change the selection mode to "highlight the whole line. You can use a structure of the event to respond to the user by pressing the delete key. See attached simple example. Note that some keyboard can label the BACKSPACE key as 'delete '. If you want to answer it, you also have to see if the Char value is 8, which is the code for this key.

  • I tried to write a script, the user can use. This return number file *.tiff associations back using the image viewer is caused each month.

    Original title: automation of file tiff without elevated rights association

    I tried to write a script, the user can use. This return number file *.tiff associations back using the image viewer is caused each month.

    Hi, Unclemarcus2002,

    You would be wiser to post on the Forum TechNet where there is COMPUTER experts.

    http://social.technet.Microsoft.com/forums/en-us/newThread

    Maybe using the ASSOC and FTYPE command in a script will do what you want? I think that these orders would also apply the association throughout the world, rather than on a per-user basis.

    ASSOC: http:

    FTPYE: http:

    Here is an example, that you can try.

    Let's say you have a text file called "foo.bar" and you want the extension .bar always open with Notepad. There is an association for text files, so get him by typing "Ftype | more' at the command prompt (it will make a major announcement). Finally, you'll see the line "txtfile". On mine, it's "txtfile=%systemroot%\system32\notepad.exe %1" without the quotes.

    First create your association: assoc .bar = FooBarText

    Now to assign your request to your file type association: ftype FooBarText=%systemroot%\system32\notepad.exe %1

    You should now be able to double-click the foo.bar file and it will automatically open in Notepad.

    If you already have a Microsoft Office Document Imaging association, I think that it should be relatively simple type of substitution. Use ftype /? for a little more help.

    http://community.Spiceworks.com/topic/119639-Windows-7-automate-file-assocations

  • My request is not getting screolled or slide down. Please keep scrollview so that the user can scroll upwards and downwards and view the content.

    My request is not getting screolled or slide down. Please keep scrollview so that the user can scroll upwards and downwards and view the content

    Here is my code that need to be kept scrollview

    
    http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    
        
    
            
    
                
    
                
                
    
                
    
                    
    
                        
    
                        
                    
    
                    
    
                        
    
                        
                        
                    
    
                    
    
                
    
                
    
                    
                
            
        
    
    
    

    I just need the view scrollbar or scroll with which users users can scroll vertically in the App and can see full

    content of the app.

    Solved

  • Win 8 upgrade - the user can cause dual boot using the same license?

    Hello

    Thanks to MS for offers updated Win 7 for win 8 to 14.99 USD for all new buyers of Win 7 PC after June, 2012.

    I'm one of the eligible candidates for the upgrade at this price. However, I spent a lot of time, money and effort to put in place the Win 7 OS so that he could function at an optimal level I want.

    My understanding of an upgrade to win 8 is to lose everything I have Win 7 and replace the entire operating system to win 8 via a download from the MS. Download Center

    The problem is that I don't know if Win 8 is what I like and not sure if it is better than Windows 7. Reinstallation of Win 7 back takes time and effort.

    Do I know if the user can install Win 8 to another partition primary drive c during the upgrade, retaining the original Win7 (same license) to the other partition?

    If this is the case, it would be a great bonus for the new buyer of Win 7 PC, otherwise the user need to spend more money to buy to win a CD of Installation of 8 at the store and install t to separate partition.

    Thank you

    Low

    You can dual boot with the free upgrade, so that you upgrade to the eligible license, in this case Windows 7. If you want to dual boot Windows 7 and Windows 8, you must buy the full version license, what is Windows 8 Pro for use staff system

  • DPS is their function where the user can choose which pages they want to keep, to build a custom (build yours) version for themselves.

    DPS is their function where the user can choose which pages they want to keep, to build a custom (build yours) version for themselves.

    N °

    Neil

  • In javascript, how can I open a dialog so that the user can enter the value of a variable?

    I'm working on a script that will be used for many images, all of them using the same format (size of the image, layout layer, etc.).

    All of these images will have a text layer, and what I want is to have the script modifies the horizontal length of the text layer (horizontal percentage scale), it decreases so that all the text appears on the screen, where there is too much of it.

    But the text may vary from image to image, and what I want is for the script to display a dialog box have been that the user can enter text that will be on the text layer and scaled down.

    Is this possible?

    If you want the user to enter then adjust the text while your script is running, here's a way to do it.

    var typeLayer = activeDocument.activeLayer;
    var type = typeLayer.textItem;
    var t = prompt ("Enter text" , "new text");
    type.contents= t;
    transformLayer();
    
    function transformLayer() {
         try{
         var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
        desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
            var desc1 = new ActionDescriptor();
            desc1.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Rlt'), 0.000000 );
            desc1.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Rlt'), 0.000000 );
        desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc1 );
        desc.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Prc'), 100 );
        desc.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Prc'), 100 );
        desc.putBoolean( charIDToTypeID('Lnkd'), true );
        executeAction( charIDToTypeID('Trnf'), desc, DialogModes.ALL );
         }catch(e){}
    };
    
  • display a page when half of the screen went black then now can only read half

    My screen now has only half the viewing area. Some of the icons have moved across the screen too. Half of the page is now dark with just the icons indicating at the bottom. What I can do to get back to a normal full page please.

    [Moved from comments]

    Hi Emily,

    Thanks for posting this question in the Microsoft Community Forums.

    I see that the computer screen only appears on half of the screen and the other half is black.

     

    Let us work together to solve this problem.

    However, we need more information on this issue. Please answer the following questions.

    1. what operating system is installed on the computer?

    2. What is the brand and model of the computer?

    3. when exactly this question produce?

    4. don't you make changes to the computer before this problem?

    Please answer the questions so that we can better understand the issue.

  • How can I block others to see my favorites if the password is not entered correctly? Now the user can cancel favorite startup password &amp; view belongs to me

    I have the master password, and he asked to join the splash screen. Other users can view my favorites by canceling the password prompt. I want some more to avoid seeing my favorites if they do not know the password

    The master password is not intended to be used in this way.
    The password is only intended to encrypt the names and passwords stored in the Manager password with a level of additional encryption.
    The Congressman didn't block access to Firefox, if you get a prompt MP when starting Firefox, then you can cancel the command prompt and use Firefox normally.
    Only, you cannot access the passwords (you will get an another guest to provide the MP if necessary).

  • Equium L20-198 - can only read DVD but no CD

    My DVD-Rom/COM reader only reads CDs and DVDs. Can someone please tell me if I need a new drive or if it is a software problem?

    If I need a new disk, can I use a generic and what would be the part number?

    Thank you.

    Hi mate,

    Have you tried different CDs? Perhaps that some CDs are scratched and t can be read properly.

    Also, I had a similar problem and the reason was that it was dust on the lens. I used a cloth to clean microfiber and after that, it was possible to reread my drive! :)

  • After you click the command button, the user can not change form

    This form with a command button to the Page 5 that duplicates the page: http://pardons.delaware.gov/pdfs/pard_app.pdf

    If the user running this command button and then closes and opens again the form, the user is more able to add or change anything whatsoever in the form. Instead, the user gets an error message that says "this document enabled extended in Adobe Acrobat Reader DC. features." The document has been changed since its creation and use of the extended functionality is no longer available.  Please contact the author for the original version of this document. "Is there a way to fix this?  Thank you.

    FYI, the JavaScript code for the command button is the following:

    var fld;

    var arrayFields = new Array (this.numFields);

    (IT) {/ / default is 'this'}

    for (var k = numFields; k; k-) {}

    for (var k = 0; k < numFields; k ++) {}

    FLD = getField (getNthFieldName (k));

    If (fld.name == "txtCrimSumOff_Cnt") {}

    If (fld.value == 1) {}

    FLD. Value = This.PageNum + 1;

    } else {}

    FLD. Value = FLD. Value+ 1;

    }

    var page_start = fld.value;

    }

    }

    }

    Spawn of named model

    var t = this.templates

    strName = "CrimSumOff"; var

    for (var i = 0; i < Extremity; i ++) {}

    {if (t [i]. {(Name.IndexOf (strName)! =-1)}

    myPage var = t [i] .spawn (page_start, true, false); together second opt to false to keep the names of files

    Get the name prefix field that Acrobat will automatically add the new fields

    var f_prefix = 'P' + (page_start) + '.' strName + '1';

    Reset the newly created fields

    this.resetForm ([f_prefix]);

    Go to the new page

    this.pageNum = page_start;

    }

    }

    Yes. If you don't have the original version, unchecked, you can open the version activated in Acrobat and select: file > save a copy

    This will create an incompatible version. Note that it will automatically open in Acrobat when you do this.

Maybe you are looking for