Top Banner
INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009
36

INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Dec 26, 2015

Download

Documents

Amberly Hodge
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

Doug Clough

SYNERGETICS Engineered Systems

27 May 2009

Page 2: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 3: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 4: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Information

Page 5: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose

Information

Page 6: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Information

Page 7: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Information Data

Page 8: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Information Context Data

Page 9: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Information Context Data

Page 10: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

Page 11: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”

Page 12: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Harvesting tomatoes

Page 13: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Harvesting tomatoes

It’s ripe. Go ahead and pick it.

Page 14: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”

Page 15: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Driving in

traffic

Page 16: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Driving in

trafficSTOP!!

Page 17: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

Page 18: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 19: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

Relational Database

Page 20: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Page 21: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Page 22: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Design & Implement

Page 23: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

Page 24: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

Page 25: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBM

Page 26: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBM IngresSQL

Page 27: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBMOpenRoad Performance IngresSQL

Page 28: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 29: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Configuration Overview

• CLIENT installation on bay & jack (pitblade)• FULL installation on blueback (sockeye)

– Multiple servers connect to PTAGIS3 …• PTAGIS3_Loader (2 instances)• PTAGIS3_User (1 instance)

– Must configure …• fast_commit = ON• shared_cache = ON

Page 30: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Customized Backup Using ZFS

• ZFS snapshot taken ‘instantaneously’

• Checkpoint procedure reads the snapshot

• Source in /usr/ingres/snapckp– Shell script named snapckp– Developed by Simon Maybury (CA)– Adapted for use with ZFS by Todd & Doug

• Customized checkpoint template file …– $II_SYSTEM/ingres/files/cktmpl.bcv

Page 31: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Use of Rules, Procedures, Events• IDL and FDVL use ‘called procedures’

– IDL – load_int_data_cdbp• Serves as ‘transaction driver’• Performs aggregation ‘on the fly’

– FDVL – e.g. fd_tag_tag_cdbp• Compares ‘old’ and ‘new’ key values to perform

either insert or update

• TDS uses ‘rule-fired procs’ and ‘events’– Procedure executes when conditions are met– TDS_EventMonitor ‘registers’ for ‘events’

Page 32: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Generating Optimizer Statistics• As ‘ptagdev’ on ‘sockeye’ …

> dba> cd Statistics> vi ToDo_Blueback_Statistics.txt– Follow the instructions; log your work in this file!!

• DBA_OfflineStats.pl pittag ptagis3 <Arg>– Wrapper around several INGRES utilities– <Arg> is GEN, APP, SET (Sets ‘complete’ flag)

• DBA_Sysmod.pl pittag ptagis3– Wrapper around INGRES sysmod– Must run after applying new statistics– Writes to $JOB_LOG and its own log file

Page 33: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 34: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

INGRES Pre-Training Seminar

• Basic concepts• INGRES Curriculum• Specific to PTAGIS

– INGRES Configuration Overview– Customized Backup Using ZFS– Use of Rules, Procedures, Events– Generating Optimizer Statistics

• Q & A• Homework!!

Page 35: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Homework!!

• Please read …

Information Systems Development in the RDBMS EnvironmentD.P. Clough, April 1993

Page 36: INGRES Pre-Training Seminar Doug Clough SYNERGETICS Engineered Systems 27 May 2009.

Have a Great Time In Class!!