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

Tags: Database

Similar Questions

  • Privileging the public synonym over schema object

    Hello

    I have a request.

    I logged in a scheme called "SCOTT."

    I have a table called 'EMP '.

    Now, I created a view called "EMP_D" with the addition of more of a few columns.

    Now I create a public synonym 'EMP' pointing to display "EMP_D".

    Now, I'm pulled the query in the schema "SCOTT."

    Select * from EMP

    I want that data to the EMP_D view.

    How to get there?

    Thanks in advance

    S. Jean-Charles

    user629814 wrote:

    My question is

    is it possible to prioritize the resulting public synonym of the same schema?

    Its only for a solution.

    This is called "name resolution" and is documented here: http://docs.oracle.com/cd/B28359_01/server.111/b28310/general008.htm#ADMIN11561

    1 oracle database attempts to qualify the first piece of the name referenced in the SQL statement. For example, in scott.emp , scott is the first piece. If there is only one piece, the piece is considered to be the first piece.

    1. In the current schema, the database looking for an object whose name matches the first part of the name of the object. If it does not find such an object, it continues with step b.
    2. The database looking for a public synonym that matches the first part of the name. If it does not find one, it continues with stepc.
    3. ...

    So if you have a schema object with the same name as a public synonym, oracle will always use first the schema object.

    Your only chance would be to rename the schema object or use another schema.

  • Public synonym in Expdp

    Oracle: 11.2.0

    OS: Windows

    Is it possible to export the public synonym with the help of the utility expdp?

    Otherwise, what is the reason behind this?

    Thank you

    AKPT

    Hello

    public synonyms can be extracted on their own by using:

    expdp / full = include = PUBLIC_SYNONYM/SYNONYM

    Full database export then by default includes

    Kind regards

    Harry

  • How Public synonym works.

    When a search is done in data in a table via a public synonym, not the associated table, the index is used or not. I think he did, but I want to be sure, can someone also confirms this.

    Thank you

    Hello

    Yes, of course public synonyms use underlying indices. Its very simple test.

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    
    SQL>
    SQL>
    SQL> create table t as select rownum x from dual connect by level <=10000;
    
    Table created.
    
    SQL> exec dbms_stats.gather_table_stats(user, 't');
    
    PL/SQL procedure successfully completed.
    
    SQL> create index t_idx on t(x);
    
    Index created.
    
    SQL> create public synonym pub_t for test.t;
    
    Synonym created.
    
    SQL> set autotrace traceonly exp
    SQL> select * from t where x = 5;
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 2946670127
    
    --------------------------------------------------------------------------
    | Id  | Operation        | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |       |     1 |     3 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX RANGE SCAN| T_IDX |     1 |     3 |     1   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - access("X"=5)
    
    SQL> select * from pub_t where x = 5;
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 2946670127
    
    --------------------------------------------------------------------------
    | Id  | Operation        | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |       |     1 |     3 |     1   (0)| 00:00:01 |
    |*  1 |  INDEX RANGE SCAN| T_IDX |     1 |     3 |     1   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - access("X"=5)
    
    SQL> set autotrace off;
    SQL>
    
  • CAR-to-car cloning of EBS on the same host

    I'm running a car-to-car cloning of EBS on the same host... trying to run the below command, I get the errors below

    Perl adclone.pl component java=/db/app/oracle/product/11.2.0/db_2/jdk/jre = dbTier mode = stage=/db/app/oracle/product/11.2.0/db_2/appsutil/clone/ = dbctxtg=/db/app/oracle/product/11.2.0/db_2/appsutil/dev21_ifmisdbdev01.xml rmanstage = CUSTOM method / fra/STAGE/data/internship/rmantgtloc = + srcdbname FRA = dev2 pwd = apps showProgressode

    Logfile located at /db/app/oracle/product/11.2.0/db_2/appsutil/log/dev21_ifmisdbdev01/ApplyDBTier_09121455.log

    / 50% complete type system database Source key ("single" or "car").

    The system is identified as active CARS!

    Restoring the head node of RAC database on the new system via RMAN target...

    THIS PROCESS TAKES A LONG TIME TO COMPLETE AND DEPENDS ON THE SIZE OF THE SOURCE SYSTEM DB

    Enter the first phase to RMAN restore

    -50% finished

    Not able to run the first phase to RMAN restore!

    ERROR when executing apply...

    -bash-4: $1 tail-f /db/app/oracle/product/11.2.0/db_2/appsutil/out/dev21_ifmisdbdev01/restore-rac1.log

    ORA-19504: could not create the file "+ FRA/dev2/controlfile_dev2.ctl".

    ORA-17502: ksfdcre:3 cannot create the +FRA/dev2/controlfile_dev2.ctl file

    ORA-15001: diskgroup "FRA" does not exist or is not mounted

    ORA-15055: unable to connect to the ASM instance

    ORA-15055: unable to connect to the ASM instance

    ORA-27300: OS dependent operating system: open failed with status: 13

    ORA-27301: OS Error Message: permission denied

    ORA-27302: an error occurred at: sskgmsmr_7

    Complete recovery manager.

    operating system permissions

  • 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'
    ;
    
  • What can I do for the creation of a public synonym view?

    Hi people,
    I create a public synonym of another object to users

    SQL > create public synonym PAPD for scott.dept;


    The synonym is created.

    so I tend to create a view of this public syn

    SQL > create view vpdep in select * from PAPD.
    Create view vpdep in select * from PAPD
    *
    ERROR on line 1:
    ORA-01031: insufficient privileges

    I have the privilege to create view.also, I can create views of a public synonym for my own ex objects.for,

    SQL > create public synonym cdep for dept.

    The synonym is created.

    SQL > create view vcdep in select * from cdep;

    Created view.

    What could be the reason behind this? is there any privilege required to me.pls suggest me.

    Concerning
    VIDS

    Hi vidusnat!

    It is onlinedocumentation to Oracle:
    >
    Privileges required to create views

    To create a view, you must meet the following requirements:

    You must have been granted one of the following system privileges, either explicitly, or by a role:
    o CREATE The VIEW system privilege (to create views in your schema)
    o The CREATE ANY VIEW system privilege (to create a view of another user schema)
    You must explicitly obtained one of the following privileges:
    o the SELECT, INSERT, UPDATE, or DELETE object privileges on all objects in the view's underlying base
    o SELECT it ANY TABLE, INSERT a WHOLE TABLE, UPDATE ANY TABLE or DELETE ANY TABLE access privileges

    In addition, in order to grant access to your display of other users, you must have privileges to object to the base with the OPTION GIVING clause objects or system privileges with ADMIN OPTION clause. If you do not, users cannot access your view.
    >

    I hope that this will bring a little light in the darkness!

    Yours sincerely

    Florian W.

  • 4.1EA2 - overview of Code does not take into account public synonyms

    Hello there,

    I think that the completion of the tablenames in the modified spreadsheet of sort it ignores now public synonyms.

    When I type

    Select * from user_

    and press CTRL-space I get SYS.user_tables SYS.user_tab_columns etc. It's a little embarrassing.

    Now the question is, can I code insight also offer public synonyms? And if not can I at least get the usernames lowercase?

    Kind regards

    dhalek

    Run

    the hidden value of param querySynonyms = true

    command to activate the thesaurus in code insight. This has changed due to the execution of view poor synonyms dictionary in 12 c with insight omitting guest more important objects tables, views and pl/sql modules.

    Also, make sure that

    Preferences-> completion Insight-> change case as long as you type = None

    then the object names would be in the same case that they extracted from the dictionary (upper case).

  • Public synonyms in a pluggable database deletion

    I have a base Oracle container 12 c with pluggable databases in it.  In a pluggable data bases, I uninstalled OLAP by running the following scripts:

    SQL > @%oracle_home%/olap/admin/catnoamd.sql

    SQL > @ /olap/admin/olapidrp.plb% oracle_home %

    SQL > @ /olap/admin/catnoxoq.sql% oracle_home %

    SQL > @ /olap/admin/catnoaps.sql% oracle_home %

    After you run the scripts, I then generated SQL statements to remove invalid OLAP synonyms, by executing the following:

    Select ' drop public synonym ' | object_name | ';'

    from dba_objects

    where <>of status "VALID."

    and owner = 'PUBLIC '.

    and object_type = 'SYNONYM '.

    and object_name like '% OLAP % ';

    When I run the SQL statements resulting in the snap-in data base, I get the following error for each of them:

    ERROR on line 1:

    ORA-65040: operation not allowed a pluggable database

    If I switch back to the ROOT of PEH container $ and executes the same statements, I get the following error:

    ERROR on line 1:

    ORA-01432: due public synonym being abandoned does not exist

    How can I remove these invalid public synonyms for my snap-in database?

    I think you're right. I re-read the note that I mentioned above. Even uninstalling an option is not supported for a CBD so far. Only option is to disable it. Second option is to create a non - CBD, uninstall option is not required and then plug it into a CBD.

    Salman

    ----------

    http://salmandba.blogspot.com

  • PUBLIC SYNONYM - strange behavior

    I just organized a test on SQL queries for my students.

    It is based on four tables in a schema, and I created public synonyms for each table and read privilege to the PUBLIC, for example

    Staff CREATE a PUBLIC SYNONYM FOR testuser.staff
    GRANT SELECT ON testuser.staff to PUBLIC

    All the 150 + of my students have exactly the same roles and privileges, and yet two could not access the table of personnel without to refer to him as testuser.staff. They were able to access as provided for in the past.

    Has anyone encountered this before? I can't imagine that it's something to do with 60 students hit the synonym even at the same time, but I wonder.

    Brian

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    Hello

    Both users apparently have their own tables (views, synonyms, or other objects) called the STAFF.

    What kind of results do get when they use the unqualified name, like this

    SELECT  last_name
    FROM    staff;
    

    ? "If they get"ORA-00904"'Name': invalid identifier", it might be because their own staffing table is not a column named LAST_NAME.

    A name to your own schema takes precedence over a PUBLIC synonym. It makes sense: you don't want all your own queries on your own STAFFING table to stop just because someone used the same name for a public synonym.

  • Public names for the results in a test script

    When we set some attributes as a result in a test script or we should assign public names to these attributes of result should leave those who attribute with system generated public names?

    The reason I ask is if for some reason any public attributes that are generated, the system located in the results, changes its name due to the addition or deletion of rules then those should not influence the results - expected mergers in the real value of the test scripts that are already present in the modules.

    I didn't test this scenario... like my system of cases generated public names remained the same even before after adding a rule to the same document.

    Can we know how OPA decides what public names to automatically generate? I know that generally, the suffix is the name of the document as b4@document1_doc

    The 'view' in issue Edit field has nothing to do with the ID attribute and public names. It's just a matter what text you want to appear on the label in the regression Test report. The only way to have a stable static attribute ID is to add a Public name.

    See you soon,.

    Jasmine

  • public synonyms

    Hello

    my database name is sch.in I have two patterns named ownr and database user.

    I've created tables, packages in ownr. I have to offer subsidies to these tables and packages to the schema of the user.

    If I create public synonyms for all tables and packages in the ownr schema are there the subsidies needed to access these objects from the user scehma?

    user10447332 wrote:
    Hello

    my database name is sch.in I have two patterns named ownr and database user.

    I've created tables, packages in ownr. I have to offer subsidies to these tables and packages to the schema of the user.

    If I create public synonyms for all tables and packages in the ownr schema are there the subsidies needed to access these objects from the user scehma?

    YES, in all THAT Oracle is FORBIDDEN; except as explicitly granted.

    SYNONYM is NOT a GRANT

    Handle: user10447332
    Status level: Beginner
    Join date: October 20, 2008
    Messages total: 322
    Total Questions: 215 (194 pending)

    Why so MANY unanswered questions?

  • How to revoke all privileges on a public synonym of a user

    How to revoke all privileges on a public synonym of a user in 9i?

    you know the difference between PRIVATE and PUBLIC means?

    Public synonyms are accessible to all users.
    Private is accessible only inside its schema.

    If you do not want this user, use this synonym drop it and create a synonym in other schemas where users need.

  • Which granted CREATE a PUBLIC SYNONYM for user SCOTT?

    version: 11.2.0.3
    Operating system: Solaris 10

    Auditing is enabled in our database.
    SQL> show parameter audit_trail
     
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    audit_trail                          string      DB
    Of DBA_SYS_PRIVS, we have confirmed that one of our DBA colleagues gave some risky privileges like CREATE PUBLIC SYNONYM, SELECT ANY TABLE... etc. to the user SCOTT.

    We would like to find out 2 things
    1. the SQL GRANT
    2. the date and time on which the statetement GRANT was pulled


    How can we find it?

    Y.Ramlet wrote:
    version: 11.2.0.3
    Operating system: Solaris 10

    Auditing is enabled in our database.

    SQL> show parameter audit_trail
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    audit_trail                          string      DB
    

    Of DBA_SYS_PRIVS, we have confirmed that one of our DBA colleagues gave some risky privileges like CREATE PUBLIC SYNONYM, SELECT ANY TABLE... etc. to the user SCOTT.

    We would like to find out 2 things
    1. the SQL GRANT

    You will have no SQL in the audit trail, because you have not configured the parameter correctly. You must audit_trail = db, extended to get the SQL code.

    2. the date and time on which the statetement GRANT was pulled

    You will have anything unless you have enabled auditing for the instruction given with
    Check create public synonym;

    How can we find it?

    You can't until you configure the audit in an appropriate manner.

Maybe you are looking for

  • Graphical user interface does not display properly

    Basically I upgraded my windows build 10 to 10122 yesterday. When I launched Firefox, MISTLETOE is totally screwed and makes Firefox unusable on my machine. This seems to be the specific machine as on a computer that is running the same build 10 wind

  • Can not find the google search bar to change the search on my home page engines

    As I said above, I don't know why I can't find this combo on my MSN with Firefox homepage for the ability to change search engines. I had been doing network search more which I think is a third-party program probably from my old messenger more but I

  • Help! My MacbookPro is super slow (and the HD is only half full)

    I'd appreciate any help as I can get before I have to spend a fortune upgrading to a SDS or increase the RAM memory. I have a mid-2010 Macbook Pro (2. 4 Ghz) with: -4 GB RAM -500 GB HD (219 GB available) (Please let me know if any other card would he

  • Is the disk hard standard series Equium encrypted?

    My equium girlfriends broke down (motherboard according to the servicescompany) after only two years, and we want to know if the disks are encrypted or special in some kind or standard 40pin IDE disk? We want to transfer the data on the disks...(to r

  • How to restore the factory settings on a Dell computer?

    I had a Trojan horse which I removed with Microsoft Security databases. My credit card company informed me that my identity has been stolen and told me that the horse of Troy Horese could have thrown other babies of Trojan in my computer which can be