Add FK between a table and a view?

Is this possible in 4.1 to add a FK between a table and a view (off of course)?

If I'm in a view, it seems that I can define a FK to another view or a table, but if I start with a table, some views appear in the list. The view already has a defined PK.

Is it normal?

Use case: I have a table of generic code, so I'm set up views on the code for each type of code table. Then, I want at least diagram CF from specific code view of the code typed column on a table for the sub.

Hello Kent,

Is this possible in 4.1 to add a FK between a table and a view (off of course)?

Yes.  You can do this by clicking on the icon of the new foreign key above the diagram, then by selecting the view first, then the table.

I connected an enhancement request to allow a foreign key to a view to be added using the table properties dialog box.

Thanks for pointing it.

David

Tags: Database

Similar Questions

  • Difference between the table and Materialized View

    Is there an advantage outside automatic synchronization (founded refresh selected type) using Materialized View?

    I came across this question as table and MV both store values, and we can also update table using the code what is the need of MV? Why not create a table instead of MV with the same definition and same charly?

    I need some explanation to force someone to convince himself.

    Thank you

    http://docs.Oracle.com/CD/B19306_01/server.102/b14223/basicmv.htm

    Sections that highlight its strengths:

    1. materialized views for data warehouses

    2. materialized views for distributed computing

    Query, re - write, features as Materialized view log files that can be used for replication between databases, etc...

  • What is the difference between a table and a subform?

    What is the difference between a table and a subform in LC forms? Please post your answers about the merits and demerits of using subforms instead of tables.

    Hello

    a table is simply a set of subforms with a particular role.

    It is easier to handle the tables if they must be dynamic (add or remove lines, show or hide lines when page breaks appear etc..).

    And Designers UI has some dialogue prepared in the object palette to simplify the settings of the tables.

    For subforms, dialog boxes are more frequent, so you have yourself a little more script.

    But at least you can do everything with subforms as you can do with tables.

    The only one who is not very good with tables we work when you wrap arrays in other tables.

  • How to add images to my table and how to configure the Web site? Help, please

    I do not understand how to configure the Web site and add images to a table and make hyperlinks.

    First, set the folder of your Local Site saying DW where to save the files on your local hard drive.  Go to Site > new Site.

    I think it is easier to start with a page layout predefined by using one of the appropriate templates to bootstrap that comes with DW.

    Go to file > new > (Starter models > models Bootstrap). Select one:

    • Bootstrap-Agency
    • Bootstrap-eCommerce
    • Bootstrap-Portfolio
    • Bootstrap-product
    • Bootstrap-real estate
    • Bootstrap-curriculum vitae

    Press the button create.

    For pictures, go to insert > Image. Select an image and save it in the folder of your local site.

    Nancy O.

  • Level of encryption between Wyse ThinOS and VMware View desktop

    Can someone help me determine the level of encryption between my Wyse thin clients and virtual desktops.

    I use the latest Wyse ThinOS and VMware View connection Server 4.0.

    I have a manual desktop pool configured with things THAT RDP disabled. I'm also using smart card authentication.

    With direct disabled RDP is a configuration of SSL tunnel for the connection to the server and the RDP session to the virtual desktop by tunnel through this SSL connection?

    Yes that's right, although strictly that you should say server/connection security as if you use a security server, then this is endpoint of the tunnel rather than the CS.

  • Add Colume in the table and display the result in it.

    Hi guru,.
    I have a requirement to add the column to the existing Table. and display the result after calculation.


    Thank you
    Rutu

    Hello

    Please use this referral code snippet:

    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    OAViewObject vo = (OAViewObject) am.findViewObject (""); Give VO name attached to the region of the Table.
    If (vo! = null)
    {
    vo.addDynamicAttribute (""); Addition of ViewAttribute to VO
    }
    VO. Reset();
    VO. Next();

    Do the math you want to

    Definition of the calculated value in the created attribute of VO
    vo.getCurrentRow () .setAttribute ("", );

    I hope that gives you a proper help.
    Please do not hesitate to ask if more Question

    --
    Thank you
    Shrikant

  • Difference between routing tables and publish

    Hello

    My understanding of a Routing Table and the Table to publish is:

    Routing table: it is used to select the different routes for a service based on the results of an XQuery expression in a stream of messages.

    Table to publish: it is used to select the service target according to the results of an XQuery Expression.

    The two seem to work quite similar, but I guess that in the option table to publish the service for a branch is called asynchronously.

    Is this good? There is another difference between the two options?

    Any help would be greatly appreciated.

    Thank you
    Priya.

    Re: compare routing action against action Service legend against action to publish?

    Same differences between publish and route should be applicable for the table in the publication and the routing table.

  • Query the dictionary tables and V$ views in EM

    Hello;


    I want to the dba_ query tables and views v$ Enterprise manager (10 g).
    I have hv tried that in the tables-> schema SYS. But these paintings are not displayed. Im not able question of EM.


    Capable of plu sql query , where I am logged in as SYS
    Select the status from v$ instance;

    Where can I access these tables; (in MS)
    instance of v$
    database v$
    dba_tablespaces

    Published by: Zerandib on December 8, 2009 08:39

    Zerandib wrote:
    Where can I access these tables; (in MS)
    instance of v$
    database v$
    dba_tablespaces

    Those who are not the tables, they are seen. Try looking under administration | Schema | Views with schema as SYS. Keep in mind a lot of V$ names, such as V$ INSTANCE, are public synonyms view V_$. For example, V$ INSTANCE is a public synonym for V_$ INSTANCE.

  • Is there a way to sync between my table and my phone? I don't want to have my office involved.

    I would like to sync between my Tablet and phone. I don't want to share with the office. Is there a way to do this?

    Hi, you will need to create a sync account on the desktop, but does not synchronize the activity of browsers. After having a key synchronization you can use it between your devices.

  • Difference between external tables and sql * loader

    Hello

    Could you please tell me the difference between
    tables external and sql * loader

    I have serached on the net but did ' get correct idea

    Please help me

    1 SQL LOADER can be run on the network (from any client computer), external tables can't

    2. return to the Oracle 9, external Tables could not load CLOB/BLOB (Oracle10 changed it)

    3 oracle 11 external tables have preprocessor, which is pretty dam characteristic cool - running essentially any OS command e.g. decompress before external table run. What's even better is the fact that the result of the operating system command is the source of the outer table, which means that there are no required temporary file (unzip the tracks and the output is the source of the external table). There are several ways to great use this - look at my blog for samples rare http://jiri.wordpress.com/2010/01/19/no-more-unix-scripts-in-11-2/

    4. as long as the 009 stressed, filed external load anything, they show just. Think of it more as load on request - it's great if you have old files archived and one or two users what to see content once a while

    5. external tables require no user access to the operating system, it is oracle environment pure - this may seem minor but for me it's huge. The fact that the ETL needs no special unix, no control file command and uses the simple SQL and DDL is nice and important

    6. external tables can load more text files, Oracle export dump files can be loaded, perhaps in the future more formats will be supported (hopefully all right excel format?)

    now the same thing to kill the myth - the TWO are EXACTLY the same when it comes to speed, I would actually drive of the external tables before will be faster because sql loader is old technology oracle doesn't really develops more

  • Difference between ANALYZE TABLE and DBMS_STATS. GATHER_TABLE_STATS?

    Hi DBAs,

    I'm in a learning phase and a newbie DBA. I got confused in the collection of statistics. Could someone explain the below? :

    ANALYZE TABLE employee COMPUTE STATISTICS;

    and

    DBMS_STATS. GATHER_TABLE_STATS ('hr', 'employees');

    The difference is that ANALYZE TABLE is obsolete for a long time and it's the wrong way of doing things.

  • The spacing between a table and the edge of the page

    For a table, instead she's px or more away from the left edge, can 2 you do it right up against the left edge?

    Under Page Properties, change the left margin 0 pixels. Who must drag your page to the brim.

  • Tables InDesign add space between lines of text

    I'm working on a series of documents that use tables for some elements of the text as a calendar with columns for date, day of the week and event. All the cell borders are reset so that the text just looks like tabulated text. The problem that I am running is that the table seems to add about two points of the vertical space between the table and the text above it. Documents are designed without a baseline grid, so I can't simply lock paragraph styles to the grid, but we do not want that the spacing between the different styles of title and other text to be consistent. A table InDesign has some kind of hidden vertical dimension, or am I missing some added space that I should be able to remove? All cells are sized to match the direction of the paragraph style of the text they contain and any space before or after you have added as an insert in the cell, but for some reason any seems to be about two points of extra space at the top of the table (between the table and the text non-table above).

    Sounds like the Table Options > Table Setup > Table spacing.

    Ken

  • JDeveloper with MEV / possible FGAC? i.e. the oracle portal tables and views

    I am trying to create some objects to view based on the tables and the views of portals oracle. However, I always get the following error message.

    ORA-06510: PL/SQL: not supported by the user-defined exception
    ORA-06512: at "PORTAL. WWCTX_SSO', line 1407
    ORA-06510: PL/SQL: not supported by the user-defined exception
    ORA-06512: at "PORTAL. WWCTX_SSO', line 1216
    ORA-06502: PL/SQL: digital error or value
    ORA-06512: at "PORTAL. WWCTX_SSO', line 1469
    ORA-06512: at "PORTAL. WWCTX_API', line 152

    It's because I did not put the context using plsql. That is to say

    Portal.wwctx_api_private.set_Context (p_user_name = > 'PORTAL', p_update_flat = > true);

    Is it possible to use the portals in jdevloper and defining the framework first. I think that the portal database uses vpd, fine-grained access control.

    Concerning

    Orlando

    Hello

    using ADF BC, you can override the session prepared on the AM method to set the context.

    public void prepareSession (_session Session)
    {
    super.prepareSession (_session);

    some PLSQL as
    String appContext = "Begin ctxhrpckg.set_userinfo ('" + getApplicationUserName () + "');" END; « ;
    java.sql.CallableStatement st = null;
    Try
    {
    St = getDBTransaction ().createCallableStatement(appContext,0);
    St.Execute ();
    } catch (s java.sql.SQLException)
    {
    throw new oracle.jbo.JboException (s);
    } Finally
    {
    Try
    {
    If (st! = null)
    {
    St.Close ();
    }
    } catch {} (java.sql.SQLException s2)
    }
    }

    Frank

  • MView delta deploy problem between SDDM schema and db (Swap models target dictionary import) - overview of the DDL generation

    Hello

    I'm having a hard time to reverse the difference between my role model and my fusion database schema.

    The initial goal is simple:

    1 / detect differences in metadata

    2 / I SDDM to generate the DDL change code

    (if possible, if not, recreate, reload: powerful existing featured BTW)

    3 / deploy

    4 / check/confirm that no more delta existing

    I do this:

    * menu file > import > dictionary

    * Select connection

    * Select the db schema

    * check the "Swap target model.

    * Select MY_MVIEW > next (TABLE 1 DB object to import) > finish (work "Generate Design")

    * in the model comparison window, I have to deselect everything, less table MY_MVIEW AND also MY_VIEW Materialized View

    (as they appear as 2 SDDM objects)

    DOF Preview button

    I see:

    -comments created in first place (whereas the MVIEW should be recreated)

    which is smaller but still blurs the legibility

    -MY_MVIEW is systematically recreated

    (how many times already I deploy)

    I figured out:

    . SDDM objects tables (disorders, implemented in the MVIEW form) and host MVIEW (Physics) the query independently

    . even if I sync them manually (copy - paste), DDL deployed code is not strictly identical to

    So it may have to do with a dysfunction compare?

    SDDM is full of options to desensitize compares (physical exclusion, storage, etc.), but I found no way to simply compare and align MVIEWs

    (and the documentation is rare on the subject)

    Any clue?

    THX

    Interesting.  Looks like you're it's partitioning that is causing the problem.

    In a model, partitioning information can be held on the objects of physical model for Tables and materialized views.

    In the case where a Table and materialized views are linked together (by the implementation as a Materialized View on physical model Table property), it is information of partitioning that is held on the Table which is relevant.  The information on the Table is used when generating DDL.  And in an import or synchronize, partitioning information are added to the Table object.

    I think that what is happening in your case probably is your model includes some details of partitioning maintained on the Materialized View object.

    Synchronization is combining the details of your database partition to the Table in the model.

    As it does not associate the details of partition of your database with the materialized view in the model object, the comparison shows a difference for the materialized view:-not partitioned in database, but partitioned in your model.  And this difference is causing the drop and re-create the view materialized in the DDL.

    There are various options to work around this:

    1. you can remove details unnecessary partitioning and maintained on the view materialized in your model object.

    2. you can clear the check box for the entry for materialized views in the tree in the dialog box models to compare before making the DOF preview.  (But it also means that no DDL will be generated for all other differences in these materialized views).

    3. you can use the filter properties to filter the relevant properties (e.g., partitioned, partitioning columns and Subpart columns for Materialized View objects), and then select the button refresh trees before performing the DOF preview.  (See the screenshot below).

    David

Maybe you are looking for