使用ORACLE_PDB_SID 会自动切换到pdb下,登录前使用sqplus 验证先,
如果pdb有的用户cdb没有,这个功能就不能正常使用了。
#!/bin/sh
source /home/oracle/.bash_profile
export ORACLE_PDB_SID=<urpdbname>
expdp \" / as sysdba\" directory=dir full=y dumpfile=testpdball_1.dmp logfile=testpdballtest_1.log