root@f639f5115e84:/# imp yb_gj_base/zteict2017@xe file=/u01/app/oracle/gj_med_base.dmp full=y ignore=y Import: Release 12.1.0.2.0 - Production on Sat Jan 27 14:39:21 2024 Copyright (c) 1982, 2015, Oracle and/or its affiliates. All rights reserved. IMP-00058: ORACLE error 12154 encountered ORA-12154: TNS:could not resolve the connect identifier specified IMP-00000: Import terminated unsuccessfully

2024-01-27by@794842744-UcEbn&@GPT-4.Model: gpt-4
794842744-UcEbn

root@f639f5115e84:/# imp yb_gj_base/zteict2017@xe file=/u01/app/oracle/gj_med_base.dmp full=y ignore=y

Import: Release 12.1.0.2.0 - Production on Sat Jan 27 14:39:21 2024

Copyright (c) 1982, 2015, Oracle and/or its affiliates. All rights reserved.

IMP-00058: ORACLE error 12154 encountered
ORA-12154: TNS:could not resolve the connect identifier specified
IMP-00000: Import terminated unsuccessfully

Avatar
Avatar

The error message you're seeing indicates that the Oracle import utility (imp) was unable to connect to the database because it could not resolve the TNS connect identifier specified in the command. Here's what you can do to troubleshoot and resolve this issue:

  1. Check TNSNAMES.ORA:
    Make sure that the tnsnames.ora file exists and is properly