ingres pre-training seminar doug clough synergetics engineered systems 27 may 2009

Post on 26-Dec-2015

213 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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!!

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!!

Information System

Information

Information System

Purpose

Information

Information System

Purpose Environment

Information

Information System

Purpose Environment

Information Data

Information System

Purpose Environment

Information Context Data

Information System

Purpose Environment

Information Context Data

Information System

Purpose Environment

Meaning Logic Information Context Data

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Harvesting tomatoes

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Harvesting tomatoes

It’s ripe. Go ahead and pick it.

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Driving in

traffic

Information System

Purpose Environment

Meaning Logic Information Context Data

“red”Driving in

trafficSTOP!!

Information System

Purpose Environment

Meaning Logic Information Context Data

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!!

Information System

Purpose Environment

Meaning Logic Information Context Data

Relational Database

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Design & Implement

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBM

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBM IngresSQL

Information System

Purpose Environment

Meaning Logic Information Context Data

User Interface Relational Database

Deploy & Operate

Design & Implement

IngresDBMOpenRoad Performance IngresSQL

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!!

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

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

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’

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

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!!

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!!

Homework!!

• Please read …

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

Have a Great Time In Class!!

top related