ORACLE 12c用JDBC连接PDB用户

oracle12c之jdbc连接可拔插数据库pdb的问题:

    https://blog.csdn.net/gshl0409/article/details/50437013

个人问题:上面的文章提到了配置tnsnames.ora文件的步骤,这是对于没有进行PDB用户配置和创建的人而言的。个人问题主要是JDBC的url写法出错,正常情况下是:

url: jdbc:oracle:thin:@localhost:1521:orcl

但是连接PDB用户的写法不同:

url: jdbc:oracle:thin:@localhost:1521/ORCLPDB

猜你喜欢

转载自blog.csdn.net/qq_38386085/article/details/81064898