How to import the datafiles from one database to another

Hi,
I have got some datafiles from the existing database(Consider it as Database A), but it has been removed as of now.
I am having the datafiles and control files of it.
I have freshly installed one oracle Database(database B), I am planning to load those datafiles in the newly installed
database.
Is it possible, if so wat is the procedure.
Both the databses are Oracle 11g.
Help me out of this.
Thanks.
Regards
Gatha

Hi,
As you said that you have data files and Control files, then using import quite no possbile, but you need to do it manually (as it exits in the Source System in same path).
Initially, you copy these files from the Source System to Destination System that is
Data Files and Control Files
Next, you will get the DBID from the controlfile backup is you have Example :-
CTL_SP_BAK_C-1507972899-20070228-00, then " 1507972899" is the DBID,
Try to use the RMAN for this
example :-
Open the rman
set dbid 1507972899
then you need to build the initilizaition file to start an instance based on the Configuration
or Copy the spfile from the back from source system if exits.
Startup the DB in mount mode.
You might get the error
ORA-01078: failure in processing system parameters
Now restore spfile from 'backup path' where you have copied files
startup force nomount
Now the instance is started
connect to DB as sysdba
check the control file parameter values and online redo Log files paths (Log_Archive_dest)
Restore the old control file from backup, since the new instance must the know where the files are located
restore controlfile from 'backup path'
then shutdown the DB
start in mount mode
restore the DB - restore database
Note: Recovery is dependent on the available archived (and online) redo logs.
Final step will be Alter database open resetlogs;
- Pavan Kumar N

