grant access to the schema

Some may give me a script to do the following:

I have a scheme name ABC and I want to give a user XYZ a read access to all objects in the schema of the CBA. IE (TABLES, VIEWS. SWQUENCES etc.)

Just to emphasize a point that maybe isn't obvious, there are two general approaches that have been discussed - dynamic generation of scripts and SQL scripts.

Build scripts of scripting occurs when you have one (or several) SQL statements that generate many SQL instructions you have here. It must be a two step process in this case. You spool the SQL statements that you build in a file (a SQL script), and then run the SQL script, that you just created. Simply to generate the script has no effect on the database. The SQL statement that you posted would be part of a script generating approach of scripts, then you must do something like

SQL> spool my_script_file.sql
SQL> <>
SQL> spool off;
SQL> @my_script_file.sql

The other approach is to use dynamic SQL statements. This is the approach of using EXECUTE IMMEDIATE in a PL/SQL block, i.e.

BEGIN
  FOR x IN (
      SELECT *
        FROM dba_objects
       WHERE object_type IN ('TABLE', 'VIEW', 'SEQUENCE' )
         AND owner IN ('XYZ', 'PQR' )
  )
  LOOP
    EXECUTE IMMEDIATE 'grant select on ' || x.owner || '.' || x.object_name || ' to ABC';
  END LOOP;
END;

Dynamic SQL will actually affect the database - you build and run the SQL statements in a single step. This eliminates the need of the coil of the output of the SQL statement in a file, and then run this script.

Justin

Tags: Database

Similar Questions

  • You do not have access to the schema that you import

    Hello

    I have been using Apex for a while with no problems but just today, I tried to create a form based on a table and got this error. - , you do not have access to the schema that you import.  Import impossible.

    The table in question belongs to a different schema, but the Apex, the analysis of schema has access too it. (And I've created forms on this Board in the past)

    Someone point me in the right direction?

    Version 4.2.2.00.11 on 2008R2.

    Thank you

    My first thought is the 4.2.2

    I did some tests in the past, and some of the assistants have been bug fixes related to permissions issues like you describe.  If the same operation may work as expected in 4.2.3.

    Saying - 'don't do a upgrade..' can sometimes be of any help...

    Have you tried to create a view of the table using the complete Wizard?

    My suggestion:

    -Create a view with the same structure as the table

    -Run the wizard so all elements on the page are created

    -Adjust the source for DML processes on the page for the synonym table or owner.table you're trying to do.

    -Delete the view that it is no longer necessary.

    It is just a workaround, but could help you.

    -Tim St.

  • Grant access to the URI at the time of installation or execution

    Hello world

    I don't know if this is possible, but basically I want to grant access to a URI (URI Web service when executing).

    So, let said customers running our ERP system on the premise, our ERP system comes with the generic web services to access the data of the ERP.

    We want to develop a playbook application that will ask the URI of the Web Service the first time, launch the application. Now, by my understanding, without adding this URI to the access list, the app will not have permission to call any service using the XMLhttpRequest object, right?

    So, how can I add this in the file config.xml during execution? Or y at - it another way to do this?

    Thanks for your help.

    Phuong

    Hello Phuong,

    If all you want to do is to access data from an outside domain and does not allow API access to this area there is an easy trick.

    This gives access to any field.  What it won't let you do, is add WebWorks APIs in this area.  If you need to provide APIs for a domain, you must explicitly set in the config.xml file at

  • Grant access to the operations of vCenter

    vCOps 5.8.2

    vCenter (untied) 5.5

    After registering via the UI interface vCOps for vCenter Operations Manager role privileges are not listed.

    Update or remove and save the vCenter has not changed this condition.

    Someone has an idea? Thank you

    This could me silly, but you please check is all its local group on the server that is used to grant access to users...

    Since builtin roles are not used their might be a chance to use local groups. You can cross check it in tab Permissons.

  • Grant access to the Satellite A100-906 after BIOS crash

    I lost access to my laptop.
    1. I turn on laptop with an attached USB flash drive.
    2 error appeared when the bios loading (TRX error or something like that).
    3. I restart the laptop
    4. I get error BIOS checksum with suggesstion press f2 for bios Setup or f12 for load default settings
    5. I try to press f2 and get dialogue with password request.
    6. I restart the laptop again.
    Now computer laptop view to load OS and bios access password request.
    How can I solve my problem?

    PS. I'm not configure pasword for laptop before. Pwd and pwd startup BIOS was empty.

    Hey man, I don't know what the problem is here, but BIOS password can be removed by only authorized service. He wants the costs you a little, but it can be removed without any problem. On the OS, I'm afraid, you have to install it again.

    BTW: some USB flash drives are password. If you want to have access to the recorded data you must enter the password first. Your key USB also has password protection?

  • May not be granted access to the photos on iPhone 5 s

    I have an iPhone with iOS 9.3.5 5s. I'm trying to use an external drive to iXpand of SanDisk to save pictures from the phone. I use the player of iXpand application.

    When I insert the drive and open the app, the app said: "unable to access photo library. Please enable access to your photo library in the application settings. »

    When I opened the settings, Photos is not an option in the parameter of the iXpand player (microphone, camera, and Notifications are listed). When I go to privacy and select Photos (where the Apps that have requested access photos are supposed to be) is listed.

    No idea how I can access this app for my photos?

    Thank you!

    It should be in the privacy settings for photos. You may have accidentally denied permission to access photos when you have installed the app first. If you do not see the player application of iXpand in the privacy settings for photos, try uninstalling the app and reinstall it costs. He should ask to access your photos during the configuration of the application. Grant him permission to access your photos.

  • Enable WebVPN without granting access to the ASA/AMPS/CLI

    Is there a way to allow access to users WebVPN (SSL) through the ASA (8.2.1) without allowing them to connect via ASDM, SSH, Telnet or CLI? I want to warn my VPN users to access the configuration of the firewall.

    I see in ASDM there are certain formulations on "it's effective only if AAA authenticates command console is configured" but I do not understand what it is explained.

    Thanks in advance,

    Greg

    You can restrict local users with the following:

    name of user attributes

    type of remote access service

    You need aaa authenticate console orders because when its not defined you can come as the default username (pix) or no username at all and the password enable (in the case of Deputy Ministers DEPUTIES). If there is no sent username, so we cannot verify obviously not the option of type 'service' in the attributes of user name. Here is more information on the command "aaa authenticate console":

    http://www.Cisco.com/en/us/docs/security/ASA/asa80/command/reference/A1.html#wp1535834

    -heather

  • What is Akamai NetSession customer (users\**\appdata\local\akamai\netsession_win.exe and it's OK to grant access to the network?)

    My mobile provider sent a notice to update my BIOS software, I did.  During automatic reboot, I got a security alert Windows, informing them that Windows Firewall has blocked some features of Akamai NetSession Client on public and provate networks... Allow client to communicate over public and private networks Akamai NetSessin?

    Akamai don't come right out and say, but the reason that netsession is installed on your computer is to allow them to use your computer to 'upstream' content to other users.  By installing NetSession, you allow Akamai use your idle bandwidth to transfer files to other users of Akamai.

    Some of the statements of Detangling: http://www.akamai.com/html/solutions/client_design_principles.html

    "The information that Akamai capture are similar to a web server, and that the information is only used for troubleshooting and monitoring of network performance."  This means that NetSession sends continuously information on your computer to Akamai.
    They say that NetSession will use your computer when it is "inactive or use minimum network resources.".  This means that NetSession is constantly monitor your use of the network and transmit this information to Akamai.  And as bandwidth varies from second to second, this info should be sent upwards to Akamai a lot.  Wait a minute, didn't they say just they captured only the kind of info that capture web servers?  Web servers capture information about the use of bandwidth.  What other information Akamai capture?  I couldn't find details on their site.
    So if you install NetSession, you be to join a peer-to-peer network and allowing Akamai send files from your computer at the time as Akamai may use you your minimum bandwidth.
    I also have a problem of security on the files I get the NetSession.  It seems that it is not difficult to download a file using NetSession, change it to carry a load of viruses and then leave the computer idle and wait NetSession transmit the file infected others NetSession.  I hope that Akamai has taken measures to address this problem, but I can't find any information on it.
  • Use the ADF security to grant access to the application

    Hello

    One of our customers has to move their forms ADF application. The customer also wants to implement SSO using Kerberos. I could implement the ADF to the application security.

    The Application has two types of users whose information is stored in the USERS table in the database-

    1. Users of the application (not a domain user)
    2. Active Directory/domain users.

    What the clients want to do, is that if the user belongs to the domain, while the user must be able to view the home page directly. If the user is not a domain user, then the login page must be displayed and the user must be authenticated before the redirection to the home page.

    The first part, i.e. to implement SSO for users in domain works. But I don't know exactly how to proceed with the Application users.

    Can I create a custom authenticator that connects to the database and authenticate users of the Application?

    Any suggestion and pointers will be helpful.

    Thanks and greetings

    Tinto

    You probably don't need to create the custom authenticator.

    WLS provides already ReadOnlySQLAuthenticator: Configuration of authentication - 11 g Release 1 (10.3.6) providers

    Define "control indicator" for two suppliers of "SUFFICIENT".

    I guess within the Web.XML you have something like:

    CLIENT-CERT

    ?

    WLS supports several methods of connection in the element for you can use something like:

    CLIENT-CERT, FORM

    Login

    errorPage

    (no doubt simpler is to configure the security of form based in the ADF Security Assistant and then manually add CLIENT-CERT in the web.xml file)

    Dario

  • Can connect to the schema number when you create a new workspace in APEX?

    Hello

    It is perhaps a stupid question since I'm still a beginner .

    Our version of the APEX is 5.0.2. We currently have a workspace associated with a schema, but we wonder if we can connect to multiple schema (in a database) in a workspace APEX?  Say, one APEX application, we would like to allow the user access to data distributed in different schema.  If not, are there alternatives to allow user access to the schema data?

    Thank you very much!

    Jian

    1794500 wrote:

    Please update your forum profile with a recognizable username instead of "1794500": Video tutorial how to change username available

    Always include all the information detailed in these guidelines when you post a question: How to get the answers from the forum

    Our version of the APEX is 5.0.2. We currently have a workspace associated with a schema, but we wonder if we can connect to multiple schema (in a database) in a workspace APEX?

    Several assignments work/scheme space can be created in the admin/internal workspace to Home > Manage Workspaces > Workspace manage assignments of schema.

    Say, one APEX application, we would like to allow the user access to data distributed in different schema.  If not, are there alternatives to allow user access to the schema data?

    Several patterns can be assigned to a workspace. A workspace can contain multiple applications. Each application is based on one (and only one) the analysis of schema. Access to objects in other schemas is controlled at the database level by the usual means of grants and synonyms.

  • Oracle 11G - access to the table problem

    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...
    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?


    Thanks for the directions...

    997497 wrote:
    Hello
    New on Oracle IAM... After you create a database, I created a connection and SYSDBA role...

    What the user did you use to connect? I'm guessing that you logged in as SYS

    And then I create a table called Table1. And then I create a new USER and I Connect with the same SID of the database, but the role has the DEFAULT value for this new USER...

    So I guess that you have created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you have created the table in the SYS schema, you really need to drop and create in a more appropriate scheme.

    You indicate that you come from SQL Server, so there may be a question of terminology. Which refers to SQL Server as a "database" is roughly equivalent to what Oracle designates as a "scheme." An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.

    01. but the problem is that I can't find the Table1 table for this new user... so how acess as Table1...?

    As I said above, you really, really should not create objects in the SYS schema. If you really want, however, you need to log the SYS schema and grant access on the table to your new user

    GRANT SELECT ON sys.table1 TO your_new_user
    

    You will then need to fully qualify the table name in your SELECT (or create a synonym or the current_schema)

    SELECT *
      FROM sys.table1
    

    02. I came to know in Oracle, also we can design forms for the frontend and can generate EXE... Is this true?

    Older versions of Oracle Forms would create server executables. The modern versions are used to create three-tier applications. You can also use APEX to build web applications. Of course, you can also generate executables by writing code in another language (often .net).

    03. in SQL Server - Sql Port with static IP - we have access to the database for remote users... Is it possible for Oracle?

    Is this possible? Sure. Depending on what means "remote users", however, it may be poorly advised - you would never open a database to the internet directly, for example, you want to ensure that the remote users are connected to your network (via a virtual private network).

    Justin

  • How to grant access to a package body to another user in execution

    Hello

    I have a package body that contains a single procedure and the owner of this APPS package.

    I have a requirement to grant access to this procedure which is inside the package to the user 'XXX' so that I can execute this procedure of user XXX in execution.

    When I tried under statement then it grant access to the package spec, not to the body. Please let me know how to give access to the package running body?
    Grant execute on KEI_TEK_IB_INTF_PKG to XXX.

    Thank you!

    PL, ensure that simultaneous program code is fully eligible package being called (i.e. APPS.) KEI_TEK_IB_INTF_PKG). If the scheme qualifier is omitted, you must create a public synonym (for example to create a public synonym KEI_TEK_IB_INTF_PKG for applications. KEI_TEK_IB_INTF_PKG) for this to work as expected.

    HTH
    Srini

  • OBIEE 11 g - access to the catalogue section

    Hi all

    How to grant access to the section catalogue of OBIEE 11g?

    http://s15.PostImage.org/c6bzrbvy3/print_screen_040313.PNG

    Hello

    If you want to provide, or to revoke the access to the catalogue section, you can do this in Administration-> manage privileges:

    Home and the header-> Access section catalog UI prévilige

    Thank you
    Hyder

  • Need to deny access to the file for the User Manager

    Hello

    I need be able to deny access to the file manager, as I don't want my client, deleting files. However, for some reason, I have to allow him access to what he should be able to download files via InContext Editor (he needs to link the pages to documents that are not on the server so he needs to download and do it, I have to grant access to the file manager).  How can I get around this?  I don't want to reupload the site whenever it deletes a file...

    Unfortunately we can not do - file manager access to removal as well as download and at this stage that cannot be changed.

  • Add access for the Organization

    Hi my friends:


    How can you tell my why I don't see the list of value for operating units in the bank account (add access organization)

    Your question is not clear.
    Org access screen is used to grant access to the inventory orgs. It won't appear any unit operating.

    Sandeep Gandhi

Maybe you are looking for