1

根据:

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

传递授权数据我们有模式:[user]/[password]@[sid]

如何使用 at (@) 传递密码?这打破了一种模式并且不起作用:

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

2 回答 2

2

像这样引用:

expdp scott/\"passw@rd\"@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
于 2019-09-04T13:40:18.277 回答
-1

您始终可以使用引号来隔离那些有问题的部分。

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

那应该行得通。

于 2019-09-04T13:35:54.643 回答