• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1618
  • Last Modified:

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".
2 Solutions
- 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
Geert GruwezOracle dbaCommented:
you don't need to import (or even export) with the sys user
this is only upon oracle support request

you can setup a user with grants for the full export
or with specific grants
slightwv (䄆 Netminder) Commented:
I agree, you should not import as sys.

You can set up OS Authentication and use '/' without 'as sysdba'.

Steve WalesSenior Database AdministratorCommented:
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.
Geert GruwezOracle dbaCommented:
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

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now