ORA-12171: TNS:could not resolve connect identifier: string ORACLE 报错 故障修复 远程处理
ORA-12171: TNS:could not resolve connect identifier: string
Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
Action:
If you are using local naming (TNSNAMES.ORA file):
Make sure that TNSNAMES is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
If you are using directory naming:
Verify that LDAP is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
Verify that the LDAP directory server is up and that it is accessible.
Verify that the net service name or database name used as the connect identifier is configured in the directory.
Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
If you are using easy connect naming:
Verify that EZCONNECT is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
Make sure the host, port and service name specified are correct.
Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.
ORA-12171错误表明当尝试连接到一个数据库实例时,Oracle服务无法找到有效的连接标识。这可能是由于服务名不正确或不确定,或提供的TNS连接字符串不正确,或遇到了有关TNSNames.ora文件的问题,如文件路径不正确,文件权限不正确,文件不可达,文件名写错等情况。
ORA-12171表明Oracle服务无法找到有效连接识别符。
这是一个可以恢复的错误,可能是由于服务名不正确或不确定,TNS连接字符串不正确,或者TNSNames.ora文件有问题,如文件不可达,文件名写错,文件路径不正确,文件权限不正确等。
1、错误的服务名:如果使用的服务名与TNSNames.ora中的不一致,则客户端将无法正确识别服务,而ORA-12171将出现。
2、不正确的TNS连接字符串:如果使用的TNS连接字符串不正确,则ORA-12171错误将出现。
3、TNSNames文件路径不正确:如果在由客户端访问的工作站上没有正确设置TNSNames.ora文件路径,则ORA-12171错误将出现。
4、TNSNames文件权限不正确:如果TNSNames.ora文件的权限不正确,则ORA-12171错误将出现。
正常处理方法及步骤1、确定服务名:首先,检查TNSNames.ora文件以确保该服务名存在。
2、确定TNS连接字符串:检查TNS连接字符串是否正确,如果需要修改,那么应当使用正确的TNS连接字符串来替换它。
3、确定TNSNames文件路径:向客户端提出修改TNSNames文件的路径,或者由DBA向客户端添加该路径的访问权限。
4、确定TNSNames文件权限:检查TNSNames文件的写入权限,由DBA给客户端添加写入权限。
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 ORA-12171: TNS:could not resolve connect identifier: string ORACLE 报错 故障修复 远程处理
相关文章
- ORA-01296: character set mismatch between dictionary string and logfiles ORACLE 报错 故障修复 远程处理
- ORA-02009: the size specified for a file must not be zero ORACLE 报错 故障修复 远程处理
- ORA-29321: too many datafiles added since the point-in-time ORACLE 报错 故障修复 远程处理
- ORA-30625: method dispatch on NULL SELF argument is disallowed ORACLE 报错 故障修复 远程处理
- ORA-31435: an error occurred during the purge operation ORACLE 报错 故障修复 远程处理
- ORA-38415: invalid name or datatype for the attribute: string ORACLE 报错 故障修复 远程处理
- ORA-38805: edition is in use ORACLE 报错 故障修复 远程处理
- ORA-48119: error encountered when attempting to remove a file [string] [string] ORACLE 报错 故障修复 远程处理
- ORA-55495: application table with multiple models may not be version-enabled ORACLE 报错 故障修复 远程处理
- ORA-55636: Flashback Data Archive enabled table “string”.”string” has different definition from its history table ORACLE 报错 故障修复 远程处理
- ORA-00204: error in reading (block string, # blocks string) of control file ORACLE 报错 故障修复 远程处理
- ORA-64012: specified path is a directory ORACLE 报错 故障修复 远程处理
- ORA-64013: specified path is not a directory ORACLE 报错 故障修复 远程处理
- ORA-01146: cannot start online backup – file string is already in backup ORACLE 报错 故障修复 远程处理
- ORA-02192: PCTINCREASE not allowed for rollback segment storage clauses ORACLE 报错 故障修复 远程处理
- ORA-07215: slsget: getrusage error. ORACLE 报错 故障修复 远程处理
- ORA-10630: Illegal syntax specified with SHRINK clause ORACLE 报错 故障修复 远程处理
- ORA-13019: coordinates out of bounds ORACLE 报错 故障修复 远程处理
- ORA-14063: Unusable index exists on unique/primary constraint key ORACLE 报错 故障修复 远程处理
- ORA-15270: disk string is not a quorum disk ORACLE 报错 故障修复 远程处理
- ORA-16283: operation not permitted on non-apply instance ORACLE 报错 故障修复 远程处理
- :Oracle:智慧的宝库(oracle大写)
- 灵活运用Oracle触发器类型的技巧(oracle触发器类型)
- Oracle数据库中触发器类型的研究(oracle触发器类型)
- 深入了解Oracle表空间属性,管理数据存储更加精准。(oracle表空间属性)
- Oracle转换日期之妙招(oracle转化日期)
- Oracle数据库实现行转列技术研究(oracle的行转列)
- 探寻Oracle表的创建日期(oracle 表创建日期)
- Oracle 数字运算中的减法运算法则(oracle数字减法)
- 64位Oracle软件卸载指南(64位oracle 卸载)
- Oracle中玩转运算函数,轻松完成高效算法(oracle中运算函数)
- Oracle中如何将日期加一(oracle中的日期加一)
- 困惑Oracle 无法切换日志文件(oracle 不切日志)