Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试为 asp.net 表单使用 oracle 10g 创建数据连接时,我收到错误 ORA-12154 错误。谁能帮我解决这个问题?由于我是 oracle 新手,所以对我来说看起来很难。但与 sqlexpress 的连接工作正常!!
问题是你的 TNS。检查这三个解决方案:
确保“TNSNAMES”列为 Oracle Net 配置文件 (SQLNET.ORA) 中 NAMES.DIRECTORY_PATH 参数的值之一
验证 TNSNAMES.ORA 文件是否存在并且位于正确的目录中并且可以访问。
检查用作连接标识符的网络服务名称是否存在于 TNSNAMES.ORA 文件中。