35
IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation http://w3.ibm.com/ibm/presentations Informix Chat with the Lab - Jerry Keesee, Director of the Informix Lab - Jonathan Leffler, Informix Database Engineering

IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

Embed Size (px)

Citation preview

Page 1: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group

2004-10-06 | Chat With The Lab © 2004 IBM Corporation

Informix Chat with the Lab

- Jerry Keesee, Director of the Informix Lab

- Jonathan Leffler, Informix Database Engineering

Page 2: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group

2004-10-06 | Chat With The Lab © 2004 IBM Corporation

IBM Informix Dynamic Server 9.40Time to Upgrade!

Jonathan LefflerIBM Informix Database Engineering

Page 3: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation3

Agenda Key New Features

Big Chunks

ER and HDR coexisting

Encrypted communications

Performance

Dynamic Locks and Logs Miscellaneous Features Upgrade and Reversion Process Application Features Questions and Answers

Page 4: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation4

Performance, Availability, Scalability

Manageability

Development Productivity

Integrated Information

Informix Compatibility & Enhancements

Business Intelligence

Stability

Database Servers Investment Areas...

DynamicServer

Page 5: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation5

IBM Informix Dynamic Server 9.40

IBM took over Informix databases Completed July 2001.

IDS 9.30.UC1 Released September 2001. Current Fix Pack 9.30.UC7, released January 2004.

IDS 9.40.UC1 Released February 2003. Current Fix Pack 9.40.UC5, released September 2004.

IDS 9.50.UC1 Expected release date, 1Q2005.

IDS 9.Next Planning started, possible release 2H2006.

Page 6: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation6

IBM Dynamic Server 7.31

IDS 7.30 introduced in April 1998. IDS 7.31 introduced in February 1999. IDS 7.31.UD8 released March 2004. Continued support announced through 2009.

No new features.

Bug fixes and upgraded platforms as necessary.

Page 7: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation7

Informix Dynamic Server 9.40

Feature Enhancements

Page 8: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation8

Major Features

Big Chunks Coexistence of HDR and ER Encrypted communications Performance Dynamic Locks and Logs

Page 9: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation9

Big Chunks

Prior to IDS 9.40, the maximum size of a chunk was 2 GB. This limit was too painful, so we removed it. In IDS 9.40, each chunk can be up to 4 TB. And an IDS instance can now have up to 32,767 chunks. The new upper limit on the size of an IDS instance is:

128 petabytes (roughly 144 * 1015 bytes) How big is 128 PB?

You would need more than 570,000 x 250 GB drives ($60M+).

At a load rate of 1 GB per minute, it would take over 250 years to fill it.

Very Big!

Page 10: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation10

Big Chunks

Chunk sizes and offsets now 64-bit values. Utilities all compiled to handle large files.

dbimport, dbexport, dbload, dbaccess

onunload, onload

onspaces

oncheck

ontape

High Performance Loader

Page 11: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation11

ER and HDR Coexistence

In IDS versions prior to 9.40: You can use HDR (High Availability Data Replication)

For automatic failover. Between two substantially identical systems.

You can use ER (Enterprise Replication)

For controlled replication of subsets of data. Between many heterogeneous systems.

But you cannot use both at once.

Page 12: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation12

ER and HDR Coexistence

In IDS 9.40 HDR systems can participate in ER systems too.

Some root nodes in the ER system would be HDR pairs. Systems communicating with such nodes must be running IDS

9.40.

Hence, all root nodes have to be running 9.40 before using HDR.

ER systems normally contact the HDR primary server: Automatically contact the secondary if the primary fails.

Page 13: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation13

Other ER and HDR Improvements

HDR supports extensible data types: Replicates logged smart blob spaces.

Logged smart-large-objects (BLOB and CLOB) BOOLEAN LVARCHAR complex types: row types, collections (LIST, SET, etc.)

ER now supports extensible data types. ER has faster queue recovery from IDS 9.30. Using dynamic logs feature of IDS 9.30. ER event class identifiers and messages for ALARMPROGRAM.

Page 14: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation14

Encrypted Communications

Prior to IDS 9.40, password encryption only: Using CSS/CSM technology.

From IDS 9.40, encrypt all conversations from client to server:

Also using CSS/CSM technology.

Using cryptography libraries from OpenSSL.

Not using OpenSSL directly because of design of ASF.

Configurable via sqlhosts file. Optionally encrypt ER traffic:

Often sent over long-haul networks.

Protects data sent over Internet.

Not available for HDR in initial release.

Page 15: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation15

Improved Performance

