Tool for DB2 like sqldeveloper - db2

Is there any tool similar to Oracle SQL Developer for DB2?
I found tool called DB2 Connect but there is no free edition for personal use.
I need to use it for DB2 Express edition for Linux and Windows.

Related

How to create connection on SQL Developer?

i installed SQL Developer on my MacBook
when i tried to run the sql code it says must create new connection
it required username/password
so how can i solve this
before i was using oracle database XE 12 on windows 10
but now i am using macOS and i see i cant use this software anymore (oracle database XE 12)
so i tried to install SQL Developer
Oracle SQL Developer is a tool that lets you connect to an (Oracle) database. But - you have to have the database as well (apparently, there's none on your Mac).
Express Edition database you previously used on Windows 10 was (probably) 11g (not 12; it doesn't exist), but it woks on Windows an Linux - not macOS.
Moreover, none of the modern Oracle databases can be installed on Mac; the last one was, I think, 10g (but - as it is out of support, you can't even download it any more).
Therefore, you could install a virtual machine on Mac, put Windows OS onto it, download and install 11gXE along with SQL Developer and use it.
But, why bother? Install VirtualBox and then download one of Pre-Built Developer VMs (for Oracle VM VirtualBox).

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;

Issue with First step in DB2 Enterprise Server Edition Version 9.7

I installed IBM DB2 Enterprise Server Edition Version 9.7
window is not opening so because of this I couldn't able to create a sample database.
Is there any way to manually download the sample database & connect to DB2?
Try the command db2sampl and start reading some basic documentation.

How to set DB2 SQL ANSI Mode

I have a php project developed up on Ubuntu Intel 64 Bit machine. It uses the DB2 as database. Now client going to deploy it on IBM I Series Server. So I gave him exported Schema (by db2look command).
db2look -d MYDATABASE -a -e -o mydatabase.sql
But he have problem in importing As exported schema have some keyword not supported on DB2 IBM version. He point out on octets keyword. But definitely more could be there. So he want us to convert our schema to some MySQL or ANSI Mode. But I did not found any tutorial to convert DB2 schema or change Mode.
I am very new to DB2, Any all my DB exposure to MySQL database only. If anybody have idea about this ?
IBM has a manual
IBM DB2 for i porting guide DB2 for Linux, UNIX and Windows to the IBM i platform
(Updated June 2014)
http://www-304.ibm.com/partnerworld/wps/servlet/ContentHandler/servers/enable/site/db2_porting_i.html
Are you using Zend for your PHP by chance?
Zend is supported on the IBM i:
http://www.zend.com/en/solutions/modernize-ibm-i
Also Zend picked up the slack when MySQL support for IBM i was dropped by Oracle
http://www.zend.com/en/solutions/modernize-ibm-i/ibm-i-product/dbi
Zend's DBi product includes the IBMDB2I storage engine allowing php/MySQL apps to run on the IBM i and utilize DB2 for i as the database.

Data Source For Oracle

I am using 64-bit version of windows 7. The only option I have in it, for creating Data SOurce is for Microsoft SQL server 2005. Hence, I am not in position to create ODBC for oracle. Is there any other way by which I can create the ODBC Data Source. I need the same for JDBC. Thank You.
Just install the Oracle Instant Client from the Oracle website.
To make Data Source for Oracle in 64 Bit windows operating system, go to
C:\Windows\SysWOW64\
And use odbcad32.exe file. Double click it and the option to make dsn will come, even for Oracle.