Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need help with exp and imp command syntax and are dmps valid backups?

Posted on 2006-06-16
1
Medium Priority
?
1,189 Views
Last Modified: 2008-03-06

I take a dump of the database every 6 hours.  Each dump gets a different name.  Next day's dumps overwrite the previous day's dmps.

Here is the syntax I use in a bat file
exp Bubba/password@database File=D:\database\Export\2200.dmp LOG=D:\database\Export\2200.log OWNER=User

Do I need to login "as sysdba" to do the export.  Export using the line above works fine.

Maybe the more relevant question is what imp command do I need?  

IMP system/system@MBA FROMUSER=Bubba TOUSER=Brent FILE=D:\Database\Export\2200.dmp LOG=IMP_MBA.LOG

Are there any requirements for the FROMUSER or the TOUSER in relation to the Owner parameter I used in the export?  Do I need to login "as sysdba" to do the import.  Does it matter which user name I log in as into the target db.

It takes a couple of minutes for the export to run.  During that time the db is available, and it is possible for a process to occur that updates multiple tables.  Transaction updates Table A & Table B.  If the export process has already exported table A when the transaction occurs, will Table B still be updated eventhough Table A isn't?
0
Comment
Question by:averyb
1 Comment
 
LVL 25

Accepted Solution

by:
jrb1 earned 2000 total points
ID: 16923226
No, you don't have to run as SYSDBA.  When importing, you'll have to have access to the schma you're importing to (the TOUSER).  Also may need to be able to create tablespaces.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

971 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