我试图使用Oracle SQL Developer 3.0.04连接到PostgreSQL 9.1数据库,但到目前为止我没有任何成功。Oracle SQL Developer和PostgreSQL
首先,如果我在首选项上添加第三方驱动程序,添加新连接时没有PostgreSQL选项卡(但它对MySQL工作正常)。我正在使用JDBC4版本9.1驱动程序,但是我尝试了相同版本的JDBC3,并且仍然得到相同的结果。
其次,添加新连接时没有像手动配置选项卡那样的东西。最接近的是Oracle选项卡上的高级选项,我可以提供一个自定义URL,但由于抱怨所选驱动程序(当然)而失败。
最后,我已经连接从XML文件(下面的内容)导入连接,但它只显示我的模式,并不显示我的表内。
所以,我的问题是:Orable SQL Developer是否支持PostgreSQL连接?有没有其他方法让我的表在ObjectViewer中显示?
<?xml version = '1.0' encoding = 'UTF-8'?>
<References xmlns="http://xmlns.oracle.com/adf/jndi">
<Reference name="Lumea" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="Lumea" xmlns="">
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
<RefAddresses>
<StringRefAddr addrType="user">
<Contents>lumea</Contents>
</StringRefAddr>
<StringRefAddr addrType="subtype">
<Contents>thirdParty</Contents>
</StringRefAddr>
<StringRefAddr addrType="customUrl">
<Contents>jdbc:postgresql://localhost:5432/versates</Contents>
</StringRefAddr>
<StringRefAddr addrType="SavePassword">
<Contents>true</Contents>
</StringRefAddr>
<StringRefAddr addrType="password">
<Contents>myencryptedpass</Contents>
</StringRefAddr>
<StringRefAddr addrType="driver">
<Contents>org.postgresql.Driver</Contents>
</StringRefAddr>
<StringRefAddr addrType="DeployPassword">
<Contents>true</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
</References>
除非您的用户名和数据库名称不同,否则它不起作用。这听起来像一个SQLDeveloper错误,我找不到任何workaroud。 – Kloe2378231
@ user2378231在我早期的评论中,他说的和他一样,我也解释了解决方法。 –
它会在主机名字段中要求'localhost/database?'。 – kinkajou