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.
Related
What is the difference between embedded database and ordinary database like MySQL or Oracle?
and when should we use which?
Long story short:
An embedded DB (like MS SQL Compact, SQLite, etc...) is integrated in the application you are developping or executing. Usually is a file which contains specific data structure to store data.
An "ordinary" DB like MySql or Oracle or MS Sql need a server to execute and store data. You have to install the application in locale or remote server to allow the right connection.
Using an embedded db you can execute software without installing a DB server.
An embedded database is a database technology in which database management solutions are built into an application rather than provided as standalone tools. In many cases, this effectively "hides" the database management tools from the end user.
In ordinary Database you unlike embedded Db you need to install the standalone application and server as well to work with the Db
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".
I want to connect to database server using use DBI module in Perl.
I don't have any database server installed in my system. Is there a way I can try the database connectivity without actually installing SQL server. I checked SQL server and it is 2.5 GB download
Is it possible to use Perl's DBI module without really installing full database server?
You can use a different database driver. You could use SQLite for example. Or you could install xampp, which brings a mysql instance.
I recommend using SQLite and the DBD::SQLite driver.
Just use DBI DBD:SQLite and an SQLite Database the download is only 1.4MB
And here is a Tutorial to get you started
What are the available Sybase GUI clients for Windows.
I have tried DBVisualizer and RazorSQL any other recommendations. Free preferred
u can try "Interactive SQL" which shipped with Sybase 15 Client, it's better than Sql Advantage, and it's free to download via. Sybase website.
One other solution would be sqlDeveloper from oracle (if you are used to it). You can make it work with Sybase databases by downloading the jTDS driver. Then you can go to sqlDeveloper and choose Tools -> Preferences -> Database -> Third Party JDBC driver. It will work like a charm.
I find it very convinient as i was used to sqlDeveloper, so i can add any driver for any DB provider i want.
You can try a non commercial client TOAD for sybase
and a comercial client like dbArtisan that allows you debug of the stored procedures what for me its very usefull.
I like SQL Workbench/J, sort of like DBVisualiser but entirely free. It can connect to a lot of databases (that have JDBC drivers) and has a handy datapump/data replication tool, that can also be used in batch mode.
Aqua Data Studio seems popular with the clients I work with. But I generally use the tools from Sybase : Interactive SQL (SQL Editor) and Sybase Central (Data Schema, Debugger etc)
Other possible tools could be Squirrel and DBeaver. Both are open-source and free.
Here are some links : dbeaver.jkiss.org
squirrel-sql.sourceforge.net .
SQuirreL SQL Client is a graphical SQL client written in Java that will allow you to view the structure of a JDBC compliant database, browse the data in tables, issue SQL commands etc.
DBeaver will let you do all basic DDL and DML functions, DB object script extraction etc. Various plugins exist e.g DBDiff Plugin which lets you compare objects between two different sessions
Workbench/J is a good choice. It can work with Oracle/Sybase/Informix and other databases.
Setup SQL Workbench/J to connect to sybase in Ubuntu 14.0.4
Install SCN SDK "https://store.sap.com/sap/cpa/ui/resources/store/html/SolutionDetails.html?pid=0000013451&catID=&pcntry=US&sap-language=EN&_cp_id=id-1417018812660-0"
unzip the file.
create /opt/sap and chown sap:sap /opt/sap -- sap is the owner for software
run setup.bin after unzip the linux.tgz
In SQL Workbench Setup jdbc connection pointing to "/opt/sap/jConnect-16_0/classes/jconn4.jar"
Setup sybase connection URL to be jdbc:sybase:Tds::
e.g. jdbs:sybase:Tds:sybase1:5000
I have access to an Oracle server that has some databases that I would like to access. However, the machine that I have access from has none of the oracle client software. Is there any alternative to oracle's client software the provides the functionality of something like MySQL's mysql or Postgres' psql? I'd like to be able to poke around a bit in the database before writing software against it.
If you download the free Oracle Instant Client you'd be able to use any JDBC or ODBC Database tool such as DbVisualizer or SquirrelSQL. Those are GUI tools; I've not come across a JDBC command line tool but there may be one out there.
Alternatively, there is an Instant Client version of SQL*Plus which will give you an Oracle sqlplus command line without a full Oracle install.
Oracle's free PL/SQL IDE SQL Developer can use Type 4 JDBC drivers to connect to a number of different types of databases, obviously including Oracle. You can use that without doing any sort of Oracle client install if you so desired.
You could try the Oracle IDE SQL Developer which is a free download. It is written in Java and is available for both windows and linux. It is self contained and doesn't require the Oracle client be installed.
SQLPal (http://www.sqlpal.com/) is a lightweight SqlPlus like application for Windows that does not require the oracle client.