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.
Related
We are in the process of evaluating redshift for our Cognos Analytics 11.0.11 system. We started seeing weird issues when after publishing a package (CQM mode) so we opened a ticket with IBM and they said Cognos works with redshift only in DQM mode. Is this correct? Have you used Cognos in CQM mode?
Not surprising.
The CQM engine is quite old and connects to datasources through native DB drivers (e.g. if you're connecting to Oracle, you have to install and configure the Oracle client on the Cognos server).
The DQM engine is much newer and uses JDBC drivers exclusively (no requirement to install DB client on the Cognos server).
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;
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.
Has anyone managed to use Postgresql as a datasource for SSAS? The Postgresql .NET connector seems promising, but the SSAS view wizard does not seem to be able to see the tables in the database.
Try using the ODBC connector. I've had success getting other tools to connect to PG using it. The EnterpriseDB installers not only include a well packaged, working version of PG for windows, they include working, correctly installed drivers.
http://www.enterprisedb.com/products-services-training/pgdownload
try pg_bulkload for load from via c# & from mssql to pgsql
copy & bcp (ssis) for second direction (pgsql->ssas)
242
It is actually possible to hack the Postgresql .NET connector and implement a "MSSQL compatibility mode", where the [ and ] around tables and schema names are removed. Using this, the list of tables does not appear in MS SSAS, but it is possible to replace them by views.
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.