Select grant to user only to some columns. Is this possible?.

Good night:

I learn about the roles and privileges.

I tried to limit the right to select on a table for only some columns of it.
Unfortunately, it does not work.

GRANT select (employe_id, last_name, job_id)
ON hr.employees
To Usuario_2;

It is an ORA-00969: falta the word clave market (ON the keyword is missing)

Surprisingly, it does not work with updates.

Update (employe_id, last_name, job_id) GRANT
ON hr.employees
To Usuario_2;

"Treated phrase."

Could someone tell me if it is possible access of the users with 'select' only some columns do not use views? If its possible. What I am doing wrong?

Greetings

You can't give Annie with specific column. You can do so only to updating, inserting, and references.
Other ways is to use the DPV or views (but SPV is not the XE version)

You can read this topic: GRANT SELECT on the selected columns

Edited by: AndyPol 2010-02-01 23:48

Tags: Database

Similar Questions

  • SEPARATE, only for some columns

    Hi guys!
    I have a table in which I have to get the separate results of the first 5 columns and attach it with the 6th column. I mean it would be something like this:

    Select distinct (col1, col2, col3, col4, col5), col6 table...

    I can't do the distinct only in some columns (because if I want to that they accordingly I do the separate for each other each other)... How can I do this?

    It would be something like this:
    Select distinct (col1, col2, col3, col4, col5), col6 table...

    no doubt:

    select *
      from (select col1,
                   col2,
                   col3,
                   col4,
                   col5,
                   col6,
                   row_number () over (partition by col1, col2, col3, col4, col5 order by null) rn
              from table1)
     where rn = 1
    
  • I deleted the account current user which I use through, Mycomputer manage option, know that I am in this user only, please help me restore this user...

    I deleted the account current user which I use through, Mycomputer manage option, know that I am in this user only, please help me restore this user...

    Hello

    Who is the user account you have currently connected?

    Research of user in the sub folder location:

    Folder C:\Documents and settings\Users

    If you find in the folder the administrator account user, then you may need to create a new user account and transfer of records and documents to the new location

    See the link for the procedure below: how to copy data from a corrupted to a new profile in Windows XP user profile:http://support.microsoft.com/kb/811151

  • I want the login of the user only two with a pc can possible

    I don't want to user login only two with a pc can possible?

    Hello Amol,

    Thank you very much to the point.

    The computer is connected to a domain network?

    If the computer is connected to a domain network, you can post the application on the Windows 7 IT Pro TechNet forum. Check out the link:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Please let us know if the computer is not connected to a domain network.

  • Creating a backup of the WIN7 OS only for new installation; is this possible? If yes tell me how please.

    Well, then I want to get a new drive hard but with a greater capacity. Mine is 320GB and I want to upgrade to 500 GB. I have two laptops and one I would like to back up the operating system for a new installation (for the other computer hp g56-130sa laptop) for the new drive HARD must be installed.
     
    Can it be done?

    Not for another laptop.  If they were the exact same books perhaps, but even in this case this is only a possibility.

    If you need to reinstall the operating system on your laptop, you have two choices.  The first and the best choice is to contact HP directly and try to get the recovery disc specific for this laptop.  The second choice is to buy a genuine Windows 7 installation disc.

    I suggest that you contact HP because it will be the best solution (and much cheaper).  If you are in the United States / Canada, give them a call at 1-800-474-6836 and talk to a representative for the recovery disc for this laptop.  If you are outside this area, you will need to go to www.hp.com/support to find contact information.

  • I have a subscription to creative cloud, I need to add 1 additional user for InDesign license.  Is this possible?

    I currently have a creative cloud membership.  We have a new employee in need of InDesign and Photoshop and/or Illustrator.  Is this possible and if so how much extra would it cost?

    Suzette

    Hi Suzette.

    I see that you have full creative cloud of membership, in order to add an additional subscription, you must register with a different email address on www.adobe.com

    or create a different Adobe account to make a purchase for a single application.

    In the same account, it will not work.

    Please refer - Cloud Creative Awards and membership plans | Adobe Creative Cloud

    Kind regards

    Sandrine

  • Some columns of the values of the selected line returns NULL in the table of the adf.

    Hello..

    My version of jdev 11.1.1.5.0

    I have a vision with some columns. This view is mapped to a table of adf with some of the displayed columns. My task is to get the column values selected line (including the values of the column not displayed).
    But I'm certain values such as null, although there are values present when I run the query from the view.
    My code:
    DCIteratorBinding tableVO = ADFUtils.findIterator ("myVO");
    ViewObject voTableData = tableVO.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();


    + / / codeto display column and the values +.
    int x = 0;
    * for (the names of the objects: rowSelected.getAttributeNames ()) {*}

    * for (int i = x; i < rowSelected.getAttributeValues () .length; i ++) {*}
    * System.out.println (x + "." + name + "=" + rowSelected.getAttribute (i)); *
    break;
    *}*
    x ++ ;
    continue;
    *}*


    MY table:
    * < af:table value = "#{bindings.myVO.collectionModel}" *.
    * var = "row" rows = "#{bindings.myVO.rangeSize}" *.
    * EmptyText = "#{Bindings.myVO.Viewable?" "{'No data to display.': 'Access Denied.'}". *
    * fetchSize = "#{Bindings.myVO.rangeSize}" *.
    * rowBandingInterval = "0."
    * filterModel = "#{Bindings.myVO.queryDescriptor}" *.
    * queryListener = "#{Bindings.myVO.processQuery}" *.
    * filterVisible = "true" varStatus = "vs."
    * selectionListener = "#{myBean.method_onRowSelect}" *.
    * rowSelection = "single" id = "t1" styleClass = "AFStretchWidth."
    "* partialTriggers =": sbcClose: sbcOpen: socWarehouse. "
    * inlineStyle = "height: 217px;" / > *.


    Thank you

    Question: the attributes are not null in the DB?
    The attributes are part of the past of the query select?
    And they are part of the binding of the tree?

    Timo

  • Grant read only to a user only with the role

    Legends of dear,

    Req: create user selection/read-only join specific 3-5 tables in a specific schema and no selection/read only access to the sys/system schema.

    After surfing and tried to grant the "read-only" access for a user as follows.

    create user readonly identified by readonly123;

    create read_only_role role identified by read_only_access;

    Grant connect, read-only resources.

    Grant select on applications. FND_PRODUCT_GROUPS read-only;

    Grant select on applications. FND_USER read-only;

    grant read_only_role read-only;

    The above statements

    1. created user, role

    2. granted to connect/create user session and I am able to run the following query

    logged in as readonly

    Select * from APPS. FND_PRODUCT_GROUPS;

    Where I am able to select even sys or system tables.

    But I'm not able to make the same read only access provided to a role and assign the role to the user subsequently,.

    create user readonly identified by readonly123;

    create the role of read_only_role identified by read_only_access;

    Grant connect to read_only_role;

    Grant select on applications. FND_PRODUCT_GROUPS to read_only_role;

    Grant select on applications. FND_USER to read_only_role;

    grant read_only_role read-only;

    Let me know your suggestions,

    Ref:roles and privileges of user management

    Roles of the Oracle

    GRANT statement

    https://forums.Oracle.com/thread/2223362

    Thank you

    Knockaert

    Hi, Karthik,

    If a role has a password (as in this case), then the user must activate this role during its current session in order to to use, like this:

    ROLE of the read_only_role IDENTIFIED BY read_only_access VALUE.

    If the role does not have a password, then it is enabled by default as soon as the user opens a session.

    Remember, the roles do not count inside procedures AUTHID DEFINE stored (which is the default type).  If you need to use the table inside an AUTHID DEFINER stored procedure, then the privileges must be granted directly to the user and not just a role.

    I hope that answers your question.

    If this isn't the case, after a complete test script that people can run to recreate the problem and test their ideas.  You started great: CREATE instructions you posted were perfect, but you need to add the CONNECTIONS and SELECT statements (and the SETTINGS, if necessary) to show how the error occurs.

  • 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.

  • Select grant to a user

    Hello
    I'm working on oracle10g and HP - UX.
    I need to create only one user on reading, how can select data from other users tabels.

    One way to do this - is glove instruction to create a srript...
    As

    Grant select on UserA.Tb1 to UserB;
    Grant select on UserA.Tb2 to UserB;
    Grant select on UserA.Tb3 to UserB;

    and so on...

    There are 4000 tables in the schema UserA... .and we need to write a sql script and run it on the database...

    Question-

    Is there a way to UserB's Select glove on all the obj. for use in a sql statement...?

    N ° there is no single GRANT command. You can, however, write a small script to PL/SQL, i.e.

    FOR x IN (SELECT * FROM dba_tables WHERE owner = 'UserA')
    LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT ON UserA.' || x.table_name || ' to UserB';
    END LOOP;
    

    Of course, you would usually create a new role, grant this role to UserB and grant the privileges to this role, i.e.

    CREATE ROLE UserA_Select;
    
    GRANT UserA_Select TO UserB;
    
    BEGIN
      FOR x IN (SELECT * FROM dba_tables WHERE owner = 'UserA')
      LOOP
        EXECUTE IMMEDIATE 'GRANT SELECT ON UserA.' || x.table_name || ' to UserA_Select';
      END LOOP;
    END;
    

    In this way, when you need create the next read-only user, you just need to give this user the role of UserA_Select.

    Justin

  • Export only some columns in export to excel instead of all?


    Hello world

    My version of Jdev is 11.1.2.3.0.
    I created a page in the ADF, in which I added an adf:table and a button to export to Excel.
    Added 'af:exportCollectionActionListener' to the export to excel button. Export works very well.

    But the client only needs a few columns in the exported file, means table has 24 columns, but when I click the button, it will show all
    24 columns in the Excel sheet to the place I need to export only some columns (specified) in the Excel worksheet.


    Note: Table shows all the columns (24), but when you export only some columns specified must be exported.

    How can I get this requirement?

    your suggestions will be really useful...

    Thank you.

    Hello

    I tested the use of prescription case. It works very well with the below code mode.

    It is very easy to achieve using

                   

                   

    Regardless of the column, you don't want to export, use attribute visible to handle those as below

    visible = "#{pageFlowScope.hideSomeColumns not 'true'} '"

  • How to remove grant select to one user, if this table contains public subsidies.

    Hi all

    Owner of the table gave all access to a table to the public

    for example

    >

    grant all on table1  to public;
    

    But now for a user "user1" if we remove select grant

     revoke   select  on table1 from user1;
    

    I get the error ORA-01927: cannot REVOKE privileges you did not

    OK if I revoke all access to "user1."

    revoke   all  on table1 from user1;
    

    I get Revoke succeeded.

    But always in the connection of the User1, I can select data from table1.

    Why?

    Is it because I gave all subsidies to the public?

    Above scenario must revoke the access of a user to a table that has all government subsidies.

    Yes, it's because SELECT on the table access has been granted to the PUBLIC.  The user still has the option to SELECT the table after you have removed the direct subsidies because they can always access privileges granted by the PUBLIC.

    If you want all users to have access to the table, you shouldn't be granting access to the PUBLIC in the first place.  Create a new role, grant SELECT on the table for this new role and assign this role to all users need.

    If for any reason, you're stuck with the issuance to the PUBLIC, I suppose you could create a policy from the CAE on the table that prevents the user to see all the data.  But it's a lot more work to get grants of privilege correct in the first place.

    Justin

  • Questions not selectable answers in quiz slide for some users

    We have a training SCORM Captivate content published on our LMS (SAP Learning Solutions). Some users are unable to answer questions about the content. For these users, the answers are locked and can not be selected. In addition, don't seem not buttons validate and clear.

    The problem about 10% of our users.

    This training contains content and quiz slides slides.

    problem_quiz_not_functionnal.jpg

    The content is published in SCORM 1.2 (SWF + HTML) with Adobe Captivate 5.5. We had the same problem for some users with the previous version of this training content with Captivate 4.

    All users have the same settings:

    Flash Player 10.3.183.11

    Internet Explorer 6

    Microsoft Windows XP

    Place a button on the first or second slide you need the user to click to go forward with the course.  I've usually place it on a slide that gives an overview of what the module will be about.  Once the user has finished with the slide, they need to click on this button to continue in the content.  The user is not aware that this button has a fixed score and the FACT that it has a score means that Captivate believes that it is part of the questionnaire, which means the scope quiz begins at this time, the first question of the quiz.

    Yes, you click the button, go to properties > reports and select the check box to include in the questionnaire.

  • HW 2 get the value to select only one option selected by the user in the bean support

    IAM using the select only one option button that is filled during execution.

    I want to get the value selected by the user of a choice selection in the bean to support for other operations of... .IAM using this method, but I got a null pointer exception.

    Public Sub test (ValueChangeEvent tokenChange)
    {
    Integer tokenIndex = (Integer) tokenChange.getNewValue ();
    DCIteratorBinding tokenListIter is getBindings1 () .findIteratorBinding ("TokenIDVOIterator");. in this line null pointer exception
    Token of the line = tokenListIter.getRowAtRangeIndex (tokenIndex.intValue ());
    currenttoken = (Number) token.getAttribute ("TokenId");
    System.out.println ("token ID selected:" + currenttoken);

    }

    I want to know if there is any method to get the value of the value selected by the user to select a choice...

    pls help? //

    3 words:

    "research on the forum.

    asked and answered countless times.

  • Activation of some columns in tabular form after selecting a checkbox

    Hello
    I'll have a tabular presentation in oracle apex which has 6 columns and the third column is a box, my requirement is when I select the check box, the other three columns must be enabled otherwise the three columns should be disabled.

    Allows a solution for this

    With respect,
    Barro

    Hello Barouk,

    I will propose a solution of jQuery based.
    What kind of tabular Presentation you built?


    • In that wizard based

    • APEX_ITEM based API

    I'll take account Assistant based in table form. Now take the feature into account.
    >
    My requirement is when I select the check box, the other three columns must be enabled otherwise the three columns should be disabled.
    >
    Do you want to make the line items (including box you checked) of the three columns enabled?
    If so, we will start the Page attributes:

    Go to Page-> section of Javascript attributes:
    Function and Global Variable declaration:

    function zeroPad(num) {
       var numZeropad = num + '';
       while(numZeropad.length < 4) {
            numZeropad = "0" + numZeropad;
       }
       return numZeropad;
    }
    

    The importance of the above function, is that the elements in a table have id of type f04_0001. In the next row in the same column, the element has attribute id f04_0002 and so on. So let's use the function above to build * 0001 * part of the id.

    Run when the Page loads:

    disabled_list = $('input[name="f04"],input[name="f05"],input[name="f06"]');
    disabled_list.each( function() {
          $(this).attr('disabled',true);
          });
    

    Suppose that the three columns that you want to activate are of type text. Thus, the loading of the page we will deactivate them which makes the code snippet above.
    Now how you will locate that which element of the column has the name attribute. Here's more legendary firebug to add/tool [url http://getfirebug.com/] photo if you use Mozilla Firefox as browser development.

    Header HTML:

    
    

    Above is the function to activate the line items including checkbox that you clicked. Now, bow here is the line number which box you clicked and pThis is the identifier of the item in which you clicked know DOM checkbox.
    OR
    If your condition is what allows three remaining columns , the JS function above will be:

    
    

    Now just goto statement attributes-> attributes of the checkbox column. In the attributes of the element , we will call the JS function to activate the line items in the three columns:

    onclick="f_enable_row(parseInt(#ROWNUM#),this);"
    

    Please read the FAQ [url https://wikis.oracle.com/display/Forums/Forums+FAQ] and [url https://forums.oracle.com/forums/ann.jspa?annID=1324] instructions to forum for more information on the use of the OTN forums effectively.

    The above statement is aimed at directors new members on the forum and you see to the meagre information provided:
    >
    I'll have a tabular presentation in oracle apex which has 6 columns and the third column is a box, my requirement is when I select the check box, the other three columns must be enabled otherwise the three columns should be disabled.
    >
    It is quite difficult to understand what your issue is and how to respond. So, please go through the Instructions on the Forum and FAQ.

    Please affix the useful or correct answer as it will help other members on the forum with a similar question.

    I hope that helps!
    Kind regards
    Kiran

Maybe you are looking for

  • PDF save open file

    Since firefox recently updated, .pdf files when clicked, either on the web or e-mail opens a box that says save file or open the file. Firefox updated and it does ask me again, just immediately try to download. I do not use any .pdf add on via Firefo

  • Issues of update/upgrade of equipment for Tecra S10-183

    Hello TOSHIBA TECRA S10-183Serial number: xxxxxxxxxxxxxxxxxxxxxModel number: PTSB3E-0YR04KGRCode BTO: P8700/2G/160G/15.4WBT/DS2/L/M/B/W/3GPre-installed software: Yes [R11382GR]Purchase date: 13/05/2011 I use above professional mobile phone use for CA

  • Modified on Satellite L300-08 - Realtek sound settings now the movie is quite

    This just happened today, and coincidentally after that I opened something Realtech HD audio in the control panel.I saw just what it was, then I changed everything back to the settings by default, but anyway, when I m watching Qi, a very good show bt

  • 8007065E error code

    When I try to install the Security Update for Windows Vista (KB956744) 08/11/2009 after about a minute of installation, it stops and says ' errors are error code 8007065E Windows Update encountered an unknown error ' is there a solution to this?

  • I get the error code 1706 - valid no source is found for the product my Hub. Windows install cannot continue.

    I get a pop up saying error 1706 that valid no source is not found for the product my hub. Windows install cannot continue.  Also "the feature you are trying to use is on a nework resourse which is not available." Can someone tell me what to do and w