Partners Login |  : :
Breaking News List
  • PRESS RELEASE
  • SUCCESS STORY
  • E-MAGZ
  • COVERAGE

:: Home --> News --> Migrate from Microsoft SQL Server to Oracle Database 10g Using Oracle Migration Workbench
News
Migrate from Microsoft SQL Server to Oracle Database 10g Using Oracle Migration Workbench

 

Migrate from Microsoft SQL Server to Oracle Database 10g Using Oracle Migration Workbench

Purpose

This module describes how you can migrate a Microsoft SQL Server database to Oracle Database 10g using Oracle Migration Workbench.

Time to Complete

Approximately 2 hours

Topics

This tutorial will discuss the following topics:

a

Overview

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Scenario

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Prerequisites

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Installing and configuring Oracle Migration Workbench

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Creating the Source Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Creating the Oracle Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Customizing the Oracle Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Migrating the tablespaces, users, and user tables to the destination database

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Migrating data to the destination database

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Migrating remaining schema objects to the destination database

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Verifying the stored procedures and triggers migrated successfully

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Generating and viewing Oracle Migration Workbench reports

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Summary

 

 

Overview

What is Oracle Migration Workbench?

The Oracle Migration Workbench is a tool that simplifies the process of migrating third-party database systems to the Oracle platform (Oracle9, and Oracle Database 10g). The Oracle Migration Workbench migrates the entire database schema, including triggers and stored procedures, in an integrated environment.

 

With Oracle Migration Workbench, you can:

  • Perform a migration in stages using wizards and scripts
  • Retrieve source database information using online capture or offline capture
  • Customize Work In Progress database objects in repository
  • Parse and transform stored procedures, triggers, and views to Oracle PL/SQL
  • Monitor the status of the migration via reports and messages.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/over01.gif

Oracle Migration Workbench extracts information from the source database, such as SQL Server, and creates the Oracle destination database. To migrate different source databases, Oracle Migration Workbench uses a plug-in specific to each database that it can migrate. Using the offline capture method, Oracle Migration Workbench retrieves metadata from the source database and stores them in a set of files which you load into the Workbench repository. The Workbench repository, which is a set of tables in an Oracle database, contains all information about the migration. The Workbench repository consists of the Source Model, which is a representation of the source database, and the Oracle Model, which is a representation of the Oracle database. You can make changes to the Source Model and Oracle Model within the Workbench repository without affecting the production environment.

Scenario

In this tutorial, you migrate the HR database from Microsoft SQL Server 2000 (source database) to Oracle Database 10g (destination database). The tutorial provides you with offline capture files, which is metadata extracted from the Microsoft SQL Server 2000 source database.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/over02.gif

After creating and customizing the Source Model and Oracle Model, you migrate the schema objects and use SQL*Loader scripts to migrate the table data.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/over03.gif

Back to Topic List

Prerequisites

Before starting this tutorial, you should:

1.

From Windows Explorer, navigate to Oracle_Migration_Workbench folder on the DVD and unzip omwb_windows.zip into a folder on your local drive (e.g. c:\omwb)

 

 

 

 

2.

Unset the Read-only attribute for the files in the offline_capture subfolder.

i) Locate the offline_capture_files subfolder, right-click and choose Properties.

ii) Under Attributes, deselect Read-Only and click Apply.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/preq01.gif

iii) Accept the default option "Apply changes to this folder, subfolders, and files" and click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/preq02.gif

iv) Click OK.

 

3.

Have access to an Oracle Database 10g Release 2 database.

4.

Set the shared folder, vmware_shared, on your VMware Workstation to c:\vmware_shared on the host folder.

Back to Topic List

Installing and Configuring Oracle Migration Workbench

Before you use Oracle Migration Workbench, you will install the tool, create a repository, and create a user and associated tablespace in the destination database.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Install Oracle Migration Workbench

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Create the Oracle Migration Workbench Repository

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Create the omwb_user in the destination Oracle database

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Create the sa tablespace in the destination Oracle database

Back to Topic List

Install Oracle Migration Workbench

Perform the following steps:

1.

Navigate to the c:\omwb folder, double-click the omwb_w2k.zip file to unzip the files into the c:\omwb folder. Note an omwb sub-folder (e.g. c:\omwb\Omwb) is created.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/inst01.gif

 

2.

