Merge different databases 10.2.0 in single database

We have different database, DatabaseA size is about 135GB and DatabaseB size is about 117GB. I want to merge both database in a single database by moving datafiles. Pl suggest, it is possible if yes, how?
Thanks,
Regards,

Warning before merging databases you need to look at certain factors especially those related to security.  One or both databases may hold sensitive data.  The application on one may run as the owner and the owner may have the DBA role.  The owner password may be widely known so by merging the databases you are effectively granting DBA access to your other system to a wide range of people.
You also need to check for the same owning usernames (schema) objects existing.  You have to check for the possibility of public synonym conflicts.
Also make sure both Oracle's are the same edition.  You would not want to try to move an application running against the Enterprise edition to running against the standard edition without making a detailed check of the features in use.
For migrating database data from database A on machine A to database B on machine B besides traditional export./import processing you likely have the option of using the transportable tablespace feature to allow copying the files rather than actually moving the object DDL/data.  This approach would likely be faster.
HTH -- Mark D Powell --

Similar Messages

  • Single query to get data from different databases

    i need to capture certain fields from certain tables in database 1 and certain fields from certain tables in database 2 into one file using a single SQL statement.
    i tried searching on the net
    i found that dblinks can help
    but iam not sure if ill be able to create dblinks in my situation which is:
    i need to get data from oracle to be copied to mysql
    this is not a replication acitivity, but i need certain fields from one database and certain from the other
    so what iwas thinking is, if i use an sql query to get all the fields (i need around 40) from the different oracle databases and create a singlefile with one insert per select, i can then read that file into mysql
    instead of creating multiple sql queries for each table and creating separate files and eventually separate tables in mysql.
    can anyone help me here?
    or maybe suggest another approach.
    thanks

    Hi,
    I think dblink is the only option available to get data from different databases. It will work for your case too.
    CREATE DATABASE LINK db_link CONNECT TO user_name IDENTIFIED BY  password USING 'instance_name'you must have the system privilege 'create database link' to create db links. This way you can get the required data and put it in a table in oracle. But i dont know how to put this data from oracle table to Mysql.
    HTH
    Muneer

  • Any Possible to merge in different database table??

    HI i tried to merge ,source is a one data base and target is a different data base , i tried to merge its showing error,invalid object name like that , any possible to merge Different DB
    thanks
    pandiyan
    pandiyan

    Hi Pandiyan,
    In SSIS its not good practice to use execute this query(Using Execute SQL Task).
    rather than you can take two different connection (OLEDB Source) and merge there using Merge JOIN control.
     Please follow below link for more details ...........!
    Merge Join 
    Regards
    Shiv
    Please mark as answer if you find it useful
    Shiv

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • How to access sysobjects and syscolumns on a different database?

    I'm attempting to write a script that iterates over all tables and their columns in all databases resident to a SQL Server connection. I can do either of these but cannot figure out how to merge the two together. The problem is that at the time that the
    table/column information is collected, it comes out of the system tables of the current default database and I can't quite figure out how to change default databases in a way that is acceptable under the current conditions. I can't create and write to the
    many database new stored procedures to handle the changing of default database and I don't want to use undocumented functions.
     but am having trouble prizing the information out of sysobjects, syscolumns and systypes on databases that are not currently the current database in use in order to find all occurrences of some string in all databases, no matter what table or
    column that string resides. One of the things making it harder is that I do not want to generate stored procedures on the fly and add them to the databases being probed so everything has to be accomplished either directly or by executing a sql string.
    There are two obvious approaches to the problem -
    1) Change the current database (Like 'use @DBNameVar' only something that actually works)
    2) Directly access sysobjects, syscolumns and systypes in a different database
    Here's what I have so far - I have figured out how to make a cursor that will list all of the databases and can load that database name into a string variable and I know how to get a listing of all of the tables and columns within a database. I have another
    piece of script that does a great job of probing all of the columns in all of the tables for a string.
    Will the systables allow access if their database is not the current database? If so, what is the syntax? Can you show me what I need to do in my table/column iteration script? Assume, for example, that @DBNameVar contains the name of the database that needs
    to be probed. What is the syntax that will combine that database name with the following script which lists all of the tables/column?
    DECLARE cCursor CURSOR LOCAL FAST_FORWARD FOR
    SELECT
    '[' + usr.name + '].[' + tbl.name + ']' AS tblName,
    '[' + col.name + ']' AS colName,
    LOWER(typ.name) AS typName
    FROM
    -- How can a sysobjects from another database be specified????
    sysobjects tbl
    INNER JOIN(
    syscolumns col
    INNER JOIN systypes typ
    ON typ.xtype = col.xtype
    ON col.id = tbl.id
    LEFT OUTER JOIN sysusers usr
    ON usr.uid = tbl.uid
    WHERE tbl.xtype = 'U'
    AND LOWER(typ.name) IN(
    'char', 'nchar',
    'varchar', 'nvarchar',
    'text', 'ntext'
    ORDER BY tbl.name, col.colorder
    Richard Lewis Haggard

    In addition to Latheesh and Tom solutions, I modified your code to use dynamic sql. It's just a different solution:
    --first create table
    CREATE TABLE tbl ( tblName sysname, colName sysname, typName sysname ) ;
    GO
    --now populate it with dynamic sql
    DECLARE @sql NVARCHAR(max) = N'';
    ; WITH db AS (
    SELECT name
    FROM sys.databases
    SELECT @sql = @sql +
    N' INSERT dbo.tbl ( tblName, colName, typName )
    SELECT
    QUOTENAME(usr.name) + ''.'' + QUOTENAME(tbl.name) AS tblName,
    QUOTENAME(col.name) AS colName,
    LOWER(typ.name) AS typName
    FROM
    -- How can a sysobjects from another database be specified????
    ' + QUOTENAME(db.NAME) + N'.sys.sysobjects tbl
    INNER JOIN(
    ' + QUOTENAME(db.NAME) + N'.sys.syscolumns col
    INNER JOIN ' + QUOTENAME(db.NAME) + N'.sys.systypes typ
    ON typ.xtype = col.xtype
    ON col.id = tbl.id
    LEFT OUTER JOIN ' + QUOTENAME(db.NAME) + N'.sys.sysusers usr
    ON usr.uid = tbl.uid
    WHERE tbl.xtype = ''U''
    AND LOWER(typ.name) IN(
    ''char'', ''nchar'',
    ''varchar'', ''nvarchar'',
    ''text'', ''ntext''
    ORDER BY tbl.name, col.colorder ;
    ' + NCHAR(13)
    FROM db ;
    PRINT @sql ;
    EXEC ( @sql );
    SELECT *
    FROM tbl ;
    sqldevelop.wordpress.com

  • Compare Table Data on 2 different databases having same schema

    I need to compare data in all the tables in 2 different databases having same schema.
    If there is any difference in data in any table on Database1 and Database2 then I need to update/insert/delete the rows in my table in Database2.
    So Database1 is my source database and Database2 is my sync database. I cannot use expdp tables as I am not having sufficient privileges to the database server.
    Also I cannot drop and recreate the tables as they are huge.
    Can anyone please guide me how to compare data and to write a script to comapre the changes in say Database1.Table1 and Database2.Table1 and then accordingly do inserts/updates/deleted on Database2.Table1?
    Thanks

    Karthick_Arp wrote:
    Do you have a DBLink? If youes you can do this.
    1. Login into the Database-2 and run this code.
    begin
    for i in (select table_name from user_tables)
    loop
    execute immediate 'truncate table ' || i.table_name;
    end loop;
    end;This will empty all the tables in your Database-2. Now what you need is to just populate the data from Database-1This might result in error, if any of the tables have referential integrity on them.
    From 10g documentation :
    Restrictions on Truncating Tables
    You cannot individually truncate a table that is part of a cluster. You must either truncate the cluster, delete all rows from the table, or drop and re-create the table.
    You cannot truncate the parent table of an enabled referential integrity constraint. You must disable the constraint before truncating the table. An exception is that you can truncate the table if the integrity constraint is self-referential.
    If a domain index is defined on table, then neither the index nor any index partitions can be marked IN_PROGRESS.I would go for normal MERGE. Also change the cursor to select table names by first modifying the child tables and then the parent table.

  • Merging Different Files Using XI

    Hi All,
    I hav a scenrio where i have to merger 'n' no of files into a single file and push it to some location on the FTP.
    <u><b>Details:</b></u>:
    <u><b>Source</b></u>
    <u><i>File1</i></u>
    abc
    def
    ghi
    <u><i>File2</i></u>:
    xxx
    yyy
    zzz
    <u><i>File3</i></u>:
    ppppppppppp
    qqqqqqq
    rrrrrrrrrrrrrr
    <u><i>File4</i></u>:
    uuuuuuuuu
    <u><i>File5</i></u>:
    <u><i>File6</i></u>:
    <u><i>Filen</i></u>:
    <u><b>Target</b></u>
    <u><i><b><b>MyFile:</b></b></i></u>:
    abc
    def
    ghi
    xxx                 (Content of File2)
    yyy
    zzz
    ppppppppppp                 (Content of File3)
    qqqqqqq
    rrrrrrrrrrrrrr
    uuuuuuuuu                    (Content of File4)
    <u><i>File5</i></u>:             (Content of File5)
    <u><i>File6</i></u>:              (Content of File6)
    <u><i>Filen</i></u>:              (Content of Filen)
    Each of the Source file contains different Message Type from other files. All these files are on local drive.
    Can any one help me out in this regard? Any help wud b highly appreciated.
    Thnx in Advance
    Anil

    Hi All,
    First of all,thanx a lot for ur answers.
    1) I dont wanna use BPM coz it doesn't make sense to create N different messages types and put it in a fork.
    2) Even though I go for a BPM, i can't acheive this as i dont have any common field among all the message type which ensures the Correlation.
    These are just text files which have to be merged in the same order of their creation. we dont need any mapping r any other XI functionality. I just wanna create something like a batch process in XI which merges all the files and moves to a particular location. I hav to do this in XI as i can monitor the whole scenario end to end with in XI.
    Any suggestion guys?
    Anil

  • Joining tables in different databases

    Hi,
    I know we can access multiple databases like Oracle, Informix etc. through a single toplink session using session broker. Also in toplink documentation it says there is a work around for joining tables that exists in different databases i.e. joining an Oracle table with an Informix Table. If anyone had tried this or if it is possible, please let me know how to do this.
    Thanks..

    If I could know, how to perform or some sample code, for the following two steps it would be great.
    Write descriptor ammendment code to bind together that go from (A) to (B) and (B) to (A).
    Be sure to map the ammendment descriptors in the mapping workbench.Or please point me to the right toplink documentation or examples.
    Thanks a lot for your help.

  • How to integrate different tables structures from different databases?

    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    Thanks

    Arun Rajesh wrote:
    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    ThanksWelcome to Forum!!!
    Please elaborate your question.
    Arun Rajesh wrote:
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.1. What are the ATTRIBUTES?
    Arun Rajesh wrote:
    The structure of tables in both the database are different but they carry same attributes in same relation.2. Post the Table Structures.
    Arun Rajesh wrote:
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?3. What is the end result that you desire? A sample output shall help in our understanding.
    PS:- Please go through this to understand SQL and PL/SQL FAQ.
    Regards,
    P.

  • Active Data Guard in different database versions (11.2.0.3  and 11.2.0.4)

    In case of Active Data Guard can i run different database versions (11.2.0.3  and 11.2.0.4) at Primary and DR for production environment ?  And will having RAC in environment make any difference?

    Hi,
    >>In case of Active Data Guard can i run different database versions (11.2.0.3  and 11.2.0.4) at Primary and DR for production environment ?
    As per normal Data Guard requirement, Oracle 11.2 does support flexibility where Primary and Standby may have different hard wares such as CPU architecture and OS etc. but the Oracle RDBMS software version must be the same. Having said so does not mean it will not support it. Beginning with 11.1.07, a physical standby database can be used to execute a rolling database upgrade to a new Oracle Patch Set or database release by using the transient logical rolling database upgrade process. It means you can have with different database version but for how long, you need to check above documents.. For complete information you should read this note:
    Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration (Doc ID 413484.1)  &
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-transientlogicalrollingu-1-131927.pdf
    2) >> And will having RAC in environment make any difference?
    NO.   You can find answer at -  https://docs.oracle.com/cd/E11882_01/server.112/e41134/standby.htm#SBYDB4716
    **The primary database can be a single instance database or an Oracle Real Application Clusters (Oracle RAC) database. The standby databases can be single instance databases or Oracle RAC databases.
    HTH,
    Pradeep

  • Update 2 different databases from Timesten cache

    Is it possible to udpate 2 different databases from a single Timesten configured cache?.
    Edited by: user6867140 on Feb 12, 2009 1:06 PM

    Two different oracle instances.
    Let me give an example
    Table A is present in Oracle database 1
    Table B is present in Oracle database 2
    Table A is cached in TimesTen
    Any change in Table A in timesten need to be updated in Table A of Oracle database 1 and Table B of Oracle database 2
    Table A and Table B has the same data structure.

  • Reuse Dimdate across different database for different data models

    Hi,
    I am designing a new data model for a data mart. I need to add dimdate dimension in this data model. I noticed that dimdate already exists in another database and being used by another
    data model. Is it possible to re-use the existing dimdate table for my new data model? If so, what about the foreign key constraints? Normally we link the date columns from fact table to the dimdate keys. How would we achieve that in case we are using the
    same table across different databases?
    Any opinion on this will be highly appreciated.
    Thanks in Advance.
    Cheers!!

    You can create a copy of dimdate table to your new data warehouse.
    If both data marts were in a single data warehouse, then you don't required to copy. but as these are in two different databases then you just copy that.
    regarding FK relationship. you can connect any fact table to you date dimension. even if you want to use more than one instance of your date dimension, it would be simply adding multiple FK columns in your fact table (role playing dimension).
    For date dimension be sure that your date dimension covers most of the attributes required. here is an example of date dimension:
    http://www.rad.pasfu.com/index.php?/archives/156-Script-to-Generate-and-Populate-Date-Dimension-Version-2-Adding-Multiple-Financial-Years.html
    Regards,
    Reza
    SQL Server MVP
    Blog:  
    http://rad.pasfu.com  Twitter:
      LinkedIn:
    SQL Server Integration Services 2012 Tutorial Videos:
    http://www.radacad.com/CoursePlan.aspx?course=1

  • Different database connection or proxy user change

    Hi forms guys,
    in everyday life I am fulltime DBA, so please forgive my spare forms word pool.
    Our users open a forms application that displays a menu with forms applications the user has access to. Users can then click on the menu items and another form pops up. Now having reviewed the code, I can say that the opening of the new forms is done by calling the builtin OPEN_FORM. As parameter "SESSION_MODE" for this function, "SESSION" is supplied. If I understand correctly, this means that another session using THE SAME username/password/connectionstring is created (for the purpose of parallel transactions in parent and child form).
    At the moment each and every user (~400) has it's own database account which has roles (depending on the applications they are granted access to) assigned and also sometimes owns dblinks and synonyms. We want to get rid of them by storing the credentials in OID and just create ONE single application user for every application we host. This user shall contain all nescessary objects such as dblinks and private synonyms.
    The enduser then logs in using the proxy mechanism. For example if user XYZ (defined in OID) wants to start application ABC, then he/she connects like XYZ[ABC_APPUSER]/XYZPASSWD. This must occur when the form opens, directly after the OPEN_FORM call.
    Now my question: Is this possible somehow? Is there a way to have different database connections within a single forms window, if there are different forms? Or is it possible to make a switch to another proxy user within forms? e.g. JDBC has the ability to quickly switch to an other proxy user, without having to re-establish the whole session.
    All I have read so far tells me, that it is not possible. But I would really like to hear that acknowledged by experts. Also other, perhaps better ideas for our intention are welcome.
    Kindest regards
    Matschbirne

    Not really sure how to answer your question other than to say that from within your form's pl/sql you can connect and disconnect as often as you like programatically. However, you can only have one connection at a time (as far as I know). So if you connect as SCOTT and later want to do a login as FRED, you can do so, but SCOTT will no longer be connected.
    Forms does support using Oracle SSO, but for the most part cannot directly access OID. Also, the db login information needed by Forms (when using SSO) is stored in a RAD (Remote Access Descriptor) in OID. The RAD behavior is unique to Forms and Reports. For each SSO user there is a related RAD. At the moment, there is no provided way to have RAD groups (e.g. Admin, Sales, Guests, etc). So each user get their own RAD.
    If you are using Forms 11.1.x, Forms now supports db proxy users.
    More information about SSO and Proxy users with Forms can be found in the Forms Deployment Guide:
    http://docs.oracle.com/cd/E24269_01/doc.11120/e24477/sso.htm
    In the code, you can control the connection using the LOGON, LOGOUT, and LOGON_SCREEN built-ins. Refer to the Forms Builder online help for details on how to use these.

  • How can I connect to a different database schema,other than adobe?

    I'm building an application where I want to use a different database for it,for storing additional data for the users(different from "edcprincipaluserentity" table in "adobe" database stores)..How I can connect to my database schema created in MySQL from Workbench,to assign tasks to my users,using the Process Management/Assign Task service?

    You can only assign task to user that are known by the LiveCycle User Manager.
    When you configure LiveCycle, you can tell it where you want to get the users from. They can be created them locally in the local database, or synchronized from an LDAP directory in which case it'll read the users from LDAP and make a copy of some of the properties to the internal LiveCycle database.
    Bottom line, all users have an id (in the edcprincipalentity table) in the adobe database.
    If you need your users to come from a different database, then you need to customize the SPI (security provider interface) so that you can synchronize the users coming from your external database. Again, this is a customization since out of the box, we don't synchronize against external database. But it is possible, the API is there and other customers have done it.
    I hope this clarifies things a bit.
    Jasmin

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

Maybe you are looking for

  • Need help setting up wirless network

    Hi all, I am new at setting up wireless networks. I am thinking about setting up a wireless network and share out my internet connection with a neighbor. The only problem is my neighbor is 800ft away from me. There is also a line of trees in the way.

  • Powernap consuming lots of power?

    Hi all, This morning my Mac (Retina) was 100% and the lid was closed. 8 hours after, I open the lid and it's now 91%. Anybody experiences this power drain? ... and is it powernap? Thanks! Mojo

  • How to use Oracle temporary table and verify if it exists

    1. I got two errors on the following code. ORA-06550: line 13, column 4: PLS-00428: an INTO clause is expected in this SELECT statement ORA-06550: line 17, column 3: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: 2. C

  • Where do contract/PIR data fit into SAP's "suggested" master./trxn models?

    At this link: http://help.sap.com/saphelp_scm50/helpdata/en/9b/57df37463a126ae10000009b38f842/content.htm SAP provides suggestions for an overall master data model and transactional data model. Where do "contract" data fit into these models (what cat

  • Header data come from the Data Set, Issue if Data Set is sorted

    Currently in our Data Set, the 1st line contains unique fields for the HEADER. For example "adress of the user site". If we are sorting the Data Set, the 1st line value is empty, so the Header Data is empty. What would be the best way to solve this p