Solved

update data from oracle dmp file

Posted on 2004-08-10
10
1,357 Views
Last Modified: 2008-02-01
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
Comment
Question by:onlyamir007
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 33

Expert Comment

by:sajuks
ID: 11760293
@onlyamir007   problems still exists in the old query?
0
 
LVL 33

Expert Comment

by:sajuks
ID: 11760332
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
 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 11760402
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
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 11760534
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
 
LVL 4

Author Comment

by:onlyamir007
ID: 11760540
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 11760571
where is all this discussion going :-(

me lost here !!!
0
 
LVL 4

Author Comment

by:onlyamir007
ID: 11760578
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
 
LVL 12

Accepted Solution

by:
catchmeifuwant earned 100 total points
ID: 11760603
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
 
LVL 4

Author Comment

by:onlyamir007
ID: 11760640
is it a software ?

Amir
0
 
LVL 12

Expert Comment

by:catchmeifuwant
ID: 11760689
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Insert Query Help, part2 6 57
query returning everything 11 87
SQL Database connect change in Access 2015 5 49
Need Distinct Value from Joined Tables in MSSQL 5 51
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now