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
Related
I'm trying to setup an easily-replicable (or even manual and I do it once a month or so) process for moving data from a large Azure PostgreSQL database to a more manageable Azure SQL database for end users that are most familiar with SQL Server. I've successfully connected to the PostgreSQL database via PGAdmin, so I know all my connection string info.
I started by installing the latest ODBC driver from here.
I then used a connection string which was given to me from the Azure portal, filled in the proper database name and password, and attempted to use the following drivers:
PostgreSQL ODBC Driver(UNICODE)
PostgreSQL ODBC Driver(ANSI)
I am getting the following error with either of them:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
What step am I missing in this process? Or how best can I troubleshoot this?
After more research, I attempted to add the ODBC driver here:
And got the following error (I'm not sure why Tableau is relevant to this?):
Thank you.
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 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.