Skip Headers

Oracle Migration Workbench Reference Guide for Microsoft Access 2.0, 95, 97, 2000 Migrations
Release 9.2.0 for Microsoft Windows 98/2000 and Microsoft Windows NT

Part Number A97262-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

4
Troubleshooting

This chapter provides troubleshooting solutions. It instructs you through a manual conversion of a Microsoft Access database to Oracle. This guide assumes that you are starting with a separate application and data .MDB files, the app.mdb file and the data.mdb file. It instructs you on how to separate these files prior to performing a manual conversion.

This chapter includes the following sections:

Removing Microsoft Access Security

The Migration Workbench does not support the migration of Microsoft Access databases that have security enabled. In order to ensure that the Migration Workbench can migrate the Microsoft Access table data, it is necessary to copy the contents of the secured database into a new database. Everything is copied over to the new database, except for the security settings. You can then migrate the new database to Oracle.

To copy the contents of the secured database into a new database:

  1. In Microsoft Access, choose File -> New Database.

  2. Select the Blank Database icon and click OK.

  3. From the File New Database dialog box, type a name for the database and click Create.

  4. From within the new database, choose File -> Get External Data -> Import.

  5. Select the secured Microsoft Access database you want to import and click Import.

  6. From the Import Objects dialog, click Options. Ensure that the Relationships and Definition and Data options are selected.

  7. From the Tables tab, choose Select All.

  8. Click OK.

Erroneous Relations within Microsoft Access 95

There is a bug within Microsoft Access 95 that sometimes generates false relations. Since these erroneous relations do not appear in the Microsoft Access IDE user interface, you cannot delete them through the application because they are hidden from the user. The workaround is to create a new copy of the Microsoft Access database with no relations specified. You can then manually re-create the correct relations in the new database.

To copy the contents of the Microsoft Access database without specifying relations:

  1. Create a new empty Microsoft Access database by choosing File -> New Database.

  2. Select Blank Database and click OK.

  3. From the File New Database dialog box, type a name for the database and click Create.

  4. From within the new database, choose File -> Get External Data -> Import.

  5. Select the original Microsoft Access database you want to import.

  6. From the Import Objects dialog, select Options.

  7. Deselect Relationships from the Import section, then click OK.


    Note:

    If you want to migrate the legitimate relations from Microsoft Access, you must manually re-create them within the new database.


  8. From the Tables tab, choose Select All.

  9. Click OK.

Migrating Relations with Queries

The Migration Workbench currently does not support the migration of queries. Therefore, any relations consisting of queries do not migrate to Oracle. To avoid errors in migrating the Microsoft Access to Oracle, manually delete the relations by doing the following:

  1. From within the Microsoft Access database, choose Tools -> Relationships.

  2. Right-click on the line that shows the relationship, then select Delete Relationship.

  3. Select Yes to confirm deletion.

  4. Migrate the Microsoft Access database to Oracle.

Defining Primary Keys on a Table

If a table you specify does not have a defined primary key, you are unable to update the records of that table after migration. Microsoft Jet database engine requires a primary key on tables in Oracle in order to support dynasets against those tables. If the Oracle table does not have a primary key, Microsoft Jet database engine opens only a non-editable snapshot on the table. If you want to update the contents of the table through the Microsoft Jet database engine, you should do one of the following:

Migrating Table Data Using Microsoft Access ODBC Data Source

The following message displays during the data move of the migration process if the ODBC data source is not referencing a valid .mdb file:

The Microsoft Access ODBC Data Source Name "omwb_msaccess" is not configured 
properly

When this message displays, perform the following procedures:

  1. Choose Start->Settings->Control Panel.

  2. Select ODBC Data Sources.

  3. Select omwb_msaccess from the User DSN tab.

  4. Click Configure.

  5. Click Select in the Database section.

  6. Browse to the database you want to migrate and click OK.

Incorrect Boolean Values When Migrating Data

When the Migration Workbench retrieves Boolean data, the Microsoft Access ODBC driver returns one of two values, 0 as FALSE or 1 as TRUE, therefore, FALSE and TRUE values are also represented in Oracle as 0 and 1.

However, an issue may arise when this data is used within a Microsoft VB application. Microsoft VB internally represents TRUE as -1 (instead of 1), and FALSE as 0. Therefore if you are evaluating based on TRUE, the logical programme behavior may be incorrect.

To ensure that the logic is unchanged, Oracle recommends that you update TRUE Boolean values in Oracle tables by executing the following command:

UPDATE <TABLENAME> SET <COLUMNNAME> = -1 WHERE <COLUMNAME> = 1

Go to previous page Go to next page
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback