我正在使用来自https://oracle-base.com/articles/19c/minimum-viable-oracle-database-19c-installation-on-ol8#download-software的安装程序来完成以下操作:
sqlplus / as sysdba <<EOF
alter session set container=ORCLPDB1;
create user testuser1 identified by testuser1 quota unlimited on users;
grant connect, resource to testuser1;
exit;
EOF登录到DB是成功的:
sqlplus testuser1/testuser1@//localhost:1521/ORCLPDB1但是在设置了一个ora2pg.conf文件之后:
ORACLE_DSN dbi:Oracle:host=localhost;service_name=ORCLCDB;port=1521
ORACLE_USER testuser1
ORACLE_PWD testuser1...I无法登录。我试过了
service_name=ORCLCDB (在tnsnames.ora中)和service_name=ORCLCDB1在ORACLE_DSN中。ORCLCDB等待一点点,然后失败;ORCLCDB1在以下几个方面快速失败:FATAL: 12514 ... ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)ora2pg.conf是来自dist版本的副本,仅更改了DNS、USER和PWD。
有什么想法吗?
发布于 2021-10-06 23:03:19
可插拔数据库的服务名称是ORCLPDB1,所以使用它而不是CDB服务名称(ORCLCDB):
ORACLE_DSN dbi:Oracle:host=localhost;service_name=ORCLPDB1;port=1521
ORACLE_USER testuser1
ORACLE_PWD testuser1https://stackoverflow.com/questions/69473541
复制相似问题