Reusing OMF datafiles in another Oracle

Hi,
I have OMF data files from another oracle (a hard-copy of database), including all SPFILE, LOG, CONTROL AND DBF files. Because the data size is huge and it is impossible to ask for dump formats. My goal is to set up my oracle to use these OMF files so that it can access data in them. My oracle is not configured for OMF yet. Both servers are oracle 10g with matching version.
Could somebody tell me some hints or tricks? The fewer long-duration processes, the better.
thank you very much,
Chen

Restrictions on Dropping Files To drop a datafile or tempfile, the datafile or tempfile:That was meant for dropping a datafile complete (from data dictionary as well).
Can you try the following and let me know, whether it works for you or not:
alter database datafile '/datafilename.dbf' offline drop;
and drop the datafile from the OS level.
(What the command really means is that you are offlining the datafile with the intention of dropping the tablespace.)
I agree that its not technically dropped or deleted, but, logicall, Oracle thinks that the datafile is no more accessable to the database.
I was just trying to tell you that you can force to delete the data file using the above command.
Jaffar

Similar Messages

  • I would like to move datafiles to another Oracle Machine

    Dear All:
    I have two Oracle Server based on Windows XP professional.
    I would like to move datafiles to another Oracle Machine. That is, I want to move datafiles from A server to B server.
    Do you know how I can transport these datafiles and how can B server recognize table, metadata, values from datafiles?
    Please help me.
    Sincerely,

    To rodenyli:
    Version is Oracle 10gR2 (first server and second server are same).
    I already create the DB on the second server but SID is different.
    I don't understand what you are saying.
    "Is the instance name the same?"
    I didn't create any tablespace and datafile on the second server.
    For example, the datafile name of the first server is ABCD.DBF. and I want to transport the second server. but the second server doesn't have any tablespace and datafile.
    Please let me know in this case.
    Thank you,

  • Create new DataFile in another partition??

    Hi,
    I used database oracle10g, and I set (oradata) in partition (C) and i want to load large data on database but i haven't enough space in this partition .
    Can I create new DataFile in another partition like partition (D) ???
    And if yes, will it effect in the Performance the Database ???
    Thank For Replay

    user12254348 wrote:
    Hi,
    I used database oracle10g, and I set (oradata) in partition (C) and i want to load large data on database but i haven't enough space in this partition .
    Can I create new DataFile in another partition like partition (D) ???
    And if yes, will it effect in the Performance the Database ???
    Thank For ReplayDepends on a lot of things:
    1- D and C are physically separated disks OR there are part of the same physical disk but logically separated ?
    2- Where are located your system datafiles, controlfile, logfile, indexes?
    3- Are you using ASM?
    It depends a lot of your storage and database design.
    I suggest you test and compare the performance using AWR reports and view Oracle statistics via the Windows Performance Monitor (perfmon)..

  • How to import a table from another oracle database ?

    Hi all ,
    i could like to use pl/sql to import one table from another oracle database server ?
    is it possible to do this ?
    A server B server
    table: test <------------------------> table : newtest
    the tns profile already configurated . the connection is ready .
    thanks a lot !
    Best Regards,
    Carlos

    if i don't have TEST table on server B whether COPY command will create this table on server B with the same structure ? If you specify CREATE as a clause the table will be created:
    SQL> help copy
    COPY
    COPY copies data from a query to a table in a local or remote
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                APPENDCREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[password]@connect_identifier

  • How to move data from one database to another oracle database

    Hi
    All,
    AIX 5.3
    Oracle 10.2.0.3
    I want to move data between one oracle database to another oracle database.
    I know two method those are
    export/import
    dblink
    is there any other way I can move data?
    Thanks,
    Vishal

    I know below methods. However, using a perticular method is based on volume and type of data.
    1. imp/exp
    2. impdp/expdp
    3. SQL COPY command
    4. Transportable tablespace mathod
    5. dblink
    6. Export to flatfile and then use SQL Loader
    7. Oracle Migration Workbench
    Cheers
    Sameer

  • 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

  • Can i use App schema from another Oracle database.

    Hi everyone,
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    Regards,
    Kashif.

    user10485983 wrote:
    Please update your forum profile with a real handle instead of "user10485983".
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    You can (using database links), but this will generally result in even poorer performance (unless by "another Oracle database" you mean using RAC?)
    It sounds more like you either need to upgrade your systems, or refactor your applications to have a smaller performance footprint.

  • Can I define tables/views of another oracle database as data sources in DBI?

    Hi!
    Assuming I created a dblink between an Oracle EBS database and another oracle database and I wish to create custom dashboards and reports in Oracle Daily Business Intelligence, will the tables/views from the another oracle database be allowed as the data sources?
    Thanks.

    Pl do not post duplicates - Can I read data from other database and tables in Oracle Daily Business Intelligence?
    Whether the custom tables are in the same database or a separate database is a trivial issue - a database link and local synonyms can easily mask where the tables are located.

  • Migration from one oracle DB to another Oracle DB

    Hi ,
    We are migration data from one oracle DB to another Oracle DB. Lets take it as DB1 and DB2.
    Both are having many tables and many columns. So some tables contains common columns with different data types and same datatype with different datasize.
    I am trying to map the columns in both the DB's. Then I will retrieve what are the equal columns and what are columns have difference in data types and datatype lengths.
    for Eg : Please find the below tables and the structures.
    DB1                                                              DB2
    EMP                                                             EMPLOYEE
    ENO   VARCHAR2(10)                                  EMP_NO  Number(8)
    ENAME  Varchar2(25)                                   EMP_NAME  Varchar2(20)
    SAL   NUMBER(8)                                        JOb    VARCHAR2(20)
    Description  BLOB/CLOB                              Department   Varcgar2(20)
                                                                       SAL  number(8,3)
                                                                       JOB_DESC  varchar2(30)
    I would like to migrate DB1 to DB2
    Here I found the differences as follows.
    1. There is relation between EMP and EMPLOYEE tables.
    2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
    3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
    So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
    Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
    Thanks,
    Vas 

    So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
    No such 'automation code' exists. You need to write your own mapping functions and exception handling processes.
    Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
    Finish what you started. The most important step you can take is to create a Functional Requirements document that includes, at a minimum:
    1. Mapping of each source table to each target table
    2. Lists of possible errors, or dirty data issues, that might be encountered
    3. The business rules that should be applied to each of those possible errors
    You already made a good start on the mapping for the one table above. And you made a good start of identifying the possible errors:
    2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
    Good - it should be easy for everyone in your org to agree that you can't put 'TEXT' data into a NUMBER column so now you need to document that issue:
    1. Identify data in DB1.ENO that is not numeric
    2. Remove, ignore, fix that data?
    What do the business users want to do with text data in that DB1.ENO column that is not numeric? They need to tell you. They may want a report or excel file that contains that 'dirty' data so they can review and/or fix it. They may want to query that data for themselves. They may want to know where that data came from - especially if the data is all supposed to be numeric.
    3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
    Good - use the same process as above
    1. Identify data in DB1.ENAME that is longer than 20.
    2. Remove, ignore, fix that data? Truncate it?
    Again - it is usually the business users that need to actually determine what should be done. Your job is to identify that 'dirty' data and/or make it available to the business users so they can research it
    You don't need to wait for the business users to actually provide all of those answers. You can begin writing pseudo-code that contains steps to deal with those issues - you just can't write the actual code until you have the answers.
    You can certainly begin writing queries or procedures that look for 'dirty' data. Just based on the two problems you posted you can write queries to find data that has those two issues.

  • Locking datafile problem using oracle agent

    Hi All
    we are facing locking datafile problems when we are taking backups using oracle agent
    in veritas we have selected the option not to lock files when taking backups
    is there any other settng which we have missed so that it doe s not lock files
    regards
    kedar

    If you use a version locking policy, you should use a version field, not reuse your primary key for that. If you map the version field (you don't have to), you need to map it as read only. This makes sense: you don't want the application to change this version field, only TopLink should change it. This is where your exception comes from.
    If you want to use existing database fields for optimistic locking, you should use a field locking policy. It does not make sense to use the primary key for that: it never changes, so you never know when the object has been changed by another user.
    So you can do two things now to fix your code:
    create a version column in your database and use a version policy (preferably numeric) or use a field locking policy and use job and salary, or all fields)
    There is a pretty good description of locking policies in the TopLink guide:
    http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/descun008.htm#CIHCFEIB
    Hope this helps,
    Lonneke

  • How to export a table from one oracle server to another oracle server?

    Hi experts,
    Scenario : Copying table T1 from Server1 to Server2.
    Can I follow any of the following two options. Please advise if these options would be feasible under the current scenario.
    1) Create the same table T1 in Server2. Export the values of T1 in Server1 to an Excel sheet. Make the Excel sheet as source and import the values of the excel sheet to table T1 in Server2.
    2) Use an ETL tool like Oracle Warehouse builder to extract and load the values in T1 in Server1 to T1 in Server2.
    Can we schedule both option1 & 2 as a job in Oracle Warehouse Builder? The job will have 2 steps :-
    a) Delete all rows in T1 (Server2).
    b) Insert the values from T1(Server1) to T1(Server2).
    Please advise.
    Thanks,
    Debashish

    Can you exactly explain a little bit more what is the actual requirement.
    Just to kick off the things..
    In case:
    1) you just need to create a table based on another table in same schema. Its as simple as : create table table2 as (select * from table1)
    2) table1 is on remote db then
    create table table2 as (select * from table1@yourdblink)
    3) Need to export and import table1 refer this link :
    http://wiki.oracle.com/page/Oracle+export+and+import+?t=anon
    4) Need to refresh table periodically either schedule a job or create materialized view refer to this link :
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm
    Choose an approach. Then try it and see what errors you get, In case you get errors search on internet for that error code and how to resolve that and in case need any help post it here. But key is understanding first what exactly your requirement is and which approach you need/want to follow.

  • Help! datafile deleted on oracle 9i under redhat linux

    Please help me, i delete a datafile from a test tablespace and i don't know
    how to fix it on 9i, in 8i is very documented but 9i is a real pain, here
    is the error when 'dbstart'ing the db:
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 353440004 bytes
    Fixed Size 450820 bytes
    Variable Size 167772160 bytes
    Database Buffers 184549376 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 28 - see DBWR trace file
    ORA-01110: data file 28: '/oradata/alumnos/tablespaces/test2.dbf'
    Thank you in advance,
    Otto Solares

    Can you perform a Tablespace Point In Time Recovery on the specific tablespace?

  • Datafile creation in Oracle

    Hi All,
    I am going to create a datafile in Oracle database by using this syntax.
    ALTER DATABASE
    CREATE DATAFILE 'c:\oracle\oradata\orabase\uwdata03.dbf' SIZE 1G
    AS 'UWDATA';
    Does the creation of the datafile will hamper the default datafiles of oracle?

    user11358816 wrote:
    Hi,
    I don't know abt.oracle much ,but i need to create datafile for creating a table space.
    So for that i need to create a datafile.No you don't that's not how it works.
    So for that I am asking about the syntax of it.
    ThanksThen the very first thing you'll want to learn is where to find the official documentation.
    It would be a good investment in your career to go to tahiti.oracle.com. Drill down to your product and version. There you will find the complete doc library.
    Notice the 'search' function at that site.
    You should spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there. Learning where to look things up in the documentation is time well spent on your career.
    Do the same with the SQL Reference Manual.
    Then set yourself a plan to dig deeper.
    - Read the 2-Day DBA Manual
    - Read a chapter a day from the Concepts Manual.
    - Look in your alert log and find all the non-default initialization parms listed at instance startup. Then read up on each one of them in the Reference Manual. Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files, then bounce what you see there in the network administrators manual.
    - Read the concepts manual again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • Datafile Corrupted in Oracle 9i

    Hi all,
    How to recover the particular data file in oracle 9i. The data file is corrupted
    Note: Even back up data also corrupted.
    when we run the data im getting error msg.
    ORA-00376: File 13 cannot read at this time
    ORA-01110: data file 13: 'E:\ORACLE\ORADATA\WMSLIVE\WH1_INDEX.DBF
    cheers
    prabu ammaiappan

    Hello Prabhu,
    One question, the datafile really got corrupted or it simply went offline? Please check that also...
    SQL>select distinct status from v$datafile;
    SQL>col name for a50
    SQL>select file#,name,status from v$datafile where status not in ('ONLINE','SYSTEM');And do a DBVERIFY on the said datafile...
    C:\>dbv file=E:\ORACLE\ORADATA\WMSLIVE\WH1_INDEX.DBF blocksize=8192Paste the results of above queries and DBVERIFY
    Edited by: Mahesh Menon on Aug 28, 2011 8:33 AM

  • Missing datafile after cloing oracle EBS from production to test

    Good Day
    I have done a restore from the production system to the test system some time ago . Today I got an error on my test system saying ORA-00376: file 375 cannot be read at this time . After checking I found that the file seems to be missing on the test environment .
    SQL > select file_name from dba_data_files where file_id=375 ;
    /gldb11i/devdb/9.2.0/dbs/MISSING00375
    So I got the name from production and since the file seems to be avilabe in test I did the rename as follows :
    SQL> alter database rename file '/gldb11i/devdb/9.2.0/dbs/MISSING00375' to '/gld
    b11i/oradevd/oradata/dev/gld16.dbf' ;
    Database altered.
    But when I tryed to recover the file I got the error .
    SQL> recover datafile '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01122: database file 375 failed verification check
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01206: file is not part of this database - wrong database id
    Ofcourse that is becuse my test dataabse was renamed from production name fmprod to test name fmdev .
    Is there any way to recover the file ? . I have all the archive logs avilable . Can nid change the database id in the file if it is only one file ?
    Why did I not get any errors when I was doing the post cloneing process ?
    Please note my databse is versio 9.2.0.6
    Many thanks to all

    1. Use Transportable feature to transport the remaining datafile from production to test.
    How can I do that without stopping production or making it read only .
    2. Reclone only that tabespace from Production to test.
    How , I used the oracle provided scripts for the cloning process ie . adcfgclone.pl
    3. Depending on the size of data contents, manually drop and recreate the tablespace in test, export contents from Production, import into test.
    I am worried about the data consistancy . Will the database be consistant it I do that there might be tables on other tablespaces related to this tablespace
    Thanks

Maybe you are looking for