Steps to copy datafiles in another database

Hi,
I want to use datafiles of another 10g database ,installed on different server, in my local 10g database. Please educate me on steps I need to take to do this.
Kindly inform me if any further information is required in this regard.
Thanks
Harbinder

You should be able to copy files from Win 2003 to Win 7, assuming both are identical 32-bit or 64-bit versions.
More importantly, are the two database versions exactly identical (down to the same patchset and patches being applied to both HOMEs) ?
Srini

Similar Messages

  • Copying data to another database after little transformation

    Hi,
    Is there any better pattern for
    copying data from one database to another database after some little transformation(can be simple SQL join).
    I see couple of options like..
    1. Using materialized views
    2. Writing a simple procedure to do copy and transformation.
    3. Using a pure ETL tool.
    Is there any other simple and secure way of doing this ?
    Thanks in advance,
    Vijay.
    Message was edited by:
    user487780

    Hi Justin,
    A couple of questions
    1) Are you copying from an Oracle database to another
    Oracle database? Or are there non-Oracle databases
    involved?I am copying from Oracle to Oracle.
    2) Are there just two databases? Or more?Only two.
    3) Are you copying all the data from one database to
    another? Or are you copying just a subset of data?I just need to copy a subset(can get using SQL join) of data
    4) How frequently does the data need to be copied?exactly 500 times, but at different intervals..
    How soon after the data changes in the source system
    m does in need to be changed in the destination
    system?the copying process has to be triggered based on some data in source database.
    5) Is the data flowing in only one direction?Yes
    6) Is there some drawback to the three options you've
    outlined that you're trying to avoid? If one of
    these options meets all your requirements, I'd assume
    that you wouldn't bother posting a question. That
    implies to me that there is some unstated requirement
    that you're trying to meet...I just want to know, whether there is any standard(typical) way to do this.
    Thanks,
    Vijay.
    >
    Justin

  • Can I restore another database's datafile to this database?

    I have 2 database(both of them are same version Oracle10g 10.2.0.1) db10g and sdb10g. Now I lose the read-only datafile '/u01/app/oracle/oradata/db10g/example01.dbf' on the database db10g and no any backup of this file. I want to copy the datafile '/u01/app/oracle/oradata/sdb10g/example01.dbf' (another database sdb10g's datafile) to the corresponding place of database db10g and perform a recovery. Is it possible?
    Can I restore another database's datafile to this database?

    Hi,
    This will help you:
    - [How move tablespaces across platforms using Transportable Tablespaces with RMAN - Note 371556.1|https://metalink.oracle.com/metalink/plsql/f?p=130:14:616534565062684573::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,371556.1,1,1,1,helvetica]
    This link tell you how to do it step by step ;)
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • How could I copy contraints from one database to another?

    Hi,
    I have a specific problem.
    I have taken a datadump and executed in another database. Some how the contraints were not copied.
    So I created following script to genrated alter statement and then run the script in target database:
    declare
    cursor get_cons is
    select distinct dc.table_name table_name, decode ( substr(dc.constraint_name,1,3), 'SYS', ' ', 'CONSTRAINT ' dc.constraint_name ) contraint, wmsys.wm_concat(ucc.column_name) over ( partition by dc.constraint_name order by dc.constraint_name ) cols
    from user_constraints dc,
    user_cons_columns ucc
    where dc.table_name like '%'
    and dc.constraint_type = 'P'
    and dc.table_name = ucc.table_name
    and dc.constraint_name = ucc.constraint_name;
    lv_sql varchar2(2000);
    begin
    for i in get_cons
    loop
    lv_sql := 'ALTER TABLE '
    I.TABLE_NAME
    +' ADD ('+
    i.contraint
    +' PRIMARY KEY ( '+
    I.COLS
    +' )); ';+
    dbms_output.put_line( lv_sql );
    end loop;
    end;
    Is there a better way to do it?
    Thank You,
    Ranjeeth

    Hi,
    do u have idea about move data from development environment to production environment.
    what is the simpleast way. suppose if we refer DATAPUMP or EXP/IMP. How to do it.
    through EXP command i am exporting full database or specified tables. but problem is i am not able import which i exported tables.
    can u give me the steps to how to import .DMP files through command prompt.
    Thanks
    Venkat.

  • Steps to Copy a Database in SAP

    Hi,
    What are the steps to copy a database in SAP?
    Thanks,
    Sreekar.

    Hi,
    The steps of database copy are as below.
    1. To make Database copy between two systems, you have to check file size on
    Target System.
    Use commands:
    df -k
    bdf (HP-UX)
    2. On the Source System, check the files which are going to move.
    Use commands:
    su ora
    svrmgrl
    connect internal;
    select name from v$controlfile;
    select name from v$datafile;
    select name from v$logfile;
    3. Release all change requests on source system.
    4. Shutdown database (Source system)
    Use commands:
    su - adm
    stopsap
    5. Copy the controlfiles, datafiles, logfiles from source system to target
    system.
    Backup via tar
    ftp or rcp
    For example: You can write a simple script.
    rcp r src_server:/oracle/SRC/sapdata1 /oracle/TRG
    rcp r src_server:/oracle/SRC/sapdata2 /oracle/TRG
    rcp r src_server:/oracle/SRC/sapdata3 /oracle/TRG
    or for backup
    tar cvf /dev/ sapdata* dbs origlog* mirrlog*
    6. Copy $Oracle_Home/dbs/init.ora parameter file from source system to
    target system. Change all old SIDs to new SIDs except db_name parameter.
    Save it with old SID name.
    7. On the target system, change parameter /dbname= on
    parameter file /usr/sap/trans/bin/TPPARAM
    8. Change all owners and groups.
    Use commands:
    With root user.
    cd /oracle/
    chown R ora:dba sapdata*
    chown R ora:dba origlog*
    chown R ora:dba mirrlog*
    9. Change the name of control files (cntrl.dbf) with new SID
    10. Startup mount must work successfully.
    Use command:
    su ora
    svrmgrl
    connect internal;
    startup mount;
    11. Define new locations to database for data files and log files.
    Use command:
    su ora
    svrmgrl
    connect internal;
    alter database rename file /old/file/name to /new/file/name;
    12. Startup R/3 with startsap.
    Use commands:
    su - adm
    startsap
    13. If not start; see OSS note--> 8179 (grant connect to sapr3 identified by SAP)
    14. Log on to SAP via SAP* user.
    15. Run ST06 and set workbench organizer.
    16. Install new license.
    17. Change the spool server names on SAP system. (SPAD)
    Reward points if found helpfull...
    Cheers,
    Siva.

  • How to copy file from one table to another table at another database

    I need to transfer my tables from one workspace and schema to another workspace and schema. Basically I need to create again all the tables at this new schema. How could I transfer data from tha table at old schema to the table at new schema when this table has files stored in it? (data type is blob)
    thank you so much,
    Silver

    Hello Silver,
    Depending which database you're using (if it's available) I would recommend to use datapump.
    Datapump allows you to copy an entire schema to another database, it's the "new" export/import you might now.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • Copy table from one database to another database

    Hi,
    I am new to SQL and I have a question on copying a table.
    QUE: copy one table with huge data(around 60millions of rows) from one database to another database(have to create a new table) in the same server. 

    Hi ,
    By mistake ,I understood you want to copy on different server .
    I have rectify above.On same server we can copy Table in many way ;
    As I mentioned Above you can use ;
    select * into [Destination Database].[dbo].[NewTableName] from [SourceDatabase].[dbo].[Category]
    Second;
    select * into [Destination Database].[dbo].[NewTableName] from [SourceDatabase].[dbo].[Category] Where 1=2
    Insert into [Destination Database].[dbo].[NewTableName]
    select * from [SourceDatabase].[dbo].[Category]
    Thanks

  • To copy table from one database to another

    hai,
    I will be really pleased if someone can me tell me that how can i copy table from one database to another. I am having two databases.
    Gursimran

    You can Also do
    ++ Create a database link on the TARGET to SOURCE
    CREATE PUBLIC DATABASE LINK <<DBLNK_NAME>> CONNECT TO <<USER>> IDENTIFIED BY <<PASSOWORD>> USING '<<TNS_NAME>>';
    ++ And copy as below
    CREATE TABLE EMP AS SELECT * FROM EMP@DBLNK_NAME;

  • How to copy the data from one database to another database without DB link

    Good Day,
    I want to copy the data from one database to another database with out DB link but the structure is same in both.
    Thanks
    Nihar

    You could use SQL*Plus' COPY command
    http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
    Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM

  • How to Move or Copy the Tables from One Database to Another Database ?

    HI,
          Can any one help me on this, How i can move or copy the tables from one database to another database in SQL server 2005 by using SQL query. Hope can anyone provide me the useful and valuable response.
    Thanks
    Gopi

    Hello,
    Maybe these links help you out
    http://www.microsoft.com/downloads/en/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
    http://www.suite101.com/content/how-to-copy-a-sql-database-a193532
    Also, you can just detach the database make a copy and move it to the new server.

  • Copy Users/Permissions/objects from a database to another database

    Can anyone help me how to copy users, permissions, stored procedures, views, functions and all other objects from one database to another database.
     I need a SQL Script to get this job done. I cannot use backup restore or SSIS Package.

    There's also a transfer sqlserver objects task available in SSIS
    http://www.mssqltips.com/sqlservertip/2064/transfer-database-task-and-transfer-sql-server-objects-task-in-ssis/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Relocating datafiles on standby database after mount point on stanby is ful

    Hi,
    We have a physical standby database.
    The location of datafiles on primary database are at /oracle/oradata/ and the location of datafiles on standby database are at /oracle/oradata/
    Now we are facing a situation of mount mount getting full on standby database so we need to move some tablespaces to another location on standby.
    Say old location is /oracle/oradata/ and new location is /oradata_new/ and the tablespaces to be relocated are say tab1 and tab2.
    Can anybody tell me whether following steps are correct.
    1. Stop managed recovery on standby database
    alter database recover managed standby database cancel;
    2. Shutdown standby database
    shutdown immediate;
    3. Open standby database in mount stage
    startup mount;
    4. Copy the datafiles to new location say /oradata_new/ using os level command
    4. Rename the datafile
    alter database rename file
    '/oracle/oradata/tab1.123451.dbf', '/oracle/oradata/tab1.123452.dbf','/oracle/oradata/tab2.123451.dbf',''/oracle/oradata/tab2.123452.dbf'
    to '/oradata_new/tab1.123451.dbf', '/oradata_new/tab1.123452.dbf','/oradata_new/tab2.123451.dbf',''/oradata_new/tab2.123452.dbf';
    5. Edit the parameter db_file_name_convert
    alter system set db_file_name_convert='/oracle/oradata/tab1','/oradata_new/tab1','/oracle/oradata/tab2','/oradata_new/tab2'
    6. Start a managed recovery on standby database
    alter database recover managed standby database disconnect from session;
    I am littelbit confused in step 5 as we want to relocate only two tablespaces and not all tablespaces so we have used.
    Can we use db_file_name_convert like this i.e. does this work for only two tablespaces tab1 and tab2.
    Thanks & Regards
    GirishA

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1010428
    8.3.4 Renaming a Datafile in the Primary Database
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    To rename the datafile in the primary database, take the tablespace offline:
    SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
    /disk1/oracle/oradata/payroll/tbs_x.dbf
    Rename the datafile in the primary database and bring the tablespace back online:
    SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE 2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
    3> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    SQL> ALTER TABLESPACE tbs_4 ONLINE;
    Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APP
    8 YES
    9 YES
    10 YES
    11 YES
    4 rows selected.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Shut down the standby database:
    SQL> SHUTDOWN;
    Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    Start and mount the standby database:
    SQL> STARTUP MOUNT;
    Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
    2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    On the standby database, restart Redo Apply:
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
    2> DISCONNECT FROM SESSION;
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'

  • XTTS - problem in copying datafile into ASM

    I'm testing the migration of database from AIX to Linux using cross platform transportable tablespaces.
    DB version: source: 10.2.0.4
    Destination: 10.2.0.5
    OS version: source: AIX6.1 - AIX-Based Systems (64-bit)
    Destination: RedHat Linux - Linux x86 64-bit
    I run the below commands before copying the datafile at destination.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';/dataimport is a shared file system mounted on Linux server and am able to see the datafile over there. But, am receiving the error below when trying to copy the datafile on the linux server. Could someone let me know if I miss something / how to resolve this error.
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia' to '+DATA';
    Starting backup at 05-APR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 10:19:44
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia

    I don't think it's related to patchset mismatch. Yes. I moved the dump file and datafile copies to local file system also and got the same error.
    Here are the steps once again. The tablespaces are still read only on source side. How can it affect datafile copy on destination side?.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';
    impdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_imp.log TRANSPORT_DATAFILES='/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir','/az/dataimport/export/data_D-DBMGRT_I-3320277811_TS-TBLSP2_FNO-39_0dm90sa0'
    Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir' to '+DATA';
    Starting backup at 05-APR-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=4361 instance=dbmgrt1 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 12:42:47
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    SQL> select file_name from dba_data_files where tablespace_name='TBLSP1';
    /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    $ls -l /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    -rw-r----- 1 oracle oinstall 32914808832 Apr  5 12:31 /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir

