DB-01 Upgrading to OpenEdge ® Practices & Initial Tuning Tom Harris, Managing Director, RDBMS Technology.

Slides:



Advertisements
Similar presentations
B3: Putting OpenEdge Auditing to Work: Dump and Load with (Almost) No Downtime David EDDY Senior Solution Consultant.
Advertisements

Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Index Rebuild Performance Hopefully youll never need it. Wei Qiu Principle Engineer Progress Software Inc.
DB-7: OpenEdge® Database Performance Tuning
DB-03: A Tour of the OpenEdge™ RDBMS Storage Architecture Richard Banville Technical Fellow.
Some More Database Performance Knobs North American PUG Challenge
T OP N P ERFORMANCE T IPS Adam Backman Partner, White Star Software.
OPS-10: Moving V8/V9 RDBMS to OpenEdge® 10
DB-13: Database Health Checks How to tell if you’re heading for The Wall Richard Shulman Principal Support Engineer.
1 How Healthy is Your Progress System? ( Progess DB Best Practices) Dan Foreman BravePoint, Inc.
Progress Database Setup, Maintenance and Tuning
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
1 PUG Challenge EU 2014 Click to edit Master title style PUG Challenge EMEA 2014 – Dusseldorf, Germany Common Database Problems Common Database Solutions.
External Sorting CS634 Lecture 10, Mar 5, 2014 Slides based on “Database Management Systems” 3 rd ed, Ramakrishnan and Gehrke.
TEMP-TABLE Performance Tuning & Other Important Stuff
OpenEdge Replication Made Easy Adam Backman White Star Software
Backup and Recovery Part 1.
Database I/O Mechanisms
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
New Generation of OpenEdge ® RDBMS Advanced Storage Architecture II Tomáš Kučera Principal Solution Engineer / EMEA Power Team.
MOVE-4: Upgrading Your Database to OpenEdge® 10 Gus Björklund Wizard, Vice President Technology.
1 PUG Challenge Americas 2015 Click to edit Master title style PUG Challenge USA 2015 Top Performance Enhancers & Destroyers Presented by: Dan Foreman.
Backup & Recovery 1.
Administration etc.. What is this ? This section is devoted to those bits that I could not find another home for… Again these may be useless, but humour.
DB-12: Achieving High Availability with Clusters and OpenEdge® Replication Combining the two technologies Hugo Loera Chávez Senior Tech Support Engineer.
IBM Software Group Washington Area Informix User Group Forum 2004 The DB2 DBA Checklist Dwaine R Snow, DB2 & Informix.
Database Storage Considerations Adam Backman White Star Software DB-05:
Chapter 2. Creating the Database Environment
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Top Performance Enhancers Top Performance Killers in Progress Dan Foreman Progress Expert
COMP-10: OpenEdge ® Management & Replication – Divide et impera! Cyril Gleiman & Libor Laubacher Principal Technical Support Engineers.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Clustering SQL Server Tom Pullen Senior DBA, RM Education
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Top 10 Performance Hints Adam Backman White Star Software
Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint
DB-2: OpenEdge® Replication: How to get Home in Time … Brian Bowman Sr. Solutions Engineer Sandy Caiado Sr. Solutions Engineer.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
OPS-1: DBA How Healthy is Your Database Today? Libor LaubacherRuanne Cluer Principal Tech Support Engineer.
DEV-09: User Authentication in an OpenEdge™ 10.1 Distributed Computing Environment Michael Jacobs Development Architect.
Horizontal Table Partitioning Dealing with a manageable slice of the pie. Norwegian PUG Event Richard Banville Fellow, OpenEdge Development April 8, 2014.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
OPS-15: What was Happening with My Database, AppServer ™, OS... Yesterday, Last Month, Last Year? Libor LaubacherRuanne Cluer Principal Tech Support Engineer.
Progress Database Admin 1 Jeffrey A. Brown - Technical Support Consultant
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
COMP-1: OpenEdge® Management Overview and Demo Principal Technical Support Engineer Cyril E. Gleiman.
What’s new in OpenEdge 10.2B OpenEdge Management OpenEdge Replication
DB-16 : JTA Transactions in the RDBMS, What's Going on Down There? Deb Walz Principal Software Engineer.
DB-15: Inside The Recovery Subsystem Plan to commit; Be prepared to rollback. Richard Banville Fellow, Technology and Product Architecture Progress OpenEdge.
DB-08: A Day in the Life of a Type II Record Richard Banville Progress Fellow.
The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Common Database Problems Common Database Solutions Mike Furgal Managed Database Service EMEA PUG Challenge 2015, Copenhagen, Denmark 4 – 6 November, 2015.
Using Progress® Analytical Tools Adam Backman White Star Software DONE-05:
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
OE REPLICATION AKA FATHOM REPLICATION. WHO AM I Currently with Eaton Corp as a Sr. Progress DBA for the past 12 years Started Programming with Progress.
Tales of the Secret Bunker 2016 (231) Dump and Load Edition Mike Furgal – Director MDBA and Pro2 Services Gus Bjorklund - Lackey.
Data, Space and Transaction Processing
We Have Found Nirvana with Online Dump and Load (224)
Top Performance Enhancers & Destroyers
Mike Furgal Director – DB and Pro2 Services March 20th, 2017
Walking Through A Database Health Check
OPS-8: Effective OpenEdge® Database Configuration
Selected Topics: External Sorting, Join Algorithms, …
Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
Transaction Log Internals and Performance David M Maxwell
OPS-14: Effective OpenEdge® Database Configuration
Presentation transcript:

