The fastest way to copy one schema to another.

Hi guys

Oracle11gr2
OEL 5

I have a requirement to copy one schema to another. I don't have access to linux for the server hosting the database. So I guess that the datapump cannot be used. exp/imp conventional takes too long. Another way I can achieve the goal? What is the best way. is it possible to copy all the object using a dblink (triggers to tables, views, procedures etc.)

PS: Both the schema are in the same database.

Thank you
Ankurk

They are in the same database, so no db connection is necessary; Fatest? It depends on my factors;
Why no loop all the sources of the tables in the schema and do;

insert into target_schema.target_table
select * from source_schema.source_table;

You are 11 GR 2, datapump could be a solution...

Directory user/pwd Impdp = DMP_DIR dumpfile = source_schema_dmp.dmp logfile = impdp.log remap_schema = source_schema:target_schema

Tags: Database

Similar Questions

  • The fastest way to move a database to another server even.

    Hello gurus,
    Normally, I have worked with exp/imp, but now our database is too large to move this way takes about 24 hours for export and import. We bought new hardware and I need to go the new material on the production database. Operating system is the same Red Hat Enterprise rel 5.6 Linux 64 bit, oracle is the same 10.2.0.40 same block and character size, 64-bit, only difference, is that the new hardware has space more physical and better memory. Is there an easy way to move the data by copying on the control files and data files to a new server? I have not tried, data pump or transportable tablespaces, and I have limited time - so this request. I need to find the solution the faster your advice, so I can learn quickly how to implement your recemendation.
    My export .dmp database size is 34GB.
    Any advice would be great!

    No need to run a database create new host - already built sound at the source. Make a software 'only' install and get the ORACLE_HOME corrected and updated, you'll clone basically just the database to the new instance.

    As long as the source database is in archivelog mode, you can put the database in backup mode, copy the files of data, complete backup to the source mode and make a log switch.

    Here's a detail how at: http://www.dba-oracle.com/oracle_tips_db_copy.htm

    Instead of step to RECOVER the DATABASE, we use ' database to RECOVER up to TIME AAAA-MM-JJ HH24:MI:SS to the AID of BACKUP CONTROLFILE; "and the value until the time a second or two beyond the"... save end;' timestamp to the source instance. "

    You will need this archivelog, maybe encourage the file generated after the ends of the mode of backup and recovery for ARC files more a couple, depending on the activity of update to the source. If using a spfile, originally executed 'create a spfile pfile=/.../initSID.ora;' scp this file to the new host, adjust as required.

    Maybe you'll want to change DB_NAME, then the '... The DATABASE VALUE... "part of the controlfile create is necessary. Updated the SERVICE_NAME and if using LOCAL_LISTENER adjust the host = properly.

    If the directory paths are all the same, it is even easier. And if the are not, path names can be corrected in the script of create controlfile.

  • Need some ideas on the copy of the data from one schema to another.

    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:


    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    Thanks in advance...

    Concerning
    Suresh

    GSKumar wrote:
    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:
    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    I don't know why you don't want to opt for EXP/IMP.
    As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
    a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
    Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
    b. MERGE STATEMENT
    c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.

    However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.

    If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.

    Let us know your thoughts or concerns, so that help can be provided.

    I suggest that you read and follow {message identifier: = 9360002}.
    If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution.

  • Copy data from one schema to another. Reopen the Question

    Hello

    I had asked this question earlier to copy data from tables of one schema to another in the same database using the database link. In my previous post have mentioned below.
    Re: copy data from one schema to another.
    Now I am faced with the question for the remote copy of database

    I have created a DB connection between my local system and the remote database. with the chain of connection as shown below
    CREATE THE DATABASE PUBLIC LINK "MERU_DEV_LOCAL_DEV".
    CONNECT TO MERUDEV IDENTIFIED BY MERUDEV WITH THE HELP OF "MERUPROD";
    In the above script
    LOCAL DEVELOPMENT scheme IS
    REMOTE schema is MERUDEV
    I try to copy remote database to my local database tables using the script below.
    network_link DEVELOPMENT impdp = schema MERU_DEV_LOCAL_DEV = MERUDEV remap_schema = MERUDEV:DEVELOPMENT TABLE_EXISTS_ACTION = REPLACE
    But the copy of the table does not occur. What could be the problem? Please suggest me or do I need to modify the script

    Thank you
    Sudhir

    You can:
    -monitor the BONE with ps - ef
    -monitor data pump: jobs are dba_datapump_jobs and dba_datapump_sessions
    -monitor with logops: v$ session_longops

  • The fastest way to transfer files between servers...

    I have a question regarding what would be the best option to accelerate the transfer of files between 2 servers to our VMware environment. We plan to spend our GroupWise email from netware to windows and upgrade to Groupwise (v7 to v8) at the same time. We will anticipate moving about ~ 125 gigabytes of data (files ~ 517 000) and expect that it will take several hours. We would like to minimize this time better we can so we wonder what would be the best configuration of things to get there? Two virtual machines on the same host? Two virtual machines on the data store even? On different hosts, or data warehouses? Our configurations are listed below:

    -In the course of running vSphere 4.1 ESXi

    -Data stored on 2 Dell Equalogic 5500 without

    -SAN one in each of the 2 sites, physically about 3 miles away

    -3 guests, 2 to a location and 1 in the other (same places the San)

    -Transfer of data from Netware 6.5 source, destination will be Windows 2008 R2 DataCenter

    -Links gigabit between all the elements of our VMware environment, including the link between the sites (on optical fiber).

    -3 guests are able to run all our virtual machines without overloading, so if we go to the virtual computer to another host, it is not a problem.

    We would like to know what is the best way to put everything in place for the transfer, so that we can prepare before hand. Any suggestions?

    Thanks in advance.

    Well, the fastest way would be to offload the clone/copy to the San operation. If your configuration supports VAAI then the clone would happen completely on the SAN by assuming that the source and destination storage device is the same SAN. Would it be different San then the network factors in anything. For what is running on the same host, which would be beneficial for cloning a virtual machine (mainly memory footprint) should not take place on the network.

    I hope this helps!

  • The fastest way to the files and folder to move

    I'm moving a lot of files to another drive and it takes a long time.   I do travel in the LR library now and an alternative is to move outside of the LR and use the catalog import option to add (don't know if it's a more quickly).

    You can select multiple folders in the LR library to move to the same location or do you need to do one at a time? This would be onen advantage to do outside of LR.

    Any thoughts?

    You cannot move several files in Lightroom.

    The fastest way is to move your "Pictures" folder all OS, then re - link in Lightroom by right-clicking and choosing 'find the missing folder '.

    If you need to move several subfolders selectively, then there is no quick way. You move quickly in the BONES and then go rebinding in Lightroom or move them slowly one by one in Lightroom.

  • What is the best way to copy the 700 lots of e-mail files to a new computer?

    I'm moving my wife and an old (Thunderbird, Win XP) computer to a new computer (Thunderbird Win 7). It has about 700 local folders with thousands of emails in them. What is the best way to copy to the new computer?

    The easiest is just to copy the whole profile.

    Menu help > troubleshooting information

    Close Thunderbird

    In windows Explorer, select all and copy.
    just stick on a thumb or other portable media to read/write (not the CD or the DVD)

    on the new Machine to repeat the troubleshooting and close the steps to get the current profile folder

    This time all the portable media stick in the profile to replace what is there

    Open Thunderbird, your additions of e-mail contacts does it all

  • the fastest way to load an XML file

    What is the fastest way to generate an xsd-based oracle table and then load data from a file that conforms to the xml document in the xsd.

    I would do something like this:

    SQL > insert into tmp_xml

    2 values)

    3 xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'))

    4  );

    1 row inserted

    SQL >

    SQL > select x1.col_a, x1.col_b, x1.col_c, x2.*

    tmp_xml 2 t

    3, xmltable)

    4 "/ parent/Child1.

    5 passage t.object_value

    path of 6 columns col_a varchar2 (10) '@ColumnA '.

    7 road of varchar2 (10) col_b '@ColumnB '.

    8 road of varchar2 (10) col_c '@ColumnC '.

    9, child2 xmltype path "Child2".

    (10) x 1

    11, xmltable)

    12 ' / Child2'

    13 passage x1.child2

    path of 14 columns col_d varchar2 (10) 'ColonneD '.

    15 road of varchar2 (10) col_e "child3/column.

    16, road of varchar2 (10) col_f "child3/ColumnF.

    17 road of varchar2 (10) col_g "child3/column".

    18 road of varchar2 (10) col_h "child3/ColumnH.

    19 road to varchar2 (10) col_i 'ColumnI.

    (20) x 2

    21;

    COL_A, COL_B, COL_C COL_D COL_E COL_F COL_G COL_H COL_I

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

    CAF ClientID ClientName 20130121 D 20752,19 AUD

    FCA ClientID ClientName M 20130121 235.39 bla Blahdeblah AUD

    (you can adjust data types as needed)

  • What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    You cannot change a project to change this setting. You will need to create a new project.

  • Why is it possible of the ripple is not delete an entry and exit section of a track of the timeline, while that in the same area there is one cut on another way?

    Why is it possible of the ripple is not delete an entry and exit section of a track of the timeline, while that in the same area there is one cut on another way?

    I posted a topic on it as well.  Seems like if update the CC has allowed me to finally extract any section marked in and out of any track independently of any other person when sync lock is disabled.  Very powerful (and very basic) tool!

  • the fastest way to deploy on iOS / Alternative to drag the app in itunes?

    What is the fastest way to deploy on the iOS device to test?

    I myself remember someone has posted a tip on this subject, but I was more focused on android at the time.

    I use CS5.5 on Windows

    Try here iPhone Configuration utility:

    http://www.Apple.com/support/iPhone/Enterprise/

    That would get the IPA on a device quickly connect via USB. If you want to send it to a lot of beta testers, then watch https://testflightapp.com/.

  • Can I turn off the change of focus from one object to another?

    Hello.

    I have a game where i control a MC with the arrows on the keyboard, when I click outside of the application flash and back in the MC loses focus. The focus moves to a button in the scene. What I have observed, is that Flash Player has a built-in control, which moves the focus from one element to the other with the arrow keys.

    Is there a way I can disable the change of focus from one object to another?

    Thank you.

    Why you need such a thing...

    Is it true that you lose the focus of your video clip and that's your keyboard listeners do not work?

    And you want to work.

    For this situaton I ideally add my Council key on the stage event listeners and the rest of the creation of the logic accordingly.

  • How to copy a schema in another

    I need to copy a schema in another. This means that all tables, views, constraints, etc. and all of the data as well.
    I have a dmp source-schema file (created by day with expdp by our backup schedule).

    Can I use impdp to import this dmp file to dest-schema? I am thinking something like this:

    The dmp file was created with:
    expdp DIRECTORY source-schema/pwd = dmpdir DUMPFILE = myproject.dmp

    Create the copy on the dest scheme with:
    Impdp DIRECTORY dest-schema/pwd = dmpdir DUMPFILE = myproject.dmp

    (dest-diagram is a diagram on the same computer. I'll delete all tables before running the command. Is there anything else I need to do first?)

    If this approach is not possible, please suggest me an alternative.

    Thank you.

    Edited by: mgro on April 16, 2010 03:22 (changed 2nd order: expdp with the impdp)

    If the schema name is different you must use the option of remapping scheme in impdp

  • I have to cancel my subscription and the option "Cancel your plan" (one month to another) is inavailable

    I have to cancel my subscription and the option "Cancel your plan" (one month to another) is inavailable

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • What is the best way to copy all the files from one hard drive to another?

    Old disk 60Go new 320 GB drive.  I want to do the new replacement for the old disk drive.

    Old disk 60Go new 320 GB drive.  I want to do the new replacement for the old disk drive.

    Use disk cloning software.

    The safest way is to use an external hard drive enclosure to maintain the new disc during the cloning operation.  These come with interfaces USB or e-SATA to IDE or SATA interfaces for the drive and the computer.  Be sure to get the correct type.  If you have an available internal drive Bay, you can put the new drive it for the cloning operation, but do NOT restart with two connected drives.  After everything was settled down, you can mount the old disk of 60 GB inside, format and use it for storage of backup.

    Cloning (copy to disc) software may have been bundled with your new drive or may be accessed free of charge from the manufacturer of the new command.

    Otherwise, here are a few apps cloning that I have used myself or have been recommended by members of the community:

    Acronis True Image Home
    Casper
    Paragon Drive Copy
    EASEUS Partition Master

Maybe you are looking for