During development of IDS 9.40: Performance testing of most nightly builds.

Aggressively attacking performance issues. Internal benchmarking of IDS 9.40 shows:

8-15% improvement over 7.3x.

IDS 9.30 performance roughly the same as IDS 7.31. Using variety of benchmarks:

TPC-C (not fully scaled – results not auditable by TPPC). Vendor benchmarks.

Page 16: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation16

Fuzzy Checkpoints and UPDATE STATISTICS

IDS 7.31 users sometimes have trouble with long checkpoints. IDS 9.20 introduces Fuzzy Checkpoints:

Not all dirty pages are flushed at checkpoint. Write-ahead logging ensures consistency in fast recovery. Allows larger buffer pools without impacting performance.

IDS 9.40 does UPDATE STATISTICS faster: Uses memory better (DBUPSPACE). Uses light scans. Can run in parallel on fragmented tables, indexes.

Page 17: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation

SELECT F.First, B.Second FROM Foo F, Bar BWHERE F.A = B.A AND F.C = :C1 AND B.C = :C2;

SELECT F.First, B.Second FROM Foo F, Bar BWHERE F.A = B.A AND F.C = :C1 AND B.C = :C2;

Plan (C1, C2){

}

CPU-VP

Shared Statement Cache

Query plans shared between connections Big benefits for sites with lots of users and often repeated SQL

statements

Informix Dynamic Server 9.2 and later

Page 18: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation18

Dynamic Locks and Logs

Dynamic Locks Prior to IDS 9.20:

Running out of locks was bad news. With IDS 9.20 and above:

Server can dynamically add locks if lock table overflows. Prevents application hangs.

Dynamic Logs Prior to IDS 9.30:

Running out of space in logical logs was catastrophic. So LTXHWM and LTXEHWM parameters were set low.

With IDS 9.30 and above: Server dynamically adds extra logical logs as necessary.

Page 19: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation19

Miscellaneous Features

Rewritten B-Tree cleaning algorithms Revised buffer priority management Fractional percentages for LRU_MIN_DIRTY and

LRU_MAX_DIRTY Use full size of tape devices Rename chunk devices during restore No libraries installed in /usr/lib by default Add chunks when first chunk full Restartable fast recovery

Page 20: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation20

Rewritten B-Tree Cleaning Prior to IDS 9.40:

Single-threaded B-Tree cleaner.

Could get overwhelmed by amount of work. Replaced by B-Tree Scanner:

Prioritized workload.

Multiple scanner threads possible. Alternative algorithms available. Controlled by onmode –C. Monitored by onstat –C. B-Tree scanner is tunable:

By default, B-Tree scanner threads run at low priority.

Set priority high if they are falling behind.

Don’t increase number of low priority cleaner threads.

Page 21: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation21

Buffer Priority Management

Prior to IDS 9.40, buffer manager: Gave priority to memory-resident tables and index pages. Had four tier priority system.

Simplified and streamlined for 9.40. Two priority categories instead of four:

HIGH - managed by FIFO queue. LOW - managed by LRU queues.

Classification of buffer priority is dynamic: Based solely on observed access frequencies.

Maximum size of HIGH priority band fixed: HIGH priority buffers can no longer consume buffer pool.

Page 22: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation22

Fractional Percentages for LRU Dirtiness

IDS 9.40 allows fractional LRU_MIN_DIRTY, LRU_MAX_DIRTY. Old: setting LRU max/min values to 2/1 on 300,000 buffers

LRU writes start at 6,000 dirty buffers, stop at 3,000 dirty buffers. Checkpoint has maximum of 6,000 buffers to write.

New: setting LRU max/min values to 0.5/0.1 on 300,000 buffers LRU writes start at 1,500 dirty buffers, stop at 300 dirty buffers. Checkpoint has maximum of 1,500 buffers to write.

Helps minimize checkpoint times: Increases writes between checkpoints. These are ‘wasted’ if a crash occurs. Decreases writes at checkpoint.

Page 23: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation23

Use Full Size of Tape Devices

Prior to IDS 9.40, must specify actual size of tape: Difficult to estimate capacity of tapes with compression.

Error if specified size too big – wasted space when too small. From IDS 9.40, tape size of zero means:

Write until no room left on tape (or disk).

No more guessing how much compression you’ll get.

Can use different size tapes during backup. Changed utilities include:

dbexport, dbimport

onunload, onload

ontape

Page 24: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation24

Rename Chunks During Restore

Map chunk device names during cold restore: Not available during warm restore. All chunk device names. Mapping on command line or in file. Primary and mirror chunks can be renamed too.

