HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Can you time how long an Oracle import takes?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
canyoulongtimehoworacletakesimport

Problem

I'm on a Windows machine with Oracle Client 11.1.0, and am going to import a database dump. I'm importing from the command line with the "imp" command.

Is there an option to time how long the import takes? I've searched around but haven't found anything for that yet.

Thanks in advance!

Solution

If you just want to time how long it takes, you could call it via a batch file like this:

echo %DATE% %TIME% >> time.log
imp parfile=./file.par etc etc
echo %DATE% %TIME% >> time.log


Once everything has run through, have a look at the time.log file and work out the difference between the 2 values.

Code Snippets

echo %DATE% %TIME% >> time.log
imp parfile=./file.par etc etc
echo %DATE% %TIME% >> time.log

Context

StackExchange Database Administrators Q#24039, answer score: 3

Revisions (0)

No revisions yet.