Docker安装Oracle12C,导入dmp文件出现ORA-12170错误

oracle版本为 sath89/oracle-12c

oracle基本信息

hostname: localhost
port: 1521
sid: xe
username: system
password: oracle

imp yyy/yyy@xe file=/test.dmp full=y 出现了错误:

IMP-00058: 
ORACLE error 12170 encountered 
ORA-12170: TNS:Connect timeout occurred 
IMP-00000: Import terminated unsuccessfully

原因是 oracle添加了ORACLE_SID环境变量,imp命令中去掉@xe就可以了。

posted @ 2019-05-17 09:08  somliy  阅读(1471)  评论(0编辑  收藏  举报