How to create DB2 sql dump from WebSphere Application server ? - database

I am using WebSphere application server for deploying my EAR Application . I have DB2 Database in that server . Now i am trying to Deploy same Application on Jboss application server with PostgreSQL. I need to change the existing DB2 database to PostgreSQL . I have researched about this topics and finally i got some useful tools .
https://github.com/dalibo/db2topg
https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL
Now i want SQL dump of my DB2 schema for converting DB2 to PostgreSQL . I want to know whether can i get SQL dumps of DB2 from the application server of WebSphere ? Or any other methods to convert DB2 to PostgreSQL ? Any suggestion will be helpful to me to solve this problem .

No, WebSphere Application Server does not provide a general means to export the schema of a DB2 database. A google search for export db2 schema will provide you multiple ways to do it using DB2. Again a google search for convert schema from db2 to postgres yields numerous tools to migrate schemas including a postgres wiki.

Related

SQL Server with Oracle SQL Developer 4.1 - can't view tables

I cannot seem to browse the tables on my Azure SQL Server database from within Oracle SQL Developer (Version 4.1 - using jtds-1.3.1.jar plugin).
I can connect and perform all queries (inserts, selects, etc.), but when I try to expand it to view the tables, I see this error:
An error was encountered performing the requested operation:
Reference to database and/or server name in 'master..sysdatabases' is
not supported in this version of SQL Server.
Vendor code 40515
Note: I tried rolling SQL Server back to version 3, and I'm getting the same error.
Please advise. Thanks for your help!
We're not certified for Azure..there's a similar problem in SQL 2014. The way we're asking for a list of tables isn't valid in that version. Would require an enhancement request to support Azure for Oracle Database Migrations.

Can I use SQL Server database with Apache Mahout?

I chose to use Apache Mahout as my recommendation engine but at the same time due to some reasons it would be easier if I could store my data in a SQL Server db. Can mahout be connected with SQL Server without any problems ?
The documentation says that it can be connected with other db engines through JDB driver but I see all articles , books using mysql and also the data model supported are for mysql only.
How to convert MySQL to SQL Server databases:
SQL Import/Export Wizard through ODBC (http://www.mssqltips.com/sqlservertutorial/2205/mysql-to-sql-server-data-migration/)
SQL Server Migration Assistant (http://msdn.microsoft.com/en-us/library/hh313125(v=sql.110).aspx)
Here is the JDBC driver for SQL server:
JDBC Driver for SQL Server: http://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx
Changing DB input format/driver in Hadoop cluster: http://blog.cloudera.com/blog/2009/03/database-access-with-hadoop/
There are also numerous example of using Mahout with an Azure Hadoop Cluster via HDInsight:
http://bluewatersql.wordpress.com/2013/04/12/installing-mahout-for-hdinsight-on-windows-server/
http://www.codeproject.com/Articles/620717/Building-A-Recommendation-Engine-Machine-Learning
I have just started my experiments with Mahout. I managed to run some book examples after replacing the in-memory data models with SQL92JDBCDataModel or SQL92BooleanPrefJDBCDataModel shipped with Mahout 0.9.
I passed an instance of SQLServerDataSource to constructors of those data models. This class is included into the Microsoft JDBC Drivers for SQL Server package (I used the version 4.1)
However, the SQL92JDBCDataModel documentaton states that it is "not optimized for performance".

Worklight Database Integration

In worklight.properties server config file, you may specify only 1 database type for Worklight Server to work with. But is there a scenario where it a Worklight app can handle connecting to multiple Databases? One example could be, core Worklight databases tables (WLREPORT, WRKLGHT) uses an Oracle DB. But some SQL adapters connect to a different Database like mysql through adapter configs
Does Worklight automatically reconnect to DB after a failure?
Is Worklight app compatible with Oracle ASM
Are core Worklight DBs (WLREPORT, WRKLGHT) capable of using DB partitions
That would be a valid scenario. In worklight.properties you handle settings related for the Worklight Server mostly. Adapters are project-level, not worklight-server-level, you do not define nor handle them in worklight.properties - each SQL adapter is a separate entity you create within your project, and each SQL adapter has its own XML with connection settings, etc.
Are you referring to the client or server? but both should, yes. More exact scenarios are needed to fully answer.
When it comes to Oracle, Worklight supports only Oracle 11g. See full System Requirements for IBM Worklight and IBM Mobile Foundation
leaving empty for now. Will edit.
4 . Yes, database partitions can be specified when you create the databases manually. You modify the manual setup instructions Creating the Oracle databases to take into account your desired partitioning.

Derby Database ODBC Connection

I have a Derby Database in Netbeans with connection string
jdbc:derby://localhost:1527/MyDatabase
Can this be used with ODBC? If so, how could I transform this or configure my Derby Database to be compliant with ODBC
The end goal is to get the Derby Database migrated to MySQL. Using the migrating wizard in MySQL Workbench appears to be the easiest way. However I do need ODBC connectivity.
Do you want to use ODBC because MySQL Workbench uses it to migrate database?
I migrated some databases between various engines and my favorite technology is to convert DDL schema (CREATE TABLE, CREATE VIEW etc) using specialized Python program. Then I use JDBC with getObject()/setObject() methods to copy data. You can see such copy database Jython program (Jython is a Python language that works using JVM and can use JDBC drivers) in my response to Blob's migration data from Informix to Postgres .
BTW Quick search shows that IBM have ODBC driver to Derby (they bought Informix that earlier bought Cloudscape): http://www.ibm.com/developerworks/data/library/techarticle/dm-0409cline2/
Use OpenDBCopy, which is an opensource database utility to migrate data from and to any database via JDBC connection.
You can copy table structures as well as data from any supported database.

DIfference between Navision DB and SQL Server DB

I am new to Navision application.Can you please explain the difference between Navision DB and Sql Server DB?
That completely depends on how you have Navision installed. See the entry on Wikipedia to see what I mean. It can be installed with SQL Server, or their native database server (referred to as 'Classic'). A google search for Classic Navision Database should get you well along in your research.
If you want to be able to use sql syntax for database queries, then you need to install the sql server database. The native database does not support sql.
Navision uses MySQL standard database, not just SQL. You should be able to see it depending on the tier composition you have on your NAV installation.

Resources