José Carlos Ramalho jcr@keep.pt jcr@di.uminho.pt



Similar documents
Backup and Restore MySQL Databases

Installing Drupal on Your Local Computer

Connect to MySQL or Microsoft SQL Server using R

Connecting to the School of Computing Servers and Transferring Files

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

DOCUMENTATION MySQL BACKUP & RESTORE OPERATIONS

USER GUIDE. Snow Inventory Data Receiver Version 2.1 Release date Installation Configuration Document date

TIMETABLE ADMINISTRATOR S MANUAL

1. Building Testing Environment

Install BA Server with Your Own BA Repository

Extending Remote Desktop for Large Installations. Distributed Package Installs

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

Querying Databases Using the DB Query and JDBC Query Nodes

Setting Up a Development Server

Installing The SysAidTM Server Locally

Getting an ipath server running on Linux

Installation Guidelines (MySQL database & Archivists Toolkit client)

How to Install and Setting Up Drupal

TAO Installation Guide v0.1. September 2012

13.1 Backup virtual machines running on VMware ESXi / ESX Server

How to Use Remote Desktop over a Secure Connection (SSH)

Lucid Key Server v2 Installation Documentation.

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Server side scripting and databases

VCL Access. VCL provides access to Linux and Windows 7 Virtual Machines. Users will only see those images that they are authorized to access.

IGEL Universal Management. Installation Guide

Architecture and Mode of Operation

Databases and SQL. The Bioinformatics Lab SS Wiki topic 10. Tikira Temu. 04. June 2013

Installation Guide. C o p y r i g h t , S e e F i l e S o f t w a r e L L C

Build it with Drupal 8

Connection Broker Managing User Connections to Workstations, Blades, VDI, and more. Security Review

MySQL quick start guide

SETTING UP A LAMP SERVER REMOTELY

Installation Instructions

File Space / Web Space / Database Space - Self-Service Allocation August 2009

MySQL Quick Start Guide

SYWorks Vulnerable Web Applications Compilation For Penetration Testing Installation Guide

MAMP 3 User Guide! March 2014 (c) appsolute GmbH!

Database preservation toolkit:

Seamless Web Data Entry for SAS Applications D.J. Penix, Pinnacle Solutions, Indianapolis, IN

EZcast technical documentation

Connection Broker Managing User Connections to Workstations and Blades, OpenStack Clouds, VDI, and more. Security Review

Livezilla How to Install on Shared Hosting By: Jon Manning

Written by: Johan Strand, Reviewed by: Chafic Nassif, Date: Getting an ipath server running on Linux