Similar Messages

  • 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 Copy the PLD from one database to another

    Dear Members,
       i have designed the  PLD for Purchase Order, i want to copy the particular PLD into another Database.
    i tried to copy the PLD from one database to another through copy express.. i copied the PLD sucessfully. But the problem is,it copies all PLD's from one database to another. i want only the Purchaseorder PLD has to be copied in to another database.any body can help me in this regard.
    With Regards,
    G.shankar Ganesh

    Hi,
    select * into A1 from RDOC where Author !='System'
    select *  into A2  from  RITM   where Doccode  in (select Doccode from A1 )
    select * from A1
    select * from A2
    sp_generate_inserts 'A1'
    sp_generate_inserts 'A2'
    you will get Insert scripts of A1 and A2 tables .After that You 'll  Replace A1 to RDOC and A2 to RITM.
    So that you can RUN this SQL srcipts any where (In any Database)
    but First u have to run sp_generate_inserts  Storeprocedure(from websites) .
    drop table A1,A2

  • 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.

  • OpenScript: 1.     How to move the scripts from one location to another location. in OpenScript; Copy, paste or Import, export

    How to move the scripts from one location to another location. Copy, paste or Import, export

    Both way you can do.. Difference is - if you copy paste to another folder script dependencies will not move with the same( ie Assets added), whereas if you export and import the script all dependencies will be correlated automatically

  • How to transfer the logins from one instance to another instance in sql2008r2

    how to transfer the logins from one instance to another instance in sql2008r2

    Hi Ganesh,
    According to your description, you want to know how to transfer the logins from one instance to another instance for SQL Server 2008 R2. To do this, besides dave’s post, you could also use
    'Copy Database Wizard' in SQL Server Management Studio, or the component
    'transfer Login task' in SQL Server Integration Services.
    Regards,
    Michelle Li

  • How to mirror the screen from one ipad2 to another ipad2?

    How to mirror the screen from one ipad2 to another ipad2?
    When writing in f.ex. Pages on one iPad i wish to see it in realtime on the other ipad.
    How is that done???

    That functionality is not built into the iPad, so you'd need a third-party app of some sort. I'm not aware of any app that allows mirroring from one iPad to another iPad, but perhaps someone else will know of something I've missed.
    Regards.

  • How to Transfer the iPhone from one computer to another Win XP

    All
    I got my wife a new macbook pro, running Windows XP prof. She has an iphone 3G with 16 GB memory running 3.0.1. So..she wanted to transfer the sync function from her PC to her macbook. Of course, Apple was of NO help at all (but did want to charge us $69.95 since her iphone is out of warranty, and this was an iphone not a mac problem, hmmm..). Took me lots of digging, but here is how you transfer you iphone from one computer to another:
    1. Move you itunes library from the old computer to the new one. To do this, you do NOT just copy it. This is as good a link to use as any to see how to do it, but search the internet and you can find instructions:
    http://reviews.cnet.com/8301-12519_7-10242259-49.html
    2. Transfer your applications you have purchased to the new computer. To do this, open itunes in the new computer, hook up your phone and click on File>transfer purchases (from itunes store) to computer. This will move your applications to the new computer.
    3. Export your MS outlook calendar, contacts, notes, etc. to the new computer by saving each of these categories as a PST file (file>export>then choose the category and type of file)...and then copy these PST files to your new computer and import them into MS outlook.
    4. Copy your playlists from itunes on your old computer to your new computer. This link may be helpful or search the internet again if you need to:
    http://osx.tribe.net/thread/08fd0e5e-f1d0-450b-8de5-9f7cb5bd278d
    5. Now...the important part...how to transfer all your settings from the iphone to the new computer....this is the part that was hard to find online, but finally got it: NOTE: THE BACKUP THAT ITUNES MAKES BACKS UP THE APPLICATION SETTINGS BUT NOT THE APPS SO THIS IS WHY YOU NEED TO TRANSFER THE APPS TO THE NEW COMPUTER. The settings have all the data you put into your apps, email settings, preferences, etc...so its a huge time save to transfer these to the new computer also.
    -Sync your iphone with your old computer to have a backup in case you mess up...in that case you can restore from your old computer and start over
    -Plug your iphone into the new ocmputer and start itunes. It will detect your phone (I assume you have already authorized your new computer to use the library and playlists and apps that you moved)
    -Right click on the "iphone" on the left bar...you will see a popup menu...click on "BACKUP". Let it backup your iphone to the new computer. It will NOT sync the phone
    -When the backup is done....copy the backup file to a temp directory to be safe. The backup is located in "documents and settings">user name>applications>apple computer>mobile sync. If you cannot see it, you need to open windows explorer (not internet explorer) and go to tools>folder options>view and click on "show hidden files and folders" Note YOU CANNOT JUST COPY THE BACKUP FROM THE OLD COMPUTER TO THE NEW COMPUTER AS SUGGESTED ON SOME WEB SITES...THIS DOES NOT WORK, ITUNES WILL NOT IDENTIFY THE BACKUP EVEN IF YOU PUT IT IN THE FOLDER IN THE NEW COMPUTER THAT MIRRORS THE FOLDER LOCATION IN THE OLD COMPUTER.
    -OK now you are ready...click restore on the iphone and restore the phone to factory settings. This will happen in a few minutes (10-15 mins).
    -The phone will reboot and itunes will recognize the phone again...as a restored phone. It will then ask you if you want to restore it from the backup..say YES. You then need to go through all the itunes tabs and click on everything you want to sync to the phone (playlists, movies, podcasts, ringtones, etc). Once you are done going thru the tabs click "apply" and the sync will start. Go out, to a movie, to bed, whatever because it will take hours to sync.
    -Once the sync is done...voila...your iphone has been moved with ALL the settings to the new computer. Check it. Then you can delete the backup you put into the temp folder if it is OK
    -Deauthorize your old computer
    This worked for Win XP...should work for Vista. The whole process took many hours so don't rush through it (i'm guessing 12 hours total work).
    Can I send apple a bill for tech support?????

    All
    I got my wife a new macbook pro, running Windows XP prof. She has an iphone 3G with 16 GB memory running 3.0.1. So..she wanted to transfer the sync function from her PC to her macbook. Of course, Apple was of NO help at all (but did want to charge us $69.95 since her iphone is out of warranty, and this was an iphone not a mac problem, hmmm..). Took me lots of digging, but here is how you transfer you iphone from one computer to another:
    1. Move you itunes library from the old computer to the new one. To do this, you do NOT just copy it. This is as good a link to use as any to see how to do it, but search the internet and you can find instructions:
    http://reviews.cnet.com/8301-12519_7-10242259-49.html
    2. Transfer your applications you have purchased to the new computer. To do this, open itunes in the new computer, hook up your phone and click on File>transfer purchases (from itunes store) to computer. This will move your applications to the new computer.
    3. Export your MS outlook calendar, contacts, notes, etc. to the new computer by saving each of these categories as a PST file (file>export>then choose the category and type of file)...and then copy these PST files to your new computer and import them into MS outlook.
    4. Copy your playlists from itunes on your old computer to your new computer. This link may be helpful or search the internet again if you need to:
    http://osx.tribe.net/thread/08fd0e5e-f1d0-450b-8de5-9f7cb5bd278d
    5. Now...the important part...how to transfer all your settings from the iphone to the new computer....this is the part that was hard to find online, but finally got it: NOTE: THE BACKUP THAT ITUNES MAKES BACKS UP THE APPLICATION SETTINGS BUT NOT THE APPS SO THIS IS WHY YOU NEED TO TRANSFER THE APPS TO THE NEW COMPUTER. The settings have all the data you put into your apps, email settings, preferences, etc...so its a huge time save to transfer these to the new computer also.
    -Sync your iphone with your old computer to have a backup in case you mess up...in that case you can restore from your old computer and start over
    -Plug your iphone into the new ocmputer and start itunes. It will detect your phone (I assume you have already authorized your new computer to use the library and playlists and apps that you moved)
    -Right click on the "iphone" on the left bar...you will see a popup menu...click on "BACKUP". Let it backup your iphone to the new computer. It will NOT sync the phone
    -When the backup is done....copy the backup file to a temp directory to be safe. The backup is located in "documents and settings">user name>applications>apple computer>mobile sync. If you cannot see it, you need to open windows explorer (not internet explorer) and go to tools>folder options>view and click on "show hidden files and folders" Note YOU CANNOT JUST COPY THE BACKUP FROM THE OLD COMPUTER TO THE NEW COMPUTER AS SUGGESTED ON SOME WEB SITES...THIS DOES NOT WORK, ITUNES WILL NOT IDENTIFY THE BACKUP EVEN IF YOU PUT IT IN THE FOLDER IN THE NEW COMPUTER THAT MIRRORS THE FOLDER LOCATION IN THE OLD COMPUTER.
    -OK now you are ready...click restore on the iphone and restore the phone to factory settings. This will happen in a few minutes (10-15 mins).
    -The phone will reboot and itunes will recognize the phone again...as a restored phone. It will then ask you if you want to restore it from the backup..say YES. You then need to go through all the itunes tabs and click on everything you want to sync to the phone (playlists, movies, podcasts, ringtones, etc). Once you are done going thru the tabs click "apply" and the sync will start. Go out, to a movie, to bed, whatever because it will take hours to sync.
    -Once the sync is done...voila...your iphone has been moved with ALL the settings to the new computer. Check it. Then you can delete the backup you put into the temp folder if it is OK
    -Deauthorize your old computer
    This worked for Win XP...should work for Vista. The whole process took many hours so don't rush through it (i'm guessing 12 hours total work).
    Can I send apple a bill for tech support?????

  • Simple: How to copy a Table from one Database to another?

    I already know how to do it by creating an identical table and then inserting the Data.
    Like so:
    SET IDENTITY_INSERT dByDtMinusC5 ON
    INSERT INTO [DB1]..T1 ([Id], [HbyD] , [K] )
    SELECT [Id], [[HbyD]]] ,[K] FROM [DB2]..T2
    As you can see I need to have T1 in order to copy T2 into DB1. Is there any way that I could auto create T1 and copy T2?
    There are so many forums in sql server Category, I hope I posted in the right one :0 . We need tag system for forums.   

    Hi Bhupinder,
    According to your description, you want to copy a table with Primary keys from one database to another database.
    As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
    Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
    To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
    and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
    References:
    Transfer SQL Server Objects Task
    Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to transfer the indexes from one DB To another DB

    Hi All,
    I have one question.I have to transfer all the database object from one database to another. and I have transfer it.Now I have to create an index on that tables then how can i know on which columns that indexes were created.and How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.
    Thanx in advance.

    user13310428 wrote:
    How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.You have to use the DDL (create index/create table with index constraints/etc) commands to create indexes.
    You cannot "+transfer+" the index data like you can table data. The reason is that indexes contains the physical address of the rows indexed. These addresses are different on the new database - and thus make the index data on the old database useless. Instead, you need to re-create the indexes so that the new row addresses can be determined and used by the index.

  • How to Add Sales order from one database to another database

    Hi All,
    I am trying to add sales order with sales order object.
    I have completed connectivity from one database to another database.
    but i am unable to post sales order with orders object.
    My code is
    ObjSales = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                ObjSales.DocDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.DocDueDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.TaxDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.CardCode = "C0006"
               ObjSales.Series = 92
                ObjSales.PaymentGroupCode = 3
                ObjSales.Comments = "vivek"
               ObjSales.Lines.Add()
               ObjSales.Lines.SetCurrentLine(1)
               ObjSales.Lines.ItemCode = "5127"
               ObjSales.Lines.Quantity = 100
               ObjSales.Lines.UnitPrice = 10
               ObjSales.Lines.WarehouseCode = "01"
                ObjSales.Lines.TaxCode = "0"
                ObjSales.Lines.DiscountPercent = "0.00"
                ObjSales.DocTotal = 1000
                 If ObjSales.Add <> 0 Then
                   objMain.objApplication.SetStatusBarMessage("Sales or Not Posted", SAPbouiCOM.BoMessageTime.bmt_Short, True)
                   Exit Sub
                else
                  objMain.objUtilities.ShowSuccessMessage("Sales Order Posted successfully")
                End If
    The above code is executing successfully.But the Sales order is not getting added.
    Thanks in advance.

    Hi Vivek,
    If the code you posted is not throwing any errors, then the order really does get created. Apparently just not to both databases, am I correct ?
    vivek.Y wrote:
    > I have completed connectivity from one database to another database.
    That means that apparently you have not gotten this bit right.
    Generally speaking if you want to create an order into two databases, you first need to connect to both databases and create separate order objects for each database. So you need to do this bit twice; once for each database. Something like this:
    ObjSales1 = objMain.objUtilities1.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    ObjSales2 = objMain.objUtilities2.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    Then at the end you also need to add both objects separately:
    If ObjSales1.Add <> 0 Then
    etc.
    If ObjSales2.Add <> 0 Then
    etc
    Good luck,
    Johan

  • HOW TO - move a datafile from one disk to another ?

    How can we move a datafile which is part of the big tablespace to another disk.
    We have added new Disk to our server - OS windows 2000 / Oracle 9i - 9.2.0.5
    We want to move a datafile from D drive to F drive.
    Shutdown of the database is possible.
    Thanks
    SS

    I want to do the same thing but i have a BW database (SAP) and i want to move the datafile form one mount poitn to another due to space constraint, but i want to use BR*TOOLS utility to do this, so can anyone help me out on this on how to do this, what are the precaution need to be undertaken.
    Jafar

  • How to compare the files from one server to another

    Hi !
    I want to compare the files present in one server to another server. I had to list out the files which is not present in the server and import those files to an excel file. There are lot of folders and lot of files present inside those folders. I want a java or jsp or javascript program code for this or any site which indicates how to do. What are the requirement for this program to implement like any tool or any other techniques. Please can u help me out.

    No ... The package mentioned in
    http://www.oracle-base.com/dba/miscellaneous/ftp.pks
    this works for across the server i.e. transfer the files from one server to other (it is basically ftp) ..
    So it is NOT correct that this code transfer the file between two location & with in server..

  • How to setup the Hyperlink from one page to another page

    Hi,
    I am new to Oracle APEX. My requirement is to setup a Hyperlink from one page to another page.
    Currently I am displaying 4 columns in the report of Page 1. The report is like below,
    Survey Response Count_of_Cities City_Name
    AB Y 2 LONDON,CHICAGO
    AB N 3 DELHI,MUMBAI,CHENNAI
    AC Y 1 LONDON
    AC N 4 TOKYO,HONGKONG,BANGALORE,HYDERABAD
    But the revised requirement is I need to show the City_name in another page i.e. Page 2 when the user clicks on value of the Count_of_Cities. i.e. If the user clicks on 3, In page 2 the values should be appear like below
    DELHI
    MUMBAI
    CHENNAI
    If I click on the 4, the values in the page should be like below,
    TOKYO
    HONGKONG
    BANGALORE
    HYDERABAD
    Currently in Page 1 I am hiding the City_Name and created a Hyperlink on Count_of_Cities. When clicked on Count_of_Cities it is navigating to Page 2. But the values for City_Name are not showing properly.
    Please sugegst how I can show the City_Name values in page 2?
    Please let me know if you require any additional information.
    Please provide the solution. The requirement is urgent.
    Thanks in Advance
    Edited by: 980540 on Jan 9, 2013 3:08 AM

    I got the answer on my own.

  • How to import only sequences from one user to another user

    Hi...all,
    I want to import from one user to another user only sequences. Can anybody please guide me in this regard.
    Thanks in advance
    pal

    What DB version do you use?
    I don't know if dbms_metadata is present on oracle 9i but I'm quite sure that to_char(CLOB) is supported only on 10g, so you should find onother way to get the clob.
    You could also determine the extract ddl script with this script that runs on older versions as well:
    select 'CREATE SEQUENCE "'||USER||'"."'||
         SEQUENCE_NAME||'" MINVALUE '||MIN_VALUE||' MAXVALUE '||
         MAX_VALUE||' INCREMENT BY '||INCREMENT_BY||' START WITH '||LAST_NUMBER||
         DECODE(CACHE_SIZE,0,' NOCYCLE ',' CACHE '||CACHE_SIZE)||
         DECODE(CYCLE_FLAG,'N',' NOCYCLE ',' CYCLE ')||
         DECODE(ORDER_FLAG,'N',' NOORDER ',' ORDER ')||';'
    from user_sequences;What sql client did you use?
    I don't get empty rows with sql navigator and sql plus.
    Bye Alessandro

