oracle 帐户下:
expdp dpda/dpda@pdborcl DIRECTORY=dump_dir3 dumpfile=bigdata.dmp logfile=bigdata.log schemas=bigdata
直接执行会报错如下:
UDE-12154: operation generated ORACLE error 12154 ORA-12154: TNS:could not resolve the connect identifier specified
需要增加pdborcl配置:
测试tnsnames.ora的有效性,如果返回OK (0 msec)表示配置成功
[oracle@xqzt admin]$ tnsping pdborcl
TNS Ping Utility for Linux: Version 12.1.0.2.0 - Production on 10-DEC-2015 09:10:34
Copyright (c) 1997, 2014, Oracle. All rights reserved.
Used parameter files:
/data/app/oracle/product/12.1.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xqzt)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =pdborcl)))
OK (0 msec)
完成