1. Please login to the Own Web Now Support Portal ( with your address and a password.

Modelling with R and MySQL. - Manual - Gesine Bökenkamp, Frauke Wiese, Clemens Wingenbach

equate Installation QUICK START GUIDE

We begin with a number of definitions, and follow through to the conclusion of the installation.

Architecture and Mode of Operation

Installation, Configuration and Administration Guide

MySQL Manager. User Guide. July 2012

24x7 Scheduler Multi-platform Edition 5.2

SWsoft Plesk 8.3 for Linux/Unix Backup and Restore Utilities

ConcourseSuite 7.0. Installation, Setup, Maintenance, and Upgrade

Aspire. Basic Steps for Remote Desktop Protocol (RDP) Setup

How to Set Up pgagent for Postgres Plus. A Postgres Evaluation Quick Tutorial From EnterpriseDB

LICENSE4J FLOATING LICENSE SERVER USER GUIDE

CN=Monitor Installation and Configuration v2.0

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Alert Notification of Critical Results (ANCR) Public Domain Deployment Instructions

DOCUMENTATION MICROSOFT SQL BACKUP & RESTORE OPERATIONS

Database Security. Principle of Least Privilege. DBMS Security. IT420: Database Management and Organization. Database Security.

Short notes on webpage programming languages

Installation Instructions

INTRODUCTION TO WEB TECHNOLOGY


MySQL Quick Start Guide

Backup/Restore MySQL Server

VPN AND CITRIX INSTALLATION GUIDE

Security and Control Issues within Relational Databases

Application note: Connecting the to a Database

Written by Wirabumi Software Sunday, 30 December :27 - Last Updated Thursday, 03 January :52

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

About This Document 3. About the Migration Process 4. Requirements and Prerequisites 5. Requirements... 5 Prerequisites... 5

Case Closed Installation and Setup

Lets Get Started In this tutorial, I will be migrating a Drupal CMS using FTP. The steps should be relatively similar for any other website.

INSTALLATION GUIDE. Snow License Manager Version 7.0 Release date Document date

File Transfer Examples. Running commands on other computers and transferring files between computers

Host your websites. The process to host a single website is different from having multiple sites.

EOP ASSIST: A Software Application for K 12 Schools and School Districts Installation Manual

About This Document 3. Integration and Automation Capabilities 4. Command-Line Interface (CLI) 8. API RPC Protocol 9.

All the materials and/or graphics included in the IceThemetheme folders MUST be used ONLY with It TheCityTheme from IceTheme.com.

Java Remote Desktop. Java Remote Desktop. The Manual of Java Remote Desktop J3PSoftware Revision 2.0 1

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS


SIMIAN systems. Setting up a Sitellite development environment on Mac OS X. Sitellite Content Management System

The Web Pro Miami, Inc. 615 Santander Ave, Unit C Coral Gables, FL T: info@thewebpro.com

Lab 7 - Exploitation 1. NCS 430 Penetration Testing Lab 7 Sunday, March 29, 2015 John Salamy

Online Backup Client User Manual

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

OCS Virtual image. User guide. Version: Viking Edition

Installation of PHP, MariaDB, and Apache

Transcription:

José Carlos Ramalho jcr@keep.pt jcr@di.uminho.pt 1

Database migration CLI José Carlos Ramalho jcr@keep.pt jcr@di.uminho.pt 1

Intermediate Representation DBML; Hardware and Software independent; It can go beyond database archiving; It can help in data migrations into DBMS; 2

Wiki page for CLI tool http://redmine.keep.pt/projects/roda-dbpres/wiki/info Link for download at the end of the page 3

Syntax Synopsys: java -jar roda-common-convert-db.jar -i IMPORT_MODULE [options...] -o EXPORT_MODULE [options...] Available import modules: SQLServerJDBC servername [port instance] database username password useintegratedsecurity encrypt PostgreSQLJDBC hostname database [port] username password encrypt MySQLJDBC hostname [port] database username password DBML basedir Available export modules: SQLServerJDBC servername [port instance] database username password useintegratedsecurity encrypt PostgreSQLJDBC hostname database [port] username password encrypt MySQLJDBC hostname [port] database username password PhpMyAdmin hostname [port] database username password DBML basedir PostgreSQLFile sqlfile 4

Setting up the environment CLI tool; MAMP, XAMPP or WAMP to access DIPs: The abbreviation "MAMP" stands for: Macintosh, Apache, Mysql and PHP. With just a few mouse-clicks, you can install Apache, PHP and MySQL for Mac OS X! http://www.mamp.info/en/index.html http://www.apachefriends.org/en/xampp-windows.html http://www.wampserver.com/en/ 5

From MS Access into DBML There are several versions of MSAccess. In order to extract DB structures we need to have access to the internal DB table Msysrelationships. Microsoft published a white paper explaining how to do this for all versions: "Preparing a Microsoft Access Database for Migration" (look at the bottom of wiki page). MyClass case study Log into the server: remote login to a Windows server; java -jar roda-common-convert-db.jar -i MSAccess yourpath/myclass.mdb -o DBML outpath/ Publish the result. 6

From PostGres into DBML With PostGres you have to ensure that TCP/IP connections to the server are allowed and that you have administration credentials. Those points solved we can extract a database with a single command. Inquirições case study Log into the server: ssh to my Linux server; java -jar roda-common-convert-db.jar -i PostgreSQLJDBC localhost inquiricoes jcr jc1015 false -o DBML outpath/ Publish the result. 7

From MySQL into DBML You are going to need administrator credentials to access the database. With MAMP we have to use the port parameter: 8889. Small case study: TABU Access MAMP server; java -jar roda-common-convert-db.jar -i MySQLJDBC localhost 8889 database jcr dbml -o DBML outputdir/ Publish the result. 8

From DBML to MySQL You are going to need administrator credentials to access the database. With MAMP we have to use the port parameter: 8889. MyClass case study: Add 310 new records from XML file; Access MAMP server; java -jar roda-common-convert-db.jar -i DBML DBMLdir -o PhpMyAdmin localhost 8889 MyClass jcr dbml Use PhpMyAdmin to access MyClass database. 9

From DBML to MySQL SQL You are going to need administrator credentials to access the database. With MAMP we have to use the port parameter: 8889. MyClass case study: Add 310 new records from XML file; Access MAMP server; java -jar roda-common-convert-db.jar -i DBML DBMLdir -o MySQLFile MyClass.sql Use PhpMyAdmin to execute SQL statements. 10

From DBML to PostGres You are going to need administrator credentials to access the database. Access PostGres and create database myclass: $psql -U postgres >create database myclass; >\q Inject database from DBML: java -jar roda-common-convert-db.jar -i DBML DBMLdir -o PostgreSQLJDBC localhost myclass jcr jc1015 false Use psql to access myclass database: $psql -U postgres myclass >\dt (display tables) >select * from students; (display all records) 11

Questions? http://www.keep.pt info@keep.pt KEEP SOLUTIONS, LDA. Rua Rosalvo de Almeida, nº 5 4710-429 Braga, Portugal T +351 253066735 F +351 253604471 12