• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1393
  • Last Modified:

update data from oracle dmp file

I want update data from oracle dmp file is it possible ?

I have two schema’s but I want update only one schema’s data only from dump file



OS           =      windows 2000 server
DB          =      Oracle 9i


amir

0
onlyamir007
Asked:
onlyamir007
  • 4
  • 3
  • 2
  • +1
1 Solution
 
sajuksCommented:
@onlyamir007   problems still exists in the old query?
0
 
sajuksCommented:
onlyamir007,
Check this

Example Import of Selected Tables for a Specific User
=====================================================
In this example, using a full database export file, an administrator imports the DEPT and EMP tables into the SCOTT schema.

Command-Line Method
===================
imp system/manager file=dba.dmp fromuser=scott tables=(dept,emp)

Example Import of Tables Exported by Another User
=================================================
This example illustrates importing the UNIT and MANAGER tables from a file exported by BLAKE into the SCOTT schema.

Command-Line Method
===================
imp system/manager fromuser=blake touser=scott file=blake.dmp tables=(unit,manager)

Example Import of Tables from One User to Another
=================================================
In this example, a DBA imports all tables belonging to SCOTT into user BLAKE's account.
Command-Line Method
===================
imp system/manager file=scott.dmp fromuser=scott touser=blake tables=(*)
0
 
catchmeifuwantCommented:
If you are planning to update it with any existing records it's not possible.

However, you can create a new table import into the database the data and on the basis of the imported record and the data already available in the table you can update using queries.

0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I agree with above: you need to first IMPort the dump (maybe only the tables you need) to another schema, and perform the updateing between the tables. you cannot access directly the dump.

CHeers
0
 
onlyamir007Author Commented:
hi sajuks,

yes that time i though  its working   but  when I check data there was old data  
so its mean its not updating records

Amir
0
 
catchmeifuwantCommented:
where is all this discussion going :-(

me lost here !!!
0
 
onlyamir007Author Commented:
hi catchmeifuwant,

yes your right i'm doing same thing but i wanted 2 do update data from dump file so u mean its not possible ...:(

what I was doing I have 1 backup server and 1 live server.
I want live server should update some tables data 2 backup server
Daily bases .
U can say I want synchronize live server 2 backup server  not full database only few tables.

amir
0
 
catchmeifuwantCommented:
If you want to perform synchronisation you can consider Materialized views for the backup server.

You have the flexibility of refreshing the data at your convenience.

Cheers!
0
 
onlyamir007Author Commented:
is it a software ?

Amir
0
 
catchmeifuwantCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now