Linking Views to Tables

Hello all,
Is it possible to have foreign keys on views so that they can be linked to real tables or views? We are building an application with multiple schema and would like to have some common tables built as views in other schema and then linked to tables. I am making use of Oracle 10g on Windows Server 2005
Regards,

Hello,
Thanks for your prompt reply. Please, if I got the content there, my view can only be referenced in another table using the primary key inherited with the base table but can't never be a child table. I will go accordingly: the problem is to have some schema tables referenced under other schema and I thought that having relationships between tables and views could make this possible. Am I right with the synthesis obtained from what Saubhik showed me?
Regards,

Similar Messages

  • Data Loading from View in remote(db link) into oracle table

    Hi,
    For an e-business inbound interface, my interface data is present in a remote view accessed via db link. I just need to get that data into Oracle and also want to have something such that whenever there is any insertion in dblink view, my table in oracle also updated with the new row.
    So I want to have the data from db link view to be loaded in the table and at the same time whenever there would be insertions in that view, my table should be autopopulated.
    Most of my research revolved round ref cursor but not able to get anything definite. The requirement seems to be simple.
    Any hints on the same.
    Regards,
    Ad

    If "at the same time" means within the same transaction, that's generally a bad idea. In addition to imposing a fair amount of overhead to the source application, it substantially reduces the availability of the source application since the OLTP insert would fail if the source system cannot contact your database.
    If "at the same time" means "shortly after the transaction is made in the source system," Oracle provides a number of different asynchronous replication methods. The simplest possible approach would be to create a materialized view in your system that queries the view over the database link and is set to refresh itself periodically. How frequently that can happen depends on how long it takes to do a complete refresh of the data and whether it is possible based on the view definition and whether materialized view logs can be created on the base tables in the source system to do an incremental refresh.
    Justin

  • How do I restore field description in "View Responses" table

    I inadvertendtly deleted the row of text at the top of the View Responses table that is linked to the form field. So now in the View Responses table, I can see the answers but not the questions. Is there a way to restore the link back to the form field without going into the table and typing in all the questions?
    Figured it out. Discovered that by editing one character in the field on thje form, the text reappears in the table.

    So do you not have a question any longer then?  Sounds like you figured out a way to get them back.  Actually a good trick, I'll add it to the related FAQ - thanks.
    Thanks,
    Josh

  • Get the row index by clicking on a link in a table

    Hi,
    I am using a table to display a product catalog in Web Dynpro ABAP.
    The user should be able to click on any material number (link) in the table to get a detail view of this material.
    How do I get back the table line, the user has clicked to show him a detail-view?
    Thanks a lot for your help.
    Reagards.

    Hi,
    To get the details of complete row,
    Data lo_nd_products type ref to if_wd_context_node.
    Data lo_el_products type ref to if_wd_context_element.
    Data ls_products type wd_this->Element_products.
    data ld_material type string.
    lo_nd_products = wd_context->get_child_node( name = wd_this->wdctx_node ).
    lo_el_products = lo_nd_products->get_element( ).
    lo_el_products = wd_event->get_context_element( name = 'CONTEXT_ELEMENT' ).
    lo_nd_products->set_lead_selection( Exproting element = lo_el_products ).
    lo_el_products->get_static_attributes( importing static_attributes = ls_products ). "ls_products contain selected row content.
    ld_material = ls_products-material. "To get selected material number
    Regards
    Vasundhara

  • ORACLE EXPRESS: build a page with multiple forms linked to one table

    hi,
    im using oravle application express. APEX
    i would like to build a page with multiple forms linked to one table (orders) , the page has 4 from  each one with different order_id number (depending on filtering),  and if the order is prepared click yes for each order and this 'YES' should be UPDATED AND SAVED to each order number in the same table with the press of one button.
    i created all the form as (sql query)
    and create one update process
    (UPDATE ORDERS
    SET TRAY_PREPARED =:P10_TRAY_PREPARED_1
    WHERE ORDER_ID =:P10_ORDER_ID_1;
    UPDATE ORDERS
    SET TRAY_PREPARED =:P10_TRAY_PREPARED_2
    WHERE ORDER_ID =:P10_ORDER_ID_2;
    UPDATE ORDERS
    SET TRAY_PREPARED =:P10_TRAY_PREPARED_3
    WHERE ORDER_ID =:P10_ORDER_ID_3;
    UPDATE ORDERS
    SET TRAY_PREPARED =:P10_TRAY_PREPARED_4
    WHERE ORDER_ID =:P10_ORDER_ID_4;
    i dont know really if i can do that, but it appear hat it actually saving according to order_id number , but not all the time some time it saved the value as "null".
    please guide me what is the correct way to do this.
    I READ THIS ONE
    http://stackoverflow.com/questions/7877396/apex-creating-a-page-with-multiple-forms-linked-to-multiple-related-tables
    BUT IT WAS FOR MULTIPLE INSERT
    thanks.

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • How do we link a new table to CRMC_OBJECTS?

    RE: CRM4
    I tried to use the BBP_PDIGP table in the CRMC_MAP transaction for UI Structure CRMT_ISALES_BASKETITEM_BBP, but it says that table is not part of CRMC_OBJECTS
    How do we make BBP_PDIGP table part of CRMC_OBJECTS?
    If we can link the BBP_PDIGP table to CRMC_OBJECTS, then I can map MATGROUP from the UI Structure above with CRMC_MAP to SCHEMA_TYPE. 
    Next, we need to map the SCHEMA_TYPE in CRM to the field in ERP that we have the data already.
    Sounds simple enough...but, I don't know how to do the linkages.
    Otherwise, how might we link the field SCHEMA_TYPE found in table BBP_PDIGP to one of the objects already found in the UI Structure CRMT_ISALES_BASKETITEM_BBP - Here's the available list:
    AC_ASSIGN     Settlement Account Assignment (CRM)
    ACCOUNTING     Account assignment
    ACTION     Actions
    ACTIVITY_H     Header data activity
    ACTIVITY_I     Activity Item Data
    APO_I     APO item data
    APPOINTMENT     Dates
    ATTACHMENTS     Attachment set, not BDS!
    BATCH     Batch Properties
    BILLING     Billing data
    BILLPLAN     Billing plan
    CANCEL     Cancellation
    CONDITION_COM     Communication structure condition det.
    CONDITION_H     
    CONDITION_I     
    CONDLINE     
    CONFIG     Configuration data item
    CONFIG_FILTER     Configuration filter item
    CONFIRM     Availability confirmation
    COPY     General copy control
    COUNTER_H     APO Item Data
    COUNTER_I     APO item data
    CREDITVALUES     Open Transaction Credit Values
    CRMD_CASE     CRM Case Management
    CUMULAT_H     Header totals
    CUMULATED_I     Item cumulation values
    CUSTOMER_H     Customer header data
    CUSTOMER_I     Customer item data
    CUSTTAB_H     Table-Like Header Data for Customer
    CUSTTAB_I     Table-Like Item Data for Customer
    DOC_FLOW     Document flow
    DYN_ATTR     Dynamic attributes
    EVENT     Event handler
    FINPROD_I     Financing product data item
    FREIGHTCOST     Shipment costs
    IPM_RCHAR     Rights Characteristics
    IPM_RCTRL_I     Rights Control Data
    LEAD_H     Lead Header Data
    LIMIT     Limit
    LINK     Link Handler
    MESSAGES     Message Handler
    OPPORT_H     Opportunity header data
    ORDER     General order processing
    ORDERADM_H     Administration header
    ORDERADM_I     Administration item
    ORDPRP_I     Connection PPR to transaction item
    ORGMAN     Organizational data
    PARTNER     Partner Set
    PAYPLAN     Payment Schedule
    PRICING     Pricing Data
    PRICING_I     Pricing data und results
    PRIDOC     Pricing document
    PRIDOC_COM     Communication with price determination
    PRODUCT_I     Item product data
    QUALIF     Qualification Requirement Set
    REFOBJ     Service Reference Object
    SALES     Sales data
    SCHEDLIN     Schedule lines
    SCHEDLIN_I     Scheduling lines item view
    SERVICE_H     Service header
    SERVICE_I     Service item
    SERVICE_OS     Service reference object subject
    SERVICEPLAN_I     Service Plan Item
    SHIPPING     Shipping data
    STATUS     Status
    STATUS_H     Header Total Status
    STRUCT_I     Item structure data
    SUBJECT     Service Subject
    SURVEY     Questionnaire
    TAX     Taxes
    TEXTS     Texts
    TOLERANCE     Tolerances

    Hi Mike,
    Will it be possible for you to let me knw how the entries come in table CRMD_LINK...??
    I am not getting the entry  of orgman in this table for item guid.
    Pls help.
    Thanks,
    SA

  • How to view the tables/views available in Oracle

    HI,
      I am creating DB connection and importing the data from Oracle TABLES/ Views. I just want know how to view the tables/views available in Oracle. (I have the login details). Can I view thru TOAD? Pl let me know the best way and suggestions/ views / Links/ whitepagers.
    Regards,

    Hi,
    I don't remember exacly: RSA1 -> source system -> "replicate datasources". Works this also in a DB-source system. I think so.
    => you get all tables that your user has authorisation.
    This function execute for example (in oracle there are same information tables: dba_tables, user_tables ...) following select in the database:
    select TABLE_NAME from DBA_TABLES;
    Sven

  • Link in ALV table

    Hi,
    One of the table column in my ALV table displays Sales order with line item separated by "-".
    For Ex : 70000174 - 10.
    The sales order number should be a link in the table. When we click on Sales order number it should display another view.
    How can I make only sales order number as a link?
    Please note: Line item number should not be a link.
    It should appear as below in the table.
    70000174 - 10
    70000175 - 10
    70000176 - 10
    70000177 - 10
    Thanks in advance,
    Prathap

    Hi,
    Having concatenatedvalue into once column and showing link to part of cell is not possible. Try to have salesorder and lineitem in 2 columns, and provide the link for salesorder.
    Let your cleint know that the above case(original post) is not possible.
    One more thing, POPINS are  not possible for ALV. Youcan use TABLE UI element for popins.
    Regards,
    Lekha.

  • How to view all tables and column names from a remote database

    Hey Guys,
    I have a database in a remote server. I have the db link and the schema name.. Now i want to view all the tables in the remote database with column names.. I dont have access to that database using sql developer.. But i can view some tables using the db link..Is there any way i can view all the tables with the column names?

    user10683742 wrote:
    Dont think i have DBA access..It gives the following error
    ORA-00942: table or view does not exist
    00942. 00000 - "table or view does not exist"You don't have to have 'dba' access, per se. You just have to have SELECT ALL TABLES privilege. when you use a db_link, you are connecting to the remote db with the user defined in the link, and .. on that db .. you will have the privileges of the user defined in the db link. Exactly as if you had used sqlplus to connect to that db with that user.

  • Index not used on view when table stats exist

    Hello,
    I would be grateful if someone comes with ideas on the following problem I'm currently facing.
    I have a table with XMLTYPE data type column:
    sql-->desc ACFBNK_STMT008
    RECID     NOT NULL     VARCHAR2(200)
    XMLRECORD XMLTYPE
    I have a view V_ACFBNK_STMT008 on that table, in which the view columns are defined as extracted tags values from the XMLTYPE field, e.g. for the view field N_BOOKING_DATE:
    numcast(extractValue(xmlrecord,'/row/c25')) "N_BOOKING_DATE"
    (note: numcast is just a simple function that returns TO_NUMBER of its input argument)
    I have also a function-based index on this field of the table:
    CREATE INDEX train4.NIX_ACFBNK_STMT008_C25
    ON train4.ACFBNK_STMT008("TRAIN4"."NUMCAST"(extractValue(xmlrecord,'/row/c25')))
    And so, I'm executing on the view the following SQL statement:
    SELECT RECID FROM V_ACFBNK_STMT008 WHERE (N_BOOKING_DATE > TO_NUMBER('20070725'));
    Now, the problem comes: when statistics exist on the view base table (that is ACFBNK_STMT008) then the above statement is not using the index and is making a "table access full". When I delete the statistics for the table then the SQL runs fast with an "index range scan".
    Which is further strange - when I change the ">" operand with a "=" the SQL statement correctly captures the index regardless of whether or not statistics exist.
    I've tried to manually rewrite the SQL and include the "numcast" function in it:
    SELECT RECID FROM TRAIN4.V_ACFBNK_STMT008 WHERE ( N_BOOKING_DATE>train4.numcast(TO_NUMBER( '20010725' ) ));
    And in this way the index is used OK even with statistics existing!
    But regretfully I don't have a way to change the application and the SQL, so the only things I can change is the view and/or the index.
    Thank you in advance,
    Evgeni
    P.S.
    I've tried gathering statistics in both the following ways but still the problem persists:
    sql-->analyze table train4.ACFBNK_STMT008 compute statistics;
    sql-->exec dbms_stats.gather_table_stats(ownname=>'TRAIN4', tabname=>'ACFBNK_STMT008', CASCADE=>TRUE, partname=>NULL);

    Oh, and I forgot to mention: I cannot change the view definition as well (for example, to remove the "numcast"), since every now and then the application would recreate it automatically with the same code. :(

  • How to find how name of view and table using in Discoverer report

    Hi all,
    Please help me, i have requirement, i need name of views and tables used in discoverer reports.
    plz help its urgent.
    regards,
    Vivek Gautam

    As per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.

  • Crystal Report linked to a table with filter attached

    I have a Crystal Report based on 2 tables and I want it to display every incident in the incident table and to pull the truckID of the
    first truck on the scene from the truck table . So the finished product should look like this…
    IncidentID           IncidentNum     ResponseTime                  First Arriving Truck           Disctict
      1x44452                1258ab55             5:32                                        B8                              2
    *The first arriving truck is the truck in the Truck Table with the same IncidentID and  the earliest ArrivalTime.  There will be multiple trucks for each incident but I want it to only show the one that arrived first (ArrivalTime).  So one line per incidentID.
    Incident Table
    IncidentID
    IncidentNum
    ResponseTime
    District
    Truck Table (Will contain many trucks for one incident with the following info
    Truckkey
    IncidentID (Link to Incident Table)
    ArrivalTime
    TruckID
    I figure I probably need to build a formula with the min function or perhaps an OnCommand – I’m just not sure.
    The biggest issue is the overall report has 4 filter settings.  They can select a date range, a location, an incident type and a range for the response time. So I do this with the Select Expert
    I can get all of that to work except I cannot figure out how to get it to pull the First Arriving Truck without duplicating the incident
    line.  Also, if there is a Truck with an ArrivalTime of Null I want it to ignore that Truck Table record.
    Can anyone help???

    Hi Debbie,,
    You may try this:
    1) Go to the Group Expert > Create a Group on the 'Incident ID' field from the Incident Table
    2) Insert a summary on the 'Arrival Time' field and place the field on the Group Footer
    3) Move all the fields from the Details section to the Group Footer
    4) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:
    {Truck.ArrivalTime} = Minimum({Truck.ArrivalTime}, {Incident ID})
    5) Suppress the Details Section
    -Abhilash

  • How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?

    Hi,
    I need to get list item anonymous guest link View Only and
    Edit URLs (as shown in image below) using JSOM or SharePoint 2013
    Search API.
    the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
    Any one has any idea how to do achieve this?
    Thanks
    Shakir

    Hi Shakir,
    To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
    To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
    We can also use REST API to get the guests links:
    _api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get standard view or table for the standard inforsource

    Hi all:
          According to business reqirement, we are going to use standard inforsource 0CO_OM_CCA_10,
    we need to know the standard view or table in order to corresponding DataSource?
    could you please tell me how to get  the standard view or table or DataSource?
    Couldn't thank you more!

    Hi Sony,
    Goto RSA1>BI content installation>goto objects>double click on the Infosource>then a pop-up comes search for that infosource-->select it and click on transfer
    Before that in the right side of the tab select the grouping as "Before and afterwards of the dataflow" and collection as automatic.
    then you get all the datasource/cubes and all the object related to the infosource.
    OR another option is-->
    Goto RSA6 in the R/3 and search for the datasource with the name "0CO_OM_CCA_10" (don't forget to expand all the tree structure in RSA6)
    then goto that datasource and double click on the datasource then you will get the Extract structure of that datasource.
    double click on the extract structure then you may get the View name also.
    hope this helps...
    Regards,
    Ravi Kanth

  • Topics missing from link view and topic references

    I am using RoboHelp X5 and have come across situations where
    I have a URL, and all of the topics that link to it do not display
    in link view, in the Show Topics References option, or in the
    External Topics report. I want to know if there is an easy way to
    correct this so I can see every topic that links to a particular
    URL.
    For example, I have a link to www.adobe.com that is
    referenced in the TOC and 5 different RoboHelp topics. After I
    initially set up all the links, all 5 topics show in link view from
    www.adobe.com. In topic references, the TOC also appears. Then a
    few days or weeks later, I try to view the links again, and some or
    all of them no longer appear. If I display the link in link view or
    right click and select Topic References, it may only show me the
    reference to the TOC. If I remove it from the TOC, it no longer
    appears as a URL at all. But it is still actually used in 5 topics.
    Also, if I know it is linked from topic A, I could go in and edit
    topic A and save. Then www.adobe.com will show up as a link in the
    URL list again, and topic A will appear again in link
    view/references. But I don't necessary know all of the topics that
    link to it, and if I am trying to remove it from the entire
    project, or change the URL, that becomes a problem.
    I hope this makes sense and if anyone can help, I would
    appreciate it!
    Chris

    Repair the broken links, create a zipped backup of the project, then delete the CPD file before reopening.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for