Copy the c:\omwb\SQLServer2K.jar file and paste it in c:\omwb\Omwb\plugins.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/inst02.gif

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/inst02a.gif

 

 

 

 

 

 

 

 

 

 

Back to Topic

Create the Workbench repository

Perform the following steps:

1.

To start Oracle Migration Workbench, open a new Command Prompt window and enter:

cd c:\omwb\Omwb\bin

omwb.bat

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf01.gif

 

 

 

 

2.

The Oracle Migration Workbench Repository Login window opens. Select Default Repository and click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf02.gif

 

3.

When you log into Oracle Migration Workbench for the first time, a pop-up window appears stating that the repository does not exist. Click Yes to create it.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf03.gif

 

4.

The Create Migration Repository window displays the progress of the creation. Click Close when you see the message "Repository successfully created."

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf04.gif

 

5.

In the Select Migration Source window , choose OK to select the Microsoft SQL Server 2000 PlugIn.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf05.gif

 

6.

Two windows open: The Oracle Migration Workbench and the Capture Wizard: Welcome. Click Cancel in the Capture Wizard: Welcome window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/conf06.gif

 

 

 

 

 

 

 

Back to Topic

Create the omwb_user in the destination Oracle database

Perform the following steps:

1.

If you have not already done so, log into the Linux OS running on VMWARE as oracle/oracle. Open a terminal window and enter the following commands:

cd /home/oracle/wkdir

sqlplus sys/oracle as sysdba

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/user01.gif

 

2.

Execute the c_omwb_user.sql script to create the Oracle Migration Workbench user in the destination Oracle database.

start c_omwb_user

The script executes the following statement:

drop user omwb_user cascade;

CREATE USER omwb_user IDENTIFIED BY omwb_user;

GRANT CONNECT, RESOURCE, CREATE PUBLIC SYNONYM TO omwb_user WITH ADMIN OPTION;

GRANT ALTER ANY ROLE, ALTER ANY SEQUENCE, ALTER ANY TABLE,

ALTER TABLESPACE, ALTER ANY TRIGGER, COMMENT ANY TABLE, CREATE ANY SEQUENCE,

 CREATE ANY TABLE, CREATE ANY TRIGGER, CREATE ROLE, CREATE TABLESPACE,

 CREATE USER, DROP ANY SEQUENCE, DROP ANY TABLE, DROP ANY TRIGGER, DROP TABLESPACE,

 DROP USER, DROP ANY ROLE, GRANT ANY ROLE, INSERT ANY TABLE, SELECT ANY TABLE,

 UPDATE ANY TABLE TO omwb_user;

GRANT create view to omwb_user with admin option;

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/user02.gif

 

 

 

 

Back to Topic

Create the SA tablespace in the destination database

Perform the following steps:

1.

In the Linux OS running on VMWare, click on the Enterprise Manager Database Console icon on the desktop to launch Enterprise Manager Database Console

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp01.gif

 

2.

At the Enterprise Manager Database Control Login page, enter the following:

  • Username: sys
  • Password: oracle
  • Connect As: sysdba

Click Login.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp02.gif

 

3.

From the Home page, click on the Administration tab.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp03.gif

 

4.

Under the Storage heading, click on the Tablespaces link.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp04.gif

 

5.

Click the Create button.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp05.gif

 

6.

In the General tab, enter the tablespace name: sa and click on the Add button at the bottom of the page.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp06.gif

 

7.

In the Add Datafile page, set File Size to 30 MB and click on the Continue button.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp07.gif

 

8.

In the General tab, click OK to create the tablespace.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp08.gif

 

9.

Note that the SA tablespace is created. This tablespace will be used to store the migrated objects.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp09.gif

 

10.

Click the Cluster Database: RACDB link to return to the Administration page.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblsp10.gif

 

Back to Topic

Creating the Source Model

Now you will create the Source Model using the offline capture files, review the log files, and customize the Source Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Create the Source Model using offline capture files

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Review the log files

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Customize the Source Model

Back to Topic List

Create the Source Model using offline capture files

To create the Source Model in the Workbench repository using the offline capture files, perform the following steps:

1.

In the Oracle Migration Workbench window, select Action > Capture Source Database.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm01.gif

 

2.

Review the Welcome page and click Next.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm02.gif

 

3.

On the Source Model Load Details page, select Offline Source Model Load and click Next.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm03.gif

 

4.

Click Load. The Select Root Directory page appears.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm04.gif

 

