Comparison of column level with different database to different server

Hi all


I have two database on the other server. I want to find the difference between the tables in the two tables for example same table with different column, it can happen...


How to compare two tables column level with two differnet Server database.



Thanks in advance.

user647572 wrote:
Hi all

I have two database on the other server. I want to find the difference between the tables in the two tables for example same table with different column, it can happen...

How to compare two tables column level with two differnet Server database.

SELECT * FROM USER_TAB_COLUMNS
LESS
SELECT * FROM USER_TAB_COLUMNS@REMOTE
UNION
SELECT * FROM USER_TAB_COLUMNS@REMOTE
LESS
SELECT * FROM USER_TAB_COLUMNS;

Tags: Database

Similar Questions

  • Create cluster with different server

    Hi all, am new to this form and you need assistance in the creation of a new cluster of 2 servers who are of different brand and different configurations

    Server 1

    Acer altos g540

    Which is to have double Socket CPU

    20140612_171052.jpg

    Server 2

    Dell poweredge T320

    Which is to have one CPU socket

    20140612_171042.jpg

    What would be the best practices by creating an HA cluster license. which CVS option should I have chosen during the creation of the cluster.

    Thank you

    Sharath Shashidhar

    Welcome to the community.

    to know if different hosts (UC) support a common mode of EVC, search for the hosts in the VMware Compatibility Guide and click on the link of model of CPU for more information on EVC modes supported.

    André

  • Column update with random values

    Hi all

    I have a chart in which one of the columns contains the number. I want to write a script that will update the column number with different random values.

    Basically, my script should take the first line of a table and should update with a random value in the second loop, it must update the column with a random value.

    I need a simple PL SQL code to do this.

    Thanks in advance.

    Thank you.

    Kind regards
    Dirasa

    or

    update table_name set column_name=round(dbms_random.value(1,100));
    

    Do not loop, this single update statement will satisfy your need by your request above.

    arguments passed in 1 100 are the lower and upper limit to generate random numbers. like 5,1,45,64,23 etc.

    Sample of run...

    PRAZY@11gR1> select * from test;
    
            ID
    ----------
             1
             2
             3
             4
             5
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> update test set id=round(dbms_random.value(1,100));
    
    5 rows updated.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> select * from test;
    
            ID
    ----------
             2
            85
            58
            45
            27
    
    Elapsed: 00:00:00.00
    

    Kind regards
    Prazy

    Published by: Prazy on March 17, 2010 17:35

  • Unable to make the connection with oracle (database sqlserver) non-oracle

    We are unable to connect with the database of sql server after you have created the dblink to the oracle server.

    tnsping everything works very well between the oracle and SQL Server for database, database

    Please provide us with the solution for this problem.

    The problem is that the HS_FDS_CONNECT_INFO in theinit .ora bridge was not properly configured.

    Using the format-

    HS_FDS_CONNECT_INFO =//.

    has permits the connection works.

  • register the database with the database Vault

    Version: 11.2.0.2.0

    Operating system: Solaris

    Can someone tell me please how to enter Oracle Database Vault with a database from command line without using DBCA.

    The doc oracle E23090-10 provides only through the DBCA Wizard. I'm having some trouble with my software x - manager, so I cannot use the DBCA Wizard and seeks to enter the vault of the database with the database by command line.


    Oracle database Vault is already enabled through 'chopt enable lbac' and 'chopt enable dv. Now all I do is register with the databases on the server.

    Thank you

    Hi DK2010, actually I found my answer in the metalink Doc ID 803948.1

    I have to run the dbca in silent mode and at the end of this doc, it's exactly what I need.

    "

    DBCA-silent - configureDatabase

    sourceDB-

    [- sysDBAUserName

    -sysDBAPassword ]

    -addDBOption DV, WHO

    -dvUserName

    -dvUserPassword

    -dvAccountManagerName

    -dvAccountManagerPassword

    "

    Now, the keystone of the database is registered with the database.

  • syslogging to 2 host with different levels of severity?

    I have a PIX that sends the logs to a host with Cisco syslog installed. It is configured to send messages of level 3 (as required by the internal standards) of gravity.

    I have another host which collects the theses papers too, but I want some info - level 5 or 6.

    ? is it possible to config the PIX to send logs on 2 different hosts with different levels of severity?

    you configure the pix to send to 7 on a syslog server. configure you this server to send events to the level 3 to another server. I think that it should be possible

  • Database test on a different server with the same name of SID as database production - thoughts?

    Hello

    We use oracle 11.2.0.3 and have 2 environments a production environment and test each on different servers.

    Currently, our test database has database different SID to the production one.

    DBA is eager to have the database of test with the same name of SID.

    Thoughts/concerns in this area - will be on different servers.

    Thank you

    We also had a similar situation, it allows to save a few hours when cloning (we do not use RMAN), but a lot of damage, it can create.

    So much better with different names on different servers.

    concerning

    Pravin

  • How can I add a donation page with different levels to give for example $ 250, $150, $50, other

    How can I add a donation page with different levels to give for example $ 250, $150, $50, other.  I'm with Foxy cart... is it possible?

    Since the end of the Muse, you can add texts as the value of the donation with paypal button that would take users to the paypal for the payment site, with Foxy cart you can try the suggestion mentioned here:

    https://Forum.FoxyCart.com/discussion/4417/donation-page-radio-button/P1

    Thank you

    Sanjit

  • Return only the columns with different values.

    Hi all

    I am trying to solve a seemingly trivial problem but can't seem to get any clear answer anywhere in any forum. Consider a single table with 5 columns and only two lines:
    row_id           first_name         last_name        age            gender
    1                    John                  doe               27             M
    1                    Jane                  doe               27              F  
    Assume that there is no primary key or any other constraint. Also assume that there are only and only two lines of this table. So I need basically a query that, overall above lines, would return first name and sex, because they are only different columns in two lines, as well as their values. Even if I can get sort of column names that are different and that would be enough that I can easily access the values later. It is also important to remember that I may not know the names of the columns in the columns, so basically, somehow, I use user_tab_columns in the process.

    Any help appreciated.

    Published by: 894302 on May 1, 2013 10:35

    Hello

    894302 wrote:
    The exact release could be just a varchar variable that lists all the columns that have different values with each column name separated by commas. We'll call the query you want as a QUERY. So, if I do something like

    Select the REQUEST of double; Output should be: 'first_name, equality of the sexes. Is this possible?

    In this case:

    SELECT     RTRIM ( DECODE (a.row_id,     b.row_id,     NULL, 'row_id,')     ||
                    DECODE (a.first_name, b.first_name, NULL, 'first_name,') ||
              DECODE (a.last_name,  b.last_name,  NULL, 'last_name,')  ||
              DECODE (a.age,        b.age,          NULL, 'age,')      ||
              DECODE (a.gender,     b.gender,     NULL, 'gender,')
               , ','
               )          AS different_columns
    FROM     rhit_table_x  a
    JOIN     rhit_table_x  b  ON  a.ROWID     < b.ROWID
    ;
    

    Output:

    DIFFERENT_COLUMNS
    ---------------------------------------
    first_name,gender
    

    This assumes that you have really a table, then you can use ROWID to distinguish the lines, since there is no primary key.
    If this isn't the case, you first assign ROW_NUMBER in a subquery.

  • Is it possible to migrate a planing with different database name application?

    Hi gurus,

    is 1] possible to migrate an application planing with different database name via the LCM in EMP 11 utility?

    [2] we can migrate application of planning with different names from DB in sys9 too?

    You must update this table, restart planning. You must also rename the database through the Regional service.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Recreate the database with backup to a different server

    Dear friends,

    I'm backup with RMAN

    Level 0 backup on Sunday and level 1 in week

    Now, I want to recreate this database on another server.

    Is this possible? I don't want to duplicate or cloning.

    Any suggestions?

    What we call this kind of recovery?

    Should I do something like that?
    Make a full backup all of current your database files instead of using the Level 0 or Level 1 backups.
    Place all database files to same directories.
    Create the Windows service if removed.
    C:\> oradim.exe -new -sid <ORACLE_SID> -startmode -manual
    
    Startup instance.
    C:\> net start OracleService<ORACLE_SID>
    C:\> sqlplus /nolog
    SQL> connect / as sysdba
    Thank you!

    Salvation;

    What is the version of DB?

    pelase see:
    How do I move/restore DB to new host and filesystem using RMAN [1338193.1 ID]

    Respect of
    HELIOS

  • Interactive report - with different colors column header

    Hi all

    I use the Application Express 4.0.2.00.07.

    Theme: 2 blue Builder

    I have the zoom before interactive reports in a page, in do I have to display each header of reports with different colors instead of having the same blue color given by theme for all reports.

    Also I need this color change of header for this page only, not for the entire application.

    can someone offer me please how to do this?

    Thank you for your help in advance.

    Kind regards

    Santini.

    Add a static region ID in each region report and include a stylesheet like the following in the HTML Header page:

    
    

    When the report 1, report 2, etc. are the static region ID.

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • Combine data sources with different granularity in the same fact table?

    I have two operating tables 'Incident (157 columns)' and 'unit (70 Colums) '. For all the "incidents" happening there could be one or more records in the table of the 'unit '.

    As part of my design of data mart, I have merged the tables in one "makes the incident (227 columns)" and insert records from two tables with a join condition between them [incident. IN_NUM = Unit.IN_NUM].

    Is this correct, is my question? or am I mix data sources with different granularity in the same fact table. Appreciate your help.

    Best regards
    Bees

    Bees,
    Are the measures of the 'Incident', repeated during an incident given, in more than one record in the table of the unit? If so, then the sum (indicent.measure) will give an incorrect result?

    What is there to merge physically tables set outside OBIEE? With OBIEE you might have a table of 'facts' logic to present the user with report, which from tables separated units and Incidents and would stop the occurrence of incorrect aggregations. A common piece of modeling in the same way would be arrested in OBIEE headers and lines of command, quite common to have a logical fact 'orders' which contained the two header orders and order line, this translates into the Incidents-> relationship of units.

    To do what I mentioned, is relatively simple, you need a "Dim - Incident" at two levels, unit, mapp and Incident unique identifiers as keys to level and then use these levels to define the content of the levels correctly in your 2 tables logic sources logic "done", IE the LTS Incidents at incident level LTS units as level of units.

    Hope this helps, let us know if you get stuck.
    See you soon
    Alastair

  • Several analog inputs with different configuration differential/CSR

    Hello

    Can anyone tell how to measure two analog inputs with different configurations using a USB-6009?
    I am aware of the syntax for create virtual channels for the channels DAQmx create virtual so I created two strings using Dev3 / ai0:1 but I would like the first string of the CSR and the second to be differential.
    So far I have found no way to specify the configuration of the separate channels.

    Any ideas much appreciated!

    Jack

    JackT wrote:

    I prefer to use the 'low' level vi is therefore always curious to know if there is a way to set the configuration using the their.

    It should be like this:

Maybe you are looking for

  • satellite 1110 - right hinge broken

    Hello recently I discovered that the right display hinge is broken. This is why I can't close the lid. Is it possible to get a toshiba spare part to repair? How it would be approxmatelly if I bring it to a service partner? Thank you Christoph

  • Assignment of 6110xs volumes

    Noob to the EQ line and would like to know a few things about the hybrid range: * made 6110xs part of a group, but in its own pool *. 1. when create you a new volume t - it auto layer between SAS and default SSD drives? 2. If so, is there a way to li

  • BlackBerry Z10 extraction Z10 phone Contacts to CSV

    I need to take the Z10 Contacts for my old Bold 9900. I changed my devices but what restoration of the Cloud a lot of contacts stored in my Z10 are lost. Help will be very appreciated...

  • DPM backup: imp/exp with system/password

    HelloI export the database as: exp system/passwd owner=mi file=/var/Downloads/dmp/MI61015.dmp log=/var/Downloads/dmp/MI61015.log statistics=none Import database as: imp system/passwd fromuser=mi touser=mi file=/var/Downloads/dmp/MI61015.dmp log=/dmp/

  • move an individual account to an account of the University

    I changed my individual account to an account of the University, but when I login I get warnings that my account will expire in 15 days... How can I make sure that my account of the University is currently working?