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.
Related
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:
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.
I am working on db2 AS400 v7.1. Could you please tell me database configuration concept in db2 as400 similar to db2 LUW? I achieved using below command:
db2 UPDATE DB CFG USING CONNECT_PROC **schema.stored_Procedure**
usage: helps to run stored_Procedure each time when user logs in.
If you are using JDBC/ODBC for connecting to database (DB2 for i), you can use user exit QIBM_QZDA_INIT which is equivalent of connect_proc in DB2 LUW.
Link to IBM documentation for more details.
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/rzaii/rzaiimstsmpinitcl.htm
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/rzaii/rzaiimstexdb.htm
The iSeries DB2 is very different from the Windows/Linux DB2. We need to know which because we have selects to retrieve the metadata (table names, etc.) and those selects are dependent on what DB2 we're talking to.
Is there a way, after we have a connection, to determine what DB2 product we're hitting?
thanks - dave
There is a property on the ADO.NET connection object (DB2Connection), ServerType, that returns a different value based on which product you're connected to.
I haven't been able to find an exhaustive list of what the values correspond to, but the ones I've personally run into are the following:
DB2 - z/OS DB2
DB2/LINUXX8664 - DB2 for Linux/Unix/Windows running on 64-Bit Linux
DB2/NT - DB2 for Linux/Unix/Windows running on Windows (32 bit?)
DB2/NT64 - DB2 for Linux/Unix/Windows running on Windows (64 bit)
May by whith db2 connect or db2 lelvel
check this
select catalog_name from qsys2/catalog_name
It's a one liner that returns a name.