Maybe you are looking for

  • Connect to Linux 8.1.5 from NT

    I am running NT as my client and have just set up Oracle 8.1.5.0.2 on Red Hat 6.1. The NT client can successfully connect to an Oracle 6 database and an Oracle7 database (I am connect to Orale7 via Net8). I cannot connect to the Linux database at all

  • Problem when use multiple c:import jstl on jsp on Tomcat 5.0

    I have jsp that use multipe import jstl tag. I was able to run on the Tomcat 5.5.9. When I deploy it on Tomcat 5.0.28, it is not working. For example: <c:import url="/jsp/page1.jsp" /> <c:import url="/jsp/page2.jsp" /> I look at Tomcat cache director

  • Amf and CodeIgniter (FB 4 PHP)

    So I downloaded this sample http://www.adobe.com/devnet/flex/testdrive.html And apparently the code is so out of date in the php gateway side that nothing works.  I download zend framework and spent hours trying to get it working and after so much wo

  • Defining New G/L Accounts for Each Warehouse

    Dear All......... We have managed inventory by warehouse and set the G/L accounts by warehouse wise. Now if we create new warehouses  the system but by default the accounts are same for all the warehouse,                 So my main Question is ......

  • Record more than 2 shows

    Does Verizon Fios intend to compete with AT&T U-verse and upgrade the recording capability to include more than 2 shows at a time (and if so, when)?  I often have to watch tv on one of the smaller televisions because I'm recording 2 shows on the main