+ All Categories
Home > Technology > Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Date post: 22-Jun-2015
Category:
Upload: danny-bryant
View: 265 times
Download: 0 times
Share this document with a friend
Description:
Database Migration using Oracle's free tool: SQL Developer 4.0.2
Popular Tags:
39
Database Migration: DBA Stuff for the Non-DBA Danny Bryant City of Atlanta
Transcript
Page 1: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Database Migration:DBA Stuff for the Non-DBA

Danny BryantCity of Atlanta

Page 2: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Danny Bryant

IT Manager, Sr.- City of AtlantaAbout the Presenter

@dbcapoeira

[email protected]

http://www.dbaOnTap.com

Danny Bryant

User Groups: ODTUG | OAUG | IOUG

Publications & MediaODTUG (blog) –

How’d You First Get Involved with ODTUG?

RMOUG – SQL>SELECTRegular Expressions: A Love/Hate Relationship

Oracle Podcast SQL Dev 4.0 in Action at the

City of Atlanta

Page 3: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Agenda The City of Atlanta “You want to do WHAT?” SQL Developer to the Rescue

o Setupo Migrationo Populating Tableso Reporting

Lessons Learned Q&A

Page 4: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

The City of Atlanta Overview

o Includes the Mayor/Executive Offices (13 Departments), Judicial and Board Officers, and City Council (16 Members)

o Metropolitan Statistical Area (MSA) is the 9th largest metropolitan area in the country

o Population of 443,775 citizens (2012 US Census estimate)

o Manages Hartsfield-Jackson International Airport, the world's busiest airport by serving over 95MM passengers in 2012

o Approximately 7,500 active employees and 5,000 retirees

o $1.8B Operating Budget

Page 5: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

The City of Atlanta Oracle Footprint

o Enterprise Resource Planning (ERP) Applications (eBS 11.5.10.2)● Financials

● Human Resources Management System

● Procurement

● Discoverer Reporting

o Siebel Customer Relationship Management (CRM) Applicationso Enterprise Performance Management (EPM) Applications (v11.1.2)

● Hyperion Public Sector Planning and Budgeting

● Hyperion Financial Management

o Oracle Business Intelligence Enterprise Edition (OBIEE v11.1.1.2)● Human Resources Analytics

● Financial Analytics

Page 6: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

History

Oracle EBSDatabase (10g)

PeopleSoftMS SQL Server

In the beginning there was ….

Beginning of time - 2005 2005 - 4712

MARS-GMS SQL Server

Page 7: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

You want to do WHAT?

Page 8: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Problem We need historical data prior to 2005

o Pension Reformo Open Records Requestso Retiree Information

Page 9: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Solution Gather Requirements Query PeopleSoft for < 2005 data

o Export to Excel Query EBS for > 2005 data

o Export to Excel Stitch data together Email results to requestor Cross your fingers

Page 10: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

There’s Got to be a Better Way How can we speed up this process? How can we empower the end users? How do we take advantage of our existing

reporting tools? – Discoverer – Soon to be OBIEE thanks to DDR capabilities

Page 11: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

SQL Developer To the Rescue

Page 12: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Database Migration Tool Why SQL Developer?

o Integrated UIo Wizard Driven o DDL Script Generationo Online Data Modeo Offline Data Moveo Repository Based (we will see this shortly)o Log File

Page 13: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Enough Already – Get to it! Pre-Requisites

1. Install 3rd party driver for source DB connectivity2. Admin access to the MSSQL database3. SYS and SYSTEM Login for Target Database (Wait a minute)4. Build repository in a new schema for the meta-data, the user

requires the following role and system privileges:● RESOURCE● DBA● CREATE SESSION● CREATE Any VIEW● CREATE VIEW● UNLIMITED TABLESPACE (If using 12c)

Page 14: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What Did I Do? Four Phases

1. Verify Source DB Access2. Create Migration Repository3. Set up SQL Developer4. Perform the Migration and Wait

Page 15: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase I – Verify Source DB Access

For MSSQL, I needed db_owner permissions

Page 16: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase II – Create the Repository

Create your Migration Repository in your new schema. In this example:migrationdemo

Page 17: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

Launch the Migration Wizard

Page 18: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

Page 19: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

This will coincide with the 3rd party driver. In this case SQLServer.

Page 20: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

Page 21: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

Page 22: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

This is your Migration Repository schema

Page 23: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase III – Set up SQL Developer

This account has systemprivs

Page 24: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase IV – Perform Migration

Page 25: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase IV – Perform Migration

Page 26: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

DEMO

Local XE Database

MSSQL Adventure Works2012 Database

SQL Developer 4.0.2

Page 27: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What’s Happening

Page 28: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What’s Happening

Page 29: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What’s Happening

Page 30: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Phase V – Reporting

Page 31: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Lessons Learned

Page 32: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Lessons Learned - Migrate Directly to Target DB

1. Compatibility issues with DDL when DB versions are different.

PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)

DB 10.2.0.4 doesn’t like this.

Page 33: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Lessons Learned - Migrate Directly to Target DB

2. Extra Step to Populate DB Tables

3. Use Database Copy

Page 34: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Lessons Learned – Get Familiar with the Logs

Page 35: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What’s Next

Page 36: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

What’s Next?

Page 37: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Useful Links 3rd Party Drivers

o IBM DB2: http://www-306.ibm.com/software/data/db2/express/additional-downloads.html

o Microsoft SQL Server and Sybase: jTDS driver available from http://jtds.sourceforge.net/. Use version 1.2

o MySQL: http://dev.mysql.com/downloads/connector/j/5.0.htmlo Teradata: http://www.teradata.com/downloadcenter/ 

Oracle documentation on Database Migrationo http://

www.oracle.com/technetwork/database/migration/omwb-getstarted-093461.html

Page 38: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

Thank You

Danny Bryant

@dbcapoeira

[email protected]

Danny Bryant

http://www.dbaOnTap.com

Page 39: Database Migration using Oracle SQL Developer: DBA Stuff for the Non-DBA

SUBMIT YOUR ABSTRACTS TODAY!


Recommended