初学oracle, 在电脑上安装了Oracle 10g 后用sqlplus登录一切正常 . 但当安装完Oracle 10g client后,问题出现了,用sqlplus登录时反复提示:could not resolve the connect identifier specified, 但用客户端工具如sqldeveloper连进去,一点问题都没有!
然后查了ORACLE的文档, 说明如下:
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.
所以根据文档我反复检查TNSNAMES.ORA 文件的内容及配置Net Manager,怎么弄问题还是一样。
突然想到环境变量的问题,果然发现我当前的环境变量设置的不对, 可能是因为安装oracle client 引起的。
当我们用比如sqldeveloper连数据库时 它不依赖于系统的环境变量, 所以没问题
啊 ! 苦难终于度过了, 见光明。。。。。 Thanks Godness!
继续以后的学习
分享到:
相关推荐
按官方配置好了 developer.... Could not resolve com.huawei.agconnect 解决方法:把相应的插件用本地化安装 agconnect-crash-symbol-lib-1.6.1.300.jar agconnect-apms-plugin-1.6.1.300.jar agcp-1.6.1.300.jar。
hive 开发UDF 使用maven工程 引发jar包缺失 hive 开发UDF 使用maven工程 引发jar包缺失
myeclipse创建maven工程报错 Could not resolve
总的来说,遇到“Could not resolve all artifacts for configuration ‘:classpath’”这类问题时,首先确认网络环境是否稳定,然后检查和调整仓库设置,选择更可靠的镜像源。此外,保持Android Studio和Gradle版本...
Android Studio更新3.6.3之后出现Could not resolve all artifacts for configuration ‘:classpath’.问题你是否和我一样,只因在人群中多看了他一眼?![在这里插入图片描述]...
在使用Maven构建Java项目时,可能会遇到这样一个错误:“Failed to execute goal on project …: Could not resolve dependencies for project …”。这个错误通常表明Maven在构建过程中遇到了依赖解析问题,无法...
Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'
TensorFlow资源以及具体的用法
主要介绍了解决Unable to access 'https://gitee.com/自己的项目/': Could not resolve host: gitee.com问题,需要的朋友可以参考下
新建maven项目时报Could not resolve archetype org.apache.maven.archetypes
Error:Could not resolve all files for configuration ‘:app:debugCompileClasspath’. > Could not resolve com.android.support:appcompat-v7:26.0.0-beta1. Required by: project :app > Could not ...
所以解决问题之前一定要配置环境变量TNS_ADMIN path添加;E:\PLSQL Developer(64)\instantclient_11_2 配置环境变量就是为了让PL/SQL Developer打开时加载到tnsnames.ora文件的内容 配置pl/sql的Datab
1、解决 不能初始化“xxx”,你确认已经安装了32位Oracle ...2、解决 ORA-12154:TNS:could not resolve the connect identifier specified (TNS:无法解析指定的连接标识符) 3、不用配置plsql中的OCI路径 4、含配置文档
1. “Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified”:检查TNS_ADMIN环境变量和tnsnames.ora配置是否正确。 2. “Could not load file or ...
Eclipse Maven 创建Web 项目报错 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap 之前找了很久才找到了,传上来更大家共享下,希望对大家有帮助,欢迎下载或者永久保存。
然而,在实际操作过程中,用户可能会遇到诸如“Microsoft OLE DB Provider for ODBC Drivers 错误'80040e4d'[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified”的问题,即...
在使用MySQL数据库的过程中,可能会遇到“mysql could not be resolved: Name or service not known”的警告,这通常是由于MySQL在尝试反向解析客户端IP地址时失败导致的。这个问题与MySQL配置中的`skip-name-...
`org.hibernate.QueryException: could not resolve property: isStudent of: com.zluo.hibernate.po.User [from com.zluo.hibernate.po.User u where u.isStudent = ?]` 当时就在想怎么会出现这个错误呢,
当尝试连接到Oracle数据库时,如果出现类似于“ORA-12541: TNS:no listener”或“ORA-12154: TNS:could not resolve the connect identifier specified”的错误消息时,很可能是由于SID不可用导致的。这种情况下,...