Maybe you are looking for

  • Question regarding generics and collections

    Hi, I am stuying the Sierra and Bates book for SCJP. One particular answer to a question in it is puzzling me at the moment: Given a method as public static <E extends Number> List<E> process(List<E> nums) A programmer wants to use this method like t

  • Updated my iPhone 4s to 6.0.1 and iTunes on my mac to 7.0 now itunes doesn't work

    Updated my iPhone 4s to 6.0.1 and iTunes on my iMac to 7.0 now iTunes doesn't work. My iMac and iPhone will not sync. It just says waiting to start sync, step 1 of 6 for hours. Any ideas?

  • How can I pass/add these results in my Main query's column

    Hello Experts I'm working on a subquery. My subquery works fine and give the results what I need. But how can I pass/add these results in my Main query's column 'MGRNAME'. Here is my query select pc.c_id "Project ID", cn.c_id "Client ID", cn.c_last "

  • More than 10 cards in a Snapshot Query

    Can the 5.0 UI be changed to allow more than 10 cards to appear in a Snapshot Query? 10 is currently the largest value available in the dropdown.

  • Error : Model ISR_ not available

    Hello folks, I'm trying to generate standard webdynpro component FMCA_WDY_RETURN(Process Individual Tax Return). And iam not able to generate it. It gives me a error reading "Model ISR_ not available". Can someone explain me what it is and what could