5.

Navigate to c:\omwb\offline_capture_files directory, then click OK.

 

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm05.gif

 

6.

A list of metadata files is loaded. Click Next.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm06.gif

 

7.

In the Data Type Mappings page, review the data type mappings. Click Next.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm07.gif

 

8.

In the Create Oracle Model page, select No so that you can explore and customize the Source Model first. Click Next.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm08.gif

 

9.

On the Summary page, click Finish.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm09.gif

 

10.

The Loading Source Model window appears, displaying various messages. In the Loading Source Model pop-up message window, click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm10.gif

 

11.

Review the log messages and click OK to close the Loading Source Model pop-up message window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crsm11.gif

 

Back to Topic

Review the log files

To review the log files, perform the following steps:

1.

To change the logging display settings, select Tools > Options in the Oracle Migration Workbench window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log01.gif

 

2.

Click on the Logging tab.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log02.gif

 

3.

Deselect the following:

  • Informational Messages
  • Summary Messages
  • Debug Messages.

Click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log03.gif

 

4.

Review the log messages again by selecting Tools > Log Window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log04.gif

 

5.

The content of the Log Window changes, displaying only errors and warnings. Close the window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log05.gif

 

6.

In the left pane of the Window, expand the following nodes: Databases > hr.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log06.gif

 

7.

Note the following number of database objects in the Source Model:

  • 8 tables
  • 4 stored procedures
  • 2 triggers

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/log07.gif

 

Back to Topic

Customize the Source Model

You will customize the Source Model by removing the MS SQL Server administrative groups that will not be migrated to the Oracle database. Perform the following steps:

1.

Expand the Groups/Users node.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm01.gif

 

2.

Select all groups above the db_owner node (with click and shift-click) and select Object > Delete.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm02.gif

 

3.

Click Yes to confirm the deletion of the seven selected items.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm03.gif

 

4.

Expand the nodes again: Databases > hr > Groups/Users.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm04.gif

 

5.

Select the db_securityadmin role, right-click and choose Delete.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm05.gif

 

6.

Click Yes to confirm your deletion.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm06.gif

 

7.

Navigate to Databases > hr > Groups/Users > db_owner and click dbo. On the right of the window, you see that this role is assigned to the sa login. Oracle Migration Workbench will create a corresponding sa user account when you migrate the users.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cusm07.gif

 

Back to Topic

Creating the Oracle Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Create the Oracle Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Resolve parser error for a trigger

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Resolve parser error for a stored procedure

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Re-create the Oracle Model

Back to Topic List

Create the Oracle Model

Perform the following steps:

1.

Select Action > Create the Oracle Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crom01.gif

 

2.

Click Yes to confirm that you want to create the Oracle Model. The Creating Oracle Model window appears with many messages.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crom02.gif

 

3.

When the Oracle Model is complete, note that there are 4 errors. You will resolve these parser errors in subsequent steps. Click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crom03.gif

 

4.

Note the following objects are not created in the Oracle Model:

  • SECURE_EMPLOYEES trigger
  • EXAMPLE3 stored procedure.

Click OK again to close the Creating Oracle Model window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/crom04.gif

 

Back to Topic

Resolve parser error for a trigger

Resolve parser error for the SECURE_EMPLOYEES trigger by performing the following steps:

1.

Select Tools > Log Window from the menu.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse01.gif

 

2.

Double-click the first error for the SECURE_EMPLOYEES trigger. The SECURE_EMPLOYEES window opens with the cursor positioned on the error.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse02.gif

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse02a.gif

 

3.

Do the following:

  • Enter -- (2 hyphens) in front of INSTEAD OF
  • Remove the comment sign -- (2 hyphens) in front of the word FOR.
  • Click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse03.gif

 

4.

To re-parse the SECURE_EMPLOYEES trigger, in the SQL Server 2000 Source Model tab navigate to Databases > hr > Triggers.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse04.gif

 

5

Right-click on SECURE_EMPLOYEES and select Parse.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse05.gif

 

6.

A success message is displayed. Click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse06.gif

 

7.

Click on the Oracle Model tab

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse07.gif

 

8.

Expand Users > sa > Triggers. Verify that the SECURE_EMPLOYEES trigger is now part of the Oracle Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parse08.gif

 

Back to Topic

Resolve parser error for a stored procedure

Resolve parser error for example3 store procedure by performing the following steps:

