iSelfSchooling.com - Copyright © 1999-2007 iSelfSchooling.com  References  Job Openings  |  Secure Login
    Home  | Search more...  |  FREE Online VIDEO Oracle Training  |  Gift Store  |  Bookstore

   Unlimited access!   

    Oracle  Syntax  | Suggestions Your Contribution  |  FREE Legal Forms

 

Email2aFriend Homepage us! |  Bookmark   -  Copyright & User Agreement

Products/Services

 Vision/Mission

 Community Sharing

 Services

  Products

 Biography

 Contact Us

 FAQ

 Current News

 Website Traffic

 Bookstore

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

Oracle SYNTAX

 Oracle Functions

 Oracle Syntax

 Oracle 10g Syntax

  PL/SQL Syntax

UNIX and more...

 UNIX for DBAs

 LINUX for DBAs

 DB using PHP

  A+ Certification

 Basics of JAVA  

 Tips of  SEO

Finance/Jobs

 Financial Aid

 Skilled

 Oracle

 Jobs

  Magazine

More Training

 Q & Answers

 SQL-PL/SQL

 DBA

 Developer

 Important Notes

 Case Studies

 9i New Features

 10g New Features

 10g Qs/As

 Grid Control

 OracleAS # I

 OracleAS # II

  LDAP and OID

  HTTP Server

 Instructor-Led

  Virtual Hosts

 Community Sharing

More to know...

Acknowledgement**

 FREE Legal Forms

 Who is who

 Market Place

 University Directory

 Advisory Articles

 Links...

 

 

FREE Online Oracle Training for beginners and advanced - The most comprehensive Oracle tutorial

The authors do not guarantee or take any responsibility for the accuracy, or completeness of the information.

BASICS

SQL | PL/SQL

DEVELOPERS

FORMS 2 | REPORTS | Other TOOLS

DBAs

FUNDAMENTALS 2 | PERFORMANCE | OEM

ADVANCE

APPLICATION SERVER | GRID CONTROL | ARTICLES 2 3 4

Developers - Other Tools

Lesson 01 | Lesson 02 | Lesson 03 | Lesson 04 | Lesson 05 | Lesson 06 | Lesson 07 | Lesson 08 | Lesson 09 | Lesson 10 | Lesson 11 | Lesson 12 | Lesson 13 | Lesson 14 | Lesson 15 | Lesson 16 | Lesson 17 | Lesson 18 | Lesson 19 | Lesson 20 | Lesson 21 | Lesson 22 | Lesson 23 | Lesson 24 | Lesson 25 | Lesson 26 | Lesson 27 | Lesson 28 | Lesson 29 | Lesson 30 | Lesson 31 | Lesson 32 | Lesson 33 | Lesson 34 | Lesson 35 |

Lesson 01

"The instinct of nearly all societies is to lock up anybody who is truly free. First, society begins by trying to beat you up. If this fails, they try to poison you. If this fails too, they finish by loading honors on your head." - Jean Cocteau (1889-1963)

Read first then play the video:

   Important Notes to remember about the Oracle Front-end and Back-end tools

   Basic Information about Schema Builder (Oracle Training)

Introduction to Schema Builder

Introduction

Schema Builder allows you to define the tables, views, snapshots, synonyms, constraints, and table relationships that will make up your database. You can visualize your database design, including the tables, columns, data types, and relationships, and then execute that design.

 

Hands-On

In this Hands-On, you will learn how to: Create the “students” table, Define columns, Define attributes, Define Primary key, Define require field, Define Unique Key, Grant Privileges to public, Check what other users can access, Remove table, and Check table access.

 

Open Schema Builder tool

Open the “Schema Builder” tool.

Login as “iself” password “schooling,” and click on “connect.”

 

Click on the “OK” button.

 

Maximize the window if needed.

 

Create a table

Choose the “Schema” option, select “Create Table”, then click on ”Table.”

 

You should see the ‘+’ sign next to your cursor. Drag your “+” sign cursor and release it.

Resize your object if needed.

 

Rename a table

Choose the “Data” option and click on “Rename Table.”

In the ‘Rename Table’ window, change the “Table1” name to “Students,” and then click “OK” to rename the table.

 

Add columns and attributes

Click on the plus sign next to the ‘COLUMN1’ object to add new columns.

In the ‘Define Column’ window in the ‘Column Name’ box, type “Student_id;” its column attributes; and make it a Primary Key. Use any reasonable attributes to your column (Data type, Length, Default value, Primary key, Unique Key, or Required). Notice on the different attribute options available to you in the ‘Data Type’ box.

 

Click on "new column."

Type "first_name," its column attributes; and make it a required field.

 

Click on "new column."

Type "last_name," its column attributes; and make it a required field.

 

Click on "new column."

Type "ssn" for social security number, its column attributes; and make it an unique key.

 

Click “OK.” Your table will be created.

 

SQL statement

To check on the SQL statement, choose the "schema” option, and click on "Show SQL." Now, you should be able to see your SQL statement in the ‘Schema Editor: Show SQL’ window.

 

Save table in the database

To save your table in the database, click on “COMMIT” to create the table, and then

Close the window.

 

Now, the table was created.

Grant access privileges

To assign or grant privileges to others to access to your tables, choose the "File" option, and click on "Set privileges.”

 

In the ‘Set Schema Privileges’ window, you will see all your tables and all the Roles privileges that you are able to grant.

Assign the “Students” table to the public. Select the ‘Students’ table and the ‘PUBLIC’ role by highlighting them. Notice that the ‘Privileges’ box will change to white from gray.

Give select and insert privileges to the public by check mark them.

Click on "apply," and then close the window.

 

Now, the public users can only “insert” and “select” from the table.

Drop a table

Now, let’s drop the table.

Choose the “Schema" option and click on “Remove.”

 

The gray color indicates the object was removed.

 

Exit from “schema builder," and Click on "yes" to commit changes.

 

 

 

"Everyone is a genius at least once a year; a real genius has his original ideas closer together." - Georg Lichtenberg (1742-1799)

Questions:

Q: How can you create a table using the "Schema Builder" tool?

Q: How can you define a column, attribute, and primary key using the "Schema Builder" tool?.

Q: How can you define a required field and unique key using the "Schema Builder" tool?.

Q: How can you grant an object privilege to the public using the "Schema Builder" tool?

Q: How can you check what other users can access using the "Schema Builder" tool?

Q: How can you remove a table using the "Schema Builder" tool?

 

 
 
Google
 
Web web site