1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary.

Slides:



Advertisements
Similar presentations
Data Definition Language (DDL)
Advertisements

13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
11 Copyright © 2004, Oracle. All rights reserved. Managing Objects with Data Dictionary Views.
Managing Objects with Data Dictionary Views
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
Data Replication with Materialized Views ISYS 650.
MI807: Database Systems for Managers Introduction –Course Goals & Schedule –Logistics –Syllabus Review Relational DBMS Basics –RDBMS Role in Applications.
System Administration Accounts privileges, users and roles
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
Database objects User schema DCL Oracle dictionary.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
MD807: Relational Database Management Systems Introduction –Course Goals & Schedule –Logistics –Syllabus Review RDBMS Basics –RDBMS Role in Applications.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
ORACLE Using ORACLE 8 SQL using ORACLE 8 PL/SQL using ORACLE 8.
ADVANCE REPLICATION Oracle Coretech Surabaya (OCS) One Day Seminar Surabaya, August 30 th 2008.
Dale Roberts 8/20/ Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Getting Started with Oracle11g Abeer bin humaid. Create database user You should create at least one database user that you will use to create database.
Oracle Database Security …from the application perspective Martin Nystrom September 2003.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Client-Server – Lecture 4 Copyright System Managers LLC 2007 all rights reserved.
Oracle Database Administration
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
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.
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Chapter 6 Additional Database Objects
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Database Programming Sections 13–Creating, revoking objects privileges.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Deploying Oracle Names Jeff D’Abate Sr. Database Administrator Enterprise Application Services November 19, 2004.
Chapter 6 Additional Database Objects Oracle 10g: SQL.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
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 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
What is a schema ? Schema is a collection of Database Objects. Schema Objects are logical structures created by users to contain, or reference, their data.
A Brief Documentation.  Provides basic information about connection, server, and client.
Siebel 8.0 Module 2: Overview of EIM Processing Integrating Siebel Applications.
DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.
3 Copyright © Oracle Corporation, All rights reserved. Basic Oracle Net Server Side Configuration.
Controlling User Access Fresher Learning Program January, 2012.
3 Copyright © 2004, Oracle. All rights reserved. Controlling Access to the Oracle Listener.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
Kansas State University Department of Computing and Information Sciences CIS 560: Database System Concepts Tuesday, November 1, 2000 “Transaction processing”
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
Chapter 12 Additional Database Objects. Chapter Objectives  Define the purpose of a sequence and state how it can be used by an organization  Explain.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Indexes- What?  Optional structures associated with tables  Provides a quick access path to table data  You can create indexes on one or more columns.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
11 Copyright © 2006, Oracle. All rights reserved. Managing Objects with Data Dictionary Views.
Chapter 12Introduction to Oracle9i: SQL1 Chapter 12 Additional Database Objects.
Creating and Revoking Object Privileges. 2 home back first prev next last What Will I Learn? Explain what a ROLE is and what its advantages are. Construct.
Basic Oracle Net Services Client-Side Configuration
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
Controlling User Access
Controlling User Access
Controlling User Access
TABLES AND INDEXES Ashima Wadhwa.
Controlling User Access
IS221: Database Management
Naming convention for Database Services at CERN
Basics on DB access Elke A. Rundensteiner.
Enabling Distributed Transactions
Managing Objects with Data Dictionary Views
Managing Objects with Data Dictionary Views
Presentation transcript:

1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary

2 Ch. 21: SQL*Loader  SQL*Loader loads data from external files into tables in Oracle.  Usually requires 2 primary files: Datafile(s), data to be loaded. Control file, describes how to load. these two files can be combined into the control file.  When executing, SQL*Loader creates: bad file, shows rejected rows log file, shows load status

3 Ch. 21: SQL*Loader Control File Examples  Variable field control file  Fixed field control file

4 Ch. 22: Database Links  Database links allow you to access data in another Oracle database.  Requires that Oracle Net (aka Oracle SQL*Net or Net8) be running on both database servers.  Links specify: Protocol (eg. TCP/IP) Host name of remote server. Database name on the remote server The database account and password to access the data.

5 Ch. 22: Database Links  Create Database Link syntax: CREATE DATABASE LINK MYLINK CONNECT TO ATEAL IDENTIFIED BY PASSWORD USING ‘PHOENIX’;  Using a database link: SELECT COUNT(*) FROM  Using a synonym with a database link: CREATE SYNONYM MYTABLE FOR SELECT COUNT(*) FROM MYTABLE;  “Dynamic” links using SQL*Plus’s copy command: COPY FROM CREATE NEWTABLECOPY USING SELECT * FROM MYTABLE;

6 Ch. 22: Oracle Net  Oracle Net is Oracle’s networking software. Formerly called SQL*Net (7.x) and Net8 (8.0.x and 8i).  Oracle Net’s local configuration files are sqlnet.ora and tnsnames.ora. These are located in ORACLE_HOME\network\admin.  Example tnsnames.ora entries below. LOCAL = (DESCRIPTION = (SOURCE_ROUTE = OFF) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = TONYTEAL)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORACLE) ) PHOENIX = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix.cs.iupui.edu)(PORT = 1521)) ) (CONNECT_DATA = (SID = OS80) )

7 Ch. 23: Materialized Views  Materialized Views (formerly called Snapshots) pre-aggregate data, index the data, and therefore improve query performance. Oracle creates a table that holds the data that otherwise might be accessed from queries/views.  Materialized views are commonly used in reporting applications.  When you create a materialized view, you must specify: The query the materialized view is based on. The refresh schedule. How the update is performed (update vs. complete refresh) The key type (rowid vs. primary key)

8 Ch. 37: Data Dictionary  Oracle’s Data Dictionary views stores all the information about what is stored in the database.  Three types of data dictionary views: DBA_% views are only available to DBAs (granted DBA role). ALL_% views show all objects the user has privileges on. USER_% views show only objects in your schema.  The Road Map views: DICT and DICT_COLUMNS DICTIONARY (DICT) – describes other dictionary views DICT_COLUMNS – describes columns of DICT views

9 Ch. 37: Data Dictionary  Important Data Dictionary views: USER_TABLES (TABS) – tables USER_TAB_COLUMNS (COLS) – columns of tables USER_VIEWS – views USER_SYNONYMS (SYN) – synonyms USER_SEQUENCES (SEQ) – sequences USER_CONSTRAINTS – constraints USER_CONS_COLUMNS – columns of the constraints USER_INDEXES (IND) – indexes USER_IND_COLUMNS – columns of indexes