8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Data Definition Language (DDL)
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
9 Copyright © 2004, Oracle. All rights reserved. Managing Data.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Managing Schema Objects
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
Oracle Data Definition Language (DDL)
Oracle for Software Developers. What is a relational database? Data is represented as a set of two- dimensional tables. (rows and columns) One or more.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Copyright س Oracle Corporation, All rights reserved. 14 Controlling User Access.
Oracle Data Definition Language (DDL) Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
12 Copyright © Oracle Corporation, All rights reserved. Other Database Objects.
7 Copyright © 2004, Oracle. All rights reserved. Administering Users.
16 Copyright © Oracle Corporation, All rights reserved. Managing Privileges.
10 Copyright © 2009, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
1 Creating and Modifying Database Objects. 2 An Oracle database consists of multiple user accounts Each user account owns database objects Tables Views.
10 Creating and Managing Tables Objectives At the end of this lesson, you will be able to: Describe the main database objects Create tables Describe.
17 Copyright © Oracle Corporation, All rights reserved. Managing Roles.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Controlling User Access Fresher Learning Program January, 2012.
6 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
8 Copyright © 2007, Oracle. All rights reserved. Managing Schema Objects.
Data types  CHAR (size): This data type is used to store character strings values of fixed length. The size in brackets determines the number of characters.
8 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
SQL CREATING AND MANAGING TABLES lecture4 1. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns ViewLogically.
Copyright © 2004, Oracle. All rights reserved. CONTROLLING USER ACCESS Oracle Lecture 8.
13 Copyright © Oracle Corporation, All rights reserved. Maintaining Data Integrity.
2 Copyright © 2006, Oracle. All rights reserved. Managing Schema Objects.
Chapter 4 Indexes. Indexes Logically represents subsets of data from one or more tables View Generates numeric valuesSequence Basic unit of storage; composed.
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
Creating and Managing Tables 14. ObjectivesObjectives After completing this lesson, you should be able to do the following: After completing this lesson,
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
Academic Year 2015 Autumn. MODULE CC2006NI: Data Modelling and Database Systems Academic Year 2015 Autumn.
1 Copyright © 2006, Oracle. All rights reserved. Controlling User Access ( 사용자 접근 제어 )
7 Copyright © 2007, Oracle. All rights reserved. Administering User Security.
1 Copyright © 2009, Oracle. All rights reserved. Controlling User Access.
Lecture # 24 Introduction to SQL Muhammad Emran Database Systems.
11 Copyright © 2004, Oracle. All rights reserved. Performing a Migration Using Oracle Migration Workbench (Part II)
Creating and Managing Tables. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns ViewLogically represents subsets.
13 Copyright © 2004, Oracle. All rights reserved. Migrating SQL Statements.
7 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
Relational Databases and SQL The relational model and the most common SQL commands.
2 Copyright © 2009, Oracle. All rights reserved. Managing Schema Objects.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
Copyright  Oracle Corporation, All rights reserved. 14 Controlling User Access.
Controlling User Access
Managing Privileges.
TABLES AND INDEXES Ashima Wadhwa.
SQL and SQL*Plus Interaction
IS221: Database Management
Managing Objects with Data Dictionary Views
ORACLE I 2 Salim Phone : YM : talim_bansal.
Chapter 4 Indexes.
CH 4 Indexes.
CH 4 Indexes.
Managing Privileges.
Presentation transcript:

8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects

8-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Create and modify database tables View data in the database Create additional database objects Load data into tables

8-3 Copyright © 2005, Oracle. All rights reserved. What Is a Schema? HR schema HR user owns

8-4 Copyright © 2005, Oracle. All rights reserved. Schemas Schemas created as part of the database creation process include: SYS SYSTEM Sample schemas

8-5 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

8-6 Copyright © 2005, Oracle. All rights reserved. Accessing Schema Objects Click a link to access the schema objects.

8-7 Copyright © 2005, Oracle. All rights reserved. Specifying Data Types in Tables Common data types: CHAR : Fixed-length character data with length in bytes DATE : Valid date range from January 1, 4712 B.C., to December 31, 9999 A.D. NUMBER : Number having precision p and scale s VARCHAR2 : Variable-length character string with maximum length in bytes or characters

8-8 Copyright © 2005, Oracle. All rights reserved. Creating and Modifying Tables Specify the table name and schema. Specify the column names, data types, and lengths.

8-9 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

8-10 Copyright © 2005, Oracle. All rights reserved. Understanding Data Integrity

8-11 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

8-12 Copyright © 2005, Oracle. All rights reserved. Defining Constraints

8-13 Copyright © 2005, Oracle. All rights reserved. Viewing the Attributes of a Table

8-14 Copyright © 2005, Oracle. All rights reserved. Viewing the Contents of a Table

8-15 Copyright © 2005, Oracle. All rights reserved. Dropping a Table When you drop a table: The table definition is removed from the data dictionary All rows of the table are removed All indexes defined on the table are removed

8-16 Copyright © 2005, Oracle. All rights reserved. Managing Indexes An index: Provides faster access to the rows in a table Is automatically used for data access Is physically independent of the table Is automatically maintained when the table is updated Index entry points to row in table

8-17 Copyright © 2005, Oracle. All rights reserved. Creating and Dropping Indexes

8-18 Copyright © 2005, Oracle. All rights reserved. Managing Views A view is a customized presentation of data from a table or other view. Views do not contain data.

8-19 Copyright © 2005, Oracle. All rights reserved. Managing Database-Resident Program Units Use Enterprise Manager to manage the following types of database-resident program units: Packages Package bodies Stand-alone subprograms –Procedures –Functions Database triggers

8-20 Copyright © 2005, Oracle. All rights reserved. Using Enterprise Manager to Manage Database-Resident Program Units Click a link to access the program units.

8-21 Copyright © 2005, Oracle. All rights reserved. Managing Access to Schema Objects SELECT FROM table GRANT object privileges INSERT UPDATE DELETE EXECUTE

8-22 Copyright © 2005, Oracle. All rights reserved. Loading Data

8-23 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

8-24 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Create and modify tables Define constraints View the attributes of a table View the contents of a table Create indexes and views Load data into tables

8-25 Copyright © 2005, Oracle. All rights reserved. Practice 8: Overview This practice covers the following topics: Creating a table Defining constraints Creating an index Granting object privileges to a role Loading data

8-26 Copyright © 2005, Oracle. All rights reserved.