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
®
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
IDS 10.00: Summary ofKey FeaturesSafety / High Availability / Reliability Table Level Point in Time RestoreFaster Restart Query Plan and Tracing Tool
EnhancementsHDR Ease of Use EnhancementsPartner EnhancementsConfigurable Page SizeLarger Index KeysCreate / Drop Index Online Single or Privileged User Admin ModeRename DBSpaceDefault RolesSecurity Column Level EncryptionLDAP Support for Windows
Ease of AdministrationAutomated Re-Sync of Tables in ERBAR Ease of Use EnhancementsER Templates / Ease Setup in ISAExternal Optimizer DirectivesDynamically Set OPTCOMPINDON-Tape Without Involving Backup MediaApp Development / SWG Integration4GL / EGL Merge with WebSphere .Net Native ProviderVisual Studio IntegrationJDBC 3.0 Standards ComplianceCross-DB Support for Built-In UDTsDRDA in ESQL/C & ServerWORF and TDPI BundledPerformance & Infrastructure Query Processing and Load Performance
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Multiple Fragments of a Table in One Dbspace
CREATE TABLE Example1 (…table definition…) FRAGMENT BY EXPRESSION PARTITION p1_ex1 (…) IN dbspace1, PARTITION p2_ex1 (…) IN dbspace1, PARTITION p3_ex1 (…) IN dbspace1, REMAINDER PARTITION pr_ex1 IN dbspace1;
Upwardly compatible:
– Old scheme had each partition anonymous in a separate dbspace.
– New scheme allocates partition name same as dbspace name for upgraded fragmented tables.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ON-Tape Using Standard I/O
ON-Tape can use standard I/O channels– Instead of a tape device or disk file. – Set TAPEDEV, LTAPEDEV to STDIO.
Now ontape can use pipes for archives and restores. – Process the data with other programs,– Without first saving the data in files or tape devices. – For example:
• Use compression to save media space.• Use cloning to duplicate the archive for safety. • Use encryption to prevent casual snooping on archives.
– But compress before encrypting when saving.– Watch the key management!
– Set up HDR more quickly:• Restore the data directly to the secondary server.• Skip the step of saving the data to file or tape.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Administration: Renaming Dbspaces
Existing customers who wish to reorganize their data are moving their data to a new dbspace, then reloading the data back into the original dbspace to regain the original dbspace name.– The last reload step could be avoided by using a rename
dbspace option.– Helps in recycling dbspaces.
Time consuming operations such as reorganizing the data in
an existing dbspace can benefit from this feature. The rename dbspace operation only changes the dbspace
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Resolution Options Prior to IDS 10.00
Drop Dbspace– This causes the customer to have to unload the entire
dbspace.– And drop all tables in the dbspace.– Then drop and recreate the dbspace.– The rebuild all the tables in the recreated dbspace.– This creates an outage!
Dial-in To Drop Chunk– Another solution was for Advanced Support dial in and
drop the chunk.– They would also clean up the tblspace tblspace.– This caused down time and is risky (usually avoided).
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Administration : Single User Mode
“Single-User Mode” feature allows the IBM Informix Dynamic Server to be put into a maintenance mode, allowing only the user ‘informix’ to connect the server.
It is intended to be viewed as a mode intermediate between Quiescent mode and Online mode.
It allows a DBA to have the server in a fully functional mode where any required maintenance may be performed.
It is intended to be used by DBA’s to perform any SQL/DDL maintenance while preventing normal users from connecting.
ISA also supports the Single-User Mode functionality.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Availability: Index Changes
CREATE INDEX and DROP INDEX now supports DDL operations that apply no exclusive lock to the table on which the specified index is defined.
– If you use this syntax to create an index on a table that other users are accessing, the index is not available until no user is updating the table.
– After you issue the new syntax to drop an index, no one can reference the index, but concurrent DML operations can use the index until they terminate.
– Dropping the index is deferred until no user is using the index.
– This feature maintains the availability of the table within a production environment after an existing index has ceased to be efficient.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Availability: Point-in-Time Table Restore
Purpose: to provide the customer with the ability to easily extract a set of tables, a table or a portion of a table from a level 0 archive to a user specified point in time.
The extracted data can be placed in an external table or on a table on the server of the user’s choice regardless of server version or machine type as long as the database server is listed in the sqlhost file.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
Applications : Full .NET support
The IBM Informix .NET Provider enables Windows .NET applications to access and manipulate data in IBM Informix databases.
The IBM Informix .NET Provider is a runtime library that encapsulates a data access API for use by Microsoft .NET applications. It consists of a set of specialized classes that implement standard Microsoft ADO.NET interfaces and serves as a bridge between IBM Informix databases (data sources) and .NET applications.
Windows client applications written in any .NET supported language can take advantage of the IBM Informix .NET Provider. Some examples of client applications are:
– Visual BASIC .NET applications
– Visual C# .NET applications
– Visual J# .NET applications
– ASP.NET web applications
The IBM Informix .NET Provider a connection editor dialog box, a command editor dialog box, and a data adapter wizard as Microsoft Visual Studio add-ins.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
HDR: DRAUTO
You can automate switching servers for High-Availability Data Replication if the primary server fails by using the DRAUTO configuration parameter.
If DRAUTO is set to either
– RETAIN_TYPE or REVERSE_TYPE, the secondary database server switches to type standard automatically when an HDR failure is detected.
• RETAIN_TYPE, the original secondary database server switches back to type secondary when the HDR connection is restored.
• REVERSE_TYPE, the original secondary database server switches to type primary when the HDR connection is restored, and the original primary switches to type secondary.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Overview
– This feature provides alter support for tables being replicated via Enterprise Replication.
– Currently, if the table schema needs to be altered or if the fragmentation strategy needs to be changed, then replication must be stopped, then alter is performed and then replication must be restarted. This is problematic as it makes it impossible to really consider ER in a 24X7 environment.
List of supported alter operations
1. The ability to add/drop default values2. The ability to add/drop SQL checks3. The ability to add/drop fragments4. The ability to attach/detach fragments5. The ability to add/drop columns6. The ability to recluster indexes7. The ability to alter non replicated columns
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Alter mode
– Alter mode is a new state of a replicated table.
– DML operations are disallowed in this mode.
– DDL operations on a replicated table are allowed only while the table is in alter mode.
– Alter mode can be set/unset manually through CDR CLI or implicitly through SQL alter statement itself.
– Clients can alter the replicated table without placing the table in alter mode through ‘cdr alter …’ command. SQL layer will internally do a callback to ER to set/unset alter mode before and after performing the alter operation. One exception to this is ‘attach fragment’ scenario.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Attach fragment scenario
For attaching a new fragment, first DBA needs to place the replicated table in alter mode through CDR CLI interface, drop the primary key, attach the fragment, recreate the primary key then unset alter mode through CDR CLI interface.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Remastering process
– Existing replicate can be redefined by “remastering the replicate”. Through remastering process, a new column can be added/dropped to/from a replicate definition.
– Also an existing non-mastered replicate can be converted to a mastered replicate using remastering process.
– A replicate can be remastered using two different procedures• Auto remastering
– Auto remastering can be performed through “cdr remaster” command– syntax for “cdr remaster” command
cdr remaster –m <master server group name> <replicate name> <select statement>– In order to perform auto remastering, mastered replicate definition must be defined with ‘name verification
on’ attribute (--name y). That means, replicated table column names must match across all the replicate participants.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Manual remastering procedure
– Create a shadow replicate with same attributes as primary replicate and with new select clause, swap the existing primary replicate and the newly created shadow replicate.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Alter table/fragment support
Things to consider while altering a replicated table
– Have sufficient log space to avoid long transaction
– Have sufficient space in queue sbspace.
– Have sufficient number of locks
Troubleshooting
– If the alter operation returns sql error code 19996 (can not unset alter mode):
• Check the server log file to get the exact ER error message and the corresponding error number.
• Correct the error.• Unset alter mode manually through CDR command line interface.• Note: Even though user gets SQL error code –19996, user transaction might have committed.
The reason for this is, alter mode unset operation is attempted after completing(commit/rollback) the user transaction.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Replicate Templates
Overview– Ease of ER administration and setup
• The entire Enterprise Replication domain can be setup using simple commands with options such as defining replicates on all tables within database, specified on the command line or using a input file.
• A template can perform an initial data synchronization on new servers being added to a template..
• A template can optionally create tables during realization if they do not exist on target servers during template realization.
– Eliminates most of the table Schema related errors
• Templates use the master dictionary from the Master node to create these tables to ensure consistent schemas between the nodes.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Replicate Templates
Defining a template:cdr define template example1 -c detroit \ -C timestamp -S tran \ --master=chicago \ --database=new_cars table1 table2 table3
Template name of example1. Connection is made to the server detroit. Conflict-resolution rule is timestamp. Conflict-resolution scope is transaction. Master replicate information is on server chicago. Use the new_cars database. Include only the tables table1, table2, and table3.
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
ER Enhancements: Replicate Templates
Another example of defining a template:cdr define template example1 -c detroit \ -C timestamp -S tran \ --master=chicago -–ignoredel y \ --database=new_cars -–file=tables.list
Much of it the same as before. Specify --ignoredel so delete operations are not
replicated.– Retaining deleted rows on target servers is useful for
consolidation models. Specify --file if the list of replicated tables is in a file. There are short-form options for the long ones:
IBM Informix Dynamic Server | Key Features in IDS 10.00 | Chat With The Lab | 2005-04-06
IDUG / IIUG 2005 ConferenceMay 22nd-26th – Denver Convention Center
Denver, Colorado, USA http://www.iiug.org/conf
Over 50 technical presentations dedicated to Informix All given either by Informix R&D staff or by fellow Informix Users
Four Specialized Training Sessions: A Technical Deep Dive into IDS 10 Advanced IDS Setup from Disk to Engine Is Your DBA Paranoid Enough? Everything You Always Wanted to Know about Informix SQL
Meet the Informix Developers and fellow Informix Users IIUG Annual General Meeting Largest gathering of Informix Users in the world in 2005! Completely run by the International Informix User Group To Register(*) visit:
http://www.iiug.org/conf For more information see: