Views Vs. Synonyms

On the new shop, the dba created the readonly account for developers to accessing the applications tables on prod. He created the readonly account' owed views for the apps tables and granted with the select privs on the tables This is a little odd, since I know the common pratice is to create the readonly account's private synonyms for the tables.
Any issue(s) with this pratice?

The first issue I'd have would be that the views would not reflect changes in the table structure. So if new columns were added to the table, the view wouldn't select those new columns. That would mean that every time a new column was added (renamed, etc), the DBA would have to re-create the views for every read-only user, which seems unlikely to work particularly well if there are more than a handful of read-only users.
You're also in this case granting read-only users privileges to create views, which may well create headaches going forward if users decide to create important views in their schema. DBAs love to discover after an employee leaves the company that some critical financial report was created as a view in that departed employee's schema.
Justin

Similar Messages

  • Bug in tree view of synonyms owned by other user

    Hi,
    I'm connecting into Oracle 10.2.0.3 whith SQL Developer 1.5.3.0.53 and user SYS as SYSDBA. When I browse tree view of synonyms of another user, the synonyms that include database link don't display !!! If I connect whith that user the synonyms are displayed correct.
    Is this a bug ? There are a solution ?
    Thanks !
    About
    Oracle SQL Developer 1.5.0.53
    Versão 1.5.0.53
    Build MAIN-53.38
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.35
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.53.38
    Component Version
    ==========     ======
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Oracle IDE     1.5.0.53.38
    Plataforma Java(TM)     1.6.0_06
    Versioning Support     1.5.0.53.38

    Hi there,
    while we support dblinks, we dont support following them thru on synonyms or browsing them either. This is a feature right now and you can vote for this as a feature in a later release by submitting a feature request at sqldeveloper.oracle.com

  • Query to find the Views and synonyms that are accessing through db_link

    HI all,
    Oracle 10g
    I need a Query to find the Views and synonyms that are accessing through db_link.
    ie.
    database A have the db_link to database B through a schema A
    now i need to find what are the Synonyms and views that are accessing through db_link either directly or indirectly..
    regards,
    Deepak
    Edited by: Deepak_DBA on Dec 10, 2010 5:38 PM

    On the second database (B) use this query to find the SQL which used by the schema A (DB LINK USER). Check the SQL_FULLTEXT column.
    select sql_fulltext,sql_id,module,parsing_schema_name,parsing_user_id,first_load_time,loads,users_executing,rows_processed,plsql_exec_time,sorts,fetches,invalidations,parse_calls,cpu_time,elapsed_time,disk_reads,buffer_gets
    from V$sqlarea
    where parsing_schema_name = 'A' --and to_char(first_load_time,'dd/mm/yyyy') like  '%11/08/2007'
    order by first_load_time desc;
    Regards
    Asif Kabir

  • Difference between  view and synonym

    i want the difference between view and synonym ,and also the cases where view and synonym are used

    How this is related to 'issues and concerns with downloads' is beyond my understanding. Your question seems to be related to database and should be re-issued in the database forums.
    In the mean time, the definitions of each are given at http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref69

  • Materialized view with synonym

    HI,
    I created a materialized view that is based on a synonym, depending on the table you want to modify using the synonym to point to another table, but to cool it still uses the original referenced table synonym.
    Is there a way, without deleting the materialized view, that the refresh will change the definition?
    Example Post
    CREATE OR REPLACE SYNONYM DWH.SYN_CCBCON4 FOR DWHADC.CCBCON4D;
    CREATE MATERIALIZED VIEW DWH.VWM_CTO_INFO_0 (CONTRATO,FCH_ENTRADA)
    TABLESPACE TS_DWH_01
    NOCACHE
    LOGGING
    NOCOMPRESS
    NOPARALLEL
    BUILD IMMEDIATE
    USING INDEX
    REFRESH COMPLETE ON DEMAND
    WITH PRIMARY KEY
    AS
    SELECT contrato contrato, MIN (fch_entrada) fch_entrada
    FROM syn_ccbcon4
    WHERE NVL (fecha_modificacion, TO_DATE (fch_entrada, 'YYYYMMDD')) >=
    f_calc_max_fch_modif ('CTO_INFO', 'FCH_MODIF', '0')
    AND posic_actual NOT IN ('030', '050')
    GROUP BY contrato;
    --> REFRESH MV
    Change SYNONYM
    CREATE OR REPLACE SYNONYM DWH.SYN_CCBCON4 FOR DWHADC.CCBCON5D;
    --> REFRESH MV
    But the data is of the table CCBCON4D.
    thankx
    Jorge.

    Hi,
    Sorry for my previous response, I am editing this now.
    I don't think you can do this because Oracle seems to store the original definition in internal table SYS.SNAP$ and it will not allow you to do so unless you recreate your MV after changing the synonym definition. Reason is because physical structure of Mview is present and changing synonym definition means that now structure of mview can be compromised by new definition of synonym and hence makes things inconsistent.
    In SYS.SNAP$ you can see original table where you synonym was pointing to when you created the MVIEW.
    Salman
    Edited by: Salman Qureshi on Dec 11, 2012 5:29 PM

  • Problem in viewing the synonym

    Hi,
    I have created a synonym as below,
    create synonym     PCS_TARGET.C$_0BLOB_TARGET
    for           PCS_MASTER_INT.C$_0BLOB_TARGET@PCBID
    But when i try to view this, its throwing an error as
    ORA-00942: table or view does not exist
    It doesn't consider the db link PCBID,came to know when i try to see its DDL.
    I have to access this synonym,Pls suggest what to do to sort out this.
    Many thanks in advance

    This is more an Oracle DB problem than an ODI problem.
    Can you do a SELECT * FROM PCS_MASTER_INT.C$_0BLOB_TARGET@PCBID WHERE rownum <2 ?
    If not the target schema of your dblink lacks privileges on table PCS_MASTER_INT.C$_0BLOB_TARGET.

  • Can't view private synonyms in OWB 9.2.0.2

    Hi All,
    I have created a number of private synonyms in Schema A for objects that exist in Schema B. When querying these tables via SQLPLUS (whilst in Schema A) I have no problems but I can not see these synonyms when trying an import in OWB (my Source module is connect to Schema A). I have checked the "Use a synonym to look up objects" checkbox but I still only see physical objects in my shema and not synonyms.
    Any help would be hugely appreciated.
    Kind Regards
    Mitesh

    I would like to add that I have created the synonyms in SchemaA for object in SchemaB across using a DB_LINK. When I create the synonyms without the use of a db_link I have no problems but when using it I do?

  • Selecting a table, view, synonym

    Hi,
    If I have a table, view and synonym with the same name,
    which object gets selected in a select table............

    Please check the following script --
    satyaki>
    satyaki>create table test_user559765
      2     as
      3       select empno,ename
      4       from emp;
    Table created.
    satyaki>
    satyaki>
    satyaki>desc test_user559765;
    Name                                      Null?    Type
    EMPNO                                              NUMBER(4)
    ENAME                                              VARCHAR2(10)
    satyaki>
    satyaki>
    satyaki>set lin 1000
    satyaki>
    satyaki>select * from test_user559765;
         EMPNO ENAME
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
         EMPNO ENAME
          7900 JAMES
          7902 FORD
          7934 MILLER
          9898 Erwin
          7006 Gopal
    16 rows selected.
    satyaki>
    satyaki>
    satyaki>create or replace view test_user559765
      2     as
      3       select empno,sal
      4       from emp;
         from emp
    ERROR at line 4:
    ORA-00955: name is already used by an existing objectNow, you tell me how do you create one table & view with the same name?
    Regards.
    Satyaki De.

  • Oracle Synonyms vs. views

    we have a packaged product using 8i, with our own naming conventions..our prospective client wants their own naming conventions.
    what are the implications of using views/ synonyms to resolve this?
    how would th eperformance be affected and what could be other 'hidden' issues?!
    please help me!!!
    thanks!
    null

    hi
    Synonym:(creation)
    1> Created for only one table
    eg. Create synonym sname for
    table name
    view :(creation)
    1> Created by linking multible tables
    2> Selected colum
    Synonym:(Access)
    1> Owner of the table is x,
    Now y user want to use this table
    without using of x.tablename(Without
    giving privileges to access)
    View :(Access)
    1> view is created in the schema x,
    schema x have to give privilege to y
    to access the view.
    Synonym (Storage)
    1> just query will be stored in this object.
    view (storage)
    2> normal view will also will store the query nly.Materialized view stores data not query.(Oracle 8i)
    If in case of any clarification pl mail to me.
    suresh
    null

  • Oracle Apps EUL with Custom Discoverer Views

    Disco Environment:
    OracleBI Discoverer 10g (10.1.2.2)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.54.25)
    Discoverer Model - 10.1.2.54.25
    Discoverer Server - 10.1.2.54.25
    End User Layer - 5.1.1.0.0.0
    End User Layer Library - 10.1.2.54.25
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Oracle Applications R12 EUL
    All,
    Up until now, we have been placing our Discoverer custom views in our apps schema. From a "keeping track" perspective and from a "keep Disco views separate from apps" perspective, we are inclined to create a custom schema to place all of our custom Discoverer views. I have heard that Noetix does this as well.
    To accomplish this, we were planning to provide a grant select to all tables, views and synonyms (with a limited execute rights to some packages).
    The easiest thing to do is to keep on doing what we are presently doing. We have a naming schema in place that enables us to quickly identify all custom Disco views.
    Can I have people whom have implemented a custom schema for their Disco views in apps let me know how this has worked for them? This type of Disco environment appears to require a lot of communication between the Disco staff and the DBA to make sure these grants are set-up correctly.
    Thanks,
    Patrick

    Hi,
    All the eBS sites I have worked on have created the majority of their custom views in the APPS schema using a naming convention to separate them from the seeded views. The reason being is that the SQL in the view (including all the function calls) is run with the privileges of the owner of the view. If the view is defined in another schema, then this schema must have access to the APPS database objects which can be a lot of work to set up because it is very hard to identify the dependencies and unnecessarily opens up the security on the APPS schema.
    Where the data is held in custom tables and there are views on these custom tables, then both the tables and the views are held in a separate schema.
    Rod West

  • Materialized view fast refresh with date field

    I have a situation where I need to create a materialized view worth of 6 months of data with fast refresh option from the master table. Somehow whenever I have the where clause added with the date field then it craps out with "ORA-12015: cannot create a fast refresh materialized view from a complex query".
    Here is what I am trying to do. Please let me know if there is any other way to accomplish this.
    create table test (id number, date_time DATE);
    CREATE MATERIALIZED VIEW LOG ON test WITH ROWID;
    CREATE MATERIALIZED VIEW cms.scoreboard_statistics_mv
    BUILD IMMEDIATE
    REFRESH FAST
    WITH ROWID
    AS
    SELECT * from test
    WHERE date_time >= sysdate - 180;
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    Thanks,
    Raj

    It's crazy but a new time Metalink help us into the Note:179466.1
    The restrictions that prevent snapshots from being fast refreshed depend on
    the version of Oracle being used, a full list of these by version is included
    in section 3. In all cases the snapshot defining query should:
    - refer to fully qualified table names rather than to partial table names.
    - refer to remote tables only, not to remote master views or synonyms.
    - not generate context sensitive data. For example, do not create a simple
    snapshot with a query that uses the SQL functions :SYSDATE, UID or USER.

  • Grant access to SYS.V$TEMP_SPACE_HEADER view - how to?

    Hi,
    I created a user. I am trying to give select access on some of the System tables and views to this user to retrieve some information about the database.
    When I try
    grant select on sys.v$temp_space_header to usr1;
    I am getting the following error
    grant select on sys.v$temp_space_header to usr1
    ERROR at line 1:
    ORA-02030: can only select from fixed tables/views
    I am getting the same error when I try to give select access to SYS.V$TEMPSTAT view also.
    Does anyone know why this error is coming? Please let me know how I can grant select access to the user for these views.

    Hi,
    This two views are synonyms.
    SQL> grant select on sys.V$TEMPSTAT to scott;
    grant select on sys.V$TEMPSTAT to scott
    ERREUR à la ligne 1 :
    ORA-02030: une sélection n'est autorisée que depuis des tables fixes/vues
    SQL> grant select on sys.V$TEMP_SPACE_HEADER to scott;
    grant select on sys.V$TEMP_SPACE_HEADER to scott
    ERREUR à la ligne 1 :
    ORA-02030: une sélection n'est autorisée que depuis des tables fixes/vues
    SQL> select synonym_name,table_name
    2 from dba_synonyms
    3 where synonym_name in ('V$TEMP_SPACE_HEADER','V$TEMPSTAT');
    SYNONYM_NAME TABLE_NAME
    V$TEMPSTAT V_$TEMPSTAT
    V$TEMP_SPACE_HEADER V_$TEMP_SPACE_HEADER
    SQL> grant select on sys.V_$TEMPSTAT to scott;
    Autorisation de privilèges (GRANT) acceptée.
    SQL> grant select on sys.V_$TEMP_SPACE_HEADER to scott;
    Autorisation de privilèges (GRANT) acceptée.
    Nicolas.

  • Can't see database views (Oracle 11g)

    Hi,
    Latest PowerQuery (PowerQuery_2.10.3598.81 (32-bit) [en-US]) don't show Views and Synonyms when connecting oracle db (11g)
    Tables shown without problem.
    What is the problem?

    This will be fixed in the next release of Power Query, which is expected relatively early in April. We will show views but not synonyms.
    Could you describe the relative importance or value to you of being able to use synonyms? Without any customer data, I decided to leave them out because our test server has 1172 tables, 493 views and 37954 synonyms -- and choosing an item from a list of
    over 38,000 values is not very practical.

  • AWM does not provide Materialized Views as potential data sources.

    Hi
    I would like to map OLAP dimensions and cubes directly to materialized views. The Oracle AWM tool, however, only displays Tables, Views and Synonyms as mapping objects and I have to indirectly map to normal views created over the materialized views.
    Why does Oracle enforce this limitation?
    Thanks
    Kind Regards
    Greg

    Greg,
    Not sure why AWM enforces this limitation, certainly Warehouse Builder does not enforce this rule (at least not to my knowledge). You could raise a bug/enhancement request with Support. However, my recommendation is to never to map directly to a source object, such as a fact table or materialized view, in AWM. This can create all sorts of problems as you move your AWM model across environments. I always suggest to my customers and consultants they create a view over their source objects and use the view within the mapping editor. It will give you more control over the flow of data into your cube/dimension since it allows you to define filters on the view.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Error While accessing v$ Views

    Today when i tried to access my regular system views , system throws following errors. Could someone help me to resolve this ? DB is running properly and i m able to access user data.
    SQL> select * from v$session;
    select * from v$session
    ERROR at line 1:
    ORA-00980: synonym translation is no longer valid
    SQL> select * from v$option;
    select * from v$option
    ERROR at line 1:
    ORA-04063: view "SYSTEM.V_$OPTION" has errors

    ORA-00980: synonym translation is no longer validReplace the synonym with the name of the object it references or re-create the synonym so that it refers to a valid table, view, or synonym.
    Did you applied any patch or ran any db upgrade script on your database recently?
    You can check which all systems objects are in INVALID state and probably you would like recompile to validate them and see if still error persists.

