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.

Tags: Database

Similar Questions

  • elements of apex multi read only with the alignment problem!

    I have multi(radio,select,date,text,number) apex articles are collapse column when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    read only.PNG

    Ramani_vadakadu wrote:

    elements of the apex are collapse column, the values of the elements when change the mode read-only region/Articles!

    demo page: https://apex.oracle.com/pls/apex/f?p=13116:12:8218330014916:

    Theme 21

    The region of items should show the following without entry box! and sets of columns and lines.

    Use the following style sheet in the page CSS Inline property:

    .formlayout span.display_only {
      display: inline-block;
      width: 20em; /* Adjust dimension as required */
    }
    

    (Please stop using free and no grammatical exclamation points in your messages. "This is not a comic).

  • All my files are set to read-only. The files are not.

    All records are all my disks are set to read-only. This includes my drive c, d Bank, e-reader and my backup drive.

    The files contained in these files are not read-only. How I found out about it, was that I tried to copy / paste a file from one directory to another last night and it was not authorized. Please keep in mind that I am logged on as administrator. There is only one user, me.

    I ran a recent analysis of spyware, virus scan and checked the permissions of users. I unchecked the read-only installation and reset my pc and it still comes up read-only.

    This causes a major problem.

    Hi kadesigns,

    Step 1: You can follow the steps mentioned in the article below, which deals with a similar question

    You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    http://support.Microsoft.com/kb/326549

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Files read-only on the network.

    Hello.  I use Windows 7 Pro 64 bit.  I have a home network with a second computer (Win XP pro) configuration.  My problem with my Windows 7 computer.  I can create and modify files it contains very well.  However when I access those files on the network, EITHER from the 2nd computer the same computer (which is connected to the computer 1, from computer1, via the network) they open read-only.  The curious symptom is that the files are read-only even when I connect to computer 1 to Computer1.  Any thoughts on this problem?

    -Files are not selected in their properties read-only.

    -There is only 1 account for both computers on the network, and this user is a member of the Administrators group.

    -This happens for all files.  I found an article about a known problem similar to Excel files.  I followed the instructions in this article, does not.

    -What happens when the files are located in C:\temp, C:\Users\\Desktop\temp and Documents C:\Users\Public\Public (supposed to be a shared folder).

    Any help would be great.

    Hello

    Check the authorization/security.

    Problems of permission and security with Vista/Win7, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    * Note . All the users who are allowed to share need to have an account on the computers they are allowed to connect to everyone is an account, that means a group of all users who already have an account now as users. This does not mean everyone who feel they would like to connect.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Can we do a line read only in the advanced table?

    Hello

    We have an obligation where the user wants to the first line of a table advanced to readonly, and remaining lines as editable lines. Can someone please let me if we can achieve this?

    Thanks in advance.

    Solène

    Hello

    Yes, you can set row as read only in the table in advance.

    Steps to follow:
    (1) take the attribute Transient seen as ControlReadonly (Boolean Type) in the attached with advanced table view object.
    Note: Your all the lines will have now a new attribute called ControlReadOnly.

    (2) using the property read only set SPELL on each field of your advance deposited the region.
    as ReadOnly ${oa.. ControlReadOnly}

    (3) the loading of the page, in the query itself process you can set the attribute to True and if you need frontline to travel up to the end of the rows in the table and set the value to False for ControlReadOnly.
    ex: line = vo.first ();
    row.setAttribute ("ControlReadOnly", Boolean.TRUE);

    Kind regards
    Swati.

  • Several Applications using UDP Multicast Open (read only) on the same port

    Hi all

    Currently, I am trying to build a system that has the following architecture:

    RF Server = "1-9 A/D '-> «UDP Multicast (write-only) 1-9"»

    Workstation operator = "QTY (N) Data Display Apps all need independently to access one of the 9 UDP multicasts at a time.

    Essentially, I have 9 items of antenna that all digitized and distributed via UDP separate multicast address and port. On the receive side I need to be able to have the N number of data display applications where everyone can select the antenna element he wants to get data from. My current goal for N is 7 and the worst case for the data rate is 3.75 MSps IQ rates on each display.

    My question is whether or not it is possible to have several "UDP Multicast Open (read only)" on the same port but one by application Data Display? Also, are there limitations with this.

    On my local machine I tried a bit with the example 'UDP Multicast Sender.vi' and "UDP Multicast Reciever.vi". I created a "UDP Multicast Reciever2.vi" as another application that listens on the same port/Multicast address as the original receiver. No errors are thrown when you run the receivers and both receivers get the data string sent by the sender at the same time. Can I send data/a. 'PC'-> 'Router Ethernet'-> 'PC with receiver UDP N' reliable evidence? If so, that's fine, because it would be relatively easy to implement. BTW, I do not fear with occasional loss of data what is happening with UDP.

    If this does not work, I am also curious to know which deals with data deduplication. For example, two applications by subscribing to the same Multicast address and port does the router send two copies (which increases network traffic)? Or, the Windows operating system get a single UDP packet to the port and replicate in two independent applications?

    Below (or attached) are the two methods I thought. If multiple readers of UDP does not work so I thought I'd do a DataSocket "Data Distribution layer" between the incoming UDP sockets and display data on the workstation applications. This would add a bit of memory/processor to the PC workstation, but I know the DataSocket server of NOR can handle a sender unique multiple receiver architecture.

    Thank you

    Tim S.

    Hi Tim,.

    The number of concurrent applications, get data on the same port UDP will probably be a limitation of the OS as well. If I had to guess, I would say that 7 of the applications should work correctly. In fact, the memory/CPU bottlenecks are probably the limit on how many simultaneous readers we have, especially since the capablities of PC hardware differ from one computer to the other. I doubt that the OS has a strict limit.

  • Not set to read only on the files so that they can be shared and changed on a network.

    I've seen any other questions on this subject, but they do not solve my problem.  I had to reset my network because I have a new router.  Now I can open the files on my main computer from another computer, but they always opened read-only.  I tried to set sharing and security to allow the share on the network and allow network users to change files.  But I can not turn off the box next to 'read only' in the general tab.  I also tried to start XP in safe mode and take possession of the file (article 308421), but this does not work either.

    I also tried in vain to change the attributes of command line to remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------

    After trying a few other corrections, I finally did a system restore before the installation of the network.  Then, I used the Network Wizard to reconfigure the network. I changed the name of the computer, so I knew what was the new connection.  Then I copied the wizard network on a USB key and reconfigured the second computer.  Now everything works fine (I can open, edit and save files between computers) even if the readonly attribute is always highlighted on the record.

  • How can I select multiple cells in tableview with javafx only with the mouse?

    I have an application with a tableview in javafx and I want to select more than one cell only with the mouse (something like the selection that exists in excel). I tried with setOnMouseDragged but I cant'n do something because the selection only returns the cell from which the selection started. Can someone help me?

    For events of the mouse to be propagated to other than the node in which nodes the drag started, you must activate a 'full-drag-release press gesture' by calling startFullDrag (...) on the original node. (For more details, see the Javadocs MouseEvent and MouseDragEvent .) You can register for MouseDragEvents on cells of the table in order to receive and process these events.

    Here's a simple example: the user interface is not supposed to be perfect, but it will give you the idea.

    import java.util.Arrays;
    
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.SelectionMode;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.input.MouseDragEvent;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    
    public class DragSelectionTable extends Application {
    
        private TableView table = new TableView();
        private final ObservableList data =
            FXCollections.observableArrayList(
                new Person("Jacob", "Smith", "[email protected]"),
                new Person("Isabella", "Johnson", "[email protected]"),
                new Person("Ethan", "Williams", "[email protected]"),
                new Person("Emma", "Jones", "[email protected]"),
                new Person("Michael", "Brown", "[email protected]")
            );
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            stage.setTitle("Table View Sample");
            stage.setWidth(450);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            table.setEditable(true);
    
            TableColumn firstNameCol = new TableColumn<>("First Name");
            firstNameCol.setMinWidth(100);
            firstNameCol.setCellValueFactory(
                    new PropertyValueFactory("firstName"));
    
            TableColumn lastNameCol = new TableColumn<>("Last Name");
            lastNameCol.setMinWidth(100);
            lastNameCol.setCellValueFactory(
                    new PropertyValueFactory("lastName"));
    
            TableColumn emailCol = new TableColumn<>("Email");
            emailCol.setMinWidth(200);
            emailCol.setCellValueFactory(
                    new PropertyValueFactory("email"));
    
            final Callback, TableCell> cellFactory = new DragSelectionCellFactory();
            firstNameCol.setCellFactory(cellFactory);
            lastNameCol.setCellFactory(cellFactory);
            emailCol.setCellFactory(cellFactory);
    
            table.setItems(data);
            table.getColumns().addAll(Arrays.asList(firstNameCol, lastNameCol, emailCol));
    
            table.getSelectionModel().setCellSelectionEnabled(true);
            table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
    
            stage.setScene(scene);
            stage.show();
        }
    
        public static class DragSelectionCell extends TableCell {
    
            public DragSelectionCell() {
                setOnDragDetected(new EventHandler() {
                    @Override
                    public void handle(MouseEvent event) {
                        startFullDrag();
                        getTableColumn().getTableView().getSelectionModel().select(getIndex(), getTableColumn());
                    }
                });
                setOnMouseDragEntered(new EventHandler() {
    
                    @Override
                    public void handle(MouseDragEvent event) {
                        getTableColumn().getTableView().getSelectionModel().select(getIndex(), getTableColumn());
                    }
    
                });
            }
            @Override
            public void updateItem(String item, boolean empty) {
                super.updateItem(item, empty);
                if (empty) {
                    setText(null);
                } else {
                    setText(item);
                }
            }
    
        }
    
        public static class DragSelectionCellFactory implements Callback, TableCell> {
    
            @Override
            public TableCell call(final TableColumn col) {
                return new DragSelectionCell();
            }
    
        }
    
        public static class Person {
    
            private final SimpleStringProperty firstName;
            private final SimpleStringProperty lastName;
            private final SimpleStringProperty email;
    
            private Person(String fName, String lName, String email) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.email = new SimpleStringProperty(email);
            }
    
            public String getFirstName() {
                return firstName.get();
            }
    
            public void setFirstName(String fName) {
                firstName.set(fName);
            }
    
            public String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
        }
    
    }
    
  • Convert editable PDF read-only when the Envoy in an email - JavaScript

    I have a real estate company that is trying to have an application that an agent and the customer can fill in the necessary information, press "submit" button, have the javascript code to compose an email with the attached pdf file.  Here's the question I'm having: I need to be able to convert the editable PDF reading only so that when the client receives a copy that they can not change the information again.

    Here is my code for the Send button javascript:

    It's the return of form e-mail. It is hardcoded

    to make the form comes back to the same address.

    Change of address on your form to match the code below

    Email business

    var cToAddr = " " [email protected] "; "

    First of all, download the customer email CC

    var cCCAddr = this.getField("1st_Tenant_Email").value;

    If (cCCAddr! = "")

    Download now the second email only if it is filled

    var cBenAddr = this.getField("2nd_Tenant_Email").value;

    If (cBenAddr! = "")

    Get now the third E-mail only if it is filled

    var cthirdAddr = this.getField("3rd_Tenant_Email").value;

    If (cthirdAddr! = "")

    Set text object and the body of the e-mail message

    var cSubLine = 'Test - form of contract '.

    var cbody = "thank you for submitting your form. \n' + 'save the attachment of the completed form for your records.

    Send the PDF as an attachment to an e-mail

    this.mailDoc ({bUI: true, cTo: cToAddr, cCc: (cCCAddr + ";")})

    (+_cBenAddr_+_";"_+_cthirdAddr), bassujetti: cSubLine, CMSG: cbody});

    I found a work around because I didn't buy something else. I changed the digital signature so that once it has been signed, it would turn into read-only except for the Send button. With the button send, I used the code above to submit the pdf now read-only for the company by e-mail and cc tenants.  I hope this will help others also.

  • How can I uncheck "read only" in the download folder in a way that it will remain disabled

    How can I uncheck "read only" in the download folder in a way that it will remain disabled

    If done through properties does not stick, have you tried running the command attrib-r at the command prompt?

    Click Start, click run, type cmdand press ENTER.
    To view the syntax for the Attrib command, type attrib /? at the command prompt.

    Check MS article for more details.
    You cannot view or change the read-only or system attributes:
    http://support.Microsoft.com/?ID=326549

    I guess that you are authorized to make changes on this file, if it does not play here.
    How to set, view, change, or remove special permissions for files and folders in Windows XP
    http://support.Microsoft.com/kb/308419

  • Can not download anything "keep telling my Temp folder is read only in the properties.

    So I change it then when I click on it. Its the same thing. I have disabled system restore. Mr. ran fix it. Nothing. I know I have something. But nothing is recovering. HELP PLEASE. Thank you

    Hi billyweeks,

    1. what Fixit did you run?

    2. you remember to make changes to the computer before this problem?

    You can read the following article and check if it helps:

    You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    http://support.Microsoft.com/kb/326549/en-us

    Hope this information is useful.

  • I did an installation 22.00 per month plan and can not install Photoshop, only with the lightroom

    I did an installation 22.00 per month plan and can not install Photoshop, only with the lightroom

    Hi Alex % 20arc,.

    You can troubleshoot Adobe Creative cloud download, install and update questions and we invite you to update the discussion in the case where you need help with this.

    Thank you

  • How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    Hello Jmbtexas4,

    By default, you will need to individually click on the fields of the form and check the 'read only' and save it. From now on, it is not possible to select all together and make the changes.

    -Usman

  • How to use the same point of view as read only in the ADF and editable

    Hello

    How to use the same point of view as read only in the ADF and editable? How can we succeed in TF?

    -James

    Hello

    Steven Davelaar wrote a presentation on this 'building highly reusable Taskflows.

    From slide 14, that's where your use case comes into play

    Frank

  • I published my site to Business Catalyst and purchased and installation by area, but the site can be seen only with the help of a search engine. The site is visible when I type the url address, but can't find a search engine

    I published my site to Business Catalyst and purchased and installation by area, but the site can be seen only with the help of a search engine. The site is seen when I type the url address, but can not find with search engines.

    Hello

    I suggest you sign upward to Google Webmaster tools (free) and check your site (directions are in the webmaster tools) and

    also consider joining Google analytic (also free).  Analytical will allow you to 'see' who is visiting your site and how they experience through research, order the seizure of the URL, or through the links, etc.  Also from where they come, how much per day, etc.  Lots of good information.

    In addition, through this document by google

    Check the performance of your site - webmaster help search

    Let me know if you have any question.

Maybe you are looking for