DB-01 Upgrading to OpenEdge ® Practices & Initial Tuning Tom Harris, Managing Director, RDBMS Technology

2© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Audience Survey n V7-V8.1 Users ? n V8.2 or 8.3 Users? n V9 Users? n OpenEdge 10 Migration done? n OpenEdge 10 Migration in the next 6 months?

3© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Why Are You Going to OpenEdge 10? n Start building new Integratable applications? n Performance ? n Data Types ? n New Language Features (JTA, ProDataSet)? n High Availability (online operations) n Large Databases ? “yeah, we do that...”

4© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Agenda n Conceptual Differences V8-V9-OE10 n The “5-minute rule” n What happens during the 5-minutes ? n Staging A Move n Moved – What Tuning Should I Know About? n Questions for the Developers

5© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Unreleased Feature InformationCaution: Features labeled “10.1A” are presently in development and may possibly encounter problems that prevent their availability in the release. Features labeled “10.1A” are presently in development and may possibly encounter problems that prevent their availability in the release. 10.1A work is in red. If red doesn’t work for you, we’ll also underline it. 10.1A work is in red. If red doesn’t work for you, we’ll also underline it. Until they are available – they are “futures”!

6© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices D I S C L A I M E R Under Development n This talk includes information about potential future products and/or product enhancements. n What I am going to say reflects our current thinking, but the information contained herein is preliminary and subject to change. Any future products we ultimately deliver may be materially different from what is described here. D I S C L A I M E R

7© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Conceptual Differences ReleaseContentionDataIndex Schema Chgs V7 V8 V9 OE10 DB levelMixed Synchronous Off-Line DB levelMixedOff-Line Area levelby areaOn-Line Object levelcluster Optimistic On-Line Schema Basic 4GL +SQL Schema +audit schema in 10.1A Basic 4GL Synchronous

8© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Conceptual Differences (cont.) ReleaseCLOBS V7 V8 V9 OE10 Add Extents NOOff-Line NO SQL BLOBS YES NO YES Off-Line ON-Line (10.1A) >2GB files NO YES 9.1D NO Ent.DB Datetime NO SQL SQL, 4GL

9© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Conceptual Differences (cont.) ReleaseThreads V7 V8 V9 OE10 NONE SQL-92, dbtool SQL + utilities NONE Replication triggers, ai logs triggers, logs, Fathom Repl utility 10.1A * AI Mgt FailOver Cluster user script Integrated Ent.DB triggers, ai logs triggers, logs, Fathom Repl user script Integrated Ent.DB user script

10© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Hey! I just need to get over to 10 ! n So... let’s take the fast lane

11© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices The 5-Minute Rule n CONV runs in-place, in 5-minutes n Mostly, we’re upgrading the schema n No changes to record headers n No changes to physical structures n “Before-and-After Backups are good”

12© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices What Happens after 5-minutes? n You can run the database ! n It will very likely run better than before n Batch jobs with big temp-tables get faster n Fragmentation still exists n Most of your DBA scripts should work fine n Optimize when you can...

13© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices The Alternative What if I want more performance than I get with the fast convert ?

14© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices You could plan to dump and load... n Put your schema in its own area n Move to Type II Areas –Group some tables n Similar recordsize n Similar update rates n Similar access modes –Some tables need own area n High create/delete n Very Big Tables n Future focus is on Type II Areas...

15© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Block Sizes n bi Cluster size (1024 – 4096) n bi & ai need to match (8K-16K) n bi file is sequential access – put it by itself n Data Cluster Sizes –Table areas: 64 –Index areas: 8 n Records per block –block size / mean record size –Or 128 and forget it! –1 for index only areas

16© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Staging A Move n Backups – still your friend! n Keep dbanyls & promon data for reference n The usual rules still apply for AI & BI disks n Ditto, for SAN setups n Move to 10 (convert or d/l) n Run UPDATE STATISTICS for SQL n Get that backup n Keep sets of promon scripts as you go

17© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Ready to Optimize Further? Whether You CONV or Dump & Load, there are more gains to be had

18© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Plan for “full production” Database Useful Parameters: n -spin: (5,000 thru 10,000) * # CPUs n -B: As big as you can without paging n -hash: -B/4 when –B > 400,000 n -bibufs: 25 n -Bp avoids impact on production n -omsize select count(*) from _storageObject

19© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices n BIW/AIW –Performs writes to bi/ai –Decreases empty buffer waits n APW –Decreases LRU writes –Reduces checkpoint time –Performs DB buffer pool I/O –Increase until 0 blocks flushed at checkpoint –Decrease if partial bi writes increase –Typically need more if running Direct with I/O n Watch Dog –Monitors connections Plan for “full production” Database

20© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Buffers: -Bt n Temp Tables use Type II Storage Areas –Fast empty/drop –Use “empty temp-table ” –Mitigate space overhead with –Bt –-tmpbsize 1 or -tmpbsize 8 n Records per block n Create/toss limit n Possible wasted space n Additional block format overhead

21© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Index Rebuild n Index Rebuild by area, table or schema –proutil -C idxbuild table n Typical Uses: –Complete D&L process –Bring deactivated indexes online n Online index activate coming soon –Fix corruption or Index reorg n Always sort when asked (if you have the temp space)

22© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Idxbuild – Sort Groups n # of sort groups n -SG: 8 thru 64 – Default: 48 n A larger -SG performs less sort/merge(s) n Databases with many indexes per area use larger SG values n Other values –-TM 32 (merge buffers) –-TB 24 (temp block size) –-T specify a different disk

23© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Index Compaction n proutil -C idxcompact [ n ] n Can be run online n When to run –%utilization 2 –Suggest value of 80% to 90% –100% may cause expensive index block splits

24© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Dump and Load n Dump and Load Indicators –Scatter factor > 4 –Fragmentation Factor > 2 n proutil -C dump. –index 0 –Dump performance over data order –Typically choose index based on read order n proutil -C load.bd build –Load with build indexes –Load to truncated area n (truncate rather than “emptied”)

25© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Promon Scripts n Use promon and sar or perfmon –I/O rates, CPU usage and system paging –Buffers flushed at checkpoint –Time between checkpoints –Buffer Hit ratio –Contention (buffers, locks, latches)

26© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices 10.1A Among new 10.1A DB capabilities... n Logfile scanners: format is changing –scan for error number – still works OK –scan for message text – still works OK n Monitor & add extents on-line if needed n Capture important DB events for analysis –you can enable this capability –it’s useful for operations review/support n Default Enterprise install performs better

27© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices 10.1A: Selective Events – logged to table startup info shutdown info abnormal ends locktable ovfl bigrow bulkload roll forward force options dbrpr dbtool probkup procopy resolve limbo tx prorest prostrct (most) 2pc bgn/end 2pc mod/rcvr protrace files proutil -EnableKeyEvents

28© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Default Parameters: 10.1 A changes –aibufs number of after image buffers –B blocks in the database buffer pool -bibufs before image buffers -G seconds before bi cluster reuse -L number of locktable entries -Ma # remote users per database server -Mm max size of TCP/IP message fragment

29© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Default Parameters in 10.1A (cont.) -semsets number of sets avl. to broker -spin latch tries before pausing DB block size bi cluster size (on-disk block size for notes) bi block I/O block size writing to bi file ai block I/O block size writing to ai file

30© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Summary n There are important changes in the RDBMS n You can get over to OpenEdge10 easily –There is immediate benefit –There is also a lot more to gain! n It’s easy to stage a move in several steps n Have a plan for “full production” n Check promon/SAR as you take each step n Until we ship it, it’s a Future

31© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Questions? Storage Engine Crew

32© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices Thank you for your time! Storage Engine Crew

33© 2005 Progress Software Corporation DB-01 Upgrading to OpenEdge® Practices