在使用robot framework的关键字Connect to Database Using Custom params连接Oracle数据库:

Connect to Database Using Custom params         cx_Oracle      'username','password','host'   

报错 ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

解决方法:

在host后加上所连接数据库的库名(就是Oracle配置文件tnsnames.ora中的SERVICE_NAME)

如:

Connect to Database Using Custom params cx_Oracle 'username','password','host/orcl'   

 

相关文章:

  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-07-31
相关资源
相似解决方案