Allows recovery on similar systems: The sets of disk devices do not have to be identical. Replacement disk devices after a disk crash. Can fix mistakes in device naming:

Inappropriate use of version in pathname: /ifmx/v713/sbspace03

Direct use of device names instead of symbolic links.

Do a level 0 archive after recovery

Page 25: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation25

No Libraries Installed in /usr/lib

IDS 9.40 does not place any libraries in /usr/lib. Except for Java libraries under /usr/lib/informix on HP-UX.

Optical library specified by new parameter: OPTICAL_LIB_PATH in ONCONFIG file.

HPL library specified by new parameter: HPL_DYNAMIC_LIB_PATH in PLCONFIG file.

Default: $INFORMIXDIR/lib/ipldd09a.so ON-Bar library specified by new parameter:

XBSA_LIBRARY_PATH in ONCONFIG. Removed support for Smart Disks (ismdd09a.so) Simplifies un-install of IDS . Simplifies installation of multiple versions of IDS. Don’t forget to clean up old Informix libraries.

Page 26: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation26

Add Chunks When First Chunk Full

Prior to IDS 9.40 All chunk information only in first chunk of root dbspace.

If first chunk full, not possible to add new disk space. With IDS 9.40

If there is no space left in first chunk of rootdbs.

Extra chunk information can be added to other chunks in root dbspace.

Helps prevent conversion failures.

Helps support 32,767 chunks.

Page 27: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation27

Restartable Fast Recovery

Prior to IDS 9.40:Crashes during fast recovery could corrupt the system.

No fast recovery possible.

Restore from archive was necessary. In IDS 9.40:

Physical logging is enabled during fast recovery:

Allows recovery to occur multiple times if necessary.

Physical log could overflow during recovery.

PLOG_OVERFLOW_PATH specifies where overflow goes.

Default: $INFORMIXDIR/tmp

Re

adB

efore Images

Checkpoint

Rol lF

orward

Page 28: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation28

Upgrade Considerations

New reserved words have been added.

Direct migrations to IDS 9.40: IDS 7.24, 7.30, 7.31, 9.14, 9.20, 9.21, and 9.30 upgrade directly.

Indirect migrations to IDS 9.40: IDS 7.20 through 7.23 require an interim upgrade to IDS 7.31.

All other migrations will require dbexport, dbimport.

Migrating from 32-bit to 64-bit uses same process.

Migrating to a different operating system requires export and import.

Page 29: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation29

Space Required for Upgrade

Root Chunk (Chunk 0) needs 10% free.

3000 free pages of logical log space to rebuild sysmaster database.

2000 KB of free space per database is needed for each dbspace.

Partition headers should not be full:

Use oncheck –me to compress extents.

Page 30: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation30

Upgrade Process

Save copies of configuration files: ONCONFIG, sqlhosts, etc.

Save copies of storage manager files. Remove outstanding in-place alters. Close all transactions. Shutdown the source database server. Check for any open transactions. Verify the integrity of the data with oncheck.

Page 31: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation31

Upgrade Process

Verify the server is in quiescent mode. Disable HDR. Make a final backup of the source database server. Verify that the source database server is offline. On UNIX or Linux, modify kernel parameters. Install IBM Informix Dynamic Server 9.40. Set environment variables. Customize configuration files. Add any communications support modules.

Page 32: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation32

Upgrade Process

Install and configure any DataBlade modules. Initialize IBM Informix Dynamic Server 9.40. Monitor the conversion complete status. For ON-Bar, rename the sm_versions.std file. Run UPDATE STATISTICS. Verify the integrity of the data. Make an initial backup of IDS 9.40. Tune IDS 9.40 for performance. Enable HDR.

Page 33: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation33

Application Features

DESCRIBE INPUT ORDER BY values not in select-list Sequence objects Triggers on views SQL-99 RIGHT OUTER JOIN UNION in sub-queries Names for return values Multiple OUT parameters Iterator functions in FROM clause Hold cursors and PDQ Character storage Relaxing limit on functional index parameters Costing R-Tree index usage Unicode support

Page 34: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation34

http://www.ibm.com/software/data/informix

Page 35: IBM Software Group 2004-10-06 | Chat With The Lab © 2004 IBM Corporation Confidentiality/date line: 13pt Arial Regular, white Maximum length: 1 line Information

IBM Software Group | DB2 Data Management Software

IBM Informix Dynamic Server 9.40 – Time to Upgrade! © 2004 IBM Corporation35

http://www.ibm.com/software/data/informix