Link to home
Start Free TrialLog in
Avatar of micbuchanan
micbuchanan

asked on

Using Oracle data Pump in scripts without password?

I would like to use impdp in a shell script without using the sys password.  I am setting the Oracle SID in the script before using "impdp / DUMPFILE=dmp1.dmp, dmp2.dmp PARALLEL=2 LOGFILE=dmp.log FULL=y".
Avatar of OP_Zaharin
OP_Zaharin
Flag of Malaysia image

- to run the script without any password, you will need to run it as the OS User that is in the “DBA”/"ORADBA" group of the OS, and just uses ‘/ as sysdba’ in the script:

expdp '/ as sysdba' DUMPFILE=dmp1.dmp, dmp2.dmp PARALLEL=2 LOGFILE=dmp.log FULL=y
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 500 points for slightwv's comment #a38287369

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
points should be divided or not only given to an expert who agrees with a given comment
the given comment should at least be accepted too