robot framework连接Oracle错误:ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA


在使用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'   

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM