Professional Documents
Culture Documents
Modeling The Database Schema (Optional)
Modeling The Database Schema (Optional)
Modeling The Database Schema (Optional)
Objectives
After completing this lesson, you should be able to do the following: Describe JDevelopers tool for database modeling Create a schema model Modify the schema model Reconcile the modifications to the database Import database object definitions to an offline database Reconcile offline database objects with the database
3-2
With JDevelopers database modeler, you can: Create a schema model Modify the schema model Reconcile changes to the database
3-3
Database modeling can help you achieve the following goals: For existing database objects:
Visualize the schema to help analyze whether it meets requirements. Make any necessary modifications.
3-4
3-5
You can work with database objects in the following ways: Online: Create and modify schema objects directly in a database through a JDeveloper connection. Offline:
Model metadata for database objects outside the context of a database schema. Import objects from online database. Generate changes to online schemas.
Diagrammer:
Create and modify objects by dragging from Component Palette and Database Navigator. Import objects from offline database model. Generate changes to online schemas.
3-6
You can create offline database definitions in the following ways: Create new offline database objects Copy from database with filters
3-7
To create a definition for an offline database in which you can model database objects, perform the following steps:
1. In the Application Navigator, right-click a project and choose New to display the New Gallery. 2. In the New Gallery, expand Database Tier, and select Offline Database Objects. 3. Select Offline Database to launch the Create Offline Database Wizard. 4. In the pages of the wizard, enter properties for the database, such as its name.
After an offline database is created, you can create various database object definitions within it.
Copyright 2008, Oracle. All rights reserved.
3-8
3 - 10
3 - 11
3 - 12
3 - 13
Choosing ALTER with Manual Reconcile enables you to choose changes to be generated to the database.
3 - 14
3 - 15
You can import database objects to an offline database without using a diagram:
3 - 16
3 - 17
Summary
In this lesson, you should have learned how to: Describe JDevelopers tool for database modeling Create a schema model Modify the schema model Reconcile the modifications to the database Import database object definitions to an offline database Reconcile offline database objects with the database
3 - 18
Practice 3 Overview: Modeling the Schema for the Course Application (optional)
This practice covers the following topics: Creating a database diagram Adding existing schema objects to the diagram Adding a new database object to the diagram Creating the DDL to add the new object to the database
3 - 19