1 All Powder Board and Ski Oracle 9i Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003.

Slides:



Advertisements
Similar presentations
All Powder Board and Ski
Advertisements

Widhy Hayuhardhika NP, S.Kom. Overview of database structure Connecting to MySQL database Selecting the database to use Using the require_once statement.
ADABAS to RDBMS UsingNatQuery. The following session will provide a high-level overview of NatQuerys ability to automatically extract ADABAS data from.
Office Links - Sharing Data in Microsoft Office A Mixed Bag of Treasures Chester N. Barkan Registrar Long Island University, C.W.Post Campus.
Introduction to ETL Using Microsoft Tools By Dr. Gabriel.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
UIC Data Conversion and Submission via CDX Node Client UIC Database V2 6/16/
Copyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. SQL Workshop Day 4.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Integrating Access with the Web and with Other Programs.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Project Implementation for COSC 5050 Distributed Database Applications Lab6.
Oracle SQL*plus John Ortiz. Lecture 10SQL: Overview2 Overview  SQL: Structured Query Language, pronounced S. Q. L. or sequel.  A standard language for.
Tutorial 11: Connecting to External Data
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
Classroom User Training June 29, 2005 Presented by:
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003.
Introduction to MySQL Lab no. 10 Advance Database Management System.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
1 All Powder Board and Ski SQL Server Workbook Chapter 2: Database Design Jerry Post Copyright © 2004.
Phone: Mega AS Consulting Ltd © 2007  CAT – the problem & the solution  Using the CAT - Administrator  Mega.
Training Guide for Inzalo SOP Users. This guide has been prepared to demonstrate the use of the Inzalo Intranet based SOP applications. The scope of this.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
All Powder Board and Ski Oracle 9i Workbook Chapter 1 Jerry Post Copyright © 2003.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
A Brief Documentation.  Provides basic information about connection, server, and client.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.
All Powder Board and Ski Microsoft Access Workbook Chapter 2: Database Design Jerry Post Copyright © 2003.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Ing. Erick López Ch. M.R.I. Replicación Oracle. What is Replication  Replication is the process of copying and maintaining schema objects in multiple.
© 2007 by Prentice Hall2-1 Introduction to Oracle 10g Chapter 2 Overview of SQL and SQL*Plus James Perry and Gerald Post.
Introduction to Teradata Client Tools. 2 Introduction to Teradata SQL  OBJECTIVES :  Teradata Product Components.  Accessing Teradata – Database /
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
1 All Powder Board and Ski SQL Server Workbook Chapter 5: Advanced Queries Jerry Post Copyright © 2003.
CS320 Web and Internet Programming SQL and MySQL Chengyu Sun California State University, Los Angeles.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
1 c6212 Advanced Database and Client Server MS SQL Server 2000 Stored Procedures and Parameters What ? Why ? How ?
Unit 9 Seminar. Starting Reporting Services Reporting Service Started.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 10: Distributed Databases and the Internet All Powder.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9: Database Administration All Powder Board and Ski.
CS320 Web and Internet Programming SQL and MySQL
Chapter 2: Database Design All Powder Board and Ski
All Powder Board and Ski
All Powder Board and Ski
Database Driven Websites
ISC440: Web Programming 2 Server-side Scripting PHP 3
Microsoft Office Access 2003
Microsoft Office Access 2003
RAC Performance Lab.
CS3220 Web and Internet Programming SQL and MySQL
Grocery Store Outline csc242 – web programming.
CS3220 Web and Internet Programming SQL and MySQL
Presentation transcript:

1 All Powder Board and Ski Oracle 9i Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003

2 All Powder LAN Offices/Managers Checkout Rental Desk Network Switch Server

3 Create Target Database and Table Create a new database if necessary: Start/All Programs/Oracle-OraHome92/Configuration and Migration Tools/ Database Configuration Assistant Use Net Manager to add a hostname entry Log in and create a new user/schema or use the system schema Create a small table CREATE TABLE Customer ( CustomerID INTEGER, LastNameVARCHAR2(15), FirstNameVARCHAR2(15), Constraint pk_Customer Primary Key (CustomerID) ); INSERT INTO Customer (CustomerID, LastName, FirstName) Values (1,'Smith', 'Adam'); INSERT INTO Customer (CustomerID, LastName, FirstName) Values (2,'Keynes', 'John'); INSERT INTO Customer (CustomerID, LastName, FirstName) Values (3,'Samuelson', 'Paul'); INSERT INTO Customer (CustomerID, LastName, FirstName) Values (4,'Robinson', 'Joan'); Commit;

4 Link to Target Database CREATE DATABASE LINK NewYork CONNECT TO RemoteUser IDENTIFIED BY t1 USING 'dbhostname'; SELECT * FROM Create a descriptive name for the link User account and password on the target database Database hostname in the network file Table name

5 Database Replicas Master Site Materialized View (Replica) Replication Group Deployment Template Link Schedule Synchronize

6 Create a Materialized View Replica 1.Start the Deployment Template 1.Set up Master Sites 2.Disconnect and log in as RepAdmin 3.Create a Master Group 4.Create the Template 5.Generate the script 2.Create Materialized View logs on the master site for each table 3.On the client, or build as PL/SQL to add to the script 1.Manually create a Materialized View Group creating a new Refresh Group matching name from template: CustomerTemplate 2.Select the Customer materialized view (or all) 3.Add the materialized view to the refresh group

7 Creating Replicas: Deployment Template-Master Site Add the main database Log in as SYSDBA Open Advanced Replication and follow menu options

8 Replica: Deployment: Master Group Objects tab Select Customer table

9 Template: Create Views Create template Select tables

10 Generate Template: Schema

11 Create Materialized View CREATE MATERIALIZED VIEW Powder.Customer FOR UPDATE AS SELECT * FROM

12 Client Side MV and Refresh Group Create refresh group Add materialized views Refresh

13 PL/SQL on Web Pages (0) Configure the Data Access Descriptor (DAD) (1) Create the basic html form to get the SaleIDGetSale.psp (2) Create the page to display the resultsListSales.psp (3) loadpsp -replace -user GetSale.psp (4) loadpsp -replace -user ListSales.psp (5) Pages without JavaPages are stored as procedures within the database and use embedded PL/SQL to connect to the database Two page example to enter a SaleID and lookup the matching data

14 Configure DAD Pick: Mod plsql Configuration Menu Modify the SimpleDAD, or create a new one Schema Name: Powder UserName: Powder Password: Connect String: PostDB Authentication Mode: Basic Leave the other defaults

15 GetSale.psp Form Page Get SaleID All Powder Board and Ski Shop Sales Enter a Sale ID value:

16 ListSales.psp Display Page List Sales Data Sales data for SaleID: Sale ID Sale Date CustomerID <% for item in (select * from sale where SaleID=l_SaleID order by SaleDate) loop %>

17 Load Pages Into Oracle (3) loadpsp -replace -user GetSale.psp (4) loadpsp -replace -user ListSales.psp Go to the command line (DOS) You must include the database name

18 Open the First Page in a Browser The URL is very picky and must be complete (regardless of what the documentation says). And watch the dot!

19 Results The example is simple to highlight the steps. You can retrieve more rows. You can use a better format.

20 Create XML File with SQL SET long SET pages 100 SPOOL D:\Students\AllPowder\Employee10.xml SELECT XMLElement("Employee", XMLElement("LastName", LastName), XMLElement("FirstName", FirstName)) FROM Employee WHERE rownum<10; SPOOL OFF Eliminate line and page breaks Send output to a file Limit data to 9 rows to keep the file smaller for now

21 XML File: Cleaned Up Staff Killy Jean-Claude …

22 XML File in Internet Explorer