Maybe you are looking for

  • My ipod touch will not turn on, i pluged it up to my computer to charge but it wont charge. and plus its battery was already full. why wont it turn on??

    So one day is was laying next to my ipod touch and i tried to turn it on but it wouldnt. so then i pluged it up to my computer to charge but it didnt charge, the computer didnt pick up the divice. so now my ipod touch will not turn on, and i have no

  • Late 2009 Ipod Touch to TV

    A big hi there and hello! Ive just got my brand new Itouch and cables, and am trying to hook it up to the TV, to watch movies, yet all I get is sound?? The cables are Apple Component MB128ZA/B. My TV is a Sony Bravia KDL-37S5500. The cables are match

  • PAGINATION ERROR

    Hi, I'm trying to get this pagination code functioning but I keep getting an error on my query. The error says: Microsoft Access Driver] Syntax error (missing operator) in query expression 'titles LIMIT 0' and I'm completely stumped, I pasted my code

  • MP3 plug-in: plays by default - option not to?

    In GoLive CS (Mac Snow Leopard 10.6.4), I have a website with a page that has a plug-in with an mp3 file. When the page opens, the file plays by default. Is there a way for it not to play until you click to activate it? http://idlefreevt.org/

  • I can't find my programs!

    I have downloaded, installed, and registered my product. When I first got the programs I used Bridge and Photoshop a bit, and it worked fine. But now, I've gone to use them again, and I can't find the programs! Under "Adobe" on my start menu is just