patternMinor
Can you time how long an Oracle import takes?
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!
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:
Once everything has run through, have a look at the time.log file and work out the difference between the 2 values.
echo %DATE% %TIME% >> time.log
imp parfile=./file.par etc etc
echo %DATE% %TIME% >> time.logOnce 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.logContext
StackExchange Database Administrators Q#24039, answer score: 3
Revisions (0)
No revisions yet.