IBM 000-8697 manual
Summary of contents
- Informix Online Documentation
- Table of Contents
- Introduction
- In This Introduction
- About This Manual
- Organization of This Manual
- Demonstration Database
- IBM Informix OnLine
- Product Overview
- IBM Informix OnLine and Other IBM Informix Products
- Documentation Conventions
- Typographical Conventions
- Icon Conventions
- Command-Line Conventions
- Elements That Can Appear on the Path
- How to Read a Command-Line Diagram
- Sample Code Conventions
- Additional Documentation
- Printed Manuals
- Error Message Files
- Using the ASCII Error Message File
- Using the PostScript Error Message Files
- Documentation Notes, Release Notes, Machine Notes
- Related Reading
- Compliance with Industry Standards
- IBM Welcomes Your Comments
- Installation and Initial Configuration
- In This Chapter
- Define Your Starting Point
- Upgrade an Earlier Version of OnLine
- Compare Your Current Configuration to OnLine 5.x
- Create a Level-0 Archive
- Load the Software and Execute the install Script
- Initialize Shared Memory
- Run tbcheck
- Create a New Level-0 Archive
- Overview of OnLine Installation Steps
- Overview of OnLine Initial Configuration Tasks
- OnLine Configuration Files
- Contents of tbconfig.std
- Set Up Your Initial Configuration
- Root Dbspace Configuration Guidelines
- ROOTNAME
- ROOTPATH
- ROOTOFFSET
- ROOTSIZE
- Mirroring Configuration Guidelines
- MIRROR
- MIRRORPATH
- MIRROROFFSET
- Physical Log Configuration Guidelines
- PHYSDBS
- PHYSFILE
- Logical Log Configuration Guidelines
- LOGFILES
- LOGSIZE
- Message File Guidelines
- MSGPATH
- CONSOLE
- Archive Tape Device Guidelines
- TAPEDEV
- TAPEBLK
- TAPESIZE
- Logical Log Tape Device Guidelines
- LTAPEDEV
- LTAPEBLK
- LTAPESIZE
- Identification Parameter Guidelines
- SERVERNUM
- DBSERVERNAME
- Shared-Memory Parameter Guidelines
- RESIDENT
- USERS
- TRANSACTIONS
- LOCKS
- BUFFERS
- TBLSPACES
- CHUNKS
- DBSPACES
- PHYSBUFF
- LOGBUFF
- LOGSMAX
- CLEANERS
- SHMBASE
- CKPTINTVL
- LRUS
- LRU_MAX_DIRTY
- LRU_MIN_DIRTY
- LTXHWM
- LTXEHWM
- Machine- and Product-Specific Parameter Guidelines
- DYNSHMSZ
- GTRID_CMP_SZ
- DEADLOCK_TIMEOUT
- TXTIMEOUT
- SPINCNT
- OnLine Disk Space Allocation
- Allocate Raw Disk Space or Cooked Files?
- How Much Disk Space Do You Need?
- How Should You Apportion Disk Space?
- How to Allocate Disk Space
- Evaluate UNIX Kernel Parameters
- Configuration Checklist
- Enter Your Configuration and Initialize OnLine
- Setting Shared Memory Parameters
- Initialize OnLine
- Set Your Environment Variables
- SQLEXEC
- TBCONFIG
- Modify UNIX Startup and Shutdown Scripts
- Startup
- Shutdown
- Create Blobspaces and Dbspaces
- Errors During Initialization
- OnLine Error Message Format
- UNIX Error Message Format
- System Architecture
- In This Chapter
- Initialization
- Initialization Commands
- Shared Memory Commands
- Disk Space Commands
- What Happens During Shared-Memory Initialization
- Shared-Memory Initialization Procedure
- Step 1: Calculate Configuration Values
- Step 2: Create Shared Memory
- Step 3: Attach to Shared Memory
- Step 4: Initialize Shared Memory Structure
- Step 5: Wake Parent Process
- Steps 6 and 7: Initiate Fast Recovery and First Checkpoint
- Step 8: Drop Temporary Tables (Optional)
- Step 9: Document Configuration Changes
- Step 10: Check for Forced Residency
- Step 11: Begin Looping as Master Daemon
- What Happens During Disk-Space Initialization
- Step 1: Calculate Configuration Values
- Step 2: Create OnLine Shared Memory
- Step 3: Attach to Shared Memory
- Step 4: Initialize Shared-Memory Structures
- Step 5: Initialize Disk Space
- Step 6: Wake Parent tbinit Process
- Step 7: Initiate First Checkpoint
- Step 8: Change to Quiescent Mode
- Step 9: Set Forced Residency
- Step 10: Loop as Master Daemon
- UNIX Kernel and Semaphore-Allocation Parameters
- OnLine User Processes
- How User Processes Attach to Shared Memory
- Step 1: Obtain SERVERNUM
- Step 2: Calculate Shared-Memory Key Value
- Steps 3 and 4: Request Shared-Memory Segment and Attach to SHMBASE
- Step 5: Attach Additional Segments
- User Processes and Critical Sections
- OnLine User Process Status and States
- OnLine Database Server Process
- Orphaned Database Server Processes
- OnLine Daemon Processes
- tbinit Daemon
- tbundo Daemon
- tbpgcl Daemon
- Shared Memory and Process Communication
- Shared Memory and Buffer Locks
- Buffer Share Lock
- Buffer Update Lock
- Buffer Exclusive Lock
- Managing Shared-Memory Resources
- Shared-Memory Latches
- OnLine Timestamps
- Hash Tables and the Hashing Technique
- Shared-Memory Header
- Shared-Memory Internal Tables
- OnLine Buffer Table
- OnLine Chunk Table
- OnLine Dbspace Table
- OnLine Latch Table
- OnLine Lock Table
- OnLine Page-Cleaner Table
- OnLine Tblspace Table
- OnLine Transaction Table
- OnLine User Table
- Shared-Memory Buffer Pool
- Regular Buffers
- Big Buffers
- OnLine LRU Queues
- LRU Queues and Buffer Pool Management
- LRU_MAX_DIRTY
- LRU_MIN_DIRTY
- How a User Process Acquires a Buffer
- Step 1: Identify the Data
- Step 2: Determine Lock-Access Level
- Step 3: Locate the Page in Memory
- Step 4: Read the Page in from Disk
- Steps 5-7: Lock Buffer, Release Lock, and Wake Waiting Processes
- Physical Log Buffer
- Double Buffering
- Causes of Flushing
- Flushing a Full Buffer
- Logical Log Buffer
- Triple Buffering
- Buffer Contents
- Causes of Flushing
- Flushing a Full Buffer
- OnLine Checkpoints
- Main Events During a Checkpoint
- Initiating a Checkpoint
- Fast Recovery
- Archive Checkpoints
- What Happens During a Checkpoint
- When the Daemons Flush the Buffer Pool
- How OnLine Synchronizes Buffer Flushing
- Write Types Describe Flushing Activity
- Sorted Write
- Idle Write
- Foreground Write
- LRU Write
- Chunk Write
- Big-Buffer Write
- Writing Data to a Blobspace
- Disk Data Structures
- OnLine Disk Space Terms and Definitions
- Chunk
- Page
- Blobpage
- Dbspace and Blobspace
- Database
- Tblspace
- Extent
- Physical Log
- Logical Log
- Structure of the Root Dbspace
- Structure of a Regular Dbspace
- Structure of an Additional Dbspace Chunk
- Structure of a Blobspace
- Structure of a Blobspace or Dbspace Mirror Chunk
- OnLine Limits for Chunks
- Reserved Pages
- PAGE_PZERO
- PAGE_CONFIG
- PAGE_CKPT
- PAGE_DBSP
- PAGE_PCHUNK
- PAGE_MCHUNK
- PAGE_ARCH
- Chunk Free-List Page
- tblspace Tblspace
- tblspace Tblspace Entries
- Tblspace Number
- tblspace Tblspace Size
- tblspace Tblspace Bit-Map Page
- Database Tblspace
- Create a Database: What Happens on Disk
- Allocate Disc Space
- Track Systems Catalogs
- OnLine Limits for Databases
- Create a Table: What Happens on Disk
- Allocate Disc Space
- Add Entry to tblspace Tblspace
- Add Entry to System Catalog Tables
- Create a Temporary Table: What Happens on Disk
- Placement
- Tracking
- Cleanup
- Structure of an Extent
- Extent Size
- Page Types
- Next Extent Allocation
- Structure of a Dbspace Page
- Page Header
- Timestamp
- Slot Table
- Data Row Format and Rowid
- Data Pages and Data Row Storage
- Single-Page Storage
- Multipage Storage
- Storage of Modified Rows
- Page Compression
- Structure of an Index Page
- The Root Node Page
- Leaf Node Pages
- Index Key Entries
- Branch Node Pages
- Structure of a Dbspace Bit-Map Page
- 2-Bit Bit-Mapped Pages
- 4-Bit Bit-Mapped Pages
- Blob Storage and the Blob Descriptor
- Structure of a Dbspace Blob Page
- Blobspace Page Types
- Blobspace Free-Map Page
- Blobspace Bit-Map Page
- Blobpage
- Structure of a Blobspace Blobpage
- Physical Log
- Logical Log Files
- Fast Recovery and Data Restore
- File Rotation
- File Contents
- Number and Size
- Blobspace Logging
- Long Transactions
- Operating OnLine
- In This Chapter
- Changing Modes
- Types of OnLine Modes
- Offline Mode
- Quiescent Mode
- Online Mode
- Recovery Mode
- Shutdown Mode
- From Offline to Quiescent
- From Offline to Online
- From Quiescent to Online
- Gracefully from Online to Quiescent
- Immediately from Online to Quiescent
- From Any Mode Immediately to Offline
- Logical Log Administration
- Examine Your Logical Log Configuration
- Your Configuration File
- Logical Log File Backups
- Freeing the Logical Log Files
- Verify the Size and Number of Files
- Configuration Parameters
- LTAPEBLK and LTAPESIZE
- Location of Logical Log Files
- Change Pathname of Logical Log Tape Device
- Change Block Size of Logical Log Tape Device
- Change Tape Size of Logical Log Tape Device
- Change Maximum Number of Logical Log Files
- Change Size of Logical Log Files
- Logical Log File Status
- Logical Log File ID Numbers
- Add a Logical Log File
- Drop a Logical Log File
- Move a Logical Log File to Another Dbspace
- Change the Logging Status of a Database
- Adding Logging to a Database
- Ending or Modifying Logging from DB-Monitor
- ANSI Compliance
- Back Up a Logical Log File
- Start Continuous Logical Log Backup
- End Continuous Logical Log Backup
- Switch to the Next Logical Log File
- Free a Logical Log File
- Long Transactions
- Status A
- Status U
- Status U-B
- Status U-C
- Status U-B-L
- If the Logical Log Backup Cannot Complete
- Archive Administration
- Archive Types
- Level-0 Archive
- Level-1 Archive
- Level-2 Archive
- Incremental Archive Strategy
- How Long Will an Archive Take?
- Plan the Archive Schedule
- Minimize Restore Time
- Minimize Archive Time
- Online Archives
- Single Tape Drive
- Operator Availability
- Examine Your Archive Configuration
- Your Configuration File
- The Archives
- TAPEDEV Configuration Parameter
- TAPEBLK and TAPESIZE
- Change Pathname of Archive Tape Device
- Change Block Size of Archive Tape Device
- Change Tape Size of Archive Tape Device
- Create an Archive, Any Type
- If the Logical Log Files Fill During an Archive
- Two Tape Drives
- One Tape Drive
- If an Archive Terminates Prematurely
- Monitor OnLine Activity
- Monitor Archive History
- Monitor Blobs in a Blobspace
- Monitor Blobs in a Dbspace
- Monitor Buffers
- tbstat -b
- tbstat -X
- tbstat -B
- tbstat -p
- Monitor Buffer-Pool Activity
- tbstat -F
- tbstat -R
- tbstat -D
- Monitor Checkpoints
- Monitor Chunks
- Monitor Configuration Information
- Monitor Databases
- Monitor Dbspaces
- Monitor Disk Pages
- Monitor Extents
- Monitor Index Information
- Monitor Logging Activity
- Monitor the Message Log
- Monitor OnLine Profile
- Monitor Shared Memory and Latches
- Monitor Tblspaces
- Monitor Users and Transactions
- Modify OnLine Configuration
- Create a Blobspace
- Drop a Blobspace
- Change the Number of Buffers in the Pool
- Change the Size of Either Log Buffer
- Add a Chunk
- Change the Maximum Number of Chunks
- Create a Dbspace
- Drop a Dbspace
- Enforce/Turn Off Residency for This Session
- Enforce/Turn Off Residency
- Change the Status of a Mirrored Chunk
- Enable Mirroring
- Start/End Mirroring in a Blobspace or Dbspace
- Preliminary Considerations
- Start Mirroring
- End Mirroring
- Change Physical Log Location or Size
- Change the Checkpoint Interval
- Change the Destination of Console Messages
- Change the Maximum Number of Dbspaces
- Change the Maximum Number of Locks
- Change the Maximum Number of Tblspaces
- Change the Maximum Number of Users
- Change the Number of Page Cleaners
- Things to Avoid
- Data Consistency, Recovery, and Migration
- In This Chapter
- Consistency Checking
- Using the tbcheck Commands
- tbcheck -cr
- tbcheck -cc
- tbcheck -ce
- tbcheck -cI
- tbcheck -cD
- Using the OnLine Message Log
- Setting Consistency-Checking Variables
- GCORE
- DUMPCORE
- DUMPSHMEM
- DUMPDIR
- Recovering from Corruption
- Mirroring
- Beginning
- Processing
- Recovery
- Ending
- OnLine Logging Overview
- Dbspace Logging
- Blobspace Logging
- Operations Logging
- Operations Rollback
- Blob Restoration
- What Happens During Logical Log Backup
- Ready LTAPEDEV
- Locate the Next Logical Log
- Copy Blobpages
- Place Log Header on Tape
- Write Log Records to Tape
- Write Trailer Page
- What Happens During an Archive
- Read Archive History Information
- Mount a Tape on TAPEDEV
- Verify the Archive Level
- Check Free Space in the Logical Log
- Force a Checkpoint
- Purpose of Checkpoint Timestamp
- Purpose of Data Snapshot
- Synchronize tbtape and tbinit Activities
- Archive Disk Pages
- Archive blobpages
- Write Tape Header Page
- Archive Reserved Pages
- Determine Archive Criteria
- Archive Disk Pages That Meet Criteria
- Monitor and Archive Physical Log Pages
- Write a Trailer Page
- Update the Reserved Pages
- Fast Recovery
- How Does OnLine Initiate Fast Recovery?
- Fast Recovery and Logging
- Step 1: Checkpoint Condition
- Step 2: Find Checkpoint Record in Logical Log
- Step 3: Roll Forward Log Records
- Step 4: Roll Back Incomplete Transactions
- Data Restore: When Should You Do It?
- Steps That Occur During a Data Restore
- Gather All Tapes Needed for Restore
- Verify OnLine Configuration
- Initiate Data Restore from Offline Mode
- Mount Level-0 Archive Tape
- Verify Current Configuration
- Prompt for Logical Log Backup
- Write Each Archive Page to Disk
- Initialize Shared Memory
- Roll Forward Logical Logs
- OnLine Is Quiescent
- Database and Table Migration
- Description of Migration Methods
- UNLOAD/dbschema/LOAD
- UNLOAD/dbschema/dbload
- dbexport/dbimport
- tbunload/tbload
- Which Migration Method Is Best for You?
- Using UNLOAD with LOAD or dbload
- Create and Edit the Schema File First
- Verify Adequate Disk Space for Data
- Move Files
- Create the New Database or Tables
- Use LOAD or dbload to Populate the Tables
- Using dbexport and dbimport
- Using tbunload and tbload
- tbunload
- tbload
- Migrating Data from OnLine to SE
- Migrating Data from SE to OnLine
- How to Improve Performance
- In This Chapter
- Disk Layout
- Optimize Blobspace Blobpage Size
- tbcheck -pB and tbcheck -pe Utility Commands
- Blobpage Average Fullness
- Apply Effective Criteria
- Eliminate User-Created Resource Bottlenecks
- When Is Tuning Needed?
- % Cached Fields
- ovtbls, ovlock, ovuser, and ovbuff Fields
- Bufsize Pages/IO Fields
- Shared-Memory Buffers
- When Is Tuning Necessary?
- How Is Tuning Done?
- Shared-Memory Resources
- When Is Tuning Necessary?
- How Is Tuning Done?
- Log Buffer Size
- Logging Status
- How Is Tuning Done?
- Page-Cleaner Parameters
- Efficient Page Cleaning
- How Is Tuning Done?
- Checkpoint Frequency
- Performance Tradeoffs
- How Is Tuning Done?
- Psort Parallel-Process Sorting Package
- How Psort Works
- Tuning Psort
- Psort and Shared Memory
- SPINCNT Configuration Parameter
- DB-Monitor Screens
- In This Chapter
- Main Menu
- Status Menu\x11\x11
- Parameters Menu
- Dbspaces Menu
- Mode Menu
- Force-Ckpt Option
- Archive Menu
- Logical-Logs Menu
- Utilities
- In This Chapter
- dbexport: Unload a Database and Schema File
- Syntax
- Destination Options
- Contents of the Schema File
- dbimport: Create a Database
- Syntax
- Input File Location Options
- Create Options
- dbload: Load Data from a Command File
- Syntax
- Command-File Syntax Check
- Starting Line Number
- Batch Size
- Bad-Row Limits
- How to Create a Command File
- Delimiter Form FILE Statement
- Delimiter Form INSERT Statement
- Delimiter Form Statement Examples
- Character-Position FILE Statement
- Character-Position INSERT Statement
- Character-Position Statement Examples
- dbschema: Output SQL Statements
- Syntax
- Include Synonyms
- Include Privileges
- Specify a Table, View, or Procedure
- tbcheck: Check, Repair, or Display
- Syntax
- Option Descriptions
- No Options
- -cc Option
- -cd and -cD Options
- -ce Option
- -ci and -cI Options
- -cr Option
- -n Option
- -pB Option
- -pc Option
- -pd and -pD Options
- -pe Option
- -pk and -pK, -pl and -pL Options
- -pp and -pP options
- -pr Option
- -pt and -pT Options
- -q Option
- -y Option
- tbinit: Initialize OnLine
- Syntax
- No Options
- -i Option
- -p Option
- -s Option
- tbload: Create a Database or Table
- Syntax
- Specify Tape Parameters
- Create Options
- tblog: Display Logical Log Contents
- Syntax
- Log-Record Read Filters
- -b Option
- -d Option
- -n Option
- Log-Record Display Filters
- Interpreting tblog Output
- Record Types
- Record Contents
- tbmode: Mode and Shared-Memory Changes
- Syntax
- Change OnLine Mode
- -k Option
- -m Option
- -s Option
- -u Option
- Force a Checkpoint
- Change Shared-Memory Residency
- Switch the Logical Log File
- Kill an OnLine Server Process
- Kill an OnLine Transaction
- tbparams: Modify Log Configuration Parameters
- Syntax
- Add a Logical Log File
- Drop a Logical Log File
- Change Physical Log Parameters
- tbspaces: Modify Blobspaces or Dbspaces
- Syntax
- Create a Blobspace or Dbspace
- Drop a Blobspace or Dbspace
- Add a Chunk
- Change Chunk Status
- tbstat: Monitor OnLine Operation
- Syntax
- Option Descriptions
- No Options
- -- Option
- -a Option
- -b Option
- -B Option
- -c Option
- -d Option
- -D Option
- -F Option
- -k Option
- -l Option
- -m Option
- -o Option
- -p Option
- -P Option
- -r Option
- -R option
- -s Option
- -t Option
- -u Option
- -X Option
- -z Option
- tbtape: Logging, Archives, and Restore
- Syntax
- Request a Logical Log Backup
- Start Continuous Backups
- Create an Archive
- Perform a Data Restore
- Change Database Logging Status
- tbunload: Transfer Binary Data in Page Units
- Syntax
- Specify Tape Parameters
- OnLine Message Log
- In This Chapter
- OnLine Message Log
- Alphabetized Messages
- Product Environment
- In This Chapter
- The OnLine Environment
- OnLine Features
- High Performance
- Fault Tolerance and High Availability
- Multimedia Support
- Distributed Data Queries
- Features Beyond the Scope of OnLine
- Bad-Sector Mapping
- Blob Scanning or Compression
- What Is Multiple Residency?
- How Multiple Residency Works
- How to Set Up Multiple Residency
- Step 1: Create a New Configuration File
- Step 2: Edit the Configuration File for the New OnLine
- Step 3: Set Your TBCONFIG Environment Variable
- Step 4: Complete Tuning OnLine Configuration (Optional)
- Step 5: Initialize New OnLine
- Step 6: Ensure That Users Correctly Define Their TBCONFIG Variables
- OnLine Administration with IBM Informix STAR
- Sharing Data by Using IBM Informix STAR
- Updating Multiple OnLine Servers
- Multiserver Modification Concepts
- IBM Informix STAR and Two-Phase Commit Protocol
- Protocol Components
- Example Transaction Commit
- Example Transaction Rollback
- Two-Phase Commit and Automatic Recovery
- Coordinator Recovery
- Participant Recovery
- Presumed-Abort Optimization
- Independent Action and Manual Recovery
- Heuristic Decisions: What and Why
- Heuristic Rollback
- Condition 1: Logical Log Fills to a High-Water Mark
- Condition 2: You Execute tbmode -z
- When a Heuristic Rollback Occurs
- Heuristic End-Transaction
- Two-Phase Commit Protocol Errors
- Two-Phase Commit and Logical Log Records
- BEGPREP
- PREPARE
- TABLOCKS
- HEURTX
- ENDTRANS
- Transaction Commit Records
- Heuristic Rollback Records
- Heuristic End-Transaction Records
- Determining Database Consistency
- Step 1: Determine Where a Heuristic Decision Occurred
- Step 2: Determine If the Networked Database Contains Inconsistent Data
- Steps 3 and 4: Decide If Correction Is Needed
- Step 5: Use Logical Log Records
- Example Manual Recovery
- IBM Informix STAR Configuration Parameters
- DEADLOCK TIMEOUT
- TXTIME-OUT
- Track a Transaction with tbstat Output
- Tracking a Global Transaction
- Transaction address Field
- Transaction flag Field
- Transaction user Field
- Transaction locks Field
- Transaction log begin
- Transaction isolation Field
- Transaction retries Field
- Transaction coordinator Field
- Notices
- Index