1

According to:

https://oracle-base.com/articles/10g/oracle-data-pump-10g#expdp

passing authorization data we have pattern: [user]/[password]@[sid]

How to pass password with at (@) ? Such this is breaking a pattern and not work:

expdp scott/passw@rd@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
user1785960
  • 565
  • 5
  • 17

2 Answers2

2

Quote like this:

expdp scott/\"passw@rd\"@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
btpys
  • 366
  • 1
  • 6
-1

You can always use quotes to isolate those problematic sections.

expdp scott/"passw@rd"@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log

That should work.

Marco
  • 1,172
  • 9
  • 24