Install PostgreSQL Driver in SQL Developer - postgresql

I use MAC OSX (El Capitan) and I would like to connect to my local PostgreSQL database via Oracle SQL Developer.
I've installed Oracle SQL Developer (Version 4.1.3.20, Build 78)
I've configured PostgreSQL driver in SQL Developer (Version postgresql-9.4.1207.jar).
I created a New Connection in SQL Developer.
It connects fine to DB and I can see my tables, the problem is that I cannot see my functions\stored procedures. it empty...
If I connect to the same schema via pgAdmin3 then I can see everything. so it's not a problem with DB.
Has anyone encountered this bizarre problem?
Thank you!

Related

Issues with SQL Developer and PostgreSQL JDBC driver

I'm trying to assist user who suddenly no longer is able to connect to database using PostgreSQL JDBC driver. PostgreSQL connection tab is not clickable. All of her colleagues do not have such issues. I have re-installed SQL developer several times, backed up and deleted SQL config folders from C:\users\username\appdata\roaming, re-added driver, nothing seems to change. I have limited knowledge about SQL as I don't use it and neither is there much information about this as it doesn't seem like a common issue. User uses following software:
JDK 8 -172 64 bit,
SQL Developer 17.2.0,
PostgreSQL JDBC driver 42.2.18. Added screenshot just in case. Any help would be appreciated.

Connecting to DB2 using SQL Developer

I trying to connect to DB2 database through SQL Developer. I followed following steps create connection:
1. Open SQL Developer
2. Go to Tools > Preferences > Database > Third Party JDBC Drivers.
3. I added third-party JDBC driver path entries (db2jcc.jar and db2jcc_license_cu.jar)
As soon as I try to create connection I get below error
Oracle SQL-Developer Version 17.2 works fine for me with Db2 Version 11 for Linux x64 and I am using a recent Type-4 jdbc (db2jcc4.jar) driver from IBM.
You question shows that your Db2 jdbc driver version is very old (Version 9.7 fixpack 5) and out of support, so you should upgrade to the latest available Db2 client for your (unspecified) operating-system. Also you should ensure you are using the latest release of the Oracle-SQL-Developer for your operating system.
As your question gives no facts about your versions of Oracle or Db2 products or operating systems, this is the best advice that is possible.
I got the same problem, it turned out SQL Developer doesn't display tables for DB2, but still allows to perform SQL queries. If you know table names, you will be able to select data from those tables if you have enough permissions to do so.
You can test ability to perform SQL queries by selecting DB2 version (SQL below is valid for DB2 12.0)
SELECT GETVARIABLE('SYSIBM.VERSION') AS VERSION FROM SYSIBM.SYSDUMMY1;
Make sure you don't forget to specify schema while selecting data from your tables!
select * from schema.table_name;

DB2 connectivity without client drivers

I'm using EF 6 (Code first) with the IBM.Data.DB2.EntityFramwork nuget package to access a db2 database server. Working locally it all works as expected, but when deployed to a test server I get an exception: "System.MissingMethodException: Method not found: 'Void IBM.Data.DB2.InternalStruct6.SetDefault()"
I'm no DB2 wizard but I think the issue is related to a incompatible version of the db2 client drivers installed on the test server (9.7?). Entity framework 6 support needs version > 10.5. (I must have installed the 10.5 version locally at some point).
It would be nice to be able to run the application on any pc without additional dependencies, so my question is: Are there any way of skipping the db2 clients/drivers installation, and rather reference certain db2 dll's (or other nuget packages), to access db2 db servers?
Ok, I think asking the question resulted in a moment of enlightenment.
I guess the answer is NO, as the db2 clients/drivers actually installs the db2 odbc data source driver for db2. (Located in Administrative Tools -> Data Sources (ODBC)).

How to connect mapguide maestro to postgresql/postgis

I’m trying to connect my database postgresql/postgis to mapguide maestro but it send me a error message.
Do you have some idea about this, or can you help me about how can I connect it with my database postgis? I’m using postgresql 9.4, mapguide open source 2.6.1 and mapguide maestro 6.0
You are probably connecting to a PostgreSQL database without PostGIS installed.
Either install PostGIS to that database (e.g. CREATE EXTENSION postgis), or modify your connection settings to the correct host/port/dbname with an existing PostGIS installation.

Does Npgsql support community version of postgres?

I read from the enterprise db website that only the Postgres standard server and advanced server support Npgsql.
But am not sure if
1. Npgsql will not work with community version at all ?? or
2. It is just that it is not packaged along with community version,but I can use npgsql to connect and work with postgresql from .Net
Can someone help me understand?
I read from the enterprise db website that only the Postgres standard
server and advanced server support Npgsql.
EnterpriseDB is not the same as PostgreSQL. PostgreSQL is PostgreSQL, it's not a "community version" from EnterpriseDB. EnterpriseDB Server is a fork of PostgreSQL, not the other way around.
And yes, Npgsql does work with PostgreSQL, it was created for PostgreSQL:
Npgsql is a .Net Data Provider for Postgresql. It allows any program
developed for .Net framework to access database server. It is
implemented in 100% C# code. Works with Postgresql 7.x and above.