21C OGG,使用
gg> dblogin userid ogg,password oracle
直接就报以下错误:
2022-12-23 17:27:43 INFO OGG-03542 Failed to connect to the database. Verify that the connection string and following environment variables are correct:
LD_LIBRARY_PATH = u01/app/oracle/product/19.16.0/db_1/lib.
Error: OCI Error ORA (status = 12545-ORA-12545: Connect failed because target host or object does not exist
)
dblogin userid ogg/ip:1521/orcl,password oracle
没有问题,可以成功登录
这个问题的原因是21c ogg,有自己的客户端,所以,我们需要设置环境变量:TNS_ADMIN=$ORACLE_HOME/network/admin ,然后在登录时,带上 tns名字即可。
OGG> dblogin userid ogg@orcl,password oracle
之后,就OK。
|