We have AS/400 machines from IBM (P8), which uses DB2 database. I want to read the tables from DB2 with a JDBC connection and process it. It is possible to connect to the DB2 database and make sql statements with java program? If yes, can someone show a little sample. Thanks in advance.
Examples and tutorial for iSeries jdbc are on the Db2 for i documentation available here:
Related
I love Oracle SQL Developer and not a big fan of PgAdmin. I am trying to connect to the Postgresql from Oracle SQL Developer. And i am success.
However, i am not able to add/delete/edit any record.
I am using third party JDBC Driver: postgresql-42.2.23.jar
any suggestion ? Thank you
Write the SQL (INSERT|UPDATE|DELETE) to do that in the SQL worksheet.
If you want to browse a table and 'live edit' records in the GUI, you'll need to be connected to an Oracle Database.
I want to configure IBM DB2 on iseries AS400. The issue is I'm not getting the proper tool for AS400 and I've already installed Data Studio for configure DB2.
I don't have any knowledge regarding AS400 and I'm fresher for IBM technology.
I have already ODBC drivers of iseries. Please help me to find out iseries AS400 setup tool.
DB2 is integrated into OS/400 and all of it's following OS's. To configure DB2 on these platforms, perform a power-on maneuver. If it is already turned on, then DB2 is configured.
BTW, you probably don't have an AS400 but something newer. The hardware is likely Power System or Pure System, and the OS is likely IBM i.
Once you get a SQL connection to the AS400 aka system i aka iseries. Configure the DB by executing this SQL statement in Studio.
create collection myas400SQL
This will create an as400 library named MYAS400SQL that has the mumbo jumbo journal automatically added meaning this will work like every other SQL database with commit rollback transactions...
Lets try it.
CREATE TABLE myas400sql.mytable (myfield char(1))
Table mytable can handle commits and rollbacks like any other db you may have used.
Happy Friday.
Is it possible to connect sql developer to openedge db, if not is there some alternative GUI that we can use with openedge?
Sorry, no.
We make 3rd party databases and their jdbc drivers (jars) available for customers needing to migrate those databases to the Oracle platform.
If and when customers need help migrating openedge db to Oracle Database, we'll consider it.
For now it's limited to Sybase ASE, SQL Server, DB2 LUW, Teradata, MySQL, and some limited support for PostgreSQL and Redshift.
Is there any feasibility from Oracle to have a connection established to DB2 database so that I can query on DB2 database and generate reports from Oracle Apex?
OR
Is it possible to create a View in Oracle from a remote DB2 database?
OR
What options do i have in order to develop reports in Oracle Apex from the data i have in DB2 database?
(I know, this is an old question and you've already found a workaround. Anyway,) the keyword you might be interested in is gateway. This is Oracle 10g Database Gateway for DB2/400 Installation and User's Guide. I don't know which database you use, but - if 10g is not the one, I hope you'll manage to find the right documentation.
Shortly: after installing the gateway between Oracle and DB2, you'd create a database link. Then, in your Oracle schema, create a view that selects data over that database link from DB2 database. Finally, fetch data in Apex from the view.
As i didn't find a way to directly connect to DB2 from Oracle PL/SQL, i used a work-around. As this is a reporting tool, we are ok to have this tool running with the data which is 1 day off, we did the following:
1) Extract the data required from DB2 database to CSV files. We used a DB2 command which can be run at command line to extract the data into a CSV
2) Then we imported the data into Oracle tables using sqlldr
I have two different database in DB2, a in DB2 AS400 and other in DB2 AIX, is possible link this database, similar to link by Oracle?
Thank you in advance.
erva.
It is definitely possible to define a nickname in DB2 on AIX that allows you to access DB2 on iSeries.
The software required depends on the version and edition of DB2 you have on your AIX server, though.