1.

Click the SQL Server 2000 Source Model tab

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex01.gif

 

2.

Expand Databases > hr > Stored Procedures. Click example3.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex02.gif

 

3.

In the General tab on the right of the window, notice the word ERROR is used as a column name in the SELECT statement. This is a reserved word that has special meaning for the parser. Click the Parse Options tab.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex03.gif

 

4.

Select the Allow 'Reserved Words' in table names check box and click Apply. With this option selected, the parser will treat the word ERROR as an object name, not as one of its own special keywords.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex04.gif

 

5.

To re-parse the object, on the right pane of the window right-click on example3 and select Parse.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex05.gif

 

6.

Click OK to acknowledge the success message.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex06.gif

 

7.

Click on the Oracle Model tab

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex07.gif

 

8.

Expand Users > sa > Stored Procedures. Verify that EXAMPLE3 is indeed created in the Oracle Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex08.gif

 

9.

Close the Oracle Migration Workbench Log Window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/parseex09.gif

Back to Topic

Re-create the Oracle Model

Now that you have resolved the parser errors, you re-create the Oracle Model by performing the following steps:

1.

Select Action > Create Oracle Model

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/rcom01.gif

 

2.

Click Yes to confirm that you want to re-create the Oracle Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/rcom02.gif

 

3.

The Creating Oracle Model window appears with many messages. When the Oracle Model creation is complete, note there are no more errors. Click OK.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/rcom03.gif

 

4.

Click OK to close the Creating Oracle Model window.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/rcom04.gif

 

 

 

 

Back to Topic

Customizing the Oracle Model

Now you will customize the Oracle Model before migrating the objects to the destination database.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Change the data type mappings

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Delete the HR tablespace

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/bullet.gif

Use Tablespace Discoverer to import existing tablespace informaton

Back to Topic List

Change the data type mappings

The TS_CREATED column in the EMPLOYEES table stores datetime, not just date information. To change the data type mapping for this column, perform the following steps:

1.

In the Oracle Model, expand Users > sa > Tables and select the EMPLOYEES table.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cuom01.gif

 

2.

In the General tab on the right of the window, scroll down to the TS_CREATED column and change the Type from DATE to TIMESTAMP and click Apply.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/cuom02.gif

 

 

 

 

Back to Topic

Delete the HR tablespace

Oracle Migration Workbench automatically generates a default tablespace (e.g. HR) when you create the Oracle Model. But since you already created the SA tablespace in the destination database, you do not need this HR tablespace. It is recommended that you create the destination tablespace first to ensure you have control over the size of the datafiles. To remove the HR tablespace from the Oracle Model, perform the following steps:

1.

In the Oracle Model, navigate to Tablespaces > HR.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd01.gif

 

2.

Click Yes to save the changes.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd02.gif

 

3.

Right-click the HR tablespace, choose Delete.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd03.gif

 

4.

Choose Yes to confirm the deletion.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd04.gif

 

 

 

 

Back to Topic

Use Tablespace Discoverer to import existing tablespace information

To use tablespace discover to import existing information from the destination database, perform the following steps:

1.

From the menu, select Tools > Tablespace Discoverer.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd05.gif

 

2.

In the Tablespace Discoverer window, enter the following information and click Connect.

  • Username: omwb_user
  • Password: omwb_user
  • Hostname: 192.168.203.11
  • Port: 1521
  • SID: RACDB1

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd06.gif

 

3.

Once the tablespace information is retrieved from the destination database, in the Tablespace Discoverer window, assign the following tablespaces to your Oracle Model and click Apply.

  • Default tablespace: SA
  • Index tablespace: SA
  • Temporary Tablespace: TEMP

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd07.gif

 

4.

In the Oracle Model tab, expand the Tablespaces node to verify that metadata for both SA and TEMP tablespaces have been imported into the Oracle Model.

http://www.oracle.com/technology/obe/10gr2_db_vmware/develop/omwb/images/tblspd08.gif

 

 

 

 

 

Back to Topic

Migrating the tablespaces, users and user tables to the destination database

The Oracle Model is ready to be migrated to the destination database. You will connect directly from Oracle Migration Workbench to transfer the schema objects, specifically the tablespaces, users, and user tables to the destination database. Perform the following steps:

1.

 


0 Comment

Displaying results 1 to 0 - 0 page