Oracle lead DMP File Ora-12154:tns: Unable to resolve the specified connection identifier solution

Source: Internet
Author: User

The fact that TNS cannot be resolved is a common problem in Oracle operations for two reasons:
(1) Oracle server is not installed (generally not recommended for reloading, because Oracle offload is not completely impossible to reinstall)
(2) TNS is not configured

Now this blog gives a solution:

Now let's test if TNS can ping, the interface of success is as follows

(1) Add the following code to the TNS configuration file for the Oracle installation path

# tnsnames.ora Network Configuration File: d:\Oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora# Generated by Oracle configuration tools.ORCL =  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))    )    (CONNECT_DATA =      (SERVICE_NAME = ORCL)    )  )

Where ORCL is my database name, which needs to be configured as needed

(2) Configuring TNS environment variables
Environment variables are similar to the following:

D:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN

Add: Examples of steps for Oracle database restore are given below
1, the testdb.bmp placed in the Dpdump directory, the following path:
E:\app\Administrator\admin\orcl\dpdump

2. Create user
Create user testdb65 identified by "testdb65" default tablespace users Temporary
Tablespace temp;
User authorization
Grant CONNECT,DBA to testdb65;

3. CREATE TABLE Space
CREATE tablespace nnc_data01 datafile ' D:\tablespace\nnc_data01.dbf ' SIZE 500M
Autoextend on NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;
CREATE tablespace nnc_index01 datafile ' D:\tablespace\nnc_index01.dbf ' SIZE 100M
Autoextend on
NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;

4, import BGYHR2 is the source library
IMPDP Testdb65/[email protected] schemas=testdb65 dumpfile=testdb65.dmp
IMPDP Ncjob65/[email protected] schemas=testdb65 dumpfile=testdb65.dmp

Export Scott is the library to export
EXPDP Lfwtrain/[email protected] schemas= Current user dumpfile=expdptest.dmp

Add: The following gives the Plsql developer client connection to remote Oracle with a solution that TNS cannot resolve

See my blog for details: http://blog.csdn.net/u014427391/article/details/56479085

Oracle lead DMP File Ora-12154:tns: Unable to resolve the specified connection identifier solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.