【发布时间】:2018-03-17 05:12:53
【问题描述】:
我需要将我的数据库连接到 python,我尝试过:
cx_oracle.connect()
但我不知道它需要什么参数。
这是我如何在 java 中连接到同一个数据库的示例,并且它运行良好。
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","System","mypassword");
【问题讨论】:
-
你搜索过吗?
-
你试过reading the manual吗?