How to integrate the structures of different tables in different databases?

Hello

I am new to oracle... well help me with the below question...

I have the same set of attributes linked together (a, b, c and d) in two different databases A and B.

The structure of the tables at the same time the database are different, but they carry the same attributes in the same relationship.

I have to integrate these attributes to object unique db such as any update to the base tables updates my object. How can I do this and what object will be useful?


Thank you

Hi Arun,

Then as you say they are of different databases, we can create a link between the databases and
can create view based on the Tables.

(i.e.) if the data in the base table changes the data in the view should also change in real time.

Arun, of course, the view will also change in real time, because the view is nothing more than a virtual table.

When you query on a view, he questioned the details of the * "Base Table" * only. If the data will be updated, i.e.
existing in the Base Table.

Thank you
Shankar

Tags: Database

Similar Questions

  • How to compare the structure of multiple tables... have just TOAD & CAULK

    Hello

    Several times, I get a request to load the data in the tables of one schema to another. But before doing that I need to compare the structures of tables in the source and target schema.

    How can I do? The list of tables to continue to change every now and then. A TOAD there is no option to compare a selected table list. Comparing schemas whole is not an option before me that patterns are too huge and it takes a lot of time to do the level schema comparison.
    Note This is a client machine, and we are not allowed to install any s/w.


    I'm working on the provision of a unix script that does this for me. But that may take some time given the intense work schedule and my lack of knowledge of unix scripting languages.

    Can anyone suggest a way to do it?

    Regds,
    Malika

    I need to compare the structures of tables in the schema source & target.

    SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'SOURCE '.
    LESS
    SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'TARGET'
    UNION
    SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'TARGET'
    LESS
    SELECT THE TABLE TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_TYPE_MOD, DATA_TYPE_OWNER, DATA_LENGTH, DATA_PRECISION, DATA_SCALE DBA_TAB_COLUMNS WHERE OWNER = 'SOURCE '.

  • How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Mr President.

    How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Concerning

    Normally at the height of the table control you need property autoheightRows -1 and then set height in the table like this inlinestyle

    height: 300px;

  • How to get the title of a table with FDK?

    How to get the title of a table with ad FDK C++?

    I did people. I get objects table paragraph and later the textual elements for each of them.

  • How to integrate the police Segoe Script in a saved pdf file?

    When I save a file .psd in .PDF (with Photoshop elements 12), two of the three fonts do appear fine in the .pdf file, but not the third (Segoe Script).  I open the PDF with Adobe Reader XI.

    How to integrate the police Segoe Script in the .pdf file?   (Depending on the printer, it must be there.)

    Thank you.

    Yes you will not be able to use either the distorted text.

    (these kinds of properties do not appear in this font)

    If you want to tilt the text as it would be for the italicized text, you can use Image > transform > Skew.

  • Does anyone know how to make the site in different languages?

    Does anyone know how to make the web in different languages? and how to make the menu appear on the master page in the target language?

    Hello

    You must create the page content in languages that you want and then bind using the options in the subfolder on root of the hosting platform.

    More details:

    http://forums.Adobe.com/message/6065652#6065652#6065652

    For the menu, you need to create different masters, and then apply on the pages.

    Thank you

    Sanjit

  • How to use the Type of Oracle Table values in the Select statement.

    Hello

    I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.

    For example, try something like the following:

    TYPE t_record () IS RENDERING
    ID TABLEA.ID%type,
    NO TABLEA.NO%type

    );
    v_record t_record;
    T_table TYPE IS the v_record TABLE % TYPE;
    v_table t_table;

    -Code to fill the values of v_table here.

    SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
    WHERE ID IN (i) v_table USER.USER;

    I want to know how to use the Type of Oracle Table values in the Select statement.

    Something like this:

    create or replace type t_record as  object (
    id number,
    no number
    )
    /
    
    CREATE or replace type t_table AS TABLE OF t_record;
    /
    
    set serveroutput on
    declare
    
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    
    begin
    
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
    
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
    
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
    
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /
    

    No test!

    P;

    Published by: bluefrog on March 5, 2010 17:08

  • How to integrate the work of Commit in action Delete

    Hello
    In the sample the more I learn, there are some buttons to the user interface, New, Update, Delete, Commit and Rollback. When I click on the button Delete, the Entity object is removed from the Cache and pool, not actually removed from db, that after the validation button, the entity will be removed from the db indeed. But in most real world cases of use, when the user deletes a line, she always popup a "confirm". If it selects Yes, the line will be removed from db directly. I want to know how to integrate the button post button Delete?


    Bob Zhou

    Hi, you can achieve this way:

          
          
    

    Kind regards

    Branislav

  • How we split the screen for different horizontal and vertical divisions

    Hello

    How we split the screen for different horizontal and vertical divisions. I can't use panelSplitter because I need fixed screen and not the division which is movable/sliding. I tried inlineframe, but which fails because you cannot use forms, other trees components... :(

    so I would like to know how to do division without panelSplitter.

    Thanks in advance,
    Jyothi

    Hi Jyothi,

    If you set the panelSplitter attribute disabled to true, the delimiter becomes permanent/mobile no.

    
    

    Kind regards
    Amélie Chan

  • How to know the degree of optimal parallelism for my database?

    I have an important application on my (Oracle 10,2,0) databae and the box has 4 CPU. All tables are not partitioned. Should I set the parallel degree by myself?

    How to know the degree of optimal parallelism for my database?

    As far as I am concerned there is no optimum degree of parallelism at the database level. The optimal value depends on the query based on the plan in use. This may change over time.

    It is not so difficult to abuse of the PQO and end up harming the overall database performance. PQO is a brute force methodology and should be applied with caution. Otherwise, you end up with results inconsisten.

    You can let Oracle manage, or you can manage it on the level of education through advice. I do not have to specify the degrees of parallelism to the object level. As I said, no two queries are exactly alike and what is right for a query on a table cannot be good for another query on the table.

    In the case of doubt put in place the system to let Oracle manage. If you ask really, it's how many sessions to allocate PQO then look at your reports Statspack or AWR and judge your system load. Monitor v$ px_session and v$ pq_slave to see how these views show activity.

    IMHO - Mark D Powell-

  • How to point b2b to a different database

    How to point b2b to a different database. Need to change the information of database tip.properties.

    See Re: B2B database connection

  • Inventory of the data of all Tables in a database

    Hello
    We do the analysis of the existing data base (Oracle 10 g) and I want to prepare an inventory of the data of all tables in a database that is

    1. total number of records in a table
    2. total number of records that have null values in a column
    3. total number of standalone tables IE have no connection with other tables
    etc...

    Please let me know if there are tools or query that can do these tasks.

    Thank you and best regards,
    Lokesh
    select owner "Owner",
    table_name "Table_Name",
    column_name "Column_Name",
    initcap(data_type) ||
    decode(data_type,
    'CHAR', '('|| char_length ||')',
    'VARCHAR', '('|| char_length ||')',
    'VARCHAR2', '('|| char_length ||')',
    'NCHAR', '('|| char_length ||')',
    'NVARCHAR', '('|| char_length ||')',
    'NVARCHAR2', '('|| char_length ||')',
    'NUMBER', '('||
    nvl(data_precision,data_length)||
    decode(data_scale,null,null,
    ','||data_scale)||')',
    null) "Type",
    nullable "Nullable",
    decode(to_char(num_distinct),
    0,'No',
    'YES') "Have Data",
    owner sdev_link_owner,
    table_name sdev_link_name,
    'TABLE' sdev_link_type
    from sys.dba_tab_columns
    where (:OWNER is null or instr(owner,upper(:OWNER)) > 0)
    and (:TABLE_NAME is null or
    instr(upper(table_name),upper(:TABLE_NAME)) > 0)
    and (:COLUMN_NAME is null or
    instr(upper(column_name),upper(:COLUMN_NAME)) > 0)
    and substr(table_name,1,4) != 'BIN$'
    and substr(table_name,1,3) != 'DR$'
    order by owner, table_name, column_id
    

    I added a new column with an alias "get data". This new column will display "NO" is the entire column is zero and 'YES' if there is even a value not null in the column. But caution is that statistics table must be updated to get the correct results.

    Thus, it may be useful to gather current statistics before executing the query.

    Exec dbms_stats.gather_schema_stats or even dbms_stats.gather_database_stats.

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • How to use the structure of the event to sort the listbox data?

    I have a VI that contains two list boxes.  The two list boxes are selectable by the user.  This is how I want to interact.

    When the VI is initialized, the first list box will be filled with data.  If the user double clicks on a cell in the first list box, the second list box will be filled by a sorting of the information contained in the first list box a certain way.  I do not think that the details of how these data are sorted is pertainent here...  Then I want the user to be able to double-click on one of the lines in the second list box.  The double of the item clicked in the second list box will be used in an another VI which will then start.

    I have my VI of work such that the first list box will fill the second list box whenever the user double clicks on a cell in the first list box.  To do this I use a structure of the event.  Here is where the trouble begins.  I have a second structure of the event look for double clicks in the second list box, but when I do this, the program crashes.  In addition, I want only the user to be able to double-click on the second list box, if the first list box has already been double-clicked.

    Generally, my question really revolves around the use of the structures of the event in this application?  Can I use two structures of event at the same time?  Is there a better way to do it?

    No, you probably should not use two structures of different events. One, it should work fine.

    The Subvi immediately execute and return? If not and you have the front locked until the event finishes, which would explain what you see.

  • How to extract the indictments of several tables

    Hi all

    I have 10 tables that all have the same columns, but different data in each column. I would like to get a count of how many fields is not null for a specific column in each table. I tried to figure this out for hours without success. We use oracle 10g and I use Toad to write my SQL.

    I will try to give you an example.

    The SQL below returns the numbers for one of the tables. I would like to get the counts for each table with a single query.

    SELECT COUNT(*) FROM RRM_HOME_EQ
     WHERE unit_id is not null
     AND   account_off is not null;
    

    Thanks in advance

    OR

    Try as below...

    Select (select count (*) from emp where deptno = 10) tab1, tab2 (select count (*) of the Department)

    Double;

    TAB1 TAB2

    ---------- ----------

    3          7

    Hope this helps... !

Maybe you are looking for

  • iPhone 6 stops at a cool temperature

    I started to have the question last winter. When I'm out in the cold, my phone suddenly stops any percentage of the battery is on the left. Even in the milder climate (5 ° C in March to the Canada) my iPhone 6 won't last a House of travel bike 20 min

  • Google advertising on the main screen playstore

    When I want to open my phone by entering a code, and I get the main screen, I often get some advertising on the screen. Several times he said: "We recomment the clash of the Titans" and this with a button that links to the playstore. How can I disabl

  • No fingerprint reader not connected to my computer

    I have a computer for entertainment DV7T-7000. The old hard drive crashed so I installed a new and put Windows 8 on it. Now, the fingerprint reader won't work. When I try to open my fingerprints, I get the message that the fingerprint reader is not c

  • When will I receive the documents to my printer,

    My printer. HP PHOTOSMART 5510 BLK e series all-in-one N0 series. CN1640B0SY Model N0. SNPRH-1001 My computer. DELL XPS 420, running under WINDOWS 7 64-bit Issue. When I get documents for my printer, how to reprint them? When I need another copy. Tha

  • Does anyone has created integration with MSCRM for the opening of the campaign?

    I had stock in MSCRM (selling Stadium/qualification selection) which take place in a sales representative trigger entry into stage mid or end campaign Eloqua.  Does anyone do this?