我有一个从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 !
发布评论
评论(1)
多功能体系结构数据库的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.