Generate synonyms PUBLIC grants

Oracle 10.2.0.4

I'm moving a database from one server to another using expdp and impdp.  This database services to a third party application that makes use of synonyms PUBLIC pointing system objects (I know, I know).  The impdp does not provide public subsidies. It seems it would be an easy thing to do, write a sql script to generate subsidies, and then run it.  For the life of me, I can't find where they are stored.  Toad, I see these do not include subsidies on the object in the source database, but each DBA_ table I want to privs.  Even go to TOAD and making one script (on the database or schema) and using the box check "grant" don't give me the grants.

What Miss me?

You're right, I was looking at it backwards.

All right.  Thank you for your help.

Tags: Database

Similar Questions

  • synonyms or grant select access

    Hi I have a database with 2 user_login

    (1) connect owner
    (2) user login

    (3) all the tables created in the database will be the owner (owner login username)

    (4) user will be able to insert, delete, update, run the objects of the owner




    Now my question is... I created all the tables through owner LOGIN

    How can ensure me that the point n ° 4 is convinced...?

    My said dba to create synonyms etc that I didn't... he can directly give ins, upd, privileges select exec, to these objects for the user right?


    why it asking me to create synonyms... and whr can be establish synonyms?

    Well, it will be both pretty much but that does not mean that you must type out... Try this while connected as user has (and this assumes that you want to give everything for each table to user B)... just under your username for A and b. after that, you will need to create synonyms for each object of user B... which you could create A user script to run to b like this:

    Synonyms:

    Select ' create synonym ' | table_name |' a.'. table_name | ';' from user_tables;

    then take the script put on hold as the above producted and sign as b and run it to create synonyms

    Grants:

    FOR x IN (SELECT * from user_tables)
    LOOP
    EXECUTION IMMEDIATE "GRANT ALL WE HAD." | x.table_name | 'TO B ';
    END LOOP;

  • Rapid DDL for table - generated 3 times grants

    Developer SQL version 3.2.20.09

    The table is created as follows:
    create table test_quick_ddl
    (
      column1 varchar2(10 char),
      column2 varchar2(10 char)
    );
    
    grant select, update, insert, delete on test_quick_ddl to scott;
    And "the fast DDL" generated for this table looks like:
    --------------------------------------------------------
    --  DDL for Table TEST_QUICK_DDL
    --------------------------------------------------------
    
      CREATE TABLE "KTRM"."TEST_QUICK_DDL" 
       (     "COLUMN1" VARCHAR2(10 CHAR), 
         "COLUMN2" VARCHAR2(10 CHAR)
       ) SEGMENT CREATION DEFERRED 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
      TABLESPACE "KTRM" ;
      GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";
    GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";
    GRANT DELETE, INSERT, SELECT, UPDATE ON "KTRM"."TEST_QUICK_DDL" TO "SCOTT";

    Hello world
    Thanks for your efforts to report/reproduce the problem.

    I am able to reproduce the problem and identified the cause of it. Working on a fix for it now.

    Joyce Scapicchio
    Team SQLDeveloper

    Published by: Joyce Scapicchio on November 29, 2012 12:57

  • Oracle synonyms: public or private

    The LiveCycle installation instructions specify that for the creation and initial filling of the database THESAURUS 'CREATE' privilege is necessary. I presume this means LK who actually will use to create synonyms. The DBA is now whether these synonyms will be public or private, and I can't find in the documentation. Could someone advice?

    Can you share the URL where it is documented and the version of database you set up? In line with the preparation for installation , the Oracle user account must have the following privileges:

    • CREATE SEQUENCES
    • CREATE VIEW
    • UNLIMITED TABLESPACE
    • CREATE TABLE
    • CREATE THE CLUSTER
    • CREATE SESSION

    ~ Vishal

  • How to generate a public and private key when you use reCAPTCHA anti spam protection forms?

    Hello

    I designed my first website using muse for a customer. now, I want to insert a protection against spam reCAPTCHA. I followed the guide step by step from adobe, but when I want to log in to the google administration console, I'm stuck. can I use my login information to design companies that I have a business google account? and if so, where can I find the app because it does not appear on the console connection that I currently use.

    Help, please!

    Hello

    Please click the link below and login with google/Gmail code. you or your organization

    reCAPTCHA: easy on humans, hard on the Bots

    If you do not have a gmail id then just sign up on google.com or gmail.com.

    Concerning

    Vivek

  • How to check what are the objects using this public synonym?

    Hi Experts

    Currently, I have a public synonym, WORK that is created for WORK table in the schema of the BRAND: "synonym PUBLIC EMPLOYMENT BRAND. JOB. "
    SELECT THIS OPTION. WORK is granted to the TOM_UPDATE (a role): GRANT SELECT ON MARK. JOBS AT TOM_UPDATE;

    I am using TOAD 9.6.1.1 and I wanted to drop the public synonym but I am not able to see that another object in the database uses this public synonym, JOB.

    Help, please.

    moslee wrote:
    Hi Experts

    Currently, I have a public synonym, WORK that is created for WORK table in the schema of the BRAND: "synonym PUBLIC EMPLOYMENT BRAND. JOB. "
    SELECT THIS OPTION. WORK is granted to the TOM_UPDATE (a role): GRANT SELECT ON MARK. JOBS AT TOM_UPDATE;

    I am using TOAD 9.6.1.1 and I wanted to drop the public synonym but
    I am not able to see that another object in the database uses this public synonym, JOB.

    The objects are not "use the synonym".
    The code use synonym to access object.

    use grep allows you to browse the source code that resides in your repository

  • name of the permission for ' drop public synonym '.

    We fall synonymous public as:
    GRANT DROP PUBLIC SYNONYM TO User1;
    How the permission/role is named to run this statement?
    What table I can query to see if my connected user has this right?
    I googled but did not.

    You must DROP PUBLIC SYNONYM privilege.

    You can determine if your username has this privilege by running the following query:

    SELECT *
    FROM   dba_sys_privs
    WHERE  grantee   = 'your user here'
    AND    privilege = 'DROP PUBLIC SYNONYM'
    ;
    
  • Public/private synonym not recognized

    Hello world.

    I'm running EBS 11.5.10 Oracle 10.2.0.3, and until recently all the bolt on and when custom applications using the APPS user to perform their daily tasks. We strive to correct this by giving them least privilege user names, but I don't want to force changes to the code. We decided to use synonyms to make transparent change to applications, but has faced some questions about only one app (which, unfortunately, is a large). For some reason any, when the java class uses a package since the synonym body, it returns error.

    Creating synonym for example:
    CREATE OR REPLACE SYNONYM "OPS$TFNESERV"."GETS_B2B_102_INBOUND_PKG" FOR "APPS"."GETS_B2B_102_INBOUND_PKG";
    {code}
    In the database, the total objects related to this are:
    {code:java}
    select * from dba_objects where object_name = 'GETS_B2B_102_INBOUND_PKG'
    OWNER          OBJECT_NAME               OBJECT_ID
    ---------------------------------------------------------------------------------
    PUBLIC          GETS_B2B_102_INBOUND_PKG     SYNONYM
    APPS          GETS_B2B_102_INBOUND_PKG     PACKAGE
    APPS          GETS_B2B_102_INBOUND_PKG     PACKAGE
    OPS$TFNESERV     GETS_B2B_102_INBOUND_PKG     SYNONYM
    {code}
    Grants include execute & debug on this object:
    [code]
    select * from dba_tab_privs where grantee  like 'OPS$TFNESERV' AND table_name = 'GETS_B2B_102_INBOUND_PKG'
    GRANTEE          OWNER          TABLE_NAME               GRANTOR     PRIVILEGE
    -----------------------------------------------------------------------------------
    OPS$TFNESERV     APPS          GETS_B2B_102_INBOUND_PKG     APPS     EXECUTE
    OPS$TFNESERV     APPS          GETS_B2B_102_INBOUND_PKG     APPS     DEBUG
    [/code]
    The code is written without specifying the schemas, which shouldn't be an issue. Yet here are the various errors I see:
    [code]
    //Java command:
    cstm = con.prepareCall("{call GETS_B2B_102_INBOUND_PKG.get_clob_message(?,?,?,?)}");
    Gets_T1_T3_Inbound:**: SQL ERROR:T3:ORA-01031: insufficient privileges
    
    //SQL
    desc GETS_B2B_102_INBOUND_PKG;
    ERROR:                                                                               
    ------------------------------------------------------------------------------------ 
    ERROR: object GETS_B2B_102_INBOUND_PKG:                                              
    APPS:GETS_B2B_102_INBOUND_PKG does not exist                                         
    
    desc apps.GETS_B2B_102_INBOUND_PKG;
    PROCEDURE                                                                            Argument Name                  Type
    -----------------------------------------------------------------------------------------
    //...data
    [/code]
    
    Am I missing some permission or definition? any help would be appreciated. Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Do something->

    Are you sure you are using the same account in the database and the java connection string? IF Yes, then->

    Do you have dbms_java privs?

    Convert your java code in a procedure based on java within your database, then try to run that and if you are able to do it or not?

    Kind regards.

    LOULOU.

    Published by: Satyaki_De on October 16, 2008 02:53

  • 2 various CARS: same Public Synonyms on the same 2 diagrams - any interaction?

    I'm having a senior moment.

    I have not worked with public synonyms that often, so I just want to make sure I got it right.

    If you have two instances: Instance1 and Instance2

    They both live on the same Oracle RAC cluster.

    Intance1 and Instance2 have a schema named FRED.  Both of them have a synonym Public THISTABLE for FRED. THISTABLE

    Now, I want to just make sure that the public synonyms do NOT connect between two different, although instances on the same RAC system, right?

    Someone on Instance2 inserting in fred.thistable is ONLY for this instance, instance1 do not affect all, correct?

    You would have to do something like this, essentially a database link between them and could have a public link THISTABLE on Instance2 pointing to FRED. THISTABLE on Instance1... but simply want to make sure that I understand that only a dblink between two patterns on the two bodies will... allow traffic/access between the two bodies and public synonyms on their own will not cross the instance gap, even with two instances on the same cluster.

    Once again, senior moment here and just want to make sure I have it directly.

    Thanks in advance,

    Cayenne

    This case I put in place the same pattern of FRED and the same FRED table name. TABLEAUCETTE on the database instance instsqa... There is no link between the two with this public synonym on instdev. The only way you could link the two instances and schemas for the table would be by a... correct database link?

    Yes. You got right.

    Take CARS out of it.  It's the same as if you had 2 databases one-off names instdev and instqa.

    Post edited by: Brian Bontrager

  • error in grant execute to the public on the package

    Hello
    I have a package that works with my user but when I try to run on this package that I receive
      
    declare
          v_id number;
         begin
              v_id := liste_pkg_lista.liste_lista_func(9);
            dbms_output.put_line(v_id);
    end;
    SQL> /
    9
    
    PL/SQL procedure successfully completed.
    
    SQL> grant execute on liste_pkg_lista.liste_lista_func to public;
    grant execute on liste_pkg_lista.liste_lista_func to public
                                     *
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    can you tell me how to run on it to the public?

    Thank you

    Coco wrote:
    Hello
    I have a package that works with my user but when I try to run on this package that I receive

    
    declare
    v_id number;
    begin
    v_id := liste_pkg_lista.liste_lista_func(9);
    dbms_output.put_line(v_id);
    end;
    SQL> /
    9
    
    PL/SQL procedure successfully completed.
    
    SQL> grant execute on liste_pkg_lista.liste_lista_func to public;
    grant execute on liste_pkg_lista.liste_lista_func to public
    *
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    

    can you tell me how to run on it to the public?

    Thank you

    Grant execute on liste_pkg_lista to public;

  • Public synonym data

    Hello

    I use synonym Public to extract data. When I run the following code in the TOAD there are no data in the synonym
    Select * from RFlog
    but when I excute following the code
    declare 
    vc varchar2(10); 
    begin 
    dbms_application_info.set_client_info('ABC'); ---(my userid) 
    select distinct(clientid) into vc from RFlog 
    where clientid='14'; 
    dbms_output.put_line(vc); 
    end;
    then give
    Select * from RFlog
    There are data in synonym.
    Once again when I log off and open the new session there is no data in the synonym.
    Please let me know what I'm missing?

    Thank you very much
    Sandy

    Seen as saved queries, data will always be in the table. If the display is not correct, there will be no data.

    Check the query view related and run/fix the query that produces the view.

    HTH

    SS

  • create a synonym private to another schema

    Hello

    Oracle 10.2.0.4

    We have a number of base < table_name > tables in source schema. I have created hace views on certain tables as table_view < TABLE_NAME_VIEW >

    DBA has created a new user called view_user and a role called view_user_role.

    SELECT on these points of view permissions are granted to the view_user_role as GRANT SELECT ON < TABLE_NAME_VIEW > to view_user_role

    If I connect as long as user view_user I can do SELECT in source.table_view and it works SELECT * from source. < TABLE_NAME_VIEW >

    I can also create (as the owner of the source schema) public synonym with the same name as the name of the table for easy selection

    CREATE PUBLIC SYNONYM < table_name > FOR < table_name > _VIEW

    It works and view_user can select < table_name >

    However, I like to create views for this user only. When I try to do (as the owner of the source schema)

    CREATE or REPLACE the view_user SYSNONYM. < table_name > FOR source. < TABLE_NAME_VIEW >

    I get insufficient privileges!

    No idea how I can fix this problem? What advantage is there to create private views as a public view will work like no one else has view_user_role

    Thank you

    Some people like not synonymous public but we use them.  If end users have their own unique Oracle user names and where you have a couple asks a thousand items, create a synonym private for each user is impractical.  If a new object is created back and in defining a synonym private for each user who needs access to the object is not very practical.  Create a public synonym for each object and be done with it.  A user should always select or privilege of running on the underlying to see object that it so all the public synonym is to provide access once the privilege of the object has been obtained (if all goes well through a role).

    HTH - Mark D Powell.

  • Invalid PUBLIC objects in the database

    Hello

    I have a 11.1.0.7.10 database running on one machine Linux EL5.
    OWNER           OBJECT_NAME                    OBJECT_TYPE
    --------------- ------------------------------ --------------------
    SYS             INTERACTIONEXECUTE             FUNCTION
    SYS             XOQ_VALIDATE                   PROCEDURE
    PUBLIC          ALL_AW_LOAD_DIMENSIONS         SYNONYM
    PUBLIC          ALL_AW_LOAD_DIM_FILTERS        SYNONYM
    PUBLIC          ALL_AW_LOAD_CUBE_FILTERS       SYNONYM
    PUBLIC          ALL_AW_LOAD_CUBE_MEASURES      SYNONYM
    PUBLIC          ALL_AW_LOAD_DIM_PARMS          SYNONYM
    PUBLIC          ALL_AW_LOAD_CUBE_DIMS          SYNONYM
    PUBLIC          ALL_AW_LOAD_CUBES              SYNONYM
    PUBLIC          ALL_AW_LOAD_CUBE_PARMS         SYNONYM
    PUBLIC          ALL_LOAD_CUBE_SEGWIDTH         SYNONYM
    PUBLIC          ALL_AW_CUBE_AGG_PLANS          SYNONYM
    PUBLIC          ALL_AW_CUBE_AGG_MEASURES       SYNONYM
    PUBLIC          ALL_AW_CUBE_AGG_LEVELS         SYNONYM
    PUBLIC          ALL_AW_DIM_ENABLED_VIEWS       SYNONYM
    PUBLIC          ALL_AW_CUBE_ENABLED_VIEWS      SYNONYM
    PUBLIC          ALL_AW_CUBE_ENABLED_HIERCOMBO  SYNONYM
    PUBLIC          DBMS_AWM                       SYNONYM
    
    SQL> alter public synonym ALL_AW_LOAD_DIMENSIONS compile;
    alter public synonym ALL_AW_LOAD_DIMENSIONS compile
    *
    ERROR at line 1:
    ORA-00980: synonym translation is no longer valid
    When I try to compile the synonyms, I get the above error. Could someone help me please here as to what needs to be done to get these fixed invalid synonyms?

    Published by: 877343 on 5 March 2012 02:13

    Its look like someone has voluntarily withdrawn your database OLAp option, but forgot to remove its synonyms :|

    See the following note in MOS:
    Remove invalid OLAP of SYS and [ID 565773.1] OLAPSYS schema objects

    He explains after removing the OLAP option, you must remove all of its related synonyms. Look at step 3) this note:

    3. All the objects listed in step 2 can be deleted, since they are used exclusively by the OLAP option.
    
    To make this easier, use the following SQL script to determine all PUBLIC synonyms referring to objects in the OLAPSYS schema:
    This will generate a script that drops the listed objects from the database.
    
    SQL>spool olapdrop.sql
    SQL> select 'drop public synonym ' || synonym_name || ';'
           from dba_synonyms
           where owner='PUBLIC' and table_owner='OLAPSYS';
    SQL>spool off
    
  • May not grant execute on UTL_FILE even user with the DBA role

    Hi all

    I have a problem - I can not grant execute on UTL_FILE to < some_user >, even if I am logged in as a user with the DBA role.
    grant execute on UTL_FILE to seesat_stg;
    ORA-00942: table or view does not exist

    Is the synonym PUBLIC:
    select owner, object_name, object_type from all_objects where object_name = 'UTL_FILE'
    Returns:
    SYS          UTL_FILE     PACKAGE
    SYS          UTL_FILE     PACKAGE BODY
    PUBLIC          UTL_FILE     SYNONYM
    FLOWS_030100     UTL_FILE     SYNONYM
    Any ideas what I am doing wrong? It's about Oracle XE.

    It works if you open a session as SYS?

    I suspect that your user with the DBA role not really has the right to grant permissions execute on UTL_FILE.

  • Requested help recovering from the change that I did for the 'Public' of Vista Home Premium file permissions for everyone

    I made a blunder when changing the permissions of public folders for everyone.  I am now connected to Vista Home Premium on my home PC as an Admin will be complete permissiongs.  When I right click on the folder Public, pooling and property options are both now gone.  How to restore the availability of these options?  Also, I can access to is no longer the files that I previously copied into the Public folder.  How can I restore my access to these files?

    Have you started with elevated privileges command prompt? Just running in the administrator account is not enough. Looks like you don't have because it starts in your user directory. If you were high would begin in the Windows\System32 directory.

    See: http://windows.microsoft.com/en-US/windows-vista/Command-Prompt-frequently-asked-questions

    Orders, you should get something like this:

    Takeown /f /a C:\Users\Public
    ICACLS C:\Users\Public/Grant "BUILTIN\Users: (F)".
    ICACLS C:\Users\Public/Grant "Administrators: (F)".
    Takeown /f C:\Users\Public\*/a
    ICACLS C:\Users\Public\*.*/Grant "BUILTIN\Users: (F)".
    ICACLS C:\Users\Public\*.*/Grant "Administrators: (F)".

    I can't guarantee that this will fix your system. You must give permissions for the system and other users accounts.  If you have access to another system, I would compare the settings there. These programs will help you determine the permissions associated with a system

Maybe you are looking for