Solved

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

Posted on 2006-06-16
1
1,092 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 500 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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

747 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

8 Experts available now in Live!

Get 1:1 Help Now