可以使用Oracle_SID环境变量连接到数据库吗?

发布于 2025-02-08 15:00:48 字数 468 浏览 2 评论 0 原文

我有一个从oracle10升级到19c的pro*c文件(solaris10 in redhat8中的oracle10 in redhat8中的oracle10)

在oracle10中我使用“ proc userId = aaa/bbb sqlcheck = semantics ... ”来编译。 PC文件,PROC将连接到ORACLE_SID数据库,但是在19c中编译文件时,它报告了“ pcc-02104,可连接到Oracle ”错误,这意味着用户名或密码无效。我将编译命令更改为“ proc userId = aaa/bbb@ccc sqlcheck =语义... ”,然后再次尝试,因为我使用了 @ccc 指定数据库名称。

19c是否不支持使用oracle_sid连接到数据库?如果是,是否有有关它的文档?这个问题只是我的测试,没有官方指示。

谢谢 !

I have a Pro*C file upgraded from Oracle10 to 19c (Oracle10 in Solaris10, 19c in Redhat8)

In Oracle10 I use "proc USERID=aaa/bbb SQLCHECK=SEMANTICS ..." to compile the .pc file, the proc will connect to the ORACLE_SID database, but when compiling the file in 19c, it reports "PCC-02104Unable to connect to Oracle" error, meaning The username or password is invalid. I changed the compile command to "proc USERID=aaa/bbb@ccc SQLCHECK=SEMANTICS ... " and tried again, and it was successful, because I used @ccc to specify the database name.

Does 19c not support using ORACLE_SID to connect to the database? If yes, is there any documentation about it? this problem is just my test, no official instructions.

Thanks !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如若梦似彩虹 2025-02-15 15:00:48

多功能体系结构数据库的ORACLE_SID将始终将您带到容器实例。

您的数据,您的代码将在可插入的数据库中。

Oracle已建议您始终使用该服务来创建连接与SID相当一段时间 - 这是针对任何类型的数据库,而不仅仅是多授予的数据库。

如果您看到此,只有对服务名称的引用,而没有SID上的任何内容。

The ORACLE_SID for a multientant architecture database will always take you to the CONTAINER instance.

Your data, your code will be in a pluggable database.

Oracle has advised for quite some time now that you always use the SERVICE to create your connections vs the SID - and that's for any type of database, not just multitenanted ones.

If you see this Doc, there's only references to the Service name, nothing on SID.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文