Home

IBM Informix Migration Guide

image

Contents

1. Configuration Parameter Value EXT_DIRECTIVES 0 FAILOVER_CALLBACK none FASTPOLL 1 HA_ALIAS none LOG_INDEX_BUILDS none MAX_INCOMPLETE_CONNECTIONS 1024 PC_HASHSIZE 31 PC_POOLSIZE 127 PLCY_HASHSIZE 127 PLCY_POOLSIZE 31 PLOG_OVERFLOW_PATH UNIX INFORMIXDIR tmp Windows none UPDATABLE_SECONDARY 0 RESTORE_FILTER none SBSPACETEMP none SDS_ENABLE none SDS_PAGING none SDS_TEMPDBS none SDS_TIMEOUT 20 SECURITY_LOCALCONNECTION none SQLTRACE Commented out SQLTRACE level low ntraces 1000 size 2 mode global SSL_KEYSTORE_LABEL none STMT_CACHE 0 STMT_CACHE_HITS 0 STMT_CACHE_NOLIMIT 0 STMT_CACHE NUMPOOL 1 STMT_CACHE_ SIZE 512 UNSECURE_ONSTAT none USRC_HASHSIZE 31 USRC_POOLSIZE 127 VPCLASS cpu num 1 noage Commented out VPCLASS aio num 1 Commented out VPCLASS jvp num 1 Configuration parameters that have new default values The following table lists the configuration parameters that have new default values in the onconfig std file IBM Informix Migration Guide Table C 2 Configuration Parameters with New Default Values in the onconfig std File Configuration Parameter Previous Value New Value ADMIN_MODE_USERS 1 None ALARMPROGRAM UNIX usr informix etc alarmprogram sh Windows None UNIX INFORMIXDIR etc alarmprogram sh Wind
2. Queries That Use SKIP and LIMIT Dynamic Server Version 10 00xc3 supports queries that use the keywords SKIP and LIMIT A query that uses either of these keywords will fail with an error after reversion to any earlier version of Dynamic Server 10 00 FIRST Clause with an ORDER BY Clause Dynamic Server Version 10 00xc3 supports the ORDER BY clause of the SELECT statement in a subquery whose result set is a collection derived table CDT but only in conjunction with the SKIP keyword or the FIRST keyword or its keyword synonym LIMIT in the Projection clause of the same SELECT statement Queries that use this syntax will fail with an error after reversion to an earlier version of Dynamic Server 10 00 Chapter 7 Reverting from Dynamic Server Version 11 50 7 5 Table 7 2 Requirements and limitations when reverting to a specific version of the server continued Reversion Requirement or Limitation If reverting to this Server or Earlier Servers Label based access control LBAC Before reverting you must drop any security policy from tables In addition because IDSSECURITYLABEL is a new built in type for Version 11 10 you must remove any columns of that type before you can revert to versions of Dynamic Server that are earlier than Version 11 10 10 00 Support for Distributed Relational Database Architecture DRDA Dynamic Server drops stored procedures for metadata that Dynamic Server created automatically
3. ti table Includes in the SQL statement output all statements that are needed to None replicate all table levels ti all Includes in the SQL statement output all statements that are needed to None replicate all tables and views Functionally equivalent to t all For more information about the CREATE PROCEDURE and CREATE FUNCTION statements see the IBM Informix Guide to SQL Syntax Table information Role creation The dbschema ss option retrieves information about fragmented tables the lock mode and extent sizes The following dbschema output shows the expressions specified for fragmented table TABLE sallyc tl row size 8 number of columns 1 index size 0 create table sallyc tl cl integer fragment by expression cl lt 100 in dbl cl gt 100 AND cl lt 200 in db2 remainder in db4 extent size 16 next size 16 lock mode page revoke all on Sallyc tl from public The following dbschema output shows information on partitions in partition fragmented tables DBSCHEMA Schema Utility grant dba to sqlqa TABLE sqlqa tl row size 24 number of columns 2 index size 13 create table sqlqa tl cl integer c2 char 20 fragment by expression partition part_1 cl 10 in dbsl partition part_2 cl 20 in dbs1 partition part_3 cl 30 in dbs1 partition part_4 cl 40 in dbsl partition part_5 cl 50 in dbs1 extent
4. Modify the schema Update application and start replication Related Information e Operating systems that are not supported on page 1 6 e Chapter 3 Preparing for migration to Dynamic Server Version 11 50 on page e Data migration tools on page 2 1 Hardware prerequisites Your hardware must support the operating systems that Dynamic Server Version 11 50 supports and must provide enough disk space for Version 11 50 and all your other software applications Software prerequisites You can download the Dynamic Server installation package from the Web or install from the product CD Chapter 1 Overview of Dynamic Server migration 1 5 To download the installation package log on to Passport Advantage at http www ibm com software howtobu passportadvantagel and follow the directions provided Supported operating systems IBM Informix Dynamic Server runs on Linux UNIX and Windows operating systems Additionally the Ultimate Edition runs on the Mac OS X operating system Table 1 1 Operating systems on which to run Dynamic Server Version 11 50 IBM Informix Dynamic Server Operating Systems Ultimate Edition Linux UNIX Windows Mac OS X Express Edition Linux Windows For a detailed list of the operating systems supported by the current version of Dynamic Server and by other IBM Informix products download the
5. When a keyword appears in a syntax diagram it is shown in uppercase letters When you use a keyword in a command you can write it in uppercase or lowercase letters but you must spell the keyword exactly as it appears in the syntax diagram You must also use any punctuation in your statements and commands exactly as shown in the syntax diagrams IBM Informix Migration Guide Identifiers and names Variables serve as placeholders for identifiers and names in the syntax diagrams and examples You can replace a variable with an arbitrary name identifier or literal depending on the context Variables are also used to represent complex syntax elements that are expanded in additional syntax diagrams When a variable appears in a syntax diagram an example or text it is shown in lowercase italic The following syntax diagram uses variables to illustrate the general form of a simple SELECT statement gt gt SELECT column_name FROM table_name gt lt When you write a SELECT statement of this form you replace the variables column_name and table_name with the name of a specific column and table How to Provide Documentation Feedback You are encouraged to send your comments about IBM Informix user documentation Use one of the following methods e Send e mail to docinf us ibm com e Go to the information center at http publib boulder ibm com infocenter idshelp v115 index jspland open the topic that you wan
6. Changing the database locale with dbimport You can use the dbimport utility to change the locale of a database To change the locale of a database Chapter 9 The dbexport and dbimport utilities 9 11 1 Set the DB_LOCALE environment variable to the name of the current database locale 2 Run dbexport on the database 3 Use the DROP DATABASE statement to drop the database that has the current locale name 4 Set the DB_LOCALE environment variable to the desired database locale for the database 5 Run dbimport to create a new database with the desired locale and import the data into this database Simple large objects Version 9 21 or later versions 9 12 When the dbimport dbexport and DB Access utilities process simple large object data they create temporary files for that data in a temporary directory Before you export or import data from tables that contain simple large objects you must have one of the following items e A tmp directory on your currently active drive e The DBTEMP environment variable set to point to a directory that is available for temporary storage of the simple large objects Windows Only Windows sets the TMP and TEMP environment variables in the command prompt sessions by default However if the TMP TEMP and DBTEMP environment variables are not set dbimport places the temporary files for the simple large objects in the tmp directory Attention If a table has a CLOB or BLOB in a
7. JAR_TEMP_PATH Specifies a non default local file system location for temporary jar files of the Java virtual machine IBM Informix Migration Guide Table A 1 New Environment Variables continued Version Environment Variable Description 9 21 JAVA_COMPILER Disables JIT compilation 9 21 JVM_MAX_HEAP SIZE Sets a non default upper limit on the size of the heap for the Java virtual machine 9 20 IFX_LONGID Determines whether a given client application is capable of handling long identifiers 9 20 IFX_UPDDESC Allows the execution of a DESCRIBE of an UPDATE statement 9 20 STMT_CACHE Controls the use of the shared statement cache on a session In Dynamic Server 9 30 the environment variable DELIMIDENT must be set before a client starts to manipulate a table with an SQL DELETE statement that omits the FROM keyword Related concepts Changes in Dynamic Server on page 1 10 Appendix A New environment variables A 3 A 4 IBM Informix Migration Guide Appendix B New configuration parameters Each version of Dynamic Server contains new configuration parameters that might affect your installation For a list of altered and removed configuration parameters see Configuration parameters that have been changed or removed on page C 1 If you need to revert to a prior version of the server you must either replace the Dynamic Server Version 11 50 ONCONFIG configuration file w
8. Logging must be turned off Difficult to use Not available on SE 7 22 7 25 SE 5 1 or earlier versions OnLine 5 1 or earlier versions UNLOAD and LOAD statements Unloads and loads specified rows Can modify database schema Can move data between operating systems Easy to use Optional logging Only accepts specified data formats HPL Loads data from any ASCII or COBOL file that meets certain format requirements For extremely large databases has a performance advantage over other IBM Informix data migration utilities because it performs I O and code set conversions in parallel Can modify database schema Can move data between operating systems Can import data from non Informix sources Requires significant preparation time Not available on SE 7 22 7 25 SE 5 1x OnLine 5 1x Nonlogging raw tables Loads certain kinds of large tables Can load very large data warehousing tables quickly Does not support primary constraints unique constraints and rollback Requires SQL Not recommended for use within a transaction Chapter 2 Overview of moving data 2 3 Table 2 1 Comparison of tools for moving data continued Tool Description Advantages Disadvantages Availability External tables Enables you to can read and write from a source that is external to the database server providing an SQL interface to data in text files managed by
9. filename 7 SELECT Statement m LDELIMITER delimiter Notes 1 See the IBM Informix Guide to SQL Syntax Element Purpose Key Considerations delimiter Character to use as delimiter Requirements See Syntax for the delimiter form on page 10 6 filename Specifies the input file None Copyright IBM Corp 1996 2010 12 1 This syntax diagram is only for quick reference For details about the syntax and use of the UNLOAD statement see the IBM Informix Guide to SQL Syntax Syntax of the LOAD statement The LOAD statement in DB Access appends rows to an existing table of a database gt gt LOAD FROM filename INSERT INTO gt _DELIMITER del imire 1 gt Table Name gt lt 1 Synonym Name i 1 column View Name moo Notes 1 See the IBM Informix Guide to SQL Syntax Element Purpose Key Considerations column The name of a column to receive Must be a column in the specified table or view data from filename delimiter Character to use as delimiter See filename Specifies the input file None This syntax diagram is only for quick reference For details about the syntax and use of the LOAD statement see the IBM Informix Guide to SQL Syntax Load and unload statements for locales that support multibyte code sets For locales that support multibyte code sets be sure that the declared size
10. on page C 1 Configuration files that you might have are listed in Table 3 1 Table 3 1 Configuration files to save from the source database server UNIX or Linux Windows INFORMIXDIR etc ONCONFIG INFORMIXDIR etc ONCONFIG INFORMIXDIR etc onconfig std INFORMIXDIR etc onconfig std INFORMIXDIR etc oncfg INFORMIXDIR etc oncfg INFORMIXDIR etc sm_versions INFORMIXDIR etc sm_versions INFORMIXDIR aaodir adtcfg INFORMIXDIR aaodir adtcfg INFORMIXDIR dbssodir adtmasks INFORMIXDIR dbssodir adtmasks INFORMIXDIR etc sqlhosts INFORMIXDIR etc tctermcap INFORMIXDIR etc termcap If you use ON Bar to back up your source database server and the logical logs you must also save a copy of any important storage manager files as well as the following file Chapter 3 Preparing for migration to Dynamic Server Version 11 50 3 5 UNIX or Linux INFORMIXDIR etc ixbar servernum Windows INFORMIXDIR etc ixbar servernum Saving a copy of the Storage Manager sm_ versions file Before you migrate to a later version of the database server save a copy of your current sm_versions file which should be in the INFORMIXDIR etc directory If you are using a different directory as INFORMIXDIR for the new database server copy sm_versions to the new INFORMIXDIR etc or copy sm_versions std to sm_versions in the new directory and then edit the sm_versions file with appropri
11. 13 Start SD secondary servers by issuing oninit commands 14 Start the servers in the cluster and perform additional tasks in the following order 15 Back up all logs Then use ON Bar or ontape to make a level 0 backup on the primary server to use to reestablish the RS and HDR secondary servers if necessary 16 If you have RS secondary servers a Add RS entries on the primary server by issuing onmode d add RSS rss_server_name commands b Start RS secondary servers with level 0 restore operations from the level 0 backup that was made on the primary server after migration c On RS secondary servers run the onmode d RSS primary_server_name command and wait for the RSS secondary server operational message to appear after each command 17 If you have an HDR secondary server a Reestablish the pair on the primary server by issuing an onmode d primary hdr_secondary_server_name command b Start the HDR secondary server with level 0 restore operations from the level 0 backup that was made on the primary server after migration c On the HDR secondary server run the onmode d secondary primary_server_name command and wait for the HDR secondary server operational message to appear after each command Perform any additional standard migration tasks described in the new version of Dynamic Server on page 6 1 and in Completing required post migration tasks on page 6 7 The migration of all servers in the cluste
12. IBM Informix Version 11 50 IBM Informix Migration Guide all IBM Informix Version 11 50 IBM Informix Migration Guide all Note Before using this information and the product it supports read the information in Notices on page H 1 This document contains proprietary information of IBM It is provided under a license agreement and is protected by copyright law The information contained in this publication does not include any product warranties and any statements provided in this manual should not be interpreted as such When you send information to IBM you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you Copyright IBM Corporation 1996 2010 US Government Users Restricted Rights Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Contents Introduction ix In this introduction ix About this publication ix Assumptions about your locale ix What s new in migration for Dynamic Server V ision 11 50 x Documentation conventions xii Technical changes Xii Feature product and platform markup xiii Example code conventions xiii Additional documentation xiii Compliance with Industry Standards Xiv Syntax Diagrams Xiv How to read a command jin syntax diagram XV Keywords and punctuation Xvi
13. Run the dbschema d hd command for all critical tables The output contains distribution information Get oncheck pr output that dumps all of the root reserved pages Make a copy of the ONCONFIG configuration file A copy of the ONCONFIG file is essential if you need to revert to an earlier version of Dynamic Server In addition a copy of this file is useful because oncheck pr does not dump all of the configuration parameters Prepare a list of all the environment variables that are set using the env command During times of peak usage e Obtain an online log snippet with some checkpoint durations in it e Run onstat aF g all and g stk all During times of peak usage run the following onstat commands repeatedly with the r repeat option for a period of about three to five minutes e onstat u to see the total number of sqlexecs used onstat p for read and write cache rates to detect deadlocks and the number of sequential scans e onstat g nta a consolidated output of g ntu ntt ntm and ntd onstat g nsc g nsd and g nss for the status of shared memory connections e onstat P g tpf and g ppf e vmstat iostat and sar for cpu utilization e timex of all queries that you regularly run Chapter 3 Preparing for migration to Dynamic Server Version 11 50 3 9 Migrating from 32 bit to 64 bit database servers 3 10 If you are migrating from a 32 bit version of Dynamic Serv
14. on page 5 4 13 If you use Enterprise Replication perform additional Enterprise Replication prerequisite reversion tasks See Reverting with Enterprise Replication on page 3 After preparing to revert to your source database server see Reverting from Dynamic Server Version 11 50 on page 7 10 Ascertain that reversion is possible and identify reversion requirements You can revert from Dynamic Server Version 11 50 to the database server from which you migrated if you have not added any extensions to the Version 11 50 database server and you are not reverting from a newly created instance You must review your database schema to determine if reversion is possible See l Reversion requirements and limitations for limitations on reversion to previous databases and prerequisite steps you must take before you revert To review the database schema to determine if reversion is possible 1 Run the dbschema utility command For example run the following command to display information about the database db1 dbschema d dbl ss 2 Determine if the schema file contains SOL statements that the earlier database server does not support 3 Determine if the database contains features such as long identifiers that the earlier database server does not support See Appendix F New and changed features on page F 1 4 Determine if any new SPL routines have been created in Dynamic Server Version 11 50 or if any
15. syscdr conversion completed successfully syscdr conversion failed For details about the conversion see either of the following files e INFORMIXDIR etc concdr out e INFORMIXDIR etc concdr out 7 If conversion fails resolve the problem reported in the concdr out file restore the syscdr database from a backup and then attempt conversion again 8 After successful conversion start Enterprise Replication cdr start Important After you convert to the new version of Dynamic Server with Enterprise Replication do not drop the syscdr database If syscdr is dropped you cannot revert to the older database server with Enterprise Replication because the data required to carry out the reversion is stored in the syscdr database Converting replication of 9 21 user defined data types 4 2 If you are migrating from Dynamic Server Version 9 21 and use Enterprise Replication you must complete additional tasks if you have user defined data types UDTs Dynamic Server Version 9 21 has limited support for the replication of UDTs To take advantage of the UDT replication that is available in newer versions of the server the user defined routines UDRs for a UDT must contain streamwrite and streamread functions After you migrate to the new version of Dynamic Server implement the streamwrite and streamread functions for any currently replicated UDTs on all database servers within the enterprise IBM Informix Migration Guid
16. 4 1 4 1 4 2 43 4 4 6 4 6 10 6 10 6 10 7 1 7 2 7 8 779 v 7 9 7 10 7 10 Remove new BladeManager extensions 7 10 Reverting from Dynamic Server Version 11 50 7 10 Run the reversion utility woe 6 7 11 Restore original configuration parameters 7 12 Restore original environment variables 7 12 Remove any Communications Support Module settings 7 12 Recompile any Java UDRs that were compiled using JDK 5 0 7 12 Reinstall and start the earlier database server 7 12 Optionally update statistics on your tables after reverting 7 13 Update statistics on some system catalog tables after reverting 7 13 Verify the integrity of the reverted data 7 13 Back up the database server after reversion 7 13 Return the database server to online mode 7 13 Reverting clusters 7 14 Part 3 Migration of data between database servers Chapter 8 Migrating database servers to a new operating system 8 1 Choosing a tool for moving data before migrating between operating systems 8 1 Adjusting database tables for file system variations 2 Gar a y 8 1 Moving data to a database server on a different operating system 8 2 Moving Data Between Dynamic Server and Workgroup Edition Version 7 24 on n Different operating systems 8 2 Adapting your programs for a different operating system 8 3 Ensuring the successful creation of system databases 8 3 Part 4 Data migration utilities C
17. 7 23 7 22 7 31 7 30 7 24 without Enterprise Replication 5 1 or earlier versions 7 31 7 30 7 24 without Enterprise Replication Migration paths on Linux operating systems On Linux operating systems you can migrate directly from specified newer versions of Dynamic Server to the newest version of the server The following table lists the source and target versions for the migration of database servers on Linux You can migrate from the source versions shown in the first column to the target version shown in the second column Table 1 4 Source and target versions for migration and reversion on Linux Source Version Target Version 11 10 Version 11 50 10 00 Version 11 50 9 40 9 30 9 21 Version 11 50 7 31 Version 11 50 Migration paths on Windows operating systems You can migrate from several Windows operating systems to the new version of Dynamic Server Version 11 50 does not run on Windows 2000 Windows NT or Windows 95 operating systems The following table lists the source and target versions for the migration of database servers on Windows You can migrate from the source versions shown in the first column to the target version shown in the second column Table 1 5 Source and target versions for migration and reversion on Windows Source Version Target Version Dynamic Server version 11 10 10 00 9 4 or Version 11 50 on Windows XP 7 31 TD9 and higher on Windows XP Dynamic Server
18. If the format of the data is not suitable use UNIX Linux or Windows utilities to reformat the data before you import it In addition to dbimport and dbload the IBM Informix Enterprise Gateway products and the HPL provide ways to access information from non Informix sources Importing data with IBM Informix Enterprise Gateway products You can use IBM Informix Enterprise Gateway with DRDA to query a DRDA database and then insert the results into an Informix database For example to import data run a SELECT statement to select data from the non Informix database and then run an INSERT statement to insert data into the Informix database For more information refer to the IBM Informix Enterprise Gateway with DRDA User Manual IBM Informix Enterprise Gateway provides a single standards based gateway to multiple data sources Gateway Manager connects the Informix environment with that of any shared library ODBC Level 2 compliant driver manager and driver on UNIX or Linux For instance you can use Gateway Manager with the IBM Informix Enterprise Gateway driver products to access UNIX or Linux database server products For more information refer to the IBM Informix Enterprise Gateway with DRDA User Manual Moving data by using distributed SQL If you want to move data with different binary pages and page sizes across platforms and you have expertise in using distributed SQL you can use INSERT and SELECT SQL statements to transfer th
19. New Configuration Parameter Description 11 10 AUTO_AIOVPS Enables or disables the ability of the database server to automatically increase the number of AIO VPs and flusher threads when the server detects that AIO VPs are not keeping up with the I O workload 11 10 AUTO_CKPTS Enables or disables automatic checkpoints when the database server starts 11 10 AUTO_LRU_TUNING Enables or disables automatic LRU tuning when the database server starts 11 10 AUTO_REPREPARE Controls whether Dynamic Server automatically re optimizes SPL routines and re prepares prepared objects after the schema of a table referenced by the SPL routine or by the prepared object has been significantly changed 11 10 BACKUP_FILTER Specifies the path name of a backup filter program and any options that ON Bar uses 11 10 BAR_PERFORMANCE Controls the level of information in the ON Bar Activity log 11 10 11 10 DIRECT_IO DRDA_COMMBUFFSIZE Controls the use of direct I O for cooked files used for database space chunks Sets the buffer size of the DRDA communications buffer 11 10 ENCRYPT_HDR Enables or disables high availability server encryption 11 10 ENCRYPT_SMX Sets the level of encryption for high availability secondary server configurations 11 10 EXPLAIN_STAT Enables or disables the inclusion of a Query Statistics section in the explain out file that th
20. You can also use the onstat utility to determine that shared memory was not initialized Modifying kernel parameters UNIX Linux You might need to change some of the kernel parameters for your UNIX or Linux operating system before you install Dynamic Server Version 11 50 To reconfigure the operating system follow the directions in both of these resources e Machine notes file included on your database server distribution media e Kernel configuration instructions for your operating system 3 8 IBM Informix Migration Guide Pre migration checklist of diagnostic information Before you migrate to a newer version of Dynamic Server gather diagnostic information especially if you have large complex applications This information will be useful to verify database server behavior after migration This information will also be useful if you need help from Technical Support If you have problems you or Technical Support can compare the information that you gather with information obtained after migration The following Table 3 3 contains a list of the diagnostic information that you can gather You can print the checklist Then after you get the information specified in each row check the second column of the row Table 3 3 Checklist of information to get before migrating Information to Get Before Migrating Done Get the SQL query plans for all regularly used queries especially complex queries by using SET EXPLAIN ON
21. You cannot manually drop these built in stored procedures 10 00 UDRs and Applications That Use the TRUNCATE Keyword or the am_truncate Method You cannot revert these to a pre 10 00 version of Dynamic Server During reversion you must drop or revise any routines that use the TRUNCATE statement including any newly registered Virtual Table Interface or Virtual Index Interface purpose functions 9 40 Column Level Encryption If your tables contain encrypted data do not revert to a version of the server that does not contain encryption support any version prior to Version 10 0 because you will not be able to interpret column data without writing a custom DataBlade module that is equivalent to the facilities provided by Dynamic Server Dynamic Server does not record whether encrypted data is stored in a database 9 40 XA Data Sources and XA Data Source Types If you create any XA data sources and XA data source types you must drop these 9 40 DataBlade User Defined Routines UDRs that Include the EXTERNAL Clause The database server administrator DBSA user informix by default must revoke the extend role from all users to whom the role has been granted 9 40 New or Changed Built in UDRs Many system catalog tables use built in UDRs If you changed the definition of a built in UDR you must drop the UDR before reverting 9 40 Multiple INOUT Parameter Support You must drop any new UDRs that were crea
22. database Specifies the name of the database to create Additional Information To use more than the simple name of the database see the Database Names segment in the IBM Informix Guide to SQL Syntax The dbimport utility can use files from the following location options e All input files are located on disk e All input files are located on tape e The schema file is located on disk and the data files are on tape Important Do not put comments into your input file Comments might cause unpredictable results when the dbimport utility reads them The dbimport utility supports the following tasks for a new Informix database server excluding SE e Create an ANSI compliant database includes unbuffered logging e Establish transaction logging for a database unbuffered or buffered logging e Specify the dbspace where the database will reside The user who runs dbimport is granted the DBA privilege on the newly created database The dbimport process locks each table as it is being loaded and unlocks the table when the loading is complete Global Language Support When the GLS environment variables are set correctly as the IBM Informix GLS User s Guide describes dbimport can import data into database versions that support GLS Chapter 9 The dbexport and dbimport utilities 9 7 Termination of the dbimport utility You can stop the dbimport utility at any time To cancel the dbimport utility press your Interr
23. except that in dbload INSERT statements cannot incorporate SELECT statements The following diagram shows the syntax of the dbload INSERT statement for character position form gt gt INSERT INTO table gt Lowner J 3 i column 1 a VALUES clause Notes 1 See the IBM Informix Guide to SQL Syntax Element Purpose Key Considerations column Specifies the column that receives the new data None owner Specifies the user name of the table owner None table Specifies the table that receives the new data None The syntax for character position form is identical to the syntax for delimiter form The user who runs dbload with this command file must have the Insert privilege on the named table How to write a dbload command file in character position form Command files must define data fields and use character positions to define the length of each field Chapter 10 The dbload utility 10 11 10 12 The FILE statement in the following example defines six data fields from the cust_loc_data table data rows FILE cust_loc_data city 1 15 state 16 17 area_cd 23 25 NULL xxx phone 23 34 NULL XXX XXX XXXX zip 18 22 state_area 16 17 23 25 INSERT INTO cust_address coll col3 col4 VALUES city state zip The statement names the fields and uses character positions to define the length of each field Compare the FILE statement in the
24. in bytes of any column that receives character data is large enough to store the entire data string For some locales this can require up to 4 times the number of logical characters in the longest data string Load and unload statements for non default locales and GL_DATETIME environment variable If the database uses a non default locale and the GL_DATETIME environment variable has a non default setting you must set the USE_DTENV environment variable to the value of 1 before you can process localized datetime values correctly with the LOAD and UNLOAD statements or with the dbimport and dbexport utilities 12 2 IBM Informix Migration Guide Chapter 13 The onunload and onload utilities The onunload and onload utilities provide the fastest way to move data between computers that use the same database server on the same platform For example your site purchases a more powerful UNIX computer to allow faster access for users You need to transfer existing databases to the new database server on the new computer Use onunload to unload data from the first database server and then use onload to load the data into the second database server Both database servers must have the same version number or they must have compatible version numbers You can move an entire database or selected tables only but you cannot modify the database schema The onunload utility can unload data more quickly than either dbexport or the UNLOAD statemen
25. rows meet the delimiter and new line requirements The delimiter form of the FILE and INSERT statements is easier to use than the character position form Use the character position form of the FILE statement when you cannot rely on delimiters and you must identify the input data fields by character position within the input row For example use this form to indicate that the first input data field begins at character position 1 and continues until character position 20 You can also use this form if you must translate a character string into a null value For Chapter 10 The dbload utility 10 5 example if your input data file uses a sequence of blanks to indicate a null value you must use this form if you want to instruct dbload to substitute null at every occurrence of the blank character string You can use both forms of the FILE statement in a single command file For clarity however the two forms are described separately in sections that follow Delimiter form of the FILE and INSERT statements The FILE and INSERT statements that define information for the dbload utility can appear in a delimiter form The following example of a dbload command file illustrates a simple delimiter form of the FILE and INSERT statements The example is based on the stores_demo database An UNLOAD statement created the three input data files stock unl customer unl and manufact unl FILE stock unl DELIMITER 6 INSERT INTO stock FILE custome
26. s_address ROW street varchar 20 city varchar 20 state char 20 zip varchar 9 J The data from the devtest table is unloaded into the devtest unl file Each data row contains two delimited fields one for each unnamed row type The ROW constructor precedes each unnamed row type as follows ROW Jim K Johnson ROW 10 Grove St Eldorado CA 94108 ROW Maria E Martinez ROW 2387 West Wilton Ave Hershey PA 17033 This dbload example shows how to insert data that contains unnamed row types into the devtest table Put double quotes around each unnamed row type or the insert will not work FILE devtest unl DELIMITER 2 INSERT INTO devtest s_name s_address VALUES row Stephen M Wu row 1200 Grand Ave Richmond OR 97200 Using the dbload utility with collection data types You can use the dbload utility with collection data types such as SET LIST and MULTISET SET data type example The SET data type is an unordered collection type that stores unique elements The number of elements in a SET data type can vary but no nulls are allowed The following statement creates a table in which the children column is defined as a SET CREATE TABLE employee name char 30 address char 40 children SET varchar 30 NOT NULL The data from the employee table is unloaded into the employee unl file Each data row contains four delimited fields The first set contains thr
27. tables sysdbspaces sysdbstab sysdic sysrstcb syssdblock The CHAR data type changed to the STAT data type in the following system catalog table sysdistrib Changes in treatment of null values in sysmaster tables in Version 9 30 Starting with Version 9 30 nulls are allowed in some sysmaster database tables in which nulls were previously not allowed Nulls are allowed for some columns in the following sysmaster database tables arc_ae_view arc_pendreq_view arc_volume_view arc_db_file_view arc_req_vset_view arc_vset_user_view arc_directory_view arc_request_view arc_vset_view arc_file_copy_view arc_save_set_view arc_file_view arc_vol_lock_view Appendix E System catalog and system database changes E 5 Other sysmaster database table and column changes in Version 9 30 Dynamic Server Version 9 30 contains a new sysmaster database table In addition some tables were removed and new columns were added to a few tables The following tables have been added to the sysmaster database logmessage syscdrack_buf syscdrctrl_txn syscdrprog syscdrrecv_txn syscdrtx syscdrack_txn syscdrctrl_buf syscdrq syscdrrecv_buf The following arc_change_log table has been deleted from the sysmaster database One or more columns have been added to the following system catalog tables sysams sysdistrib sysprocedures sysroutinelangs Several columns have been added to the sysdbstab system catalog table Remote queries on system catalog tab
28. the utility prompts you to respond to corrective action that it can perform If you respond Yes to the suggested corrective action run the oncheck command again to make sure the problem has been fixed The oncheck utility cannot fix data that has become corrupt If the oncheck utility is unable to fix a corruption problem you might need to contact Technical Support before your proceed You will also need to verify the integrity of your data after you revert Chapter 7 Reverting from Dynamic Server Version 11 50 7 9 Back up Dynamic Server Version 11 50 Before you begin the reversion make a complete level 0 backup of Dynamic Server Version 11 50 For more information see the IBM Informix Backup and Restore Guide Remove Version 11 50 features Before you revert remove all features that your older database server does not support For a list of features that you need to remove before reversion see Ascertain that Remove new BladeManager extensions When you run BladeManager against a database you automatically create extensions because BladeManager registers its utility DataBlade module which adds extensions to the database If you need to revert from Version 11 50 and you ran BladeManager against a database you must remove the new BladeManager extensions To remove the BladeManager extensions run this command unprep database name Reverting from Dynamic Server Version 11 50 7 10 After preparing
29. 1 overview 2 1 using dbexport and dbimport 9 1 using dbload 10 1 using distributed SQL 2 7 using onload and onunload 13 1 using onunload and onload 13 11 13 12 when changing operating systems 8 1 8 2 8 3 MSG_DATE configuration parameter B 2 Multi node Active Clusters for High Availability MACH Clusters migrating to new release 5 1 N Native Language Support NLS populating with dbimport 9 11 Non in place migration 1 4 Non Informix data importing 2 7 O ON Bar utility 6 8 backing up after upgrading 6 10 backing up Dynamic Server 3 8 oncheck utility cc database_name option 3 7 6 10 cD database_name option 3 7 6 10 ce option 3 7 6 10 cI database_name option 3 7 6 10 cr option 3 7 6 10 cs sbspace_name option 6 10 cS sbspace_name option 6 10 rebuilding table indexes 6 5 verifying database integrity 3 7 6 9 ONCONFIG environment variable 6 4 ONCONFIG file changes in new server versions C 1 customizing after migration 6 4 onconfig std file changes in Version 11 50 C 1 oninit utility s option 3 7 ONLIDX_MAXMEM configuration parameter B 5 online log 6 3 onload and onunload utilities 13 11 13 12 onload utility constraints 13 9 constraints on use 13 2 create options 13 8 handling large objects in a blobspace 13 10 how it works 13 3 logging status 13 10 moving a database 13 11 moving a table 13 11 13 12 moving locales 13 2 moving to another dbspace 13 12 ownership and privileges
30. 1 onmode c onmode ky Initiating fast recovery to verify that no open transactions exist A shutdown procedure does not guarantee a rollback of all open transactions To guarantee that the source database server has no open transactions put the source database server in quiescent mode and initiate fast recovery 3 6 IBM Informix Migration Guide Run the following command to enter quiescent mode and initiate a fast recovery oninit s UNIX Linux Only On UNIX or Linux the oninit s command rolls forward all committed transactions and rolls back all incomplete transactions since the last checkpoint and then leaves a new checkpoint record in the log with no open transactions pending You must run the oninit s command before you initialize the new version of Dynamic Server If any transactions remain when you try to initialize the new database server you will receive the following error when you try to initialize the new database server and it goes offline Open transaction detected when changing log versions For more information about fast recovery see your IBM Informix Dynamic Server Administrator s Guide After you put the database server in quiescent mode and initiate fast recovery issue the onmode yuk command to shut down the database server Then review the online log file for any possible problems and fix them Only after proper shutdown can you bring the new database server Dynamic Server Version 11 50 through the m
31. 13 10 specifying source parameters 13 7 syntax 13 6 using between computers 13 1 onmode b command 14 1 onmode utility b option 7 11 ky option 3 6 sy option 3 6 reverting from the current Dynamic Server version 7 11 shutting down 3 6 shutting down Dynamic Server 3 6 onmode b command 14 1 syntax 14 1 onpload database upgrading 6 6 onrestorept utility Clusters restoring primary server to a consistent point 5 6 overview 15 1 syntax 15 1 undoing failed upgrade changes 5 6 6 7 onstat utility 3 8 ontape utility a option 6 5 backing up after upgrading 6 10 Dynamic Server source database server 3 8 onunload utility constraints on use 13 2 13 5 destination parameters 13 4 how it works 13 3 locking 13 6 logging mode 13 6 moving a database 13 11 moving a table 13 11 13 12 moving locales 13 2 moving to another dbspace 13 12 ownership and privileges 13 5 syntax 13 3 unloading tables 13 6 using between computers 13 1 what is included with a database 13 5 table 13 6 Operating system adjusting tables after changing operating systems 8 1 moving data to another one 8 1 8 2 8 3 reconfiguring 3 8 Operating systems not supported 1 6 Index X 5 Operating systems continued the server runs on 1 6 OPTICAL_LIB_PATH configuration parameter 6 4 ORDER BY clause 7 3 Overview of migration process 1 1 1 2 1 3 P PATH environment variable 6 4 Performance tuning after upgrading 6 10 Planning data migration 2 1 Platforms movi
32. 3 Preparing for migration to Dynamic Server Version 11 50 3 1 Copyright IBM Corp 1996 2010 iii Preparing for migration Checking and configuring Available space Configuring for recovery of restore point data in case an upgrade fails Saving copies of the current configuration files Saving a copy of the Storage Manager sm_versions file Closing all transactions and shutting down the source database server Initiating fast recovery to verify that no open transactions exist Verifying the integrity of the data Verifying that the database server is in quiescent mode Making a final backup of the source database server Verifying that the source database server Is offline Modifying kernel parameters UNIX Linux Pre migration checklist of diagnostic information Migrating from 32 bit to 64 bit database servers Chapter 4 Enterprise Replication and migration Preparing to migrate with Enterprise Replication Migrating with Enterprise Replication Converting replication of 9 21 user defined data types Reverting with Enterprise Replication Express Edition migration and Enterprise Replication Chapter 5 High availability cluster migration Preparing to migrate upgrade or revert clusters Upgrading clusters to a new PID or fix pack Migrating clusters to a new release Reverting clusters Restoring clusters to a consistent point Restoring a cluster from a backup archive Restoring a cluster from the HDR seco
33. 6 6 Configuration parameter topics in the IBM Informix Dynamic Server Administrator s Reference Migrating or Upgrading High availability Clusters Information was added to help you coordinate the migration of all servers in a high availability cluster If you use high availability clusters refer to this information when you upgrade to a new PID or fix pack migrate to a new version of Dynamic Server or revert to the previous version if necessary X IBM Informix Migration Guide Table 2 What s New for Migration in Version 11 50xC4 Overview Reference Save Disk Space by Compressing Data You can now use SQL administration API commands to save disk space by compressing row data in a table or in one or more table fragments You can also use SQL administration API commands to consolidate free space in a table or fragment return this free space to the dbspace and estimate the amount of space that is saved by compressing the data You can display the following types of information about compression e Active compression dictionaries that describe how the data is compressed with the new onstat g ppd command e All compression dictionaries by querying the new syscompdicts_full table and syscompdicts view in the sysmaster database e Progress of currently running compression operations with the new onstat g dsk command e Uncompressed contents of compressed log records with a new onlog utility opti
34. New Default Values in the onconfig std File continued Configuration Parameter Previous Value New Value TAPEBLK UNIX 32 Windows 16 TAPESIZE 0 Configuration parameters that have been changed or removed The following table contains a list of other configuration parameters that have been changed or removed in Version 11 50 Table C 3 Configuration Parameters that Have Been Changed or Removed AFF_SPROC Removed AFF_NPROCS was previously removed DIRECT_IO Has new option for concurrent I O on AIX operating systems DUMPSHMEM Has new options for controlling how much memory is written to a dump file JDKVERSION Removed JVPJAVAHOME lusr informix in the directory name of the configuration parameter is replaced with INFORMIXDIR The value is now INFORMIXDIR extend krakatoa jre JVPHOME lusr informixin the directory name of the configuration parameter is replaced with INFORMIXDIR The value is now INFORMIXDIR extend krakatoa JVPPROPFILE JVPLOGFILE lusr informix in the directory name of the configuration parameter is replaced with INFORMIXDIR The value is now SINFORMIXDIR extend krakatoa jvpprops lusr informixin the directory name of the configuration parameter is replaced with INFORMIXDIR The value is now INFORMIXDIR jvp log JVPCLASSPATH lusr informixin the directory name of the configuration parameter is replaced with IN
35. New for Migration in Version 11 50xC4 continued Overview Reference Changes between versions of Dynamic Server Each version of the server contains new or deprecated features To support those changes there are underlying changes to the database server objects and architecture Review all of the changes before you migrate or upgrade from an earlier version of Dynamic Server to the current version Summaries of the changes by release are provided for your convenience B 1 Appendix C Configuration parameters that have been changed or removed on page C 1 Appendix D New keywords of SQL on page D 1 Appendix E System catalog and system database changes on page E 1 Table 3 What s New for Migration in Version 11 50xC1 Overview Reference Configuration file improved Starting in Version 11 50 the configuration parameters in the onconfig std file are organized by functional area Some configuration parameters have new default values Also deprecated configuration parameters were removed from the file Before you migrate to the current version ensure that you save a copy of your old file and compare your existing configuration settings with those in the new configuration file IBM Informix Dynamic Server Getting Started Guide Configuration parameter changes in the Version 11 50 onconfig std File on page C 1 for migration on Support added for M
36. UPDATE are shown below the main FOR READ ONLY line one of which you might specify The values below the main NEXT se NEXT ensen Cf too cesse Te line are optional one of PRIOR which you might specify If PRIOR PREVIOUS i you do not specify an item PREVIOUS the value above the line will be used as the default Optional items Several items i V are allowed a comma must Sietucckcscceacsstsce precede each repetition index_name index_name L table name table_name Table Reference gt gt Table Reference gt lt Reference to a syntax segment Table Reference L view _ table synonym Table Reference view table synonym Syntax segment How to read a command line syntax diagram Command line syntax diagrams use similar elements to those of other syntax diagrams Some of the elements are listed in the table in Syntax Diagrams Creating a no conversion job gt gt onpladm create job job mp t n d device D database _ gt proies table S server T target Setting the Run Mode Introduction XV xvi Notes 1 See page Z 1 This diagram has a segment named Setting the Run Mode which according to the diagram
37. after you finish reloading the database e When you unload and load a table onunload does not preserve access privileges synonyms views constraints triggers or default values that were associated with the original tables Before you run onunload use the dbschema utility to obtain a listing of the access privileges synonyms views constraints triggers and default values After you finish loading the table use dbschema to re create the specific information for the table Privileges for database or table unloading To unload a database you must have DBA privileges for the database or be user informix To unload a table you must either own the table have DBA privileges for the database in which the table resides or be user informix User root does not have special privileges with respect to onunload and onload Tables that are unloaded with a database If you unload a database all of the tables in the database including the system catalog tables are unloaded All triggers SPL routines defaults constraints and synonyms for all of the tables in the database are also unloaded Chapter 13 The onunload and onload utilities 13 5 Data that is unloaded with a table If you unload a table onunload unloads the table data and information from the systables systables syscolumns sysindexes and sysblobs system catalog tables When you unload a table onunload does not unload information about constraints triggers or defa
38. and complex data types Version 9 21 or later versions V Extends the V option to display None additional information on the build operating system build number and build date version Displays the software version number and the serial number X Expands dbslice names into dbspace If the dbspace contains multiple partitions dbspace name lists in ss output partition names appear in the output You must be the DBA or have the Connect or Resource privilege for the database before you can run dbschema on it Database schema creation You can create the schema for an entire database or for a portion of the database The options for dbschema allow you to perform the following actions e Display CREATE SYNONYM entire database statements by owner for a specific table or for the Chapter 11 The dbschema utility 11 3 e Display the CREATE TABLE CREATE VIEW CREATE FUNCTION or CREATE PROCEDURE statement for a specific table or for the entire database e Display all GRANT privilege statements that affect a specified user or that affect all users for a database or a specific table The user can be either a user name or role name e Starting with Dynamic Server Version 9 20 display user defined and row data types with or without type inheritance e Starting with Dynamic Server Version 9 20 display the CREATE SEQUENCE statement defining the specified sequence object or defining all sequence objects in the databas
39. and output devices Tip The information center and its related publications are accessibility enabled for the IBM Home Page Reader You can operate all features using the keyboard instead of the mouse Keyboard navigation This product uses standard Microsoft Windows navigation keys Related accessibility information IBM is committed to making our documentation accessible to persons with disabilities Our publications are available in HTML format so that they can be accessed with assistive technology such as screen reader software You can view the publications in Adobe Portable Document Format PDF using the Adobe Acrobat Reader IBM and accessibility See the IBM Accessibility Center at http www ibm com able for more information about the commitment that IBM has to accessibility Dotted decimal syntax diagrams The syntax diagrams in our publications are available in dotted decimal format which is an accessible format that is available only if you are using a screen reader In dotted decimal format each syntax element is written on a separate line If two or more syntax elements are always present together or always absent together the elements can appear on the same line because they can be considered as a single compound syntax element Each line starts with a dotted decimal number for example 3 or 3 1 or 3 1 1 To hear these numbers correctly make sure that your screen reader is set to read punctuation Al
40. cannot have any functional or Virtual Index Interface VII indexes e Semi detached indexes must not be in the databases e Indexes created with Dynamic Server 10 00 and an opclass that supports nearest neighbor search cannot be reverted to the earlier database server 7 31 Extensibility Features Databases cannot use any extensibility features including user defined access methods user defined types aggregates routine languages language authorizations trace messages trace message classes operator classes errors type and casts 7 31 Check and configure available space for reversion You must be sure you have enough space for reversion to the source database server For Dynamic Server Versions 11 50 11 10 10 00 and 9 40 tblspace tblspace pages can be allocated in non root chunks If the root chunk is full and tblspace tblspace pages were allocated in non root chunks make sure you have enough space in the root chunk of the target database server 7 8 IBM Informix Migration Guide If the reversion is to a Version 9 30 or earlier database server all tablespace tablespace reserved pages are written to the root chunk The default number of tblspace tblspace pages in Version 9 30 is 250 pages with a size 2k or 4k each depending on the operating system To determined how many pages were allocated and where they were allocated run oncheck pe and look for the word TBLSpace This space must be available on the d
41. changes to E 1 space required for migration 3 3 syssesappinfo database E 1 System catalogs boot scripts 7 1 changes to E 1 E 6 checking tables 6 10 T W TAPEDEV configuration parameter with onunload and Windows operating systems onload 13 11 migrating on 1 9 TBLTBLFIRST configuration parameter B 5 TBLTBLNEXT configuration parameter B 5 TEMPTAB_NOLOG configuration parameter B 4 Transactions checking for open ones 3 7 Truncate keyword 7 3 U UNIX migrating on 1 8 UNLOAD SQL statement for locales that support multibyte code sets 12 2 for non default GL_DATETIME environment variables 13 1 for non default locales 13 1 overview 12 1 syntax 12 1 UPDATABLE_SECONDARY configuration parameter B 2 UPDATE STATISTICS statement 6 9 data distributions 11 10 using after reversion 7 13 Upgrading 1 3 migration paths 1 7 Upgrading your server overview of tasks 6 1 preparing to undo changes 3 4 prerequisites 3 1 restoring files after a failure 6 7 15 1 USE_DTENV environment variable 9 1 13 1 USELASTCOMMITTED configuration parameter B 4 User defined data types converting replication of from Dynamic Server 9 21 4 2 USRC_HASHSIZE configuration parameter B 4 USRC_POOLSIZE configuration parameter B 4 Utilities Abbreviated years 9 1 dbexport 8 1 9 1 dbexport syntax 9 2 dbimport 8 1 9 1 dbimport syntax 9 6 dbload 10 1 dbschema 11 1 Environment variables DBCENTURY 9 1 DBDATE 9 1 onload 8 1 13 7 onload and onunl
42. clusters You can use the dbexport utility on RS secondary servers only if the STOP_APPLY configuration parameter is set to 1 stop applying logs You cannot use the dbexport utility on servers in high availability clusters If the database uses a non default locale and the GL_DATETIME environment variable has a non default setting you must set the USE_DTENV environment variable to the value of 1 before you can process localized datetime values correctly with the dbexport or dbimport utility If the database contains label based access control LBAC objects e You must have the DBSECADM role e You must have the necessary labels or exemptions before the dbexport or dbimport utility can export all rows in protected tables Related reference Data migration tools on page 2 1 Syntax of the dbexport command 9 2 The dbexport command unloads a database into text files that you can later import into another database The command also creates a schema file gt gt dbexport database gt lt 1 Destination Options 55 si X oa L version IBM Informix Migration Guide Notes 1 See dbexport destination options on page 9 4 Element Purpose Key Considerations c Makes dbexport complete exporting References For details on this option see unless a fatal error occurs d Makes dbexport export References For informatio
43. create external tables use the CREATE EXTERNAL TABLE statement Use the existing DROP TABLE statement to drop an external table When TEXT and BYTE data is scanned not compressed An Informix database server scans TEXT and BYTE data into an existing table when you load data by using the SQL LOAD statement the dbload utility the Informix ESQL C program the HPL or external tables Informix database servers do not have any mechanisms for compressing TEXT and BYTE data after the data has been scanned into a database Moving non informix data between computers and dbspaces You can move data between different computers and you can import data from non Informix environments Except when you use the High Performance Loader HPL utility or external tables you must unload your data to ASCII files before you move the data to another computer If you are moving to an Informix database server on another computer you can use the dbimport and dbload utilities to load the data that you exported If you are moving data to a non Informix application you might need to use the UNLOAD statement because you can specify the delimiter that is used in the data files Importing data from a non Informix source The dbimport and dbload utilities can import data from any ASCII file that is properly formatted 2 6 IBM Informix Migration Guide Most applications that produce data can export the data into files that have a suitable format for dbimport
44. f01 f02 03 format For details refer to How to write a dbload command file in delimiter form on page 10 8 Two consecutive delimiters define a null field As a precaution you can place a delimiter immediately before the new line character that marks the end of each 10 6 IBM Informix Migration Guide data row If the last field of a data row has data you must use a delimiter If you omit this delimiter an error results whenever the last field of a data row is not empty Inserted data types correspond to the explicit or default column list If the data field width is different from its corresponding character column width the data is made to fit That is inserted values are padded with blanks if the data is not wide enough for the column or truncated if the data is too wide for the column If the number of columns named is fewer than the number of columns in the table dbload inserts the default value that was specified when the table was created for the unnamed columns If no default value is specified dbload attempts to insert a null value If the attempt violates a not null restriction or a unique constraint the insert fails and an error message is returned If the INSERT statement omits the column names the default INSERT specification is every column in the named table If the INSERT statement omits the VALUES clause the default INSERT specification is every field of the previous FILE statement An error results if
45. fast as the other methods and you must prepare a command file to control the input You can use dbload with data in a variety of formats The dbload utility offers the following advantages over the LOAD statement e You can use dbload to load data from input files that were created with a variety of format arrangements The dbload command file can accommodate data from entirely different database management systems e You can specify a starting point in the load by directing dbload to read but ignore x number of rows e You can specify a batch size so that after every x number of rows are inserted the insert is committed e You can limit the number of bad rows read beyond which dbload ends The cost of dbload flexibility is the time and effort spent creating the dbload command file which is required for dbload operation The input files are not specified as part of the dbload command line and neither are the tables into which the data is inserted This information is contained in the command file Copyright IBM Corp 1996 2010 10 1 Related concepts Choosing a tool for moving data before migrating between operating systems on Related reference Data migration tools on page 2 1 Syntax of the dbload command The dbload command loads data into databases or tables gt gt db oe To E gt gt lt Y___d database t c command file
46. file to disk or tape The dbexport and dbimport utilities support Dynamic Server 11 50 11 10 10 00 9 40 9 30 and 9 21 data types The dbexport utility supports the following destination options e Unload a database and its schema file to disk e Unload a database and its schema file to tape e Unload the schema file to disk and unload the data to tape By default dbexport exports dates in four digit years unless the environment variable DBDATE is set to mdy2 or to some other value that specifies abbreviated years Use four digit years because data imported back into the database depends on either the DBCENTURY environment variable if set or the current century if DBCENTURY is not set Important You must disable SELECT triggers before exporting a database with dbexport The dbexport utility runs SELECT statements during export The SELECT statement triggers can modify the database content The dbimport utility creates a database and loads it with data from text files on tape or disk The input files consist of a schema file that is used to re create the database and data files that contain the database data Normally you generate the input files with the dbexport utility but you can use any properly formatted input files The dbimport utility supports the following options for a new IBM Informix database server e Create an ANSI compliant database includes unbuffered logging e Establish transaction logging for a databas
47. null constraints after the not null specifications You can use the output of the utility as input to create another database If the same names were not used for not null constraints in both databases problems could result e The object mode of objects that are in the disabled state These objects can be constraints triggers or indexes e The object mode of objects that are in the filtering state These objects can be constraints or unique indexes e The violations and diagnostics tables that are associated with a base table if violations and diagnostics tables were started for the base table For more information about object modes and violation detection see the SET START VIOLATIONS TABLE and STOP VIOLATIONS TABLE statements in the IBM Informix Guide to SQL Syntax Copyright IBM Corp 1996 2010 11 1 Guidelines for using the dbschema utility You can use delimited identifiers with the dbschema utility The dbschema utility detects database objects that are keywords mixed case or that have special characters and the utility places double quotation marks around those keywords Global Language Support You must disable SELECT triggers and correctly set GLS environment variables before using the dbschema utility When the GLS environment variables are set correctly as the IBM Informix GLS User s Guide describes the dbschema utility can handle foreign characters Syntax of the dbschema command gt gt
48. of the IBM can be on a remote database server Informix Guide to SQL Syntax filename Specifies the name of the file that will If you omit a file name dbschema sends output to the contain the dbschema output screen If you specify a file name dbschema creates a file named filename to contain the dbschema output hd Displays the distribution as data values References For more information see information for tables in dbschema output on page it Displays the isolation type None l Displays the lock level None seq sequence Generates the DDL statement to define the specified sequence object References For more information see Sequence creation on page 11 6 This option is ignored if no table schema is generated Ss Generates server specific information References For more information see server specific information on page 11 5 si Excludes the generation of index storage clauses for non fragmented tables References For more information see server specific information on page 11 5 This option is available only with the ss option u Prints the definitions of functions casts References For more information see User defined and user defined data types and complex data types Version 9 21 or later versions ui Prints the definitions of user defined data References For more information see f User defined types including type inheritance
49. onload command on page 13 6 7 Set the desired logging status for the new database For information about logging status see your IBM Informix Dynamic Server Administrator s Guide 8 If necessary change the DBA privileges of the database 9 Create a level 0 backup of the new database Moving a table between computers with the onunload and onload utilities You can use the onunload and onload utilities to move a table from one computer to another To move a table from one computer to another Chapter 13 The onunload and onload utilities 13 11 10 11 12 Make sure that the page size numeric representations and byte alignment on structures and unions are the same on both computers The page size is 2 KB on certain UNIX systems and 4 KB on Windows NT Decide where to store the unloaded data Run the oncheck utility to make sure that your database is consistent If you want to save the triggers access privileges SPL routines defaults constraints and synonyms for the table run the dbschema utility Run the onunload utility For details on the syntax of the onunload command see Syntax of the onunload command on page 13 3 If necessary transfer the storage medium to the new computer If the table includes simple large objects that are stored in blobspaces decide where to store the simple large objects If necessary create new blobspaces Turn off logging When you are loadi
50. onmode d add RSS rss_server_name commands b Start the RS secondary servers with level 0 restore operations from the level 0 backup that was made on the primary server after reversion c On the RS secondary servers run the onmode d RSS primary_server_name command and wait for the RSS secondary server operational message to appear after each command 12 If you have an HDR secondary server a Reestablish the HDR pair on the primary server by issuing an onmode d primary hdr_secondary_server_name command b Start the HDR secondary server with level 0 restore operations from the level 0 backup that was made on the primary server after reversion c On the HDR secondary server run the onmode d secondary primary_server_name command and wait for the HDR secondary server operational message to appear after each command The reversion of all servers in the cluster is now complete Chapter 7 Reverting from Dynamic Server Version 11 50 7 15 7 16 IBM Informix Migration Guide Part 3 Migration of data between database servers Copyright IBM Corp 1996 2010 IBM Informix Migration Guide Chapter 8 Migrating database servers to a new operating system When you migrate to a new operating system you must choose a tool for migrating your data you might need to make some adjustments to your tables and you must review environment dependent configuration parameters and environment variables Choosing a tool f
51. or on a separate line with the same dotted decimal number as the relevant items The line can also show another symbol that provides information about the syntax elements For example the lines 5 1 5 1 LASTRUN and 5 1 DELETE mean that if you use more than one of the LASTRUN and DELETE syntax elements the elements must be separated by a comma If no separator is given assume that you use a blank to separate each syntax element If a syntax element is preceded by the symbol that element is defined elsewhere The string following the symbol is the name of a syntax fragment rather than a literal For example the line 2 1 0P1 means that you should refer to a separate syntax fragment OP1 The following words and symbols are used next to the dotted decimal numbers Specifies an optional syntax element A dotted decimal number followed by the symbol indicates that all the syntax elements with a corresponding dotted decimal number and any subordinate syntax elements are optional If there is only one syntax element with a dotted decimal number the symbol is displayed on the same line as the syntax element for example 5 NOTIFY If there is more than one syntax element with a dotted decimal number the symbol is displayed on a line by itself followed by the syntax elements that are optional For example if you hear the lines 5 5 NOTIFY and 5 UPDATE you know that syntax elements NOTIFY and UPDATE are optional that is you ca
52. preceding example with the data rows in the following figure 123 1234567890123456789012345678901234 Sunnyvale CA94086408 789 8075 1 Data row 1 Tempettt AZ85253XXX XXX XXXX 1 Data row 2 Figure 10 2 A Sample Data File The FILE statement defines the following data fields which are derived from the data rows in the sample data file Column Values from Data Row 1 Values from Data Row 2 city Sunnyvalet Tempe state CA AZ area_cd 408 null phone 408 789 8075 null zip 94086 85253 state_area CA408 AZxxx The null strings that are defined for the phone and area_cd fields generate the null values in those columns but they do not affect the values that are stored in the state_area column The INSERT statement uses the field names and values that are derived from the FILE statement as the value list input Consider the following INSERT statement INSERT INTO cust_address coll col3 col4 VALUES city state zip The INSERT statement uses the data in the sample data file and the FILE statement to put the following information into the cust_address table Column Values from Data Row 1 Values from Data Row 2 coll Sunnyvale Tempettt t t col2 null null col3 CA AZ col4 94086 85253 IBM Informix Migration Guide Because the second column col2 in cust_address is not named the new data row contains a null assuming that t
53. queries 10 0 IFX_EXTEND_ROLE Enables a database server administrator DBSA to prevent unauthorized users from registering DataBlade modules or external user defined routines UDRs 10 0 LISTEN_TIMEOUT Sets the incomplete connection timeout period 10 0 MAX_INCOMPLETE_ CONNECTIONS Restricts the number of incomplete requests for connections 10 0 ONLIDX_MAXMEM Limits the amount of memory that is allocated to the preimage log pool and to the updator log pool in shared memory You can use this configuration parameter if you plan to complete other operations on a table column while executing the CREATE INDEX ONLINE statement on the column 10 0 TBLTBLFIRST Specifies the first extent size of tablespace tblspace in kilobytes 10 0 TBLTBLNEXT Specifies the next extent size of tablespace tblspace in kilobytes 9 40 CDR_DBSPACE Defines the default dbspace for the Enterprise Replication syscdr database 9 40 CDR_ENV Sets Enterprise Replication environment variables CDR_LOGDELTA CDR_PERFLOG CDR_ROUTER and CDR_RMSCALEFACT B 5 Appendix B New configuration parameters B 6 Table B 1 New Configuration Parameters continued Version New Configuration Parameter Description 9 40 CDR_MAX_ DYNAMIC_LOGS Specifies the number of dynamic log file requests that Enterprise Replication can make in one server session 9 40 ENCRYPT
54. r S error log file k e errors Legal t i ignore rows n commit interval X as version Element Purpose Key Considerations c command file Specifies the file name or path name of a dbload command file References For information about building the command file see Command file for the dbload utility d database Specifies the name of the database Additional Information If you want to use more than to receive the data the simple name of the database see the Database Name section of the IBM Informix Guide to SQL Syntax e errors Specifies the number of bad rows References For more information see Bad row limit that dbload reads before terminating The default value for errors is 10 during a load operation on page 10 4 i ignore rows Specifies the number of rows to ignore in the input file References For more information see Rows to ignore during a load operation on page 10 4 k Instructs dbload to lock the tables listed in the command file in exclusive mode during the load operation References For more information see Table locking You cannot use the k option with the r option because the r option specifies that no tables are locked during the load operation l error log file Specifies the file name or path name of an error log file If you specify an existing file its contents are overwritten If you
55. replicable transactions 4 Make sure that control and TRG send queues are empty e Run onstat g grp to ensure that the Enterprise Replication grouper does not have any pending transactions e Run onstat g rqm to check for queued messages 5 Shut down Enterprise Replication with the following command cdr stop 6 Back up the syscdr databases with dbschema or UNLOAD 7 Run the reversion script named revcdr sh in the INFORMIXDIR etc conv directory on UNIX or revcdr bat in the YINFORMIXDIR etc conv directory on Windows sh revcdr sh 11 50 to_version Valid to_version values are 9 21 9 20 and 7 31 This script does a reversion test followed by the actual Enterprise Replication reversion 8 If the reversion test or actual reversion fails check the file INFORMIXDIR etc revtestcdr out or revcdr out respectively Attempt reversion after resolving the problems reported 9 Drop the Enterprise Replication sbspaces 10 Perform database server reversion tasks as described in Dynamic Server Version 11 50 on page 7 10 11 Run onmode l and onmode c If you do not do this after reversion and before starting Enterprise Replication the database server might fail when you start Enterprise Replication 12 Start Enterprise Replication cdr start Express Edition migration and Enterprise Replication 4 4 IBM Informix Dynamic Server Express does not support Enterprise Replication Before migrating your database
56. role privileges 11 8 H HA_ALIAS configuration parameter B 2 Hardware prerequisites for migrating 1 5 High Performance Loader ipload utility 2 5 loading data 2 5 onpladm utility 2 5 HPL_DYNAMIC_LIB_PATH configuration parameter 6 4 B 6 HPLAPIVERSION configuration parameter B 6 IBM Informix Storage Manager 3 6 IFX_EXTEND_ROLE configuration parameter B 5 IFX_FOLDVIEW configuration parameter B 4 IFX_LISTEN_TIMEOUT configuration parameter B 5 IFX_ONPLOAD_AUTO_UPGRADE environment variable 6 6 Importing non Informix data 2 7 in dbschema output 11 7 11 8 In place migration 1 2 1 3 2 1 Index checking 6 10 rebuilding 6 5 industry standards xiv INFORMIXDIR directory 6 2 INFORMIXSERVER environment variable 6 4 INFORMIXSQLHOSTS environment variable 6 4 Initializing Dynamic Server after upgrading 6 5 INSERT statements character position form 10 9 delimiter form 10 6 syntax for character position form 10 10 with dbload 10 5 Installation directory 6 2 Installing Dynamic Server 6 2 X 4 IBM Informix Migration Guide J Java UDRs 7 12 K Kernel parameters on UNIX or Linux 3 8 Keywords D 1 L Level 0 backup 3 8 6 10 7 13 after moving data 13 11 LIMIT keyword 7 3 LIMITNUMSESSIONS configuration parameter B 2 Linux migrating on 1 9 LOAD SQL statement for locales that support multibyte code sets 12 2 for non default GL_DATETIME environment variables 13 1 for non default locales 13 1 overview 12 1 syntax 12 2 Loadin
57. routines were imported using dbimport 5 Determine if tables or indexes using expression fragmentation had expressions changed or new fragments added 6 Identify any new triggers procedures or check constraints Reversion requirements and limitations If you used the new database server you must review a list of reversion requirements and limitations and then complete any prerequisite tasks before you IBM Informix Migration Guide revert If the reversion restrictions indicate that you must drop objects from the database you can unload your data and then reload it in the prior database server The following table lists requirements and limitations that apply when you revert to any version of the database server Table 7 1 Requirements and limitations when reverting to any version of the server Reversion Requirement or Limitation Revert Only to the Version From Which You Migrated If you need to revert you must revert to the Dynamic Server version that was your source version before you migrated to Version 11 50 New Databases Created in the New Version of the Server If you created a new database in the new version of the server you cannot revert the database back to an earlier version of the server If the data is required you can unload the data and reload it in the prior version of the server New Procedures Expression based Fragmented Tables Check Constraints and Triggers These cannot be reverted You mus
58. server to the Express Edition drop existing Enterprise Replication configuration using the cdr delete server command option After upgrading to the Express Edition Enterprise Replication command line interface options will not be available Any remote Enterprise Replication clients trying to connect to an Express Edition server will receive an error stating that Enterprise Replication is not supported in the Express Edition server The Express Edition server does not support any of the Enterprise Replication configuration parameters Examples of these configuration parameters are CDR_ENV CDR_SERIAL and ENCRYPT_CDR If you do not delete Enterprise Replication before converting to the Express Edition and then you revert the database server to the original edition you used before conversion the integrity of the syscdr database is not restored In this case you must drop the syscdr database You can drop the syscdr database with the cdr remove command and by issuing cdr delete serv at other nodes in the topology IBM Informix Migration Guide Chapter 5 High availability cluster migration You must coordinate the migration and reversion of all servers that are involved in high availability clusters High availability clusters are based on technology that is sometimes referred to as Multi node Active Clusters for High Availability MACH Preparing to migrate upgrade or revert clusters If you use high availability clusters you m
59. size 16 next size 16 lock mode page The dbschema ss option generates information on the creation of roles The following syntax diagram shows the creation of roles Chapter 11 The dbschema utility 11 9 Roles ee Element Purpose Key Considerations r role Displays the CREATE ROLE and You cannot specify a list of users or GRANT statements that are needed roles with the r option You can to replicate and grant the specified specify either one role or all roles SE role does not support the r option r all Displays all CREATE ROLE and None GRANT statements that are needed to replicate and grant all roles The following dbschema command and output show that the role calen was created and was granted to cathl judith and sallyc sharky dbschema r calen d stores_demo DBSCHEMA Schema Utility Software Serial Number RDS N000000 create role calen grant calen to cathl with grant option grant calen to judith grant calen to sallyc Distribution information for tables in dbschema output 11 10 The dbschema hd option with the name of the table retrieves the distribution information that is stored for a table in a database If you specify the ALL keyword for the table name the distributions for all the tables in the database are displayed During the dbimport operation distribution information is created automatically for leading indexes on non opaque columns Run the UPDATE STATISTICS stat
60. specify a file that does not exist dbload creates the file Additional Information The error log file stores diagnostic information and any input file rows that dbload cannot insert into the database 10 2 IBM Informix Migration Guide Element Purpose Key Considerations n commit interval Specifies the commit interval in number of rows The default interval is 100 rows Additional Information If your database supports transactions dbload commits a transaction after the specified number of new rows is read and inserted A message appears after each commit References For information about transactions see the IBM Informix Guide to SQL Tutorial p Prompts for instructions if the References For more information see number of bad rows exceeds the a load operation on limit r Prevents dbload from locking the Additional Information For more information see tables during a load thus enabling Table locking during a load operation other users to update data in the table during the load You cannot use the r option with the k option because the r option specifies that the tables are not locked during the load operation while the k option specifies that the tables are locked in exclusive mode S Checks the syntax of the statements Additional Information The standard output displays in the command file without the command file with any errors marked where they insertin
61. the WHERE clause of DELETE or UPDATE references the same table that the DELETE or UPDATE statement modifies before you revert you must rewrite the INSERT or DELETE operation as two separate SQL statements e A SELECT statement that returns qualifying rows of the original table to a temporary table e A DELETE or INSERT statement that modifies the original table by inserting or deleting rows that match rows in the temporary table 11 10 11 10 11 10 Returned Data Type from CONCAT and Other SQL String Manipulation Functions Because these built in functions now support promotion of their return value to longer data types some operations on VARCHAR or NVARCHAR values might fail with overflow error 881 after reversion 11 10 Automatic Update Statistics Feature Dynamic Server versions that are earlier than version 11 10 xC1 do not support the Scheduler Therefore the functionality of the Automatic Update Statistics feature which is implemented by the Scheduler is not available after reversion To enforce any Automatic Update Statistics policies that you intend to apply to your databases you must manually issue the corresponding UPDATE STATISTICS statements after reversion to Version 10 00 or to an earlier version 10 00 7 4 IBM Informix Migration Guide Table 7 2 Requirements and limitations when reverting to a specific version of the server continued Reversion Requirement or Limitation If reverting to
62. the end of the tape specify a tape size of 0 If you do not specify 0 then the maximum tapesize is 2 097 151 KB Additional Information This option overrides the default value in TAPESIZE or LTAPESIZE t source Specifies the path name of the file on disk or of the tape device where the input tape is mounted Additional Information This option overrides the tape device specified by TAPEDEV or LTAPEDEV The path name must be a valid path name Constraints that affect onunload When you use the onunload utility you must be aware of constraints that affect how you load the data on the onunload tape The following constraints apply to onunload e You must load the data on the onunload tape into a database or table that your database server excluding SE manages e You can use onunload and onload with Dynamic Server Version 11 50 11 10 10 00 9 40 9 30 or 9 21 if the databases contain only legacy data types and no extended data types e You must load the tape that onunload writes onto a computer with the same page size and the same representation of numeric data as the original computer e You must read the file that onunload creates with the onload utility of the same version of your database server You cannot use onunload and onload to move data from one version to another e When you unload a complete database you cannot modify the ownership of database objects such as tables indexes and views until
63. the number of column names listed or implied by default does not match the number of values listed or implied by default The syntax of dbload INSERT statements resembles INSERT statements in SQL except that in dbload INSERT statements cannot incorporate SELECT statements Do not use the CURRENT TODAY and USER keywords of the INSERT INTO statement in a dbload command file they are not supported in the dbload command file These keywords are supported in SQL only For example the following dbload command is not supported FILE testtb12 unl DELIMITER us ls INSERT INTO testtbl testuser testtime testfield VALUES kae CURRENT f01 Load the existing data first and then write an SQL query to insert or update the data with the current time date or user login You could write the following SQL statement INSERT INTO testtbl testuser testtime testfield VALUES kae CURRENT f01 The CURRENT keyword returns the system date and time The TODAY keyword returns the system date The USER keyword returns the user login name The following diagram shows the syntax of the dbload INSERT statement for delimiter form gt gt INSERT INTO table gt Lowner E 3 r column Chapter 10 The dbload utility 10 7 1 VALUES clause Notes 1 See the IBM Informix Guide to SQL Syntax Element Purpose Key Considerations column Specifies the column that rec
64. the operating system or to data from a FIFO device Performs express high speed and deluxe data checking transfers Requires SQL If you are choosing a tool for loading data the questions shown in will help you make a decision yes Do you want to move an entire database no Do you need to commit inserts during the load Do you need to skip some rows before you start to load the data Is the data format acceptable to LOAD yes Figure 2 1 Choosing Among dbimport dbload and LOAD dbload In addition to the tools that move data you can use the dbschema utility which gets the schema of a database and redirects the output to a file so you can provide the file to DB Access to re create the database 2 4 IBM Informix Migration Guide Related concepts Q hapter 9 The dbexport and dbimport utilities on page 9 1 j hapter 13 The onunload and onload utilities on page 13 Chapter 10 The dbload utility on page 10 1 hapter 11 The dbschema utility on page 11 1 Chapter 12 The LOAD and UNLOAD statements on page 12 1 High Performance Loader performance advantages for large databases High Performance Loader performance advantages for large databases The High Performance Loader HPL utility which can load data from any ASCII or COBOL file that meets certain format prerequisites uses parallel processing to perform fast data loading and unloadi
65. the products services or features discussed in this document in other countries Consult your local IBM representative for information on the products and services currently available in your area Any reference to an IBM product program or service is not intended to state or imply that only that IBM product program or service may be used Any functionally equivalent product program or service that does not infringe any IBM intellectual property right may be used instead However it is the user s responsibility to evaluate and verify the operation of any non IBM product program or service IBM may have patents or pending patent applications covering subject matter described in this document The furnishing of this document does not grant you any license to these patents You can send license inquiries in writing to IBM Director of Licensing IBM Corporation North Castle Drive Armonk NY 10504 1785 U S A For license inquiries regarding double byte DBCS information contact the IBM Intellectual Property Department in your country or send inquiries in writing to Intellectual Property Licensing Legal and Intellectual Property Law IBM Japan Ltd 1623 14 Shimotsuruma Yamato shi Kanagawa 242 8502 Japan The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WA
66. to revert run the reversion utility and prepare to use the original database server Prerequisites Before you revert e Complete the steps in Preparing to revert on page 7 1 This includes determining if reversion is possible and preparing your database for reversion To revert from Dynamic Server Version 11 50 complete the following steps Click the links for more information on each step To revert from Dynamic Server Version 11 50 1 Run the reversion utility onmode b See Run the reversion utility on page 2 Restore your original configuration parameters See Restore original configuration parameters on page 7 12 3 Reset your environment variables See Restore original environment variables on page 7 12 4 If your Dynamic Server Version 11 50 instance used Communications Support Module CSMs remove any CSM settings See Support Module settings on page 7 12 5 If any Java UDRs were compiled using Java Development Kit JDK Version 5 0 recompile those UDRs with the earlier JDK version For details see Recompile any Java UDRs that were compiled using 6 Reinstall and start the target database server See Reinstall and start the earlier database server on page 7 12 IBM Informix Migration Guide 7 Optionally run UPDATE STATISTICS on your tables not system catalog tables and on UDRs that perform queries if you have performance problems after reverting See Optiona
67. use long identifiers as indexed column names operator class opclass names or operator class function names Also make sure that the following disk structures do not use long identifiers e Dbspace tblspaces owner and database name length e Tblspace tblspaces owner and table space name length e Dbspaces owner and dbspace name length and chunks path length 7 31 Storage Space Names Each storage space must not have a name that is more than 18 characters long 7 31 New Routine Languages New routine languages must not be defined in the upgraded databases In addition new language authorizations must not have been completed in the upgraded databases 7 31 New Operator Classes Casts and Extended Types New operator classes casts or extended types must not be defined in the new database server 7 31 Table Limitations e Databases cannot have tables whose primary access method is a user defined access method e Databases cannot have typed tables e Tables cannot have any user defined type columns e Tables cannot have named row types with default values 7 31 Index Limitations e You cannot revert detached indexes to Version 7 31 To enable reversion to Version 7 31 retain the Version 7 31 attached index behavior by setting the environment variable DEFAULT_ATTACH in the application environment e All indexes must be B tree indexes with a total key length less than or equal to 255 e Tables
68. value in the table For this example the highest value in the last bin is 200 Overflow information in dbschema output The last portion of the dbschema output shows values that have many duplicates The number of duplicates of indicated values must be greater than a critical amount that is determined as approximately 25 percent of the resolution times the number of rows If left in the general distribution data the duplicates would skew the distribution so they are moved from the distribution to a separate list as the following example shows OVERFLOW 1 5 56 2 6 63 For this example the critical amount is 0 25 x 0 10 165 or 4 125 Therefore any value that is duplicated five or more times is listed in the overflow section Two values in this distribution are duplicated five or more times in the table the value 56 is duplicated five times and the value 63 is duplicated six times IBM Informix Migration Guide Use dbschema output as DB Access input You can use the dbschema utility to get the schema of a database and redirect the dbschema output to a file Later you can import the file into DB Access and use DB Access to re create the schema in a new database Inserting a table into a dbschema output file You can insert CREATE TABLE statements into the dbschema output file and use this output as DB Access input The following example copies the CREATE TABLE statements for the customer table into the db
69. values If no default is specified for col4 the inserted value is null The following table shows the first data row that is inserted into new_stock from this INSERT statement Column Value coll 1 col2 baseball gloves col3 SMT col4 null col5 case col autographed Character position form of the FILE and INSERT statements The FILE and INSERT statements that define information for the dbload utility can appear in a character position form The examples in this topic are based on an input data file cust_loc_data which contains the last four columns city state zipcode and phone of the customer table Fields in the input file are padded with blanks to create data rows in which the location of data fields and the number of characters are the same across all rows The definitions for these fields are CHAR 15 CHAR 2 CHAR 5 and CHAR 12 respectively OU e the character positions and five example data rows from the cust_loc_data file Chapter 10 The dbload utility 10 9 12 3 1234567890123456789012345678901234 Sunnyvale CA94086408 789 8075 Denver C080219303 936 7731 Blue Island NY60406312 944 5691 Brighton MA02135617 232 4159 Tempe AZ85253XXX XXX XXXX Figure 10 1 A Sample Data File The following example of a dbload command file illustrates the character position form of the FILE and INSERT statements The example includes two new tables cust_address and cust_sort to receive the
70. versions of Dynamic Server do not support these procedures and any UDRs with these names are not automatically started 10 00 10 00 UDRs include a collection derived table in the FROM clause of a query These will not work correctly after reversion to an earlier release 10 00 Multiple BEFORE FOR EACH ROW and AFTER triggers for the same INSERT UPDATE DELETE or SELECT event on a table or view and trigger routine UDRs Before reverting you must drop any of the following triggers and UDRs if they exist in the database e Delete triggers defined on the same table or defined on a view as another Delete trigger e Insert triggers defined on the same table or defined on a view as another Insert trigger e Update triggers defined on the same table or view or on the same subset of columns as another Update trigger e Select triggers defined on the same table or same subset of columns as another Select trigger e Trigger routines defined with the FOR TRIGGER keywords e Triggers that use the DELETING INSERTING SELECTING or UPDATING operators in their triggered action 10 00 Cross server operations on BOOLEAN LVARCHAR or DISTINCT columns If you revert to a database server version that does not support cross server operations on BOOLEAN LVARCHAR or DISTINCT columns in databases applications that use this feature will fail 10 00 sysadmin Database This database is automatically dropped during reversion 10 00
71. where the input tape is mounted Additional Information This option overrides the tape device that TAPEDEV or LTAPEDEV specifies References For path name syntax see your operating system documentation onload create options The onload command includes information that is used to recreate the database The following syntax diagram fragment shows onload create options Create Options c oldenstrnt newcnstrnt gt L i oldindex newindex fd oldbsp newdbsp _ fi indexname olddbsp newdbsp gt database table Be Element Purpose Key Considerations c oldcnstrnt Directs onload to rename None newcnstrnt the specified constraint i oldindex Directs onload to rename Additional Information Use the i option to rename indexes during the newindex the table index when it load to avoid conflict with existing index names stores the index on disk References Syntax must conform to the Identifier segment see the IBM Informix Guide to SQL Syntax fd olddbsp Moves a data fragment The new dbspace must exist and must not already contain another data newdbsp from one dbspace to fragment for the table another Additional Information This option is used with parallel data query PDQ and table fragmentation 13 8 IBM Informix Migration Guide Element Purpose Key Considerations fi indexname Moves index fragments The new dbspace must exist and must not already contain anothe
72. 40 format b 9 3 Changes the database to the Version 9 30 format b 9 2 Changes the database to the Version 9 2x format b 7 3 Changes the database to the Version 7 31 format To list the available options for your database server type onmode b Related concepts Run the reversion utility on page 7 11 14 2 IBM Informix Migration Guide Chapter 15 The onrestorept utility If an upgrade to a new version of the server fails you can use the onrestorept utility to restore a server instance back to its original state just before the start of the upgrade You can run the onrestorept utility only if the CONVERSION_GUARD configuration parameter was set to 1 or 2 and the upgrade to the new version of the server fails However if you set the CONVERSION_GUARD configuration parameter to 1 or 2 and conversion guard operations fail for example because the server has insufficient space to store restore point data and the upgrade to the new version fails you cannot use the onrestorept utility to restore your data Before you begin an upgrade e Set the CONVERSION_GUARD configuration parameter to 1 to enable a restore point as part of the upgrade process and stop the upgrade if an error related to capturing restore point data occurs e Set the value to 2 the default value if you want the server to continue the upgrade even if an error related to capturing restore point data occurs for example because the server has ins
73. 6 2010 1 1 e System administration skills to perform various system tasks These tasks include operating system installation configuration and maintenance and the installation and configuration of Dynamic Server and any additional software products e Application programming skills to create and maintain scripts to evaluate and modify application programs If you prefer highly skilled IBM Services personnel and business partners are available to assist you in migrating your environment Contact your IBM representative for further information Migration plans Before you begin to migrate to a new version of the database server you should plan for migration To plan your migration requirements complete these tasks 1 Inventory the existing Dynamic Server environment assets such as machines instances databases database customization custom code IBM software and third party software 2 Itemize the requirements for the post migrated environment New requirements can include upgrading or adding hardware using new features or replacing custom code with new built in function 3 Plan the migration activities Typical activities include e Performing a level 0 backup of the database e Quiescing the database server and preventing connections to the database until migration completes Important Any connection attempts for example from cron jobs or monitoring scripts to the database after you quiesce the database server an
74. BQF Version 9 21 AVOID_HASH AVOID_INDEX AVOID_NL RAW STANDARD USE_HASH USE_NL Version 7 31 INNER JOIN LEFT LOCKS RETAIN Appendix D New keywords of SQL D 3 D 4 IBM Informix Migration Guide Appendix E System catalog and system database changes Each version of Dynamic Server contains system catalog table changes and sysmaster database changes Related concepts Changes in Dynamic Server on page 1 10 Changes for Dynamic Server 11 50 Dynamic Server Version 11 50 contains two new sysmaster database tables and new SMI tables The version 11 50xC6 sysmaster database contains the following new tables e SYSEXTERNAL e SYSEXTCOLS e SYSEXTDFILES The version 11 50xC4 sysmaster database contains the new syscompdicts_full table and the new syscompdicts view The version 11 50xC3 sysmaster database contains this new table for the Change Data Capture API syscdc The version 11 50 sysmaster database contains this new table syssesappinfo The following new SMI tables contain information about Enterprise Replication that you can use to monitor status and diagnose problems e The syscdr_state table contains information on whether Enterprise Replication data capture data apply and the network between servers is active e The syscdr_ddr table contains information about the status of log capture and the proximity or status of transaction blocking DDRBLOCK or transaction spooling e The s
75. DIR DATAFILES DELIMITED DELUXE DISK EXPRESS FIXED FORMAT FORCE_DDL_EXEC INFORMIX MAXERRORS NUMROWS RECORDEND REJECTFILE RETAINUPDATELOCKS SAMEAS Version 11 50xC5 CONNECT_BY_ISCYCLE CONNECT_BY_ISLEAF CONNECT_BY_ROOT MERGE MATCHED SIBLINGS SYS_CONNECT_BY_PATH Version 11 50xC2 HDR Version 11 50 BIGINT BIGSERIAL EXTDIRECTIVES VERCOLS Copyright IBM Corp 1996 2010 D 2 Table D 1 New Keywords of SQL continued Dynamic Server Version Reserved Words Version 11 10 ADMIN AVOID_INDEX_S IDSSECURITYLABEL INDEX_S INSERTING REFERENCES SAMPLING SELECTING STATEMENT SYSDBCLOSE SYSDBOPEN TASK UPDATING USELASTCOMMITTED WITH In addition the DBSECADM role is reserved for LBAC administrative work Version 11 10 contains a new database the sysadmin database If your source database server contains a database named sysadmin you must rename it Version 10 0 ACTIVE CURRENT_ROLE DEFAULT_ROLE DIRECTIVES ENCRYPTION HINT IGNORE INACTIVE INITCAP INLINE INOUT LIMIT LOAD ONLINE OPTCOMPIND PARTITION PASSWORD REUSE SAVE SKIP STORAGE TEMPLATE TEST TRUNCATE TYPEID TYPENAME TYPEOF UNLOAD XADATASOURCE XID IBM Informix Migration Guide Table D 1 New Keywords of SQL continued Dynamic Server Version Reserved Words Version 9 40 COLLATION CROSS FULL INSTEAD RESTART RIGHT Version 9 30 AVOID_EXECUTE AVOID_SUBQF USE_SU
76. Do you want to move an entire database or an entire table Are the page images compatible Are the numeric representations the same Copyright IBM Corp 1996 2010 13 1 When you cannot use the onunload and onload utilities Because the data is written in page sized units you cannot use onunload and onload to move data between UNIX or Linux and Windows because they use different page sizes For example the page size is 2 KB on some UNIX systems and 4 KB on Windows Additionally you cannot use onunload and onload e To move data between GLS and non GLS databases e To move compressed data from one database to another You must uncompress data in compressed tables and fragments before using the onload and onunload utilities e To move external tables or databases that contain external tables You must drop all the external tables before using the onunload utility Requirements for using the onload and onunload utilities 13 2 The onload and onunload utilities have limitations You can use these utilities only to move data between database servers of the same version on the same operating system You cannot modify the database schema logging must be turned off and the utilities can be difficult to use The onload and onunload utilities have the following requirements e The original database and the target database must be from the same version of the database server You cannot use the onload and onunload
77. Element Purpose Key Considerations s ownername Displays the CREATE SYNONYM statements owned by ownername None s all Displays all CREATE SYNONYM statements for the database table or None view specified Output from dbschema that ran with the specified option s alice might appear as the following example shows CREATE SYNONYM alice cust FOR alice customer For more information about the CREATE SYNONYM statement see the IBM Informix Guide to SQL Syntax Privileges The dbschema p option generates information on privileges The following syntax diagram fragment shows privileges information Privileges p user all Element Purpose Key Considerations p user Displays the GRANT statements that grant You cannot specify a specific list of users with the privileges to user where user is a user name or p option You can specify either one user or role role name Specify only one user or role or all users and roles p all Displays the GRANT statements for all users for None the database table or view specified or to all roles for the table specified The output also displays any GRANT FRAGMENT statements that are issued for a specified user or role or with the all option for the entire schema Granting privileges You can generate dbschema information on the grantor of a GRANT statement In the dbschema output the AS keyword indicates the grantor of a GRANT statement The following example output indicates that n
78. FORMIXDIR The value is now INFORMIXDIR extend krakatoa krakatoa jar INFORMIXDIR extend krakatoa jdbc jar NOAGE Removed NUMCPUVPS Removed PHYSDBS Removed Appendix C Configuration parameters that have been changed or removed C 5 Configuration parameters that have been changed or removed in Versions 9 30 through 11 10 The following table contains a list of configuration parameters that were changed or removed in Versions 9 30 through 11 10 of the server C 6 Table C 4 Configuration Parameters that Were Changed or Removed in Version 11 10 10 0 9 40 and 9 30 Changed or Removed Version Configuration Parameter Description of Change 11 10 FAST_RESTART_CKPT_FUZZYLOG Removed The RTO_SERVER_ RESTART configuration parameter eliminates fuzzy checkpoints using interval checkpoints instead 11 10 FAST_RESTART_PHYSLOG Removed 11 10 NOFUZZYCKPT Removed The RTO_SERVER_RESTART configuration parameter eliminates fuzzy checkpoints using interval checkpoints instead 10 00xc6 SINGLE USER MODE Renamed In Version 11 10 the name of WITH_DBS A renamed to this configuration parameter changed to ADMIN_USER_MODE_ ADMIN_USER_ MODE_WITH_DBSA WITH_DBSA in Version 11 10 10 0 BUFFERS Removed Information now specified with the BUFFERPOOL configuration parameter 10 0 LRUS Removed Information now specified with the BUFFERPOOL configurati
79. For example run e onmode b 11 50 xC6 to revert to 11 50 xC6 e onmode b 11 50 xC5 to revert to 11 50 xC5 e onmode b 11 50 xC4 to revert to 11 50 xC4 e onmode b 11 50 xC3 to revert to 11 50 xC3 e onmode b 11 50 xC2 to revert to 11 50 xC2 e onmode b 11 50 xC1 to revert to 11 50 xC1 e onmode b 11 50 to revert to 11 50 xC1 e onmode b 11 10 to revert to Version 11 10 e onmode b 10 00 to revert to Version 10 00 e onmode b 9 4 to revert to any Version 9 4 release e onmode b 9 3 to revert to any Version 9 30 e onmode b 9 2 to revert to Version 9 21 e onmode b 7 3 to revert to Version 7 31 e onmode b 7 2 to revert to Version 7 24 When you revert to the older version Dynamic Server displays messages that tell you when reversion begins and ends Chapter 7 Reverting from Dynamic Server Version 11 50 7 11 When the reversion is complete Dynamic Server Version 11 50 is offline The reversion utility drops the Dynamic Server Version 11 50 system catalog tables and restores compatibility so that you can access the data with the earlier database server The reversion utility does not revert changes made to the layout of the data that do not affect compatibility Related reference Syntax of the onmode b command on page 14 1 Restore original configuration parameters Replace the Dynamic Server Version 11 50 ONCONFIG configuration file with the ONCONFIG file that you saved before you migrated Alternatively you can remov
80. H_DBSA is the new name for the SINGLE_USER_MODE_WITH_DBSA configuration parameter e Dynamic Server supports including INFORMIXDIR as the first path name value in path name specifications in the ONCONFIG file Related concepts Changes in Dynamic Server on page 1 10 Server library name changes Dynamic Server Version 11 50 contains some new server library names The following database server library names have new names These library files have a so or dil extension Name for 9 14 9 21 Name for 10 0 Name for 11 10 or Library 9 30 or 9 40 Server Server 11 50 Server Optical iosm09a iosm10a iosmlla pload ipldd09a ipldd10a ipldd1la Simple password CSM ispws09a ispws10a ispwslla Encryption CSM iencs09a iencs10a iencsila Copyright IBM Corp 1996 2010 F 1 F 2 IBM Informix Migration Guide Appendix G Accessibility IBM strives to provide products with usable access for everyone regardless of age or ability Accessibility features for IBM Informix products Accessibility features help a user who has a physical disability such as restricted mobility or limited vision to use information technology products successfully Accessibility features The following list includes the major accessibility features in IBM Informix products These features support e Keyboard only operation e Interfaces that are commonly used by screen readers e The attachment of alternative input
81. Identifiers and names xvii How to Provide Documentation Feedback xvii Part 1 Overview of migration Chapter 1 Overview of Dynamic Server migration 1 1 The migration process 1 1 Migration effort 1 1 Migration skills 1 1 Migration plans 1 2 Types of migration 1 2 Migration tools 1 3 Upgrading Dynamic Server ine place migration 1 3 Migrating Dynamic Server non in place migration 1 4 Hardware prerequisites 1 5 Software prerequisites 1 5 Supported operating systems 1 6 Operating systems that are not supported 1 6 Fix pack naming conventions 1 6 Paths for migration to the new version 1 7 Migration paths on UNIX operating systems 1 8 Migration paths on Linux operating systems 1 9 Migration paths on Windows operating systems 1 9 Changes in Dynamic Server 1 10 Chapter 2 Overview of moving data 2 1 Automatic data migration 2 1 Prerequisites before moving data 2 1 Data migration tools 2 1 High Performance Loader performance advantages for large databases 2 5 Nonlogging raw tables that speed up data loading time 2 5 When TEXT and BYTE data is scanned not compressed 2 6 Moving non Informix data between computers and dbspaces 2 6 Importing data from a non Informix source 2 6 Importing data with IBM Informix Enterprise Gateway products 2 7 Moving data by using distributed SQL a a 2 7 Part 2 Migration to and reversion from Version 11 50 Chapter
82. OOTPATH 6 4 ROOTSIZE 6 4 RTO_SERVER_RESTART B 4 SDS _ENABLE B 4 SDS _PAGING B 4 SDS TEMPDBS B 4 SDS TIMEOUT B 4 SECURITY _LOCALCONNECTION B 5 SHMNOACCESS B 2 SHMVIRT_ALLOCSEG B 4 SQL _LOGICAL CHAR B 1 SQLTRACE B 4 SSL_KEYSTORE LABEL B 2 SSL_KEYSTORE_FILE B 2 SSL_KEYSTORE_STH B 2 STOP_APPLY B 1 STORAGE_FULL_ ALARM B 2 TBLTBLFIRST B 5 TBLTBLNEXT B 5 TEMPTAB_NOLOG B 4 UPDATABLE_SECONDARY B 2 USELASTCOMMITTED B 4 USRC_HASHSIZE B 4 USRC_POOLSIZE B 4 VP_MEMORY_ CACHE _ KB B 4 conpload sh script 6 6 conploadlegacy sh script 6 6 CONVERSION_GUARD configuration parameter 6 7 15 1 B 1 X 2 IBM Informix Migration Guide Converting to Dynamic Server Express Edition 4 4 D Data integrity 6 9 Data migration automatic 2 1 constraints 2 1 issues to consider 2 1 overview 2 1 prerequisites 2 1 tools 2 1 2 5 Data types user defined converting replication of from Dynamic Server 9 21 4 2 Database servers migrating 6 1 6 7 platforms and versions 1 6 preparing for migration 3 1 upgrading 6 1 6 7 Databases ownership set by onload 13 10 verifying integrity 6 10 DataBlade modules installing 6 5 registering 6 10 DB_LIBRARY_PATH configuration parameter B 4 DB Access input from the dbschema utility 11 13 dbexport SELECT triggers disabling 9 1 dbexport utility c option 9 3 9 4 d option 9 3 q option 9 3 si option 9 3 9 4 ss option 9 3 9 4 V option 9 3 version option 9 3 X option 9 3 def
83. O_CKPTS B 3 AUTO_LRU_ TUNING B 3 AUTO_REPREPARE B 3 BACKUP_FILTER B 3 BAR_IXBAR_ PATH B 4 BAR PERFORMANCE B 3 BATCHEDREAD TABLE B 1 BUFFERPOOL B 5 CDR_DBSPACE B 5 CDR_ENV B 5 CDR_MAX_DYNAMIC_ LOGS B 6 CDR_SUPPRESS_ATSRISWARN B 5 changed in the onconfig std file C 1 changed in Version 10 0 C 6 changed in Version 11 10 C 6 changed in Version 11 50 C 1 changed in Version 9 30 C 6 changed in Version 9 40 C 6 changes in new server versions C 1 CHECKALLDOMAINSFORUSER B 2 CONVERSION_GUARD 6 7 15 1 B 1 DB_LIBRARY_PATH B 4 DELAY_APPLY B 1 DIRECT_IO B 3 DRDA_COMMBUFFSIZE B 3 DRIDXAUTO B 5 Configuration parameters continued DS_NONPDQ_QUERY_MEM_ B 5 ENCRYPT_CDR_ B 6 ENCRYPT_CIPHERS B 6 ENCRYPT_HDR B 3 ENCRYPT MAC B 6 ENCRYPT MACFILE B 6 ENCRYPT_SMX B 3 ENCRYPT_ SWITCH B 6 EXPLAIN_STAT B 3 EXT_DIRECTIVES B 5 FAILOVER CALLBACK B 2 FASTPOLL B 4 HA_ALIAS B 2 HPL_ DYNAMIC _LIB_PATH 6 4 B 6 IFX_EXTEND ROLE B 5 IFX_FOLDVIEW B 4 IFX_LISTEN_TIMEOUT B 5 LIMITNUMSESSIONS B 2 LOG_INDEX_BUILDS B 3 LOG_STAGING_DIR B 1 MAX _FILL_ DATA PAGES B 3 MAX_INCOMPLETE_CONNECTIONS B 5 MSG_DATE B 2 ONLIDX_ MAXMEM B 5 OPTICAL_LIB_PATH 6 4 PLCY HASHSIZE B 3 PLCY_POOLSIZE B 3 PLOG_OVERFLOW_PATH B 6 removed in new server versions C 1 removed in Version 10 0 C 6 removed in Version 11 10 C 6 removed in Version 11 50 C 1 removed in Version 9 30 C 6 removed in Version 9 40 C 6 RESTORE FILTER B 3 RESTORE_POINT DIR 6 7 15 1 B 1 ROOTOFFSET 6 4 R
84. Output from dbschema that ran with the option ui person_t might appear as the following example shows create row type informix person_t name varchar 30 10 not null address varchar 20 10 city varchar 20 10 state char 2 zip integer bdate date yi create row type informix employee t salary integer manager varchar 30 10 under person_t create row type informix sales rep_t rep_num integer region_num integer commission decimal 16 home_office boolean under employee t Sequence creation The dbschema seq sequence option generates information on sequence creation The following syntax diagram fragment shows sequence creation gt gt seq sequence gt lt all Element Purpose Key Considerations seq sequence Displays the CREATE SEQUENCE statement defining sequence None seq all Displays all CREATE SEQUENCE statements for the database None Running dbschema with option seq sequitur might produce this output CREATE SEQUENCE sequitur INCREMENT 10 START 100 NOCACHE CYCLE For more information about the CREATE SEQUENCE statement see the IBM Informix Guide to SQL Syntax Synonym creation The dbschema s option generates information on synonym creation The following syntax diagram fragment shows the creation of synonyms Synonyms s ownername all 11 6 IBM Informix Migration Guide
85. RRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE Some states do not allow disclaimer of express or implied warranties in certain transactions therefore this statement may not apply to you This information could include technical inaccuracies or typographical errors Changes are periodically made to the information herein these changes will be incorporated in new editions of the publication IBM may make improvements and or changes in the product s and or the program s described in this publication at any time without notice Any references in this information to non IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk Copyright IBM Corp 1996 2010 H 1 H 2 IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you Licensees of this program who wish to have information about it for the purpose of enabling i the exchange of information between independently created programs and other programs including this one and ii the mutual use of the information which has been exchanged should contact IBM Corporation J46A G4 555 Bailey Avenu
86. R_DBSPACE configuration parameter B 5 CDR_ENV configuration parameter B 5 CDR_MAX_DYNAMIC_LOGS configuration parameter B 6 CDR_SUPPRESS_ATSRISWARN configuration parameter B 5 Character position form of FILE and INSERT statements 10 9 CHECKALLDOMAINSFORUSER configuration parameter B 2 Checking available space before migration 3 3 Checking database integrity 6 10 Chunks reverting reserve pages 7 8 Closing Dynamic Server 3 6 3 8 Clusters migrating to new release 5 1 5 2 Copyright IBM Corp 1996 2010 Clusters continued restoring from a backup archive 5 6 restoring from the HDR secondary server 5 7 reverting 5 1 5 4 7 14 upgrading to a new fix pack 5 2 upgrading to a new PID 5 2 Code set conversion HPL 2 5 Column level encryption 7 3 Command file dbload 10 5 Communications Support Module configuring after migration 6 5 removing if reverting 7 12 saving before reverting 7 9 compliance with standards xiv concsm cfg file creating entries after migration 6 5 removing if reverting 7 12 saving before reverting 7 9 Configuration file customizing after migration 6 4 replacing after reversion 7 12 saving before migration 3 5 saving before reverting 7 9 Configuration parameters added in Dynamic Server 10 0 B 1 added in Dynamic Server 11 10 B 1 added in Dynamic Server 11 50 B 1 added in Dynamic Server 9 40 B 1 ADMIN_MODE_USERS B 2 ADMIN_USER MODE_WITH_DBSA B 2 ALARMPROGRAM 6 4 6 5 ALRM_ALL_ EVENTS B 5 AUTO_AIOVPS B 3 AUT
87. SDS_ENABLE configuration parameter B 4 SDS_PAGING configuration parameter B 4 SDS_TEMPDBS configuration parameter B 4 SDS_TIMEOUT configuration parameter B 4 SECURITY_LOCALCONNECTION configuration parameter B 5 SELECT triggers disabling with dbexport 9 1 SHMNOACCESS configuration parameter B 2 SHMVIRT_ALLOCSEG configuration parameter B 4 Shortcut keys keyboard G 1 Simple large objects moving with onload 13 10 13 11 SKIP keyword 7 3 sm_versions file 3 6 sm_versions std file renaming to sm_versions 6 8 smi_unld utility 7 9 Software prerequisites for migrating 1 6 Space checking availability before migration 3 3 for sysmaster database 3 3 SQL reserved words D 1 SQL statements UPDATE STATISTICS data distributions 11 10 SQL_LOGICAL_CHAR configuration parameter B 1 sqlhosts file UNIX changing name or path 6 4 csm option 6 5 save a copy when migrating 3 5 SQLTRACE configuration parameter B 4 SSL_KEYSTORE LABEL configuration parameter B 2 SSL_KEYSTORE FILE configuration parameter B 2 SSL_KEYSTORE_STH configuration parameter B 2 standards xiv Starting Dynamic Server after upgrading 6 5 earlier database server after reversion 7 12 STOP_APPLY configuration parameter B 1 Storage manager 3 6 STORAGE FULL_ALARM configuration parameter B 2 Syntax diagrams reading in a screen reader G 1 sysadmin database E 2 sysbufpool table E 2 syscde database E 1 sysdirectives table E 2 sysindexes changes to E 6 sysmaster database and logical logs 6 5
88. TE TABLE statements with constraint expressions and nested CREATE PROCEDURE statements After migrating to the current database server you must recreate all stored procedures that were dropped Copyright IBM Corp 1996 2010 3 1 e If you are migrating from Dynamic Server 7 31 the number of columns of the VARCHAR or NVARCHAR data type per table for Dynamic Server 11 50 has been reduced from 231 to 195 within a row size of 32762 bytes and based on a page size of 2K on UNIX or LINUX The same 195 column restriction also applies to BYTE and TEXT columns On platforms where the page size is 4K Windows and AIX the limit for the number of columns limit is approximately 450 columns Optionally you can use the checklist in Pre migration checklist of diagnostic information on page 3 9 for gathering additional performance information that can be useful if you have large or complex applications This additional information is also useful if you need to troubleshoot problems or issues after migration and need help from Technical Support To prepare for migration 1 10 11 12 13 Check and configure available space to be sure you have enough space to move data and for any other software and network tools that you use See Optionally change information that Dynamic Server uses to capture information in case you need to restore files to a consistent state if an upgrade Save copies of the current configur
89. UPDATE STATISTICS on the following system catalog tables in the 7 31 database server SYSBLOBS SYSFRAGMENTS SYSSYNONYMS SYSCOLAUTH SYSINDEXES SYSSYNTABLE SYSCOLUMNS SYSOBJSTATE SYSTABAUTH SYSCONSTRAINTS SYSOPCLSTR SYSTABLES SYSDEFAULTS SYSPROCAUTH SYSTRIGGERS SYSDISTRIB SYSPROCEDURES SYSUSERS SYSFRAGAUTH SYSROLEAUTH Verify the integrity of the reverted data Before you allow users to access the databases check the integrity of the reverted data Follow the steps in Verifying the integrity of the data on page 3 7 Back up the database server after reversion After you complete the reversion use ON Bar or ontape to make a level 0 backup of the database server to which you reverted For more information about making backups see your IBM Informix Backup and Restore Guide Important Do not overwrite the tapes that you used to back up your source database server Return the database server to online mode To bring the old database server online run the onmode m command Then users can access the data Chapter 7 Reverting from Dynamic Server Version 11 50 7 13 Reverting clusters If you have a high availability cluster you must complete additional tasks when you revert from the new version of Dynamic Server You must revert only the primary database server Beginning with Dynamic Server Version 11 50xC6 the server automatically removes secondary servers during reversion After reversion on the primary server is co
90. _CDR Enables and sets the level of network encryption for Enterprise Replication 9 40 ENCRYPT_CIPHERS Specifies the ciphers to use for encryption for Enterprise Replication 9 40 9 40 ENCRYPT_MAC ENCRYPT_MACFILE Specifies the level of message authentication coding to use for Enterprise Replication Specifies MAC key files for Enterprise Replication 9 40 ENCRYPT_SWITCH Defines the frequency at which ciphers and secret keys are re negotiated for Enterprise Replication 9 40 HPL_DYNAMIC_LIB_ PATH For the High Performance Loader sets the location of the shared library file containing custom code functions Located in the plconfig file 9 40 HPLAPIVERSION For the High Performance Loader sets whether custom code functions can use different input and output data lengths Located in the plconfig file 9 40 PLOG_OVERFLOW_PATH Sets the location of the temporary space to extend the physical log during fast recovery Related concepts Changes in Dynamic Server on page 1 10 IBM Informix Migration Guide Appendix C Configuration parameters that have been changed or removed Dynamic Server Version 11 50 includes an improved onconfig std file with new default values for configuration parameters In addition some configuration parameters used with earlier versions of Dynamic Server have been changed or removed Related concepts Changes in D
91. abase server is in quiescent mode onstat The first line of the onstat output shows the status of your source database server IBM Informix Dynamic Server Version X XX XXX Quiescent Up Making a final backup of the source database server Use ON Bar or ontape to make a level 0 backup of the source database server including all storage spaces and all used logs After you make a level 0 backup also perform a complete backup of the logical log including the current logical log file Be sure to retain and properly label the tape volume that contains the backup Important You must also make a final backup of each source database server instance that you plan to convert For ON Bar remove the ixbar file if any from the INFORMIXDIR etc or INFORMIXDIR etc directory after the final backup Removing the ixbar file ensures that backups for the original source database server are not confused with backups about to be done for the new database server Follow the instructions regarding expiration in your storage manager documentation For more information about making backups see the IBM Informix Backup and Restore Guide Verifying that the source database server Is offline Before you install the new database server verify that the source database server is offline You must do this because the new database server uses the same files You cannot install the new database server if any of the files that it uses are active
92. able also shows the database servers on which you can use the tools Table 2 1 Comparison of tools for moving data Tool Description Advantages Disadvantages Availability dbexport and dbimport utility Imports or exports a database to a text file that is stored on disk or tape Can modify the database schema and change the data format Can move data between operating systems Optional logging Can import data from non Informix sources Faster performance than the dbload utility but slower performance than the onload utility Moves the entire database dbload utility Transfers data from one or more text files into one or more existing tables Can modify database schema Can move data between operating systems Optional logging Moderately easy to use Can import data from non Informix sources Slower performance than the dbexport dbimport and onload utilities 2 2 IBM Informix Migration Guide Table 2 1 Comparison of tools for moving data continued Tool Description Advantages Disadvantages Availability onunload and onload utilities Unloads data from a database into a file on tape or disk loads data which was created with the onunload command into the database server Fast performance Optional logging Only moves data between database servers of the same version on the same operating system Cannot modify the database schema
93. ac OS X operating systems Informix Dynamic Server Version 11 50 Ultimate Edition runs on the Mac OS X operating system If you want to move your environment from your current operating system to the Mac OS X you must migrate your data You cannot simply upgrade from another operating system to a Mac OS X operating system Chapter 8 Migrating database servers to a new operating system on page 8 1 Informix Dynamic Server Developer Edition enhancements If you are using Developer Edition Version 11 10 you can upgrade to take advantage of Version 11 50 enhancements Also you can now run Developer Edition on the Mac OS X and Ubuntu operating systems Developer Edition is not for production environments You can use it only for developing database applications Developer Edition is free and supported only at the IDS Developer Edition wiki http www informix zone com idswiki doku Documentation conventions Special conventions are used in the IBM Informix product documentation Technical changes Technical changes to the text are indicated by special characters depending on the format of the documentation xii IBM Informix Migration Guide HTML documentation New or changed information is surrounded by blue gt and lt characters PDF documentation A plus sign is shown to the left of the current changes A vertical bar is shown to the left of changes made in earlier shipments Featur
94. ample of file for DB Access 11 13 guidelines 11 2 output example 11 11 overview 11 1 owner conventions 11 4 privileges information 11 7 privileges information for a role 11 8 re creating the schema 11 13 sequence schema 11 6 specifying a table view or procedure 11 8 synonym schema 11 6 syntax 11 2 syntax for role schema 11 9 table information 11 9 dbspaces moving tables to another dbspace 13 12 DELAY_APPLY configuration parameter B 1 Delimiter form of FILE and INSERT statements 10 6 10 8 Diagnostic information to gather 3 9 DIRECT_IO configuration parameter B 3 Directories installation 6 2 Disabilities visual reading syntax diagrams G 1 Disability G 1 Distributed queries with ANSI joins 7 3 Dotted decimal format of syntax diagrams G 1 DRDA_COMMBUFFSIZE configuration parameter B 3 DRIDXAUTO configuration parameter B 5 DS_NONPDQ_QUERY_MEM configuration parameter B 5 Dynamic Server backing up after upgrading 6 10 backing up before reverting 7 10 closing before migration 3 8 DataBlade modules installing 6 5 DataBlade modules registering 6 10 fix packs 1 6 initializing after upgrading 6 5 installing 6 2 migration space requirements 3 3 naming conventions releases 1 6 new version performance tuning 6 10 platforms and versions 1 6 reverting 7 1 reverting from current version 7 1 7 10 starting after upgrading 6 5 E ENCRYPT_CDR configuration parameter B 6 ENCRYPT_CIPHERS configuration parameter B 6 ENCRYPT_HDR configura
95. an be the schema file stored if you are storing the data a complete path name or a file name If only a files on tape file name is given the file is stored in the current directory o directory Specifies the directory on disk in which dbexport Restrictions The directory specified as directory creates the database exp directory name must already exist This directory holds the data files and the schema file that dbexport creates for the database s tapesize Specifies in kilobytes the amount of data that Additional Information To write to the end of you can store on the tape the tape specify tapesize as 0 If you do not specify 0 the maximum fapesize is 2 097 151 KB t device Specifies the path name of the tape device where The t option does not allow you to specify a you want the text files and possibly the schema file stored remote tape device When you write to disk dbexport creates a subdirectory database exp in the directory that the o option specifies The dbexport utility creates a file with the unl extension for each table in the database The schema file is written to the file database sql The unl and sql files are in the database exp directory If you do not specify a destination for the data and schema files the subdirectory database exp is placed in the current working directory When you write the data files to tape you can use the f option to store the schema file to disk You are not re
96. ance Loader onpload database If onpload conversion failed during database server migration you can manually upgrade the onpload database Starting with Version 9 40 xC3 Dynamic Server has a new version of the onpload database with longer column lengths The onpload database now requires slightly more disk space than it did before Version 9 40 xC3 When you migrate to a new version of Dynamic Server you must also upgrade the onpload database To upgrade the onpload database 1 If you are upgrading from a version of Dynamic Server that is prior to Version 9 40 run the conploadlegacy sh script as shown in this example conploadlegacy sh 7 31 9 40 2 If are upgrading from a version of Dynamic Server that is prior to Version 9 40xC3 and if necessary have already run the conploadlegacy sh script you must also perform one of the following tasks e Run the conpload sh script as shown in this example conpload sh 9 40 11 50 e Set the new environment variable IFXK_ONPLOAD_AUTO_UPGRADE to 1 for the upgrade to happen automatically the first time you start an HPL utility using the ipload or onpladm command after you migrate to a new database server version You cannot use the IFX_ONPLOAD_AUTO_UPGRADE environment variable with the onpload utility If you start an HPL utility before upgrading the onpload database then you receive an error stating that the onpload database must be converted Starting with Dynamic Server Version 9 40 xC3 t
97. and will be lost Additionally nonlogged objects on the primary server will not exist on the secondary server Do not use RS secondary servers as backup servers because transactions could be lost Upgrading clusters to a new PID or fix pack If you are upgrading clusters from one PID or fix pack to a new PID or fix pack and the migration does not involve actual conversion or reversion you must complete additional tasks when you upgrade Copyright IBM Corp 1996 2010 5 1 However you do not need to recreate the secondary servers after you upgrade the primary database server Prerequisites e Verify that you are upgrading to a new PID or fix pack in which standard conversion procedures are not necessary If you are upgrading to a new PID or fix pack that requires you to complete standard conversion procedures or if you are upgrading to a new release instead of following the procedures in this topic go to Migrating clusters to a new release TA lete the steps in Preparing to migrate upgrade or revert clusters on page 5 1 e Perform all migration operations as user informix To upgrade clusters to a new PID or fix pack 1 Stop the Connection Manager by issuing the oncmsm k connection_manager_name command 2 If you are using a High availability Data Replication HDR secondary server as a backup server in case of contingencies a Quiesce the primary server by issuing an onmode sy command to prev
98. area or you can include none If you hear the lines 3x 3 HOST and 3 STATE you know that you can include HOST STATE both together or nothing Notes 1 If a dotted decimal number has an asterisk next to it and there is only one item with that dotted decimal number you can repeat that same item more than once 2 If a dotted decimal number has an asterisk next to it and several items have that dotted decimal number you can use more than one item from the list but you cannot use the items more than once each In the previous example you could write HOST STATE but you could not write HOST HOST 3 The symbol is equivalent to a loop back line in a railroad syntax diagram Specifies a syntax element that must be included one or more times A dotted decimal number followed by the symbol indicates that this syntax element must be included one or more times For example if you hear the line 6 1 data area you must include at least one data area If you hear the lines 2 2 HOST and 2 STATE you know that you must include HOST STATE or both As for the symbol you can only repeat a particular item if it is the only item with that dotted decimal number The symbol like the symbol is equivalent to a loop back line in a railroad syntax diagram Appendix G Accessibility G 3 G 4 IBM Informix Migration Guide Notices This information was developed for products and services offered in the U S A IBM may not offer
99. asks on the primary server e If you have an HDR pair break the HDR pair by issuing the onmode d standard command e If you have RS servers delete the RS entries by issuing onmode d delete RSS rss_server_name commands e If you have SD servers clear the primary server in the shared disk cluster by issuing an onmode d clear SDS primary primary_server_name command e Revert the standard server by issuing an onmode b target_IDS_version command f Verify that reversion was successful and the server was stopped If the reversion was not successful check the message log for error messages take appropriate action and restart reversion 7 14 IBM Informix Migration Guide 4 On each server set the INFORMIXDIR environment variable to the full path name for the target installation 5 Ensure that all of the necessary configuration files are available in the target installation 6 Perform any additional database server reversion tasks as described in Reverting from Dynamic Server Version 11 50 on page 7 10 7 Start the primary server by issuing an oninit command 8 Start the Connection Manager by issuing an oncmsm command 9 Start SD secondary servers by issuing oninit commands 10 Back up all logs Then use ON Bar or ontape to make a level 0 backup on the primary server to use to reestablish the RS and HDR servers if necessary 11 If you have RS secondary servers a Add RS entries on the primary server by issuing
100. ate values before starting the migration For information on how to install and use the Storage Manager see the IBM Informix Storage Manager Administrator s Guide Closing all transactions and shutting down the source database server Before migrating terminate all database server processes and shut down your source database server This lets users exit and shuts down the database server gracefully If you have long running sessions you must also shut those down Inform client users that migration time is typically five to ten minutes However if migration fails you must restore from a level 0 backup so ensure that you include this possibility when you estimate how long the server will be offline Before you migrate from the original source database server make sure that no open transactions exist Otherwise fast recovery will fail when rolling back open transactions during the migration To let users exit and shut down the database server gracefully Run the onmode sy command to put the database server in quiescent mode Wait for all users to exit Run the onmode l command to move to the next logical log Run the onmode c to force a checkpoint Make a level 0 backup of the database server Run the ontape a command after the level 0 backup is complete SN Oo PE D S Run the onmode yuk command to shut down the system If you need to perform an immediate shutdown of the database server run these commands onmode
101. ation and post migration tasks However some particular tasks are not applicable for the Express Edition because the Express Edition does not support Enterprise Replication and High Availability Data Replication HDR Migrating to the new version of Dynamic Server After you prepare your databases for migration you can migrate to the new version of Dynamic Server Recommendation Install a new version of the database server in a new directory and then test a database server instance with the similar configuration settings and the same sqlhosts information that you used for your old database server If you do not have space on your machine to accommodate the new Dynamic Server installation verify that you have the installation media for the old version of the product back up your old directory and then remove the old directory from the host machine You can also migrate on a database server dedicated to testing your migration to Version 11 50 before you migrate on your production database server Prerequisites e Read the release notes and the machine notes for any new information e Complete the steps in e Refer to your installation guide for detailed installation prerequisites options and procedures Important Do not connect applications to a database server instance until migration has successfully completed To migrate to the new version of Dynamic Server 1 Install Dynamic Server Version 11 50 in a new direct
102. ation files See Saving copies of the current configuration files on page 3 5 Save a copy of your current Storage Manager sm_versions file See Saving a all transactions and shutting down the source database server on page 3 6 Initiate fast recovery to verify that no open transactions remain after you shut down the source database server See Initiating fast recovery to verify that no open transactions exist on page 3 6 Verify the integrity of the data See Verifying the integrity of the data on page 37 Verify that the database server is in quiescent mode See Verifying that the database server is in quiescent mode on page 3 8 If you use high availability clusters you must perform additional tasks See Make a final level 0 backup of the source database server including all storage spaces in case you need to revert to the source database server See Making a final backup of the source database server on page 3 8 Run the ontape a command after the backup is complete Verify that the source database server is offline See database server Is offline on page 3 8 On UNIX or Linux only modify kernel parameters See Modifying kernel parameters UNIX Linux on page 3 8 Checking and configuring available space Before you migrate to the new version of Dynamic Server you must make sure that you have enough available space for the new server your data and any othe
103. attrtypes sysindexes syssyntable sysblobs sysindices systabamdata syscasts sysobjstate systables syscolattribs sysopclasses systracemsgs syscolumns sysopclstr systriggers sysconstraints sysprocedures sysxtdtypes sysdomains Identifiers changed from CHAR 18 to CHAR 128 in the following sysmaster database tables Appendix E System catalog and system database changes E 3 arc_dbspace arc_dbspace_set arc_phys_dev arc_rep_table arc_replicate arc_server arc_version arc_vset arc_vset_view flags_text syscfgtab sysconfig syscrtadt sysdatabases sysdbslocale sysdbspaces sysdbspartn sysdbstab sysdic sysdiccache sysdistcache sysdsc sysextents sysextspaces syslocks sysopendb sysprc sysproccache sysptprof syssdblock syssqlcurall syssqlcurses syssqlstat systabnames systrans systxptab Column widths for user login identifiers changed from CHAR 8 to CHAR 32 in some system catalog tables and sysmaster database tables The following system catalog tables changed sysaggregates sysams syscasts syscolauth sysconstraints sysdomains sysfragauth sysindexes The following sysmaster database tables changed sysaudit sysdatabases sysdbspaces sysdbspartn sysdbstab sysdic sysindices syslangauth sysobjstate sysopclasses sysopclstr sysprocauth sysprocedures sysroleauth sysdiccache sysdistcache sysdsc sysextspaces sysprc sysproccache syssynonyms syssyntable systabauth systables systriggers sysuse
104. ave to acquire exclusive locks on rows or pages as it inserts rows during the load operation If you do not specify the r option the tables specified in the command file are locked during loading so that other users cannot update data in the table Table locking reduces the number of locks needed during the load but reduces concurrency If you are planning to load a large number of rows use table locking and load during nonpeak hours Rows to ignore during a load operation The dbload i option specifies the number of new line characters in the input file that dbload ignores before dbload begins to process data This option is useful if your most recent dbload session ended prematurely For example if dbload ends after it inserts 240 lines of input you can begin to load again at line 241 if you set number rows ignore to 240 The i option is also useful if header information in the input file precedes the data records Bad row limit during a load operation The dbload e option lets you specify how many bad rows to allow before dbload terminates If you set errors to a positive integer dbload terminates when it reads errors 1 bad rows If you set errors to zero dbload terminates when it reads the first bad row If dbload exceeds the bad row limit and the p option is specified dbload prompts you for instructions before it terminates The prompt asks whether you want to roll back or to commit all rows that were inserted sinc
105. blocks ize s tapesize t pathname Element Purpose Key Considerations b blocksize Specifies in kilobytes the block size of the If you are importing from tape you must use the same tape device block size that you used to export the database 9 8 IBM Informix Migration Guide Element Purpose Key Considerations f pathname Specifies where dbimport can find the Additional Information If you use the f option to schema file to use as input to create the export a database you typically use the same path name database when the data files are read from that you specified in the dbexport command If you tape specify only a file name dbimport looks for the file in the exp subdirectory of your current directory i directory Specifies the complete path name on disk Additional Information This directory must be the of the database exp directory which holds same directory that you specified with the dbexport o the input data files and schema file that option If you change the directory name you also dbimport uses to create and load the new rename your database database The directory name must be the same as the database name s tapesize Specifies in kilobytes the amount of data Additional Information To read to the end of the tape that you can store on the tape specify a tape size of 0 If you are importing from tape you must use the same tape size that you used to exp
106. c Server For more information see Paths for migration to the new version on page 1 7 The process for migrating between Dynamic Server editions is the same as migrating from one version to another except that some particular tasks are not applicable for the Express Edition because the Express Edition does not support Enterprise Replication and high availability clusters The migration process This overview of the migration process describes what you need to know to plan your migration and the resources that you can use to assist you Careful planning will ensure minimal impact on your business e Migration skills j e Migration tools on page 1 3 Migration effort Depending on your environment the migration process can take a few hours or several weeks The migration effort is determined by many factors e Your current version of Dynamic Server The older the version the greater the effort e The site architecture and configuration before and after migration e The level of site customization before and after migration e Integration of additional software products e To some extent the size of the database Migration skills Your Dynamic Server migration team needs database administration skills system administration skills and application programming skills The migration team needs e Database administration skills to help migrate custom database extensions Copyright IBM Corp 199
107. cations with clients you can optionally use a Communications Support Module CSM with the current version of Dynamic Server After you install the CSM components create entries in the concsm cfg file and in the options field of the sqlhosts file to configure the CSM Existing client applications do not need to be recompiled or relinked if your database server does not use CSMs If your database server uses a CSM client applications must relink with new Informix libraries The client applications must install and configure the CSM For information on how to set up the CSM see the IBM Informix Dynamic Server Administrator s Guide Installing or upgrading any DataBlade modules After you install the new version of Dynamic Server you might need to install or upgrade any DataBlade modules that you want to add to the database server Register the DataBlade modules after you initialize the database server Initializing the new version of Dynamic Server After installing the new database server perform shared memory initialization to start the server Do not perform disk space initialization which overwrites whatever is on the disk space Prerequisite If you installed Dynamic Server as user root you must switch to user informix before initializing the server Important Dynamic Server writes to the logical logs with the transactions that result from creating the sysmaster database If you run out of log space before the creation of the
108. changed or removed Configuration parameter changes in the Version 11 50 onconfig std File Configuration parameters that have been changed or removed in Versions 9 30 through 11 10 Appendix D New keywords of SQL Appendix E System catalog and system database changes Changes for Dynamic Server 11 50 See Oh eee eR Changes for Dynamic Server 11 10 Changes for Dynamic Server 10 0 Changes for Dynamic Server 9 40 Changes for Dynamic Server 9 30 Column width changes in sysmaster tables in Version 9 20 amd Tater y versions Data type changes in sysmaster tables in Version 9 20 and later versions Changes in treatment of null values in sysmaster tables in Version 9 30 Other sysmaster database table and column changes in Version 9 30 Remote queries on system catalog tables between Version 7 31 and later versions Difference in sysindexes between Version 7 31 and later versions Appendix F New and changed features Server library name changes Appendix G Accessibility Accessibility features for IBM Informix products Accessibility features Keyboard navigation Related accessibility infenmation IBM and accessibility Dotted decimal syntax diagrams Notices Trademarks Index E 3 E3 Gl G 1 G 1 G 1 H 1 Contents X 1 Vii viii IBM Informix Migration Guide Introduction In this introduction This introduction provides an overview of the information in this publicat
109. column you cannot use dbexport to export the table to a tape If a table has a user defined type in a column using dbexport to export the table to a tape might yield unpredictable results depending on the export function of the user defined type Exported CLOB sizes are stored in hex format in the unload file IBM Informix Migration Guide Chapter 10 The dbload utility The dbload utility loads data into databases or tables that IBM Informix products created It transfers data from one or more text files into one or more existing tables This utility supports new data types in all versions of Dynamic Server since Version 9 21 Prerequisites If the database contains label based access control LBAC objects the dbload utility can load only those rows in which your security label dominates the column security label or the row security label If the entire table is to be loaded you must have the necessary LBAC credentials for writing all of the labeled rows and columns For more information on LBAC objects see the IBM Informix Security Guide and the IBM Informix Guide to SQL Syntax You cannot use the dbload utility on secondary servers in high availability clusters When you use the dbload utility you can manipulate a data file that you are loading or access a database while it is loading When possible use the LOAD statement which is faster than dbload The dbload utility gives you a great deal of flexibility but it is not as
110. condary server starts 11 10 SDS_TIMEOUT Specifies the amount of time in seconds that the primary server waits for the SD secondary server to send a log position acknowledgment 11 10 SHMVIRT_ALLOCSEG Specifies a threshold at which Dynamic Server allocates server memory and specifies the alarm level activated if the server cannot allocate the new memory segment 11 10 SQLTRACE Controls the default behavior such as the number of SQL statements to trace and the tracing mode of the Query Drill Down feature 11 10 USELASTCOMMITTED Specifies whether the database server uses the last committed version of the data when a lock occurs 11 10 USRC_HASHSIZE Specifies the number of hash buckets in the cache that holds information about LBAC credentials for users 11 10 USRC_POOLSIZE Specifies the maximum number of entries in each hash bucket of the cache that holds information about LBAC credentials for users 11 10 TEMPTAB_NOLOG Disables logging on temporary tables 10 00xC6 VP_MEMORY_CACHE_KB Enables a private memory cache that is associated with a CPU virtual processor and contains blocks of free memory 10 00xC5 BAR_IXBAR_PATH Specifies the path and name of the ixbar the ON Bar boot file 10 00xC5 FASTPOLL Enables fast polling of your network if your operating system platform supports fast polling 10 00xC5 IFX_FOLDVIEW Enable
111. constraint As a result if you use the dbschema output to create a new object table index view procedure constraint sequence or synonym the owner of the original object owns the new object If you want to change the owner of the new object you must edit the dbschema output before you run it as an SQL script You can use the output of dbschema to create a new function if you also specify the path name to a file in which compile time warnings are stored This path name is displayed in the dbschema output For more information about the CREATE TABLE CREATE INDEX CREATE SYNONYM CREATE VIEW CREATE SEQUENCE CREATE PROCEDURE CREATE FUNCTION and GRANT statements see the IBM Informix Guide to SQL Syntax 11 4 IBM Informix Migration Guide dbschema server specific information The dbschema ss option generates server specific information In all Informix database servers except SE the ss option always generates the lock mode extent sizes and the dbspace name if the dbspace name is different from the database dbspace In addition if tables are fragmented the ss option displays information about the fragmentation strategy When you specify the dbschema ss option the output also displays any GRANT FRAGMENT statements that are issued for a particular user or in the entire schema The si option which is available only with the ss option excludes the generation of index storage clauses for non fragmented tables The x op
112. ctives only All IBM prices shown are IBM s suggested retail prices are current and are subject to change without notice Dealer prices may vary This information is for planning purposes only The information herein is subject to change before the products described become available This information contains examples of data and reports used in daily business operations To illustrate them as completely as possible the examples include the names of individuals companies brands and products All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental COPYRIGHT LICENSE This information contains sample application programs in source language which illustrate programming techniques on various operating platforms You may copy IBM Informix Migration Guide modify and distribute these sample programs in any form without payment to IBM for the purposes of developing using marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written These examples have not been thoroughly tested under all conditions IBM therefore cannot guarantee or imply reliability serviceability or function of these programs The sample programs are provided AS IS without warranty of any kind IBM shall not be liable for any damages arising out of your use of the sample
113. d from the primary server when configuring delayed application of log files on RS secondary servers 11 50xC5 STOP_APPLY Used to stop an RS secondary server from applying log files received from the primary server 11 50xC5 SQL LOGICAL CHAR When enabled causes size specifications in the declarations of character data types to be interpreted in units of logical characters rather than as bytes Copyright IBM Corp 1996 2010 B 1 B 2 Table B 1 New Configuration Parameters continued Version New Configuration Parameter Description 11 50xC4 CHECKALLDOMAINSFORUSER Configures how Dynamic Server searches for user names in a networked Windows environment 11 50xC2 LIMITNUMSESSIONS Defines the maximum number of sessions that you want connected to Dynamic Server If you specify a maximum number you can also specify whether you want Dynamic Server to print messages to the online log file when the number of sessions approaches the maximum number 11 50 FAILOVER_CALLBACK Specifies the full path name of a script that the database server executes when the server transitions from a secondary server to a primary or standard server 11 50 HA_ALIAS When a secondary server connects to a primary server specifies the name of a network alias to use if a failover occurs 11 50 11 50 MSG_DATE SHMNOACCESS When enabled adds a date to the front of each message i
114. d during migration will cause migration to fail e Installing the new version of Dynamic Server e Migrating database data e Reverting to the previous version e Migrating applications before using them with the new database server Depending on your environment you might need to perform some of these activities more than once You might not need to restore the level 0 backup however if you encounter problems you can always restore the backup of your current server Types of migration There are three ways to migrate to Dynamic Server Version 11 50 Upgrading In place migration Upgrading is a special case of migration that uses your existing hardware and operating system You install a new or improved version of the product in a different location from your current version on the same machine You can copy your configuration file and add new parameters When you start the new Dynamic Server instance the database data is automatically converted For example you can upgrade from Version 11 10 to Version 11 50 Migrating Non in place migration The process of switching over your environment from one computer to 1 2 IBM Informix Migration Guide another This type of migration requires more planning and setup time compared to upgrading on your existing computer Non in place migration requires that you modify and copy the database schema user data and user objects from one server to another server Use this type of migra
115. d utility then loads it with data from an input tape or disk file that the onunload utility creates During the load you can move simple large objects that are stored in a blobspace to another blobspace Syntax of the onunload command The onunload command unloads data from a database and writes a database or table into a file on tape or disk gt gt onunload database gt 1 Destination Parameters gt gt lt T table V owner version Notes 1 See onunload destination parameters on page 13 4 Element Purpose Key Considerations database Specifies the name of a Additional Information The database name cannot be qualified by a database database server name database dbservername References Syntax must conform to the Identifier segment see the IBM Informix Guide to SQL Syntax Chapter 13 The onunload and onload utilities 13 3 Element Purpose Key Considerations owner Specifies the owner of the Additional Information The owner name must not include invalid table characters References For path name syntax see your operating system documentation table Specifies the name of the table Requirement The table must exist References Syntax must conform to the Table Name segment see the IBM Informix Guide to SQL Syntax If you do not specify any destination parameter options onunload uses the device that TAPEDEV sp
116. d in the server for example through the install_jar support function then you must remove the old JAR file using remove_jar support function and re install the re compiled JAR file in the database Reinstall and start the earlier database server Reinstall and configure the earlier database server Refer to the instructions in your IBM Informix Installation Guide and your IBM Informix Dynamic Server Administrator s Guide 7 12 IBM Informix Migration Guide Run the oninit s command to start the earlier database server in quiescent mode Do not use the oninit i command Optionally update statistics on your tables after reverting Optionally run UPDATE STATISTICS on your tables not system catalog tables and on UDRs that perform queries if you have performance problems after reverting to the previous version of the database server or to a database server on a different operating system An unqualified UPDATE STATISTICS statement that does not specify a table and column scope clause and a resolution clause updates all tables and all UDRs that are written in SPL You do not need to run UPDATE STATISTICS statements on C or Java UDRs Update statistics on some system catalog tables after reverting After a successful reversion you must run UPDATE STATISTICS on some of the system catalog tables in your databases when the database server starts For reversion to a 7 31 database server from Dynamic Server Version 11 50 run
117. d restore operations when the scope is not the whole system 10 0 IFX_EXTDIRECTIVES A client side external optimizer directive to use as a temporary solution to problems when you do not want to change SQL statements in queries 10 0 IFX_NO_TIMELIMIT_ WARNING Supports time limited license 10 0 10 0 IFX_ONPLOAD_AUTO_ UPGRADE STDIO Automatically upgrades the onpload database the first time you start the HPL utility with the ipload or onpladm command after you migrate to a new database server version A TAPEDEV configuration parameter variable that improves the speed of high availability cluster setup 9 40 CDR_LOGDELTA Determines when spooling of the Enterprise Replication queue occurs based on the percentage of the logical log size Use as directed by Technical Support 9 40 CDR_PERFLOG Enables Enterprise Replication queue tracing Use as directed by Technical Support 9 40 CDR_ROUTER Determines whether intermediate processing for Enterprise Replication is allowed in a hierarchal topology Use as directed by Technical Support 9 40 CDR_RMSCALEFACT Sets the maximum number of Enterprise Replication DataSync threads per CPU VP Use as directed by Technical Support 9 40 USETABLENAME Disallows the use of a synonym of the table in certain SQL statements 9 30 IFX_DEF_TABLE_LOCKMODE Specifies the default lock mode for database tables 9 21
118. d the free space available These statements return the free space calculation in page size units The free_space_req column value is the free space requirement and the free_space_avail column value is the free space available The following SQL statement shows how to determine the free space that each dbspace requires DATABASE sysmaster SELECT partdbsnum partnum dbspace_num trunc count 2000 free space req FROM sysdatabases GROUP BY 1 ORDER BY 1 The following SQL statement queries the syschunks table and displays the free space available for each dbspace SELECT dbsnum dbspace_num sum nfree free_space_avail FROM syschunks GROUP BY 1 ORDER BY 1 Important If less free space is available than the dbspace requires either move a table from the dbspace to another dbspace or add a chunk to the dbspace The dbspace estimates could be higher if you have an unusually large number of SPL routines or indexes in the database Configuring for recovery of restore point data in case an upgrade fails By default the CONVERSION_GUARD configuration parameter is enabled and a temporary directory is specified in the RESTORE_POINT_DIR configuration parameter These configuration parameters specify information that Dynamic Server can use if an upgrade fails You can change the default values of these configuration parameters before beginning an upgrade You can change the value of the CONVERSION_GUARD configuration parameter or the direct
119. data For the purpose of this example cust_address contains four columns the second of which is omitted from the column list The cust_sort table contains two columns FILE cust_loc_data city 1 15 state 16 17 area_cd 23 25 NULL xxx phone 23 34 NULL XXX XXX XXXX zip 18 22 state_area 16 17 23 25 INSERT INTO cust_address coll col3 col4 VALUES city state zip INSERT INTO cust_sort VALUES area_cd zip Syntax for the character position form The syntax for the character position form specifies information that includes the character position within a data row that starts a range of character positions and the character position that ends a range of character positions The following diagram shows the syntax of the character position FILE statement p gt gt FILE fi lename J Start NULL null sera Lengd Element Purpose Key Considerations end Indicates the character position within a data row that A hyphen must precede the end value ends a range of character positions fieldn Assigns a name to the data field that you are defining None with the range of character positions filename Specifies the name of the input file None null string Specifies the data value for which dbload must Must be a quoted string substitute a null value start Indicates the character position within a data row that None starts a range of characte
120. data you must be able to load it You can use dbload with named row types unnamed row types sets and lists Using the dbload utility with named row types The procedure for using the dbload utility with named row types is somewhat different than the procedure for using dbload with other complex data types because named row types are actually user defined data types Suppose you have a table named person that contains one column with a named row type Also suppose that the person_t named row type contains six fields name address city state zip and bdate Chapter 10 The dbload utility 10 13 10 14 The following syntax shows how to create the named row type and the table used in this example CREATE ROW TYPE person_t name VARCHAR 36 NOT NULL address VARCHAR 20 city VARCHAR 20 state CHAR 2 zip VARCHAR 9 bdate DATE CREATE TABLE person of TYPE person t To load data for a named row type or for any user defined data type 1 Use the UNLOAD statement to unload the table to an input file In this example the input file sees the named row type as six separate fields Brown James 13 First St San Francisco CA 94070 01 04 1940 Karen Smith 1820 Elm Ave 100 Fremont CA 94502 01 13 1983 2 Use the dbschema utility to capture the schema of the table and the row type You must use the dbschema u option to pick up the named row type dbschema d stores demo u person_t gt schema sql dbschema d stores
121. dbschema The dbschema command displays the SQL statements the schema that are necessary to replicate a specified table view or database The command also shows the distributions that the UPDATE STATISTICS statement creates Table Options 4 Database Options 1 gt lt ui all V Table options L version all 2 Synonyms Rai hd Privileges 3 Tables Views or Procedures 4 Table Name 5 Database options Roles 6 SS Notes 1 2 3 4 5 6 11 2 See User defined and complex data types Version 9 21 or later versions on page 11 5 seq seq all uence 7 d database Lx See Synonym creation on page 11 6 See Privileges on page 11 7 Laie See Table view or procedure creation on page 11 8 See the IBM Informix Guide to SQL Syntax See Role creation on page 11 9 IBM Informix Migration Guide Element Purpose Additional Information all Directs dbschema to include all the tables None or sequence objects in the database or all the user defined data types in the display of distributions d database Specifies the database or co server to References If you want to qualify the name of the which the schema applies The database database see the Database Name section
122. de would be added in a full application but it is not necessary to show it to describe the concept being discussed For detailed directions on using SQL statements for a particular application development tool or SQL API see the documentation for your product Additional documentation Documentation about IBM Informix products is available in various formats Introduction Xiii You can view search and print all of the product documentation from the information center on the Web at http publib boulder ibm com infocenter idshelp v115 index jsp For additional documentation about IBM Informix products including release notes machine notes and documentation notes go to the online product library page a ttp www bm com software data informix techdocs ht Alternatively you can access or install the product documentation from the Quick Start CD that is shipped with the product Compliance with Industry Standards IBM Informix products are compliant with various standards IBM Informix SQL based products are fully compliant with SQL 92 Entry Level published as ANSI X3 135 1992 which is identical to ISO 9075 1992 In addition many features of IBM Informix database servers comply with the SQL 92 Intermediate and Full Level and X Open SQL Common Applications Environment CAE standards The IBM Informix Geodetic DataBlade Module supports a subset of the data types from the Spatial Data Transfer Standard SDTS Fe
123. demo t person gt schema sql 3 Use DB Access to re create the person table in the new database For detailed steps see Use dbschema output as DB Access input on page 11 13 4 Create the dbload command file This dbload command file inserts two rows into the person table in the new database FILE person unl DELIMITER 6 INSERT INTO person This dbload example shows how to insert new data rows into the person table The number of rows in the INSERT statement and the dbload command file must match FILE person unl DELIMITER 6 INSERT INTO person VALUES Jones Richard 95 East Ave Philadelphia PA 19115 03 15 97 5 Run the dbload command dbload d newdb c uds_command 1 errlog Tip To find the number of fields in an unloaded table that contains a named row type count the number of fields between each vertical bar delimiter Using the dbload utility with unnamed row types You can use the dbload utility with unnamed row types which are created with the ROW constructor and define the type of a column or field In the following example the devtest table contains two columns with unnamed row types s_name and s_address The s_name column contains three fields f_name m_init and 1_ name The s_address column contains four fields street city state and zip CREATE TABLE devtest s_name ROW f_name varchar 20 m init char 1 1_name varchar 20 IBM Informix Migration Guide not null
124. deral Information Processing Standard 173 as referenced by the document Content Standard for Geospatial Metadata Federal Geographic Data Committee June 8 1994 FGDC Metadata Standard IBM Informix Dynamic Server IDS Enterprise Edition Version 11 50 is certified under the Common Criteria For more information refer to Common Criteria Certification Re uirements for IBM Informix D namic Server which is available at Syntax Diagrams Syntax diagrams use special components to describe the syntax for statements and commands Table 4 Syntax Diagram Components Component represented in PDF Component represented in HTML Meaning gt gt Seabed ee see eee Statement begins ene eee aes eee 5 Statement continues on next line Sa ee a Statement continues from previous line RG Wi gt lt Statement ends SELEGI lt ass SELECTS 2 22 Required item Dafnn oser Fo Optional item LOCAL PRE LOCAL xiv IBM Informix Migration Guide Table 4 Syntax Diagram Components continued Component represented in PDF Component represented in HTML Meaning Required item with choice FOR READ ONLY ALL Br Shasiccs ALL tass FE DISTINCT One and only one item must ai nl UNIQUE be present UNIQUE ee E EEEE a Optional items with choice FOR UPDATE FOR
125. disk SD servers stop them by issuing the onmode ky command c If you have an HDR secondary server stop it by issuing the onmode ky command 4 If you are migrating to pre 11 50 xC6 versions of Dynamic Server perform the following tasks on the primary server e If you have an HDR pair split the HDR pair by issuing the onmode d standard command e If you have RS servers delete the RS entries by issuing an onmode d delete RSS rss_server_name command 5 Stop the primary server by issuing the onmode ky command 6 On each server set the INFORMIXDIR environment variable to the full path name for the target installation 7 Ensure that all of the necessary configuration files are available in the target installation 8 Optional Enable quick reversion to a consistent restore point if the migration fails Do this by setting the CONVERSION_GUARD and RESTORE_POINT_DIR configuration parameters For more information see 9 Start the primary server by issuing an oninit command 10 Ensure that the conversion to the target server was successful and that the server is in multi user mode 11 Start the Connection Manager by issuing an oncmsm command Chapter 5 High availability cluster migration 5 3 12 If you are migrating from pre 11 10 versions of Dynamic Server and need SD secondary servers on the primary server in a shared disk cluster set the primary server by issuing the onmode d set SDS primary primary_server_name command
126. e Reverting with Enterprise Replication If you use Enterprise Replication you must complete additional replication related tasks when you revert from the new version of Dynamic Server During reversion to an earlier version of Dynamic Server with Enterprise Replication e Master replicates become standard replicates and tables that were added to the sysscdr database are removed e Tables created with templates are dropped e The table containing replicated table version information which was created during conversion is dropped The procedure for reverting to Dynamic Server 11 10 10 00 9 40 or 9 30 is slightly different than the procedure for reverting to Dynamic Server 9 21 or 7 31 To revert to Dynamic Server 7 31 the database server must be an Enterprise Replication root server the uppermost level in a hierarchically organized set of database servers Prerequisites Perform all reversion operations as user informix To revert to Dynamic Server 11 10 10 00 9 40 or 9 30 from Dynamic Server Version 11 50 with Enterprise Replication 1 Stop applications doing replicable transactions 2 You cannot revert if Enterprise Replication is in Alter mode so make sure Enterprise Replication is not in Alter Mode Use onstat g cat repls to see if Enterprise Replication is in Alter mode If it is in Alter mode change the mode 3 Delete shadow replicates 4 Make sure that control and TRG send queues are empty e Run onstat
127. e When you use dbschema and specify only the database name it is equivalent to using dbschema with all its options except for the hd and ss options In addition if Information Schema views were created for the database this schema is shown For example the following two commands are equivalent dbschema d stores_demo dbschema s all p all t all f all d stores demo SERIAL fields included in CREATE TABLE statements that dbschema displays do not specify a starting value New SERIAL fields created with the schema file have a starting value of 1 regardless of their starting value in the original database If this value is not acceptable you must modify the schema file Creating schemas for databases across a UNIX or Linux network The dbschema d option creates and displays the schema for databases on a UNIX or Linux network You can specify a database on any accessible non SE Informix database server The following command displays the schema for the stores_demo database on the finland database server on the UNIX or Linux system console dbschema d finland stores_demo Changing the owner of an object You can edit dbschema output to change the owner of a new object The dbschema utility uses the owner object convention when it generates any CREATE TABLE CREATE INDEX CREATE SYNONYM CREATE VIEW CREATE SEQUENCE CREATE PROCEDURE CREATE FUNCTION or GRANT statement and when it reproduces any unique referential or check
128. e San Jose CA 95141 1003 USA Such information may be available subject to appropriate terms and conditions including in some cases payment of a fee The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement IBM International Program License Agreement or any equivalent agreement between us Any performance data contained herein was determined in a controlled environment Therefore the results obtained in other operating environments may vary significantly Some measurements may have been made on development level systems and there is no guarantee that these measurements will be the same on generally available systems Furthermore some measurements may have been estimated through extrapolation Actual results may vary Users of this document should verify the applicable data for their specific environment Information concerning non IBM products was obtained from the suppliers of those products their published announcements or other publicly available sources IBM has not tested those products and cannot confirm the accuracy of performance compatibility or any other claims related to non IBM products Questions on the capabilities of non IBM products should be addressed to the suppliers of those products All statements regarding IBM s future direction or intent are subject to change or withdrawal without notice and represent goals and obje
129. e product and platform markup Feature product and platform markup identifies paragraphs that contain feature specific product specific or platform specific information Some examples of this markup follow Dynamic Server only Identifies information that is specific to IBM Informix Dynamic Server Windows only Identifies information that is specific to the Windows operating system This markup can apply to one or more paragraphs within a section When an entire section applies to a particular product or platform this is noted as part of the heading text for example Table Sorting Windows Example code conventions Examples of SQL code occur throughout this publication Except as noted the code is not specific to any single IBM Informix application development tool If only SQL statements are listed in the example they are not delimited by semicolons For instance you might see the code in the following example CONNECT TO stores_demo DELETE FROM customer WHERE customer_num 121 COMMIT WORK DISCONNECT CURRENT To use this SQL code for a specific product you must apply the syntax rules for that product For example if you are using an SQL API you must use EXEC SQL at the start of each statement and a semicolon or other appropriate delimiter at the end of the statement If you are using DB Access you must delimit multiple statements with semicolons Tip Ellipsis points in a code example indicate that more co
130. e unbuffered or buffered logging e Specify the dbspace where the database will reside Attention When you import a database use the same environment variable settings that were used when the database was created or you might get unexpected results If any fragmentation expressions check constraints triggers or user defined routines were created with different settings than you use with dbimport you cannot reproduce the database accurately with a single import Copyright IBM Corp 1996 2010 9 1 If the date context during import is not the same as when these objects were created you might get explicit errors or you might not be able to find your data or a check constraint might not work as expected Many of these problems do not generate errors The date context for an object includes the date the object was created the values of the DBCENTURY and DBDATE environment variables and some other environment variables To avoid such problems with the date context use four digit dates in all cases The dbexport utility uncompresses compressed data Therefore if your database contains tables or fragments with compressed data you must re enable compression and recompress after you use the dbimport utility to import the data Do this because the dbexport utility uncompresses compressed data For more information see the IBM Informix Dynamic Server Administrator s Guide You cannot use the dbimport utility on servers in high availability
131. e SET EXPLAIN statement of SQL or the onmode Y session_id command can display 11 10 LOG_INDEX_BUILDS Enables or disables index page logging Index page logging is required when using RS secondary servers 11 10 MAX_FILL_DATA_PAGES Enables the database server to insert more rows per page into tables with variable length rows 11 10 PLCY_HASHSIZE Specifies the number of hash buckets in the cache that holds information about label based access control LBAC credentials for users 11 10 PLCY_POOLSIZE Specifies the maximum number of entries in each hash bucket of the security policy information cache 11 10 RESTORE_FILTER Specifies the path name of a restore filter program and any options that ON Bar uses Appendix B New configuration parameters B 3 Table B 1 New Configuration Parameters continued Version New Configuration Parameter Description 11 10 RTO_SERVER_RESTART Sets the amount of time in seconds that Dynamic Server has to recover from a problem after you restart Dynamic Server and bring the server into online or quiescent mode 11 10 SDS_ENABLE Enables the shared disk SD secondary server function 11 10 SDS_PAGING Specifies the location of two files that act as buffer paging files 11 10 SDS_TEMPDBS Specifies information that the SD secondary server uses to dynamically create temporary dbspaces when the SD se
132. e configuration parameters that the earlier database server does not support You might also need to adjust the values of existing configuration parameters For a list of new configuration parameters by server version see Appendix B New configuration parameters on page B 1 Restore original environment variables Reset the environment variables to values that are appropriate for the earlier database server Remove any Communications Support Module settings If your Dynamic Server Version 11 50 instance used CSMs edit the sqlhosts file to remove any csm option settings that are not supported in the older database server If you do not do this the older database server will return an invalid sqlhosts options error You must also delete the concsm cfg file if the older database server does not support CSMs Recompile any Java UDRs that were compiled using JDK 5 0 After you revert and before you start the earlier sever recompile JAVA UDRs that were compiled using Version 5 0 of the Java Development Kit JDK with a JDK version that is earlier than or equal to the version included with the earlier server What you do depends on whether your application uses external JAR and class files or JAR files installed on the server e If your application uses external JAR and class files for example JAR and class files that are listed in JVPCLASSPATH just recompile the files e If your application uses JAR files installe
133. e data Important Do not use INSERT and SELECT statements to move data if the database contains BLOB data types Prerequisites A network connection must exist between database server instances To move data using INSERT and SELECT statements with fully qualified table names 1 Capture the complete database schema from the source database server 2 Alter the extent sizing and if necessary the lock modes on tables from page to row 3 Create and verify the schema on the target database server 4 Disable logging on both source and target servers where necessary 5 Create and run the following scripts a Create and run separate scripts for e Disabling select triggers on the source server e Disabling indexes triggers and constraints for each table on the target database server b Create and run one script per table for the fully qualified INSERT and SELECT statements For example INSERT INTO dbname target owner table SELECT FROM dbname source owner table Chapter 2 Overview of moving data 2 7 2 8 9 10 You can run the scripts in parallel In addition for larger tables you can create multiple scripts that can partition the table to run in parallel c Create and run separate scripts for enabling indexes triggers and constraints for each table Run UPDATE STATISTICS on system catalog tables and stored procedures and functions on the target database server Adjust starting values for all tables that have s
134. e the last transaction If dbload exceeds the bad row limit and the p option is not specified dbload commits all rows that were inserted since the last transaction Termination of the dbload utility If you press your Interrupt key dbload terminates and discards any new rows that were inserted but not yet committed to the database if the database has transactions Name and object guidelines for the dbload utility You must follow guidelines for specifying network names and handling simple large objects indexes and delimited identifiers when you use the dbload utility Table 10 1 Name and Object Guidelines for the dbload Utility Objects Guideline Network names If you are on a network include the database server name and directory path with the database name to specify a database on another database server IBM Informix Migration Guide Table 10 1 Name and Object Guidelines for the dbload Utility continued Objects Guideline Simple large objects You can load simple large objects with the dbload utility as long as the simple large objects are in text files Indexes The presence of indexes greatly affects the speed with which the dbload utility loads data For best performance drop any indexes on the tables that receive the data before you run dbload You can create new indexes after dbload has finished Delimited identifiers You can use delimited identifiers with the dbload utility The utility de
135. ecifies The block size and tape size are the values specified as TAPEBLK and TAPESIZE respectively For information about TAPEDEV TAPEBLK and TAPESIZE see your IBM Informix Dynamic Server Administrator s Reference The V option displays the software version number and the serial number The version option extends the V option to display additional information on the build operating system build number and build date onunload destination parameters The onunload utility supports tape or file destination options The following syntax diagram fragment shows onunload destination parameters Destination parameters 1 t b blocksize s tapesize t source Notes 1 Only one occurrence of each option allowed More than one option can occur in a single invocation Element Purpose Key Considerations b blocksize Specifies in kilobytes the block size of the Requirement The blocksize must be an integer tape device Additional Information This option overrides the default value in TAPEBLK or LTAPEBLK l Directs onunload to read the values for None tape device block size and tape size from LTAPEDEV LTAPEBLK and LTAPESIZE respectively 13 4 IBM Informix Migration Guide Element Purpose Key Considerations s tapesize Specifies in kilobytes the amount of data that can be stored on the tape Requirement The tapesize must be an integer To write to
136. ed the new features of Version 11 50 reversion time is longer because you must prepare your database and data for reversion and you must remove the features that are not supported in the earlier version of the server The more work ou complete in the new version the more time consuming the reversion See Preparing to revert before you revert If you did not use any of the new features of Version 11 50 and you did not complete much work using the new server you can run the reversion utility and modify the values of the configuration parameters cel Reverine from Dyramid Preparing to revert Preparing for reversion includes ascertaining that reversion is possible backing up Version 11 50 and removing new features and objects that are not supported in your original database server Prerequisites Before you revert e Read the release notes and the machine notes for new information To prepare to revert to your source database server 1 Review the database schema to ascertain that reversion is possible and identify reversion requirements See Ascertain that reversion is possible and identify reversion requirements on page 7 2 2 Check and configure available space See Check and configure available space for reversion on page 7 8 3 Save copies of the current configuration files See Save copies of the current configuration files on page 7 9 4 Save system catalog information See Save system catalog in
137. ee elements Karen Lauren and Andrea whereas the second set contains four elements The SET constructor precedes each SET data row Muriel1 5555 SW Merry Sailing Dr 02 06 1926 SET Karen Lauren Andrea Larry 1234 Indian Lane 07 31 1927 SET Martha Melissa Craig Larry This dbload example shows how to insert data that contains SET data types into the employee table in the new database Put double quotes around each SET data type or the insert does not work FILE employee unl DELIMITER 4 INSERT INTO employee VALUES Marvin 10734 Pardee 06 17 27 SET Joe Ann LIST data type example The LIST data type is a collection type that stores ordered non unique elements that is it allows duplicate element values Chapter 10 The dbload utility 10 15 10 16 The following statement creates a table in which the month_sales column is defined as a LIST CREATE TABLE sales_person name CHAR 30 month_sales LIST MONEY NOT NULL The data from the sales_person table is unloaded into the sales unl file Each data row contains two delimited fields as follows Jane Doe LIST 4 00 20 45 000 99 Big Earner LIST 0000 00 00000 00 999 99 This dbload example shows how to insert data that contains LIST data types into the sales_person table in the new database Put double quotes around each LIST data type or the insert does not work FILE sales_person un DELIMITER 2 INSERT INTO sa
138. eives the new data None owner Specifies the user name of the table owner None table Specifies the table that receives the new data None Users who run dbload with this command file must have the Insert privilege on the named table How to write a dbload command file in delimiter form Command files must contain required elements including delimiters The FILE statement in the following example describes the stock unl data rows as composed of six fields each separated by a vertical bar as the delimiter FILE stock unl DELIMITER 6 INSERT INTO stock Two consecutive delimiters define a null field As a precaution you can place a delimiter immediately before the new line character that marks the end of each data row If the last field of a data row has data you must use a delimiter If you omit this delimiter an error results Compare the FILE statement with the data rows in the following example which appear in the input file stock unl Because the last field is not followed by a delimiter an error results if any data row ends with an empty field 1 SMT baseball gloves 450 00 case 10 gloves case 2 HRO baseball 126 00 case 24 case 3 SHK baseball bat 240 00 case 12 case The example INSERT statement contains only the required elements Because the column list is omitted the INSERT statement implies that values are to be inserted into every field in the stock table Because the VALUES clause is omitted the INSERT sta
139. ement in MEDIUM or HIGH mode to create distribution information on tables that have the following types of indexes e Virtual Index Interface VII or function indexes e Indexes on columns of user defined data types e Indexes on columns of built in opaque data types such as BOOLEAN or LVARCHAR Output from the dbschema utility shows distribution information if you used the SAMPLING SIZE keywords when UPDATE STATISTICS in MEDIUM or HIGH mode ran on the table For information about using the UPDATE STATISTICS statement see the IBM Informix Guide to SQL Syntax The output of dbschema for distributions is provided in the following parts e Distribution description e Distribution information e Overflow information IBM Informix Migration Guide Each section of dbschema output is explained in the following sections As an example the discussion uses the following distribution for the fictional table called invoices This table contains 165 rows including duplicates You can generate the output for this discussion with a call to dbschema that is similar to the following example dbschema hd invoices d pubs_stores_demo Example of dbschema output showing distribution information The dbschema output can show the data distributions that have been created for the specified table and the date when the UPDATE STATISTICS statement that generated the distributions ran The follow example of dbschema output shows distribution informatio
140. emoved superseded by the VPCLASS configuration parameter 9 30 AFF_SPROC Superseded by the VPCLASS configuration parameter 9 30 CDR_LOGBUFFERS Removed 9 30 CDR_LOGDELTA Removed 9 30 CDR_NIFRETRY Removed 9 30 CDR_NUMCONNECT Removed 9 30 JVPJAVAHOME New default location for the JRE 9 30 JVPJAVALIB New default value that is platform dependent 9 30 JVPJAVAVM New default value that is platform dependent 9 30 LBU_PRESERVE Removed configured an obsolete utility 9 30 LOGSMAX Removed 9 30 NOAGE Superseded by the VPCLASS configuration parameter 9 30 NUMAIOVPS Removed superseded by the VPCLASS configuration parameter 9 30 NUMCPUVPS Superseded by the VPCLASS configuration parameter Appendix C Configuration parameters that have been changed or removed C 7 C 8 IBM Informix Migration Guide Appendix D New keywords of SQL Each version of Dynamic Server supports new SQL keywords that are reserved words and might affect migration of your applications Although you can use almost any word as an SQL identifier syntactic ambiguities might occur if you use an SQL reserved word An ambiguous statement might not produce the results you want The following table shows a list of new keywords of SQL in Dynamic Server For a complete list of these words see the IBM Informix Guide to SQL Syntax Table D 1 New Keywords of SQL Dynamic Server Version Reserved Words Version 11 50xC6 BLOBDIR CLOB
141. ent user connections to the server b Force a checkpoint by issuing an onmode c command on the primary server 3 Stop secondary servers in the cluster in the following order a If you have remote standalone RS servers stop them by issuing the onmode ky command b If you have shared disk SD servers stop them by issuing the onmode ky command c If you have an HDR secondary server stop it issuing the onmode ky command 4 Stop the primary server by issuing the onmode ky command 5 On each server set the INFORMIXDIR environment variable to the full path name for the target installation 6 Ensure that all of the necessary configuration files are available in the target installation 7 Start the servers in the cluster and perform additional tasks in the following order Start the primary server by running an oninit command Wait for primary server to be in online multi user mode Start the HDR secondary server by running an oninit command a b c Start the Connection Manager by running an oncmsm command d e Start SD servers by running an oninit command f Start RS servers by running an oninit command Migrating clusters to a new release 5 2 If you have a high availability cluster with one or more secondary database servers and are migrating to a new release or if you are upgrading to a new PID or fix pack that requires you to complete standard conversion procedures you must complete addi
142. ent variable only when necessary to fix a security flaw in your Dynamic Server installation 11 50xC4 ONINIT_STDOUT Windows Captures the output of the oninit command on Windows systems 11 50xC3 IFX_LOB_XFERSIZE Provides error checking when transmitting large CLOB or BLOB data types from clients to the database server 11 50xC3 CDR_DISABLE_SPOOL Prevents the generation of ATS and RIS files 11 50xC3 CDR_ATSRISNAME_DELIM Sets the delimiter for the timestamp portion of the ATS and RIS file names 11 50xC3 IFX_NOT_STRICT THOUS SEP Removes enforcement of the restriction that three digits must exist after the thousand separator Copyright IBM Corp 1996 2010 A 1 A 2 Table A 1 New Environment Variables continued Version Environment Variable Description 11 10 IFX_AUTO_REPREPARE Controls whether Dynamic Server automatically recompiles prepared objects and reoptimizes SPL routines that reference tables whose schemas change Enabling the IFX_AUTO_REPREPARE session environment variable can avoid many 710 errors and can reduce the number of manual reprepare and reoptimize operations after the schema of a table is modified 11 10 IFX_NODBPROC An environment variable that enables or prevents the execution of a sysdbopen or sysdbclose procedure 10 00xC4 BAR_SORT_DBS A variable used only in Version 10 00xc4 and later Version 10 00 fix packs for backup an
143. er to a 64 bit version of Dynamic Server or reverting from a 64 bit version of Dynamic Server you might need to follow additional steps to update certain internal tables These steps are documented in the platform specific machine notes that are provided with your database server For 32 to 64 bit migrations change SHMBASE and STACKSIZE according to the onconfig std configuration file for the new version All UDRs and DataBlade modules that were built in 32 bit mode must be recompiled in 64 bit mode because they will not work with the 64 bit database server If you have any UDRs that were developed in 32 bit mode make sure that proper size and alignment of the data structures are used to work correctly on a 64 bit computer after recompiling in 64 bit mode For more information refer to the machine notes IBM Informix Migration Guide Chapter 4 Enterprise Replication and migration You must coordinate the migration of all servers that are involved in data replication These topics describe the additional tasks that you must perform when migrating to and reverting from Dynamic Server Version 11 50 if you are running Enterprise Replication The IBM Informix Dynamic Server Express Edition does not support Enterprise Replication If you are migrating to the Express Edition and you currently use Enterprise Replication see Express Edition migration and Enterprise Replication lon page 4 4 Preparing to migrate with Enterpri
144. erial columns on the target database server Turn on transaction logging on the source and target database servers Return the source and target database servers to multi user mode Validate the data that was transferred to the target database server For information on INSERT and SELECT statements refer to the IBM Informix Guide to SQL Syntax For information on distributed transactions refer to the IBM Informix Dynamic Server Administrator s Guide and the IBM Informix Dynamic Server Administrator s Reference IBM Informix Migration Guide Part 2 Migration to and reversion from Version 11 50 Copyright IBM Corp 1996 2010 IBM Informix Migration Guide Chapter 3 Preparing for migration to Dynamic Server Version 11 50 Before you install the new version of Dynamic Server you must prepare the database server environment for migration by performing specified pre migration tasks If you are also migrating from 32 bit to 64 Bit database servers you must perform additional tasks Preparing for migration Preparing for migration includes gathering information about and backing up your data so that you can reinstall the previous version of the server and restore your data if you have a migration problem Prerequisites e Check the release notes for information about the new version of Dynamic Server Also refer to the following topics in this guide Appendix A New environment variables on page A 1 e C
145. erver A and tries to load data into a German locale GLS table on server B onload reports errors IBM Informix Migration Guide If the page sizes are different onload fails If the alignment or numeric data types on the two computers are different for example with the most significant byte as last instead of first or different float type representations the contents of the data page could be misinterpreted How the onunload and onload utilities work The onunload utility which unloads data from a database writes a database or table into a file on tape or disk The onload utility loads data that was created with the onunload command into the database server The onunload utility unloads the data in binary form in disk page units making this utility more efficient than dbexport You can use the onunload utility to move data between computers that have the same version of the database server Important You cannot use the onload and onunload utilities to move data from one version of a database server to another or between different types of database servers In addition the onload command must have the same scope as the corresponding onunload command that unloaded the same table or tables that onload references You cannot for example use onunload to unload an entire database and then use onload to load only a subset of the tables from that database The onload utility creates a database or table in a specified dbspace The onloa
146. evice where the root chunk will be located For information on space req uirements for D amic Server Version 11 50 see Save copies of the current configuration files Save copies of the ONCONFIG and concsm cfg files for when you migrate to Dynamic Server Version 11 50 again Dynamic Server uses the concsm cfg file to configure CSMs Save system catalog information If your current database server instance uses secure auditing masks or external spaces and you want to preserve the associated catalog information you must unload these system catalog tables before you revert Run the following command to unload the system catalog tables INFORMIXDIR etc smi_unld When the smi_unld utility finishes unloading the information the utility displays instructions for reloading the information Save these instructions After you complete the reversion and bring up your database server you can reload the data that you preserved Follow the instructions given with the smi_unld utility for reloading the information Typically you run the following command INFORMIXDIR etc smi_load INFORMIXDIR etc Verify the integrity of the Version 11 50 data Verify the integrity of your Version 11 50 data if you did not do this after you migrated To verify the integrity of your data run the following commands oncheck cI database_name oncheck cD database_name oncheck cr oncheck cc database_name If the oncheck utility finds any problems
147. fied data formats You usually use the LOAD statement with data that is prepared with an UNLOAD statement You can use the UNLOAD statement in DB Access to unload selected rows from a table into a text file The UNLOAD statement lets you manipulate the data as you unload it but it requires that you unload to files on disk instead of to tape If you unload to disk files you might need to use UNIX Linux or Windows utilities to load those files onto tape To load tables use LOAD or dbload To manipulate a data file that you are loading or to access a database while it is loading use the dbload utility The cost of the flexibility is the time you spend creating the dbload command file and slower execution When possible use the LOAD statement which is faster than dbload If the database contains label based access control LBAC objects you can load or unload only those rows in which your security label dominates the column security label or the row security label If entire table is to be loaded or unloaded you must have the necessary LBAC credentials for writing reading all of the labeled rows and columns For more information on LBAC objects see the IBM Informix Security Guide and the IBM Informix Guide to SQL Syntax Related reference Data migration tools on page 2 1 Syntax of the UNLOAD statement The UNLOAD statement in DB Access unloads selected rows from a table into a text file 1 gt gt UNLOAD TO
148. file If you change the number of rows in the unload file but not the number of rows in the schema file a mismatch occurs Attention Do not delete any comments in the schema file and do not change any existing comments or add any new comments If you change or add comments the dbimport utility might stop or produce unpredictable results If you delete rows from an unload file update the comment in the schema file with the correct number of rows in the unload file Then dbimport will be successful Syntax of the dbimport command The dbimport command imports previously exported data into another database gt gt dbimport gt 9 6 IBM Informix Migration Guide mag L_x Notes 1 2 Input File Location m Create Options database gt lt V L version 1 See dbimport input file location options on 2 See dbimport create options on page 9 10 Element Purpose Key Considerations C Completes importing data even when References For more information see certain nonfatal errors occur q Suppresses the display of error messages None warnings and generated SQL data definition statements V Displays the software version number and None the serial number version Extends the V option to display additional None information on the build operating system build number and build date X Recognizes HEX binary data in character None fields
149. footnote is on page Z 1 If this was an actual cross reference you would find this segment in on the first page of Appendix Z Instead this segment is shown in the following segment diagram Notice that the diagram uses segment start and end components Setting the run mode I ToT LS Gd p a To see how to construct a command correctly start at the top left of the main diagram Follow the diagram to the right including the elements that you want The elements in this diagram are case sensitive because they illustrate utility syntax Other types of syntax such as SQL are not case sensitive The Creating a No Conversion Job diagram illustrates the following steps 1 Type onpladm create job and then the name of the job 2 Optionally type p and then the name of the project 3 Type the following required elements e n e d and the name of the device e D and the name of the database e t and the name of the table 4 Optionally you can choose one or more of the following elements and repeat them an arbitrary number of times e S and the server name e T and the target server name e The run mode To set the run mode follow the Setting the Run Mode segment diagram to type f optionally type d p or a and then optionally type l or u 5 Follow the diagram to the terminator Keywords and punctuation Keywords are words reserved for statements and all commands except system level commands
150. formation on Page 7 9 7 9 5 Verify the integrity of the data if you did not do this after you migrated See Verify the integrity of the Version 11 50 data on page 7 9 6 Back up Dynamic Server Version 11 50 See Back up Dynamic Server Version 11 50 on page 7 10 7 Export or save your data 8 Remove new features and any new in place alters that were created using Version 11 50 See Remove Version 11 50 features on page 7 10 9 Remove any new objects such as triggers or stored procedures that you created in the Version 11 50 database and that are not supported in the version Copyright IBM Corp 1996 2010 7 1 7 2 to which you are reverting Do not remove objects that you did not create such as the boot scripts boot90 sql and boot901 sql created in the system catalog because the reversion utility uses them 10 If you are reverting to the following versions drop indexes if necessary e Dynamic Server Version 7 3 You must drop any index with a key size that is greater than 254 e Dynamic Server Version 9 4 You must drop any index whose key size is greater than 390 The maximum key size in Versions Version 11 50 11 10 and 10 00 is 3200 11 If you ran BladeManager against_a Version 11 50 database remove an BladeManager extensions See Remove new BladeManager extensions on 12 If you use high availability clusters you must perform additional tasks See Reverting clusters
151. g ASCII files 2 6 binary data 13 1 13 2 data 2 1 2 5 2 6 Locking set by onload 13 11 LOG_INDEX_BUILDS B 3 LOG_STAGING_DIR configuration parameter B 1 Logical log backup 6 5 out of space 6 5 space required for Dynamic Server migration 3 3 LTAPEDEV configuration parameter onunload onload 13 11 M MAX_FILL_DATA_PAGES B 3 MAX_INCOMPLETE_CONNECTIONS configuration parameter B 5 Migrating between 32 bit and 64 bit database servers 3 10 between Dynamic Server editions 1 1 on the same computer 1 3 to a different computer 1 4 to Dynamic Server Express Edition 1 1 Migrating a database constraints 2 1 issues to consider 2 1 overview 2 1 prerequisites 2 1 to a new operating system 8 1 tools 2 1 2 5 Migrating with Enterprise Replication 4 1 Migration before you begin 3 1 checklist 3 9 diagnostic information that you need before upgrading 3 9 hardware prerequisites 1 5 in place 1 2 1 3 monitoring status with onlinelog 6 3 Migration continued Non in place 1 2 1 4 on Linux 1 9 on UNIX 1 8 on Windows 1 9 onload utility 13 3 onunload utility 13 3 paths 1 7 planning for 1 2 prerequisites 3 1 process 1 1 1 2 skills you need 1 1 software prerequisites 1 6 time it takes 1 1 tools 1 3 with Enterprise Replication 4 1 with HDR RS and SD servers 5 1 5 2 with high availability clusters 5 1 5 2 Mode checking 3 8 Monitoring migration status 6 3 Moving data automatically 2 1 blobspaces 13 11 constraints 2
152. g data are found V Displays the software version None number and the serial number version Extends the V option to display None additional information on the build operating system build number and build date X Recognizes HEX binary data in None character fields Tip If you specify part but not all of the required information dbload prompts you for additional specifications The database name command file and error log file are all required If you are missing all three options you receive an error message dbload Command Example The following command loads data into the stores_demo database in the turku directory on a database server called finland dbload d finland turku stores_demo c commands 1 errlog Table locking during a load operation The dbload k option overrides the default table lock mode during the load operation The k option instructs dbload to lock the tables in exclusive mode rather than shared mode If you do not specify the k option the tables specified in the command file are locked in shared mode When tables are locked in shared mode the database server still has to acquire exclusive row or page locks when it inserts rows into the table Chapter 10 The dbload utility 10 3 10 4 When you specify the k option the database server places an exclusive lock on the entire table The k option increases performance for large loads because the database server does not h
153. g grp to ensure that the Enterprise Replication grouper does not have any pending transactions e Run onstat g rqm to check for queued messages 5 Shut down Enterprise Replication with the following command cdr stop 6 Back up the syscdr databases with dbschema or UNLOAD 7 Run the reversion script named revcdr sh in the INFORMIXDIR etc conv directory on UNIX or revcdr bat in the YINFORMIXDIR etc conv directory on Windows as shown in this example sh revcdr sh 11 50 11 10 Valid to_version values are 11 10 10 00 9 40 and 9 30 This script does a reversion test followed by the actual Enterprise Replication reversion 8 If the reversion test or actual reversion fails check the file INFORMIXDIR etc revtestcdr out or revcdr out respectively Attempt reversion after resolving problems reported 9 Perform database server reversion tasks as described in Dynamic Server Version 11 50 on page 7 10 10 Run onmode l and onmode c If you do not do this after reversion and before starting Enterprise Replication the database server might fail when you start Enterprise Replication 11 Start Enterprise Replication cdr start Chapter 4 Enterprise Replication and migration 4 3 To revert to Dynamic Server 9 21 or 7 31 from Dynamic Server Version 11 50 with Enterprise Replication 1 Drop all replicate sets 2 Drop any replicate that contains a smart large object or user defined data type 3 Stop applications doing
154. ges made during a failed upgrade restoring files to the state they were in when you shut down the server gt gt onrestorept gt lt HIT Copyright IBM Corp 1996 2010 15 1 Element Purpose Key Considerations V Display the version of the current server and the software serial number C After a failed upgrade delete the Before you begin another upgrade you must delete files in the directory specified in these restore point files Do this before you make the RESTORE_POINT_DIR another migration attempt but not before your run the configuration parameter onrestorept utility to recover the files if possible If the upgrade was successful restore point files are automatically deleted and there is no need to run onrestorept c y Automatically display the response If you do not specify y you must respond to every y yes after every prompt that appears in the information that is displayed while the onrestorept command runs prompt Valid responses are y Y n or N For example if you do not specify y you can decide whether to proceed with the upgrade whenever the prompt 0K to proceed Y N appears Examples The following command restores Dynamic Server files after a failed upgrade onrestorept The following command removes restore point files after a failed upgrade onrestorept c 15 2 IBM Informix Migration Guide Part 5 Appendixes Copyrigh
155. hapter 9 The dbexport and aan utilities 9 1 Syntax of the dbexport command 9 2 Termination of the dbexport utility 9 4 dbexport errors 3 9 4 dbexport server specific information 9 4 dbexport destination options 9 4 Contents of the schema file that dbexport Gestes 9 6 Syntax of the dbimport command 9 6 Termination of the dbimport utility 9 8 dbimport errors and warnings 9 8 dbimport input file location options 9 8 dbimport create options 9 10 Database logging mode 9 10 Database renaming 9 11 Changing the database locale with dbimport 9 11 Simple large objects Version 9 21 or later versions 9 12 Chapter 10 The dbload utility 10 1 Syntax of the dbload command 10 2 Table locking during a load operation 10 3 Rows to ignore during a load operation 10 4 Bad row limit during a load operation 10 4 Termination of the dbload utility 10 4 Name and object guidelines for the dbload utility 10 4 Command file for the dbload utility 10 5 Delimiter form of the FILE and INSERT statements 10 6 Character position form of the FILE and INSERT statements 10 9 Command file to load complex data types Version 9 21 or later versions 10 13 Using the dbload utility with named row types 10 13 Using the dbload utility with unnamed row types 10 14 Using the dbload utility with collection data types 10 15 Contents V Chapter 11 The dbschema utility Object modes and violation de
156. he column permits nulls Consider the following INSERT statement INSERT INTO cust_sort VALUES area_cd zip This INSERT statement inserts the following data rows into the cust_sort table Column Values from Data Row 1 Values from Data Row 2 coll 408 null col2 94086 85253 Because no column list is provided dbload reads the names of all the columns in cust_sort from the system catalog You cannot insert data into a temporary table because temporary tables are not entered into the system catalog Field names from the previous FILE statement specify the values to load into each column You do not need one FILE statement for each INSERT statement Command file to load complex data types Version 9 21 or later versions You can create dbload command files that load columns containing complex data types into tables You can use dbload with the following data types e A BLOB or CLOB e A SET inside a ROW type The dbload utility does not work with the following data types e A CLOB or BLOB inside a ROW type e A ROW type inside a SET Important All the load utilities dbexport dbimport dbload onload onunload and onxfer rely on an export and import function If you do not define this function when you write a user defined data type you cannot use these utilities Loading a new data type inside another data type can cause problems if the representation of the data contains handles If a string represents the
157. he ipload utility does not support object names that contain more than 18 characters The utility will continue to operate properly if legacy applications do not use long object names Restoring to a previous consistent state after a failed upgrade If the CONVERSION_GUARD configuration parameter is enabled and an upgrade fails you can run the onrestorept command to undo the changes made during the upgrade and restore Dynamic Server to a consistent state 6 6 IBM Informix Migration Guide Prerequisites The directory specified in the RESTORE_POINT_DIR configuration parameter must be empty If any restore point files from a previous upgrade exist you must remove them before you begin an upgrade The server must be offline after a failed upgrade To restore the server to a previous consistent state after a failed upgrade 1 Run the onrestorept command Optionally use the y option if you want the utility to respond y yes to every prompt that appears while the onrestorept command runs If you do not specify y you must respond to every prompt that appears Valid responses are y Y n or N For example if you do not specify y you can decide whether to proceed with the upgrade whenever the prompt OK to proceed Y N appears V If the upgrade is successful run the onrestorept c command to remove the files in the directory specified in the RESTORE_POINT_DIR configuration parameter You can also run the onrestorept V co
158. heck the machine notes for information about the correct operating system release and any patches that you need for successful installation and operation of the database server e On UNIX or Linux plan to retain both versions of the IBM Informix product software on disk if you have enough disk resources so you can revert to the source version You cannot retain both servers e Check the setting of the GL_USEGLU environment variable The setting of GL_USEGLU must match between the source and target server during migration e If you use Enterprise Replication perform Enterprise Replication additional preparation tasks before you complete the tasks in this topic For more information see Chapter 4 Enterprise Replication and migration on e If the source version of the database server contains the IFX_EXTEND_ROLE configuration parameter which controls authorization to register DataBlade modules or external user defined routines UDRs disable the parameter by setting it to 0 off e If you are upgrading from Dynamic Server Version 9 21 and you have columns for smart large objects BLOB data types that were defined with a default value of an empty string you must redefine the columns to have NULL as the default value e If you are upgrading from Dynamic Server Version 7 3 you must drop all stored procedures that have embedded CREATE TRIGGER statements CREATE TABLE statements with fragmentation expressions ALTER TABLE or CREA
159. ied for user root on UNIX or Linux On Windows the install application suggests a default INFORMIXDIR directory which you can change by typing a different path You do not need to create the directory before installation If the installation program alerts you that the destination path is not secure you have several options for how to proceed For more information see the security information in the IBM Informix Dynamic Server Installation Guide for UNIX Linux and Mac OS X Important Monitor the database server message log online log for any error messages If you see an error message solve the problem before you continue the migration procedure Refer to your installation guide for detailed installation prerequisites options and procedures Refer to the IBM Informix Dynamic Server Administrator s Guide for additional information on configuring the new server Tips for Installing on the Server on Windows If you are installing on Windows 1 Be sure to choose to install to a different directory 2 Do not initialize the server when installing 3 Copy the ONCONFIG file to the target database server and set parameters that are new for the current release 4 Start the new server without initializing it See information on initializing and starting the database server in your IBM Informix Dynamic Server Installation Guide for Windows 5 Monitor the online log for the Conversion Successful message 6 Once the upgrade has c
160. igration path Any transaction that is open during the migration will cause an execution failure in fast recovery Verifying the integrity of the data After verifying that no open transactions exist verify the integrity of your data by running the oncheck utility You can also verify the integrity of the reserve pages extents system catalog tables data and indexes If you find any problems with the data fix the problems before you make a final backup of the source database server To obtain the database names use the following statements with DB Access DATABASE sysmaster SELECT name FROM sysdatabases Alternatively to obtain the database names run the oncheck cc command without any arguments and filter the result to remove unwanted lines as shown in this example oncheck cc grep ting database Table 3 2 lists the oncheck commands that verify the data integrity Table 3 2 Commands for verifying the data integrity Action oncheck Command Check reserve pages oncheck cr Check extents oncheck ce Check system catalog tables oncheck cc database_name Check data oncheck cD database_name Check indexes oncheck cl database_name Chapter 3 Preparing for migration to Dynamic Server Version 11 50 3 7 Verifying that the database server is in quiescent mode Before you make a final backup verify that your source database server is in quiescent mode Run the following command to verify that the dat
161. imary server by issuing an oninit command Start the Connection Manager by issuing an oncmsm command Start SD secondary servers by issuing oninit commands Back up all logs Then use ON Bar or ontape to make a level 0 backup on the primary server to use to reestablish the RS and HDR servers if necessary If you have RS secondary servers a Add RS entries on the primary server by issuing onmode d add RSS rss_server_name commands b Start the RS secondary servers with level 0 restore operations from the level 0 backup that was made on the primary server after reversion c On the RS secondary servers run the onmode d RSS primary_server_name command and wait for the RSS secondary server operational message to appear after each command Chapter 5 High availability cluster migration 5 5 12 If you have an HDR secondary server a Reestablish the HDR pair on the primary server by issuing an onmode d primary hdr_secondary_server_name command b Start the HDR secondary server with level 0 restore operations from the level 0 backup that was made on the primary server after reversion c On the HDR secondary server run the onmode d secondary primary_server_name command and wait for the HDR secondary server operational message to appear after each command The reversion of all servers in the cluster is now complete Restoring clusters to a consistent point You can restore the primary server in a high availability cluster t
162. in more than 2047 chunks 9 40 Key Length of B tree Indexes All indexes must be B tree indexes with a total key length less than or equal to 390 9 40 not applicable for 7 31 Maximum file size No files larger than 2 GB can be stored in or used by the database server 9 30 7 6 IBM Informix Migration Guide Table 7 2 Requirements and limitations when reverting to a specific version of the server continued Reversion Requirement or Limitation If reverting to this Server or Earlier Servers TAPESIZE and LTAPESIZE Limitation The TAPESIZE or LTAPESIZE configuration parameters cannot be set to 0 ALARMPROGRAM Limitation The ALARMPROGRAM configuration parameter cannot be set to the alarmprogram sh file 9 30 9 30 LRU_MAX_DIRTY and LRU_MIN_DIRTY Limitation If reverting set these configuration parameters to integers These configuration parameters were removed in Version 10 0 9 30 UDRs with IN or OUT Parameters UDRs must not use multiple IN or OUT parameters Drop all such UDRs before reversion 9 30 UDRs with Named Return Parameters UDRs and stored procedures must not use named return parameters 9 30 Sequence Objects Sequence objects must not be in use Drop all sequences before reversion 9 30 Triggers Created with the INSTEAD OF Clause Triggers created with the INSTEAD OF clause must not be in use Drop all such triggers before reversion 9 30 Multi
163. ined 9 1 destination options 9 4 Interrupt key 9 4 overview 9 1 schema output 9 6 syntax 9 2 dbimport utility c option 9 7 9 8 loption 9 11 q option 9 7 V option 9 7 version option 9 7 X option 9 7 create options 9 10 database logging mode 9 11 defined 9 1 importing from another computer 2 7 input file location options 9 8 Interrupt key 9 8 locale changing 9 11 overview 9 1 renaming a database 9 11 syntax 9 6 using with GLS 9 6 using with NLS 9 11 dbload utility c command file option 10 2 dbload utility continued d database option 10 2 e errors option 10 2 e option 10 4 i ignore rows option 10 2 i option 10 4 k option 10 2 l error log file option 10 2 p option 10 2 r option 10 2 10 3 s option 10 2 V option 10 2 version option 10 2 X option 10 2 compared to LOAD 10 1 creating a command file 10 5 dbload utility n commit interval option 10 2 FILE statement 10 5 guidelines for handling objects 10 4 ignoring rows 10 4 importing from another computer 2 7 INSERT statements 10 5 compared to SQL INSERT statement 10 10 using 10 6 Interrupt key 10 4 number errors to allow 10 4 overview 10 1 speed increasing 10 4 syntax 10 2 table locking 10 3 writing a command file in character position form 10 12 in delimiter form 10 8 dbschema utility ss option 11 5 u option 11 5 create schema across a network 11 4 create schema for a database 11 3 distribution information 11 10 ex
164. ined in the upgraded databases 9 30 9 30 New Fragment Expressions and Check Constraints New fragment expressions and check constraints must not exist in the databases To revert convert fragmented tables to nonfragmented tables by detaching fragment expressions You cannot use ALTER TABLE or ALTER INDEX statements to change fragment strategies that existed before the migration to Dynamic Server 9 40 9 30 item_nvarchar Limitation Reversion fails if for an index the value of item_nvarchar is 255 or higher 7 31 New Log Files If Dynamic Server uses a newly added log file you cannot reset the status of the file to newly added after reversion to the earlier database server 7 31 PER_STMT_EXEC or PER_STMT_PREP in a DataBlade module A DataBlade module that uses the PER_STMT_EXEC or PER_STMT_PREP memory duration cannot be used with the earlier database server 7 31 Chapter 7 Reverting from Dynamic Server Version 11 50 7 7 Table 7 2 Requirements and limitations when reverting to a specific version of the server continued Reversion Requirement or Limitation If reverting to this Server or Earlier Servers Select Triggers Select triggers must not be in use 7 31 User Defined Statistics User defined statistics must not be in use 7 31 Long Identifiers Long identifiers or long user names must not be in use Before reversion make sure that the R tree indexes do not
165. ion and describes the conventions it uses About this publication This publication describes how to migrate to a new version of IBM Informix Dynamic Server This publication also describes how to revert to the database server that you migrated from and how to move data manually between databases servers and computers This publication contains information on how to use the dbexport dbimport dbload dbschema onload and onunload data migration utilities and the LOAD and UNLOAD SQL statements This publication does not contain information on using the DSN data source name Migration Utility dsnmigrate exe to migrate from one version of CSDK to another For information on migrating DSN see the DSN Migration Utility section in the IBM Informix ODBC Driver Programmer s Manual For information about migrating to previous versions of IBM Informix database servers see the Migration Guide in the documentation set for that version of the server For information on the Informix client server environment read the IBM Informix Dynamic Server Getting Started Guide That book contains information on the differences between Informix database servers plus information on network and server configurations Migration includes conversion upgrading to a later version of a database server reversion to an earlier version of a database server and movement of data between databases database servers on the same operating system database
166. ion is more complicated than in place migration It requires more planning and it is more time consuming The non in place type of migration consists of these steps 1 Prepare your system That includes closing all transactions verifying the integrity of the data with oncheck and performing a level 0 backup If you are using Enterprise Replication or High Availability Data Replication stop replication 2 Install the new product on a new machine w Create a database with the current schema dbschema d dbname ss 4 Modify the schema for new extent allocations and lock mode changes If applicable modify schema for new dbspaces 5 Move data by using the appropriate utility or tool or by using distributed queries 6 Start the Dynamic Server Version 11 50 instance IBM Informix Migration Guide 7 After Dynamic Server migration upgrade applications before running them Also if you use Enterprise Replication or high availability clusters you must perform additional tasks The following illustration shows the differences between in place and non in place migration Prepare your system Not in place Install product on f Install product on current system AN another system Copy ONCONFIG file to Create database target and set parameters Start an instance of the new version If you have performance problems run UPDATE Move your data ul STATISTICS Start an instance of the new version
167. irectory with the server number as the subdirectory name If the CONVERSION_GUARD configuration parameter is set to 1 and an upgrade fails you can run the onrestorept utility to restore the Dynamic Server instance back to its original state just before the start of the upgrade If the CONVERSION_GUARD configuration parameter is set to 1 and conversion guard operations fail for example because the server has insufficient space to store restore point data the upgrade to the new version will also fail If any restore point files from a previous upgrade exist you must remove them before you begin an upgrade Even if you enable the CONVERSION_GUARD configuration parameter you should still make level 0 backup of your files in case you need to revert after a successful upgrade or in case a catastrophic error occurs and you cannot revert Saving copies of the current configuration files Save copies of the configuration files that exist for each instance of your source database server Keep the copies available in case you decide to use the files after migrating or you need to revert to the source database server Although you can use an old ONCONFIG configuration file with Dynamic Server Version 11 50 you should use the new Version 11 50 ONCONFIG file or at least examine the file for new parameters For information on Version 11 50 changes to the ONCONHIG file see Appendix C Configuration parameters that have been changed or removed
168. isites e Complete the steps in e Complete the steps in e Perform all migration operations as user informix Copyright IBM Corp 1996 2010 4 1 To migrate to a new version of Dynamic Server with Enterprise Replication 1 Perform the tasks described in Migrating to the new version of Dynamic including starting the new version of the server 2 If the CDR_QDATA_SBSPACE configuration parameter is not set set it in the ONCONFIG file to the sbspaces for Enterprise Replication to use for storing spooled row data 3 For each node involved in Enterprise Replication back up the syscdr databases by using the dbexport ss command or the dbschema ss command and the UNLOAD statement or by a combination of these methods The ss option prevents backup tables from using default extent sizes and row level locking which is not an appropriate lock mode with Enterprise Replication 4 Make sure that no replicable transactions occur before Enterprise Replication starts 5 If you are not upgrading between fix packs of one release run the conversion script named concdr sh in the INFORMIXDIR etc conv directory on UNIX or concdr bat in the INFORMIXDIR etc conv directory on Windows For example specify sh concdr sh from_version 11 50 Valid from_version values are 11 10 10 00 9 40 9 30 9 21 9 20 and 7 31 You do not need to run concdr sh between fix packs of the same release 6 Wait for one of the following messages
169. it the schema file to modify the schema of the database The schema file supports all data types for Dynamic Server 11 50 11 10 10 00 9 40 9 30 and 9 21 If you use the ss option the schema file contains server specific information such as initial and next extent sizes fragmentation information lock mode the dbspace where each table resides the blobspace where each simple large object column resides and the dbspace for smart large objects The following information is not retained e Logging mode of the database For information about logging modes see the IBM Informix Guide to SQL Reference e The starting values of SERIAL columns The statements in the schema file that create tables views indexes partition fragmented tables and indexes roles and grant privileges do so with the name of the user who originally created the database In this way the original owner retains DBA privileges for the database and is the owner of all the tables indexes and views In addition the person who runs the dbimport command also has DBA privileges for the database The schema file that dbexport creates contains comments enclosed in braces with information about the number of rows columns and indexes in tables and information about the unload files The dbimport utility uses the information in these comments to load the database The number of rows must match in the unload file and the corresponding unload comment in the schema
170. ith the ONCONFIG file that you used before you converted or you must remove configuration parameters that the earlier database server does not support Table B 1 lists the new configuration parameters in various versions of Dynamic Server All parameters are located in the ONCONFIG file unless otherwise noted For more information on the configuration parameters see the IBM Informix Dynamic Server Administrator s Reference and the IBM Informix Dynamic Server Administrator s Guide Table B 1 New Configuration Parameters Version New Configuration Parameter Description 11 50xC6 BATCHEDREAD_TABLE Enables or disables light scans on compressed tables tables with rows that are larger than a page and tables with any kind of data including VARCHAR LVARCHAR and NVARCHAR data 11 50xC6 CONVERSION GUARD Enables functionality for undoing changes made during an upgrade to a new version of the server and the upgrade fails 11 50xC6 RESTORE _POINT_DIR Specifies the path of the directory where all restore point files will be located if you are undoing changes made during an upgrade that failed The server will store restore point files in a subdirectory of the specified directory with the server number as the subdirectory name 11 50xC5 DELAY_APPLY Used to configure RS secondary servers to wait for a specified period of time before applying logs 11 50xC5 LOG_STAGING_DIR Specifies the location of log files receive
171. ivileges When you load a new database the user who runs the onload utility becomes the owner Ownership within the database tables views and indexes remains the same as when the database was unloaded to tape with onunload To load a table you must have the Resource privilege on the database When onload loads a new table the user who runs onload becomes the owner unless you specify an owner in the table name You need the DBA privilege for the database to specify an owner in the table name The onunload utility does not preserve synonyms or access privileges To obtain a listing of defined synonyms or access privileges use the dbschema utility which Chapter 11 The dbschema utility on page 11 1 describes before you run onunload Exclusive locking during a load operation During a load operation the onload utility places an exclusive lock on the new database or table 13 10 IBM Informix Migration Guide Loading proceeds as a single transaction and onload drops the new database or table if an error or system failure occurs Moving a database between computers with the onunload and onload utilities You can use the onunload and onload utilities to move a complete database from one computer to another To move a database from one computer to another 1 Make sure that the page size numeric representations and byte alignment on structures and unions are the same on both computers The page size is 2 KB on ce
172. l For information about any messages in the message log see the IBM Informix Dynamic Server Administrator s Guide Setting environment variables After you install the current version of Dynamic Server verify that the INFORMIXDIR INFORMIXSERVER ONCONFIG PATH and INFORMIXSQLHOSTS if used environment variables are set to the correct values On UNIX or Linux the client application looks for the sqlhosts file in the etc directory in the INFORMIXDIR directory However you can use the INFORMIXSQLHOSTS environment variable to change the location or name of the sqlhosts file The setting of the GL_USEGLU environment variable must match between the source and target server during migration Important Before you start the Version 11 50 database server you must set the DBONPLOAD environment variable to the name of the pload database if the name is not onpload the default name For information about environment variables see the IBM Informix Guide to SQL Reference Customizing configuration files When you initialize the new version of Dynamic Server use the same configuration that the old database server used After you observe the performance of new version use the new ONCONFIG file to obtain the benefits from the new or changed configuration parameters Alternatively you can examine the new file for new configuration parameters that you might want to use Set the ALARMPROGRAM configuration parameter to either nothing or
173. l syntax elements that have the same dotted decimal number for example all syntax elements that have the number 3 1 are mutually exclusive Copyright IBM Corp 1996 2010 G 1 G 2 alternatives If you hear the lines 3 1 USERID and 3 1 SYSTEMID your syntax can include either USERID or SYSTEMID but not both The dotted decimal numbering level denotes the level of nesting For example if a syntax element with dotted decimal number 3 is followed by a series of syntax elements with dotted decimal number 3 1 all the syntax elements numbered 3 1 are subordinate to the syntax element numbered 3 Certain words and symbols are used next to the dotted decimal numbers to add information about the syntax elements Occasionally these words and symbols might occur at the beginning of the element itself For ease of identification if the word or symbol is a part of the syntax element the word or symbol is preceded by the backslash character The symbol can be used next to a dotted decimal number to indicate that the syntax element repeats For example syntax element FILE with dotted decimal number 3 is read as 3 FILE Format 3 FILE indicates that syntax element FILE repeats Format 3 FILE indicates that syntax element FILE repeats Characters such as commas which are used to separate a string of syntax elements are shown in the syntax just before the items they separate These characters can appear on the same line as each item
174. le C 2 Configuration Parameters with New Default Values in the onconfig std File continued Configuration Parameter Previous Value New Value DRLOSTFOUND UNIX usr etc dr lostfound UNIX INFORMIXDIR etc dr lostfound Windows tmp Windows INFORMIXDIR tmp DUMPDIR UNIX usr informix tmp UNIX INFORMIXDIR tmp Windows Windows INFORMIXDIR tmp INFORMIXDIR tmp EXPLAIN_STAT 0 1 LISTEN_TIMEOUT 10 60 LOCKS 2000 20000 LOGBUFF 32 64 LOGSIZE 2000 10000 LTAPEDEV UNIX dev tapedev UNIX dev tapedev same as previous value Windows TAPE1 Windows NUL MIRRORPATH None UNIX INFORMIXDIR tmp demo_on root_mirror Windows none MSGPATH UNIX usr informix UNIX INFORMIXDIR online log tmp online log Windows online log Windows online log NETTYPE UNIX none UNIX ipeshm 1 50 CPU Windows Windows none onsoctcp drsoctcp 1 NET PHYSBUFF 32 128 PHYSFILE 2000 50000 RA_PAGES None 64 RA_THRESHOLD None 16 ROOTPATH UNIX dev online_root UNIX INFORMIXDIR tmp demo_on rootdbs Windows None Windows None ROOTSIZE 30000 200000 SHMVIRT_ALLOCSEG 0 0 3 SHMVIRTSIZE 8192 32656 SYSALARMPROGRAM UNIX usr informix etc UNIX INFORMIXDIR etc evidence sh Windows INFORMIXIDR etc evidence bat evidence sh Windows Commented out SYSALARMPROGRAM INFORMIXDIR etc evidence bat IBM Informix Migration Guide Table C 2 Configuration Parameters with
175. le is set to the correct database server UNIX Linux Only You must be user root or user informix to run onmode Windows Only You must be a member of the Informix Admin group to run onmode Syntax of the onmode b command The onmode b command restores your databases to the version of Dynamic Server from which you converted You cannot use this command to revert to any other version of the server The onmode b restores the databases in a format that is compatible with the earlier version of the server Copyright IBM Corp 1996 2010 14 1 gt gt onmode b 11 50 xC6 11 50 xC5 t 11 50 xC4 t 11 50 xC3 t 11 50 xC2 t 11 50 xC14 11 10 10 00 1 Other Options Notes 1 For all other onmode options see your IBM Informix Dynamic Server Administrator s Reference Element Purpose b 11 50 xC6 Changes the database to the Version 11 50 xC6 format b 11 50 xC5 Changes the database to the Version 11 50 xC5 format b 11 50 xC4 Changes the database to the Version 11 50 xC4 format b 11 50 xC3 Changes the database to the Version 11 50 xC3 format b 11 50 xC2 Changes the database to the Version 11 50 xC2 format b 11 50 xC1 Changes the database to the Version 11 50 xC1 format b 11 10 Changes the database to the Version 11 10 format b 10 00 Changes the database to the Version 10 00 format b 9 4 Changes the database to the Version 9
176. les between Version 7 31 and later versions Certain system catalog tables use data types that are not supported in Dynamic Server Version 7 31 Remote queries that issue a SELECT statement on these system catalog tables from Version 7 31 to later versions will fail For example the following queries that originate on Version 7 31 fail if you try to run them on a later version of the server SELECT x FROM dbname remoteserver sysindices SELECT FROM dbname remoteserver sysindexes Instead of using an asterisk as the Projection clause specify the required column names explicitly You cannot specify any columns that have user defined types Difference in sysindexes between Version 7 31 and later versions In Version 7 31 sysindexes is a table In Dynamic Server Version 11 50 11 10 10 0 9 40 9 30 and 9 21 sysindexes is a view The ALTER TABLE statement fails for sysindexes because this statement is not valid for altering a view E 6 IBM Informix Migration Guide Appendix F New and changed features Each version of Dynamic Server contains many new and changed features For descriptions of these changes see the IBM Informix Dynamic Server Getting Started Guide For information on new and changed features that affect migration see i i amic Server Version 11 50 on page x If you are migrating from a version of Dynamic Server that is earlier than Version 11 10 you need to know that e ADMIN_USER_MODE_WIT
177. les_person VALUES Jenny Chow 587900 600000 You can load multisets in a similar manner IBM Informix Migration Guide Chapter 11 The dbschema utility The dbschema utility displays the SQL statements the schema that are necessary to replicate a specified table view or database You can also use the dbschema utility for the following purposes e To display the distributions that the UPDATE STATISTICS statement creates e To display the schema for the Information Schema views e To display the distribution information that is stored for one or more tables in the database e To display information on user defined data types and row types After you obtain the schema of a database you can redirect the dbschema output to a file that you can use with DB Access You can use the dbschema utility on RS secondary servers only if the STOP_APPLY configuration parameter is set to 1 stop applying logs You cannot use the dbschema utility on HDR and SD secondary servers Attention Use of the dbschema utility can increment sequence objects in the database creating gaps in the generated numbers that might not be expected in applications that require serialized integers Related reference Data migration tools on page 2 1 Object modes and violation detection in dbschema output The output from the dbschema utility shows object modes and supports violation detection The dbschema output shows e The names of not
178. lity The following changes and enhancements are relevant to this publication For a comprehensive list of all new features for this release see the IBM Informix Dynamic Server Getting Started Guide Table 1 What s new for migration in Version 11 50xC6 Overview Reference Upgrading to a New Server or Fix pack When you upgrade to a new version of Dynamic Server or to a new fix pack you must follow the procedures that are described in this guide Likewise if you need to revert to the prior version of the server after successfully upgrading to a new version or new fix pack you must follow the reversion procedures that are described in this guide Quickly Reverting to Your Source Server After a Failed Upgrade If an upgrade to a new IDS version or fix pack fails use the new onrestorept utility to restore the server to a consistent pre upgrade state You can undo changes made during the upgrade in minutes and in some cases in seconds Previously if a fix pack upgrade failed you had to restore the database by using a level 0 archive The new CONVERSION_GUARD and RESTORE_POINT_DIR configuration parameters specify information that the onrestorept utility can use if an upgrade fails Chapter 15 The onrestorept utility on page 15 1 Configuring for recovery of restore point data in case an upgrade fails on page 3 4 Restoring to a previous consistent state after a failed upgrade on page
179. lly update statistics on your tables after reverting on page 7 13 8 Verify the integrity of the reverted data See Verify the integrity of the reverted data on page 7 13 9 Back up the target database server See Back up the database server after 10 Return the target database server to online mode See Return the database server to online mode on page 7 13 11 If you use high availability clusters perform additional tasks See Reverting clusters on page 5 4 If you are reverting to a version that is earlier than Version 11 10 the database server automatically drops the sysadmin database Attention When you revert to a previous version of the database server do not reinitialize the database server by using the i command line parameter Using the i parameter for reversion would reinitialize the root dbspace which would destroy your databases Run the reversion utility After preparing to revert run the reversion utility using an onmode b command Important You must revert to the version of Dynamic Server that was your source database before you migrated If you revert to a different version of the server you will corrupt data Dynamic Server Version 11 50 must be running when you run the reversion utility If the reversion utility detects and lists any remaining features that are specific to Dynamic Server Version 11 50 you must remove those features before reversion can complete
180. load command into the database server gt gt onload 1 Source Parameters d dbspace database a table V owner version 2 Create Options IBM Informix Migration Guide Notes 1 See onload source parameters 2 See onload create options on page 13 8 Element Purpose Key Considerations d dbspace Loads a database or table The tape being loaded must contain the specified database or table into the specified dbspace database Specifies the name of the The database name cannot include a database server name such as database database dbservername References Syntax must conform to the Identifier segment see the IBM Informix Guide to SQL Syntax owner Specifies the owner of the The owner name must not include invalid characters table References For path name syntax refer to your operating system documentation table Specifies the name of the The table must exist table References Syntax must conform to the Table Name segment see the IBM Informix Guide to SQL Syntax The V option displays the software version number and the serial number The version option extends the V option to display additional information on the build operating system build number and build date onload source parameters The onload command includes options for specifying information about the tape or file source The follo
181. mic Server 7 23 Dynamic Server 7 31 OnLine Dynamic Server 7 22 OnLine 5 1 or earlier versions Universal Server 9 14 Dynamic Server 9 30 or Figure 1 1 Migration paths to Dynamic Server version 11 50 If necessary you can revert to the server from which you upgraded You cannot revert to any other version of the server Migration paths on UNIX operating systems On UNIX operating systems you can migrate directly from specified newer versions of Dynamic Server to the newest version of the server The following table lists the source and target versions for the migration and reversion of database servers on UNIX You can migrate from the source versions shown in the first column to the target version shown in the second column Important If the target version is not Version 11 50 you must first migrate to one of the interim servers shown in the Target Version column before you can migrate to the current version IBM Informix Migration Guide Table 1 3 Source and target versions for migration and reversion on UNIX Source Version Target Version 11 10 Version 11 50 10 00 Version 11 50 9 40 9 30 9 21 Version 11 50 9 20 9 14 9 30 9 21 8 50 8 40 8 32 8 31 8 30 8 21 7 31 7 30 7 24 without Enterprise Replication 8 21 7 24 without Enterprise Replication 7 31 Version 11 50 7 30 10 0 9 40 7 31 7 24 without Enterprise replication 10 0 9 40 7 24 with Enterprise replication
182. mic Server Version 9 40 contains a new sysmaster database table In addition some tables contain a new collation column The following new system catalog table was added syssequences A new collation column has been added to the following system catalog tables sysconstraints sysindices sysprocplan systrigbody Changes for Dynamic Server 9 30 Some sysmaster database tables were removed from Dynamic Server Version 9 30 The following tables were deleted from the sysmaster database in Version 9 30 arc_ae_view arc_pendreq_view arc_server arc_version arc_db_file_view arc_phys_dev arc_rep_table arc_vol_lock_view arc_dbspace arc_dbspace_set arc_replicate arc_volume_view arc_vset arc_directory_view arc_req_vset_view arc_vset_user_view arc_file_view arc_request_view arc_vset_view arc_file_copy_view arc_save_set_view Column width changes in sysmaster tables in Version 9 20 and later versions Version 9 20 and later versions of Dynamic Server provide long identifiers All identifiers in the system catalog tables and the sysmaster database reflect these new limits on identifier length The IBM Informix Guide to SQL Syntax defines identifiers which specify the names of database objects The column widths for identifiers that refer to database objects and other identifiers changed from CHAR 18 to VARCHAR 128 0 in the following system catalog tables sysaggregates sysfragauth sysroutinelangs sysams sysfragments syssynonyms sys
183. mmand to display the version of the current server and the software serial number Example The following command restores files displaying prompts while the command runs onrestorept y After you run the onrestorept command you can resume work in the source version of the server find the problem that caused the failed upgrade or begin the upgrade again For more information see Chapter 15 The onrestorept utility on page 15 1 Completing required post migration tasks After you migrate you must complete a series of post migration tasks to prepare the new version of the server for use To complete post migration tasks 1 For ON Bar rename or edit the sm_versions std file For more information see For ON Bar rename the sm_versions std file on page 6 8 Optionally run UPDATE STATISTICS on your tables not system catalog tables and on UDRs that perform queries if you have performance problems after migrating For more information see Optionally update statistics on our tables after migrating on page 6 9 Run UPDATE STATISTICS on some system catalog tables Review client applications and registry keys For more information see Review client applications and regi 5 Verify the integrity of the data For more information see Verify the integri of migrated data on page 6 9 Chapter 6 Migrating to Dynamic Server Version 11 50 6 7 6 8 6 Make an initial backup of the ne
184. mplete you must recreate all HDR RS and SD secondary servers in a high availability cluster Prerequisites e Determine if you can revert See information in Ascertain that reversion is possible and identify reversion requirements on page 7 2 Complete the steps in Preparing to migrate upgrade or revert clusters on page 5 1 5 1 e Perform all reversion operations as user informix When you revert clusters be sure to stop and start the servers in the cluster in the order shown in the following procedure To revert high availability clusters 1 Stop the Connection Manager by issuing the oncmsm k connection_manager_name command 2 If you are using a High availability Data Replication HDR secondary server as a backup server in case of contingencies a Quiesce the primary server by issuing an onmode sy command to prevent user connections to the server b Force a checkpoint by issuing an onmode c command on the primary server 3 Stop the servers in the cluster and perform the following tasks in the following order a If you have remote standalone RS servers stop them by issuing the onmode ky command b If you have shared disk SD servers stop them by issuing the onmode ky command c If you have an High availability Data Replication HDR secondary server stop it by issuing the onmode ky command d If you are reverting from pre 11 50 xC6 versions of Dynamic Server perform the following t
185. mport create options The dbimport utility contains options for creating an ANSI compliant database specifying a dbspace for the database and defining logging options Create Options d dbspace ere ansi a Element Purpose Key Considerations ansi Creates an ANSI compliant database in Additional Information If you specify the ansi option which the ANSI rules for transaction you must also specify the l1 logfile option For more logging are enabled information about ANSI compliant databases see the IBM Informix Guide to SQL Reference d dbspace Specifies the dbspace where the database Additional Information For SE the database is always is created The default dbspace location is in the current directory the rootdbs l Establishes unbuffered transaction logging References For more information see for the imported database l buffered Establishes buffered transaction logging References For more information see for the imported database If you created a table or index fragment containing partitions in Dynamic Server Version 10 00 or a later version of the server you must use syntax containing the partition name when importing a database that contains multiple partitions within a single dbspace See the IBM Informix Guide to SQL Syntax for syntax details Example showing dbimport create options UNIX or Linux To import the stores_demo database f
186. n Distribution for cathl invoices invoice num High Mode 10 000000 Resolution DISTRIBUTION 5 1 16 7 11 2 16 6 17 3 16 8 25 4 16 8 38 5 16 7 52 6 16 8 73 7 16 12 95 8 16 123 139 9 16 11 182 10 10 5 200 OVERFLOW 1 5 56 2 6 63 Description of the distribution information in the example The first part of the sample dbschema output describes which data distributions have been created for the specified table The name of the table is stated in the following example Distribution for cathl invoices invoice num The output is for the invoices table which is owned by user cathl This data distribution describes the column invoice_num If a table has distributions that are built on more than one column dbschema lists the distributions for each column separately The dbschema output also shows the date when the UPDATE STATISTICS statement that generated the distributions ran You can use this date to tell how outdated your distributions are The last line of the description portion of the output describes the mode MEDIUM or HIGH in which the distributions were created and the resolution If you create the distributions with medium mode the confidence of the sample is also listed For example if the UPDATE STATISTICS statement runs in HIGH mode with a resolution of 10 the last line appears as the following example shows Chapter 11 The db
187. n a different operating system see the Version 7 31 or earlier Migration Guide installation information and release notes IBM Informix Migration Guide Adapting your programs for a different operating system When you change to a different operating system you must review and if necessary adjust your environment dependent configuration parameters and environment variables Certain database server configuration parameters and environment variables are environment dependent Additionally some Dynamic Server versions but not all versions support features such as Enterprise Replication GLS and ON Bar For example e Dynamic Server Versions 11 50 11 10 10 00 9 40 9 30 and 9 21 support Enterprise Replication e Dynamic Server 7 31 and 7 30 supports Enterprise Replication and uses Version 3 0 of IBM Informix Enterprise Command Center IECC e Workgroup Edition 7 31 and 7 30 on Windows supports GLS ON Bar Enterprise Replication and the Gateway products and uses Version 3 0 of IECC e Workgroup Edition 7 24 on UNIX supports GLS and uses Version 1 0 of IECC For details see the information on configuration parameters in the IBM Informix Dynamic Server Administrator s Guide and the IBM Informix Dynamic Server Administrator s Reference and the information on environment variables in the IBM Informix Dynamic Server Administrator s Guide and the IBM Informix Guide to SQL Reference Ensuring the successful creation of sys
188. n about simple large object simple large object descriptors only not descriptors see the IBM Informix Optical Subsystem Guide simple large object data Restrictions Not supported by SE q Suppresses the display of error None messages warnings and generated SQL data definition statements SS Generates database server specific References For details on this option see information for all tables in the specified server specific information on page 9 4 database si Excludes the generation of index storage References For details on this option see clauses for non fragmented tables server specific information on page 9 4 The si option is available only with the ss option X Recognizes HEX binary data in character None fields V Displays the software version number None and the serial number version Extends the V option to display None additional information on the build operating system build number and build date database Specifies the name of the database that Additional Information If your locale is set to use you want to export multibyte characters you can use multibyte characters for the database name References If you want to use more than the simple name of the database refer to the Database Name section of the IBM Informix Guide to SQL Syntax You must have DBA privileges or log in as user informix to export a database Global Language Support When the environment variables a
189. n at least ten percent free space when converting to the new version of the server In some cases even if the database server migration is successful internal conversion of some databases might fail because of insufficient space for system catalog tables For more information see the release notes for this version of Dynamic Server Add any additional free space to the system prior to the migration If the dbspaces are nearly full add space before you start the migration procedure When you start the new version of Dynamic Server on the same root dbspace of the earlier database server Dynamic Server automatically converts the sysmaster database and then each database individually For a successful conversion of each database ensure that 2000 KB of free space per database is available in each dbspace where a database resides To ensure enough free space is available 1 Calculate the amount of free space that each dbspace requires In the following equation n is the number of databases in the dbspace and X is the amount of free space they require X kilobytes free space 2000 kilobytes x n The minimum number of databases is 2 for the sysmaster and sysadmin databases 2 Check the amount of free space in each dbspace to determine whether you need to add more space Chapter 3 Preparing for migration to Dynamic Server Version 11 50 3 3 3 4 You can run SQL statements to determine the free space that each dbspace requires an
190. n choose one or none of them The symbol is equivalent to a bypass line in a railroad diagram Specifies a default syntax element A dotted decimal number followed by the symbol and a syntax element indicates that the syntax element is the default option for all syntax elements that share the same dotted decimal number Only one of the syntax elements that share the same dotted decimal number can specify a symbol For example if you hear the lines 2 FILE 2 1 KEEP and 2 1 DELETE you know that KEEP is the default option for the FILE keyword In this example if you include the FILE keyword but do not specify an option default option KEEP is applied A default option also applies to the next higher dotted decimal number In IBM Informix Migration Guide this example if the FILE keyword is omitted default FILE KEEP is used However if you hear the lines 2 FILE 2 1 2 1 1 KEEP and 2 1 1 DELETE the default option KEEP only applies to the next higher dotted decimal number 2 1 which does not have an associated keyword and does not apply to 2 FILE Nothing is used if the keyword FILE is omitted Specifies a syntax element that can be repeated zero or more times A dotted decimal number followed by the symbol indicates that this syntax element can be used zero or more times that is it is optional and can be repeated For example if you hear the line 5 1 data area you know that you can include more than one data
191. n is for the Express Edition a version with the letters DE means the version is for the Developer Edition For example in Dynamic Server Version 11 50 xC6 11 is the major release number 50 is the minor release number x means any platform C means GA release and 6 means fix pack 6 Paths for migration to the new version The new version of Dynamic Server is the superset of functions of all previous versions If you are migrating from e Dynamic Server Version 11 10 10 0 9 40 9 30 9 21 or 7 31 you can migrate directly to Dynamic Server Version 11 50 e Another database server version you must migrate to an earlier interim version of Dynamic Server before you migrate to the new version If you need to migrate to another version of Dynamic Server before you migrate to Version 11 50 see the Migration Guide that is included in the documentation set for that database server For example for information about migrating to Version 7 31 before migrating to Version 11 50 see the Version 7 31 Migration Guide You must follow the steps in that guide before you follow the instructions in the current guide for migrating to Version 11 50 Table 1 2 Migration paths for moving to a newer database server Source Database Server Target Database Server Reference Dynamic Server 11 10 You can migrate directly to IBM Informix Migration Dynamic Server Version 11 50 Guide Version 11 50 Dynamic Server 10 00 Dynamic Server 9 40 D
192. n of Dynamic Server was installed before you migrated or reverted 2 Using the level 0 backup archive perform a full restore of your primary server 3 Recreate the rest of your high availability cluster IBM Informix Migration Guide Restoring a cluster from the HDR secondary server You can restore the primary server from the High availability Data Replication HDR secondary server that you prepared to use as a backup server before you migrated or reverted the cluster After you restore the primary server you must recreate the other servers in the high availability cluster Prerequisite You prepared the HDR secondary server to use as a contingenc backup server according to information in Preparing to migrate upgrade or revert clusters on page 5 1 To restore a cluster from the HDR secondary server 1 Start the HDR secondary server by running an oninit command 2 Change the secondary server to the primary server by running the onmode d make primary hdr_server_name command 3 If the server is in quiescent mode change it to multi user mode by running an onmode m command 4 Make a level 0 backup using the ON Bar or ontape utility 5 Recreate the rest of the high availability cluster Chapter 5 High availability cluster migration 5 7 5 8 IBM Informix Migration Guide Chapter 6 Migrating to Dynamic Server Version 11 50 When you migrate to a new version of Dynamic Server you must complete required migr
193. n the online log Specifies a virtual memory address range to not use to attach shared memory 11 50 SSL_KEYSTORE_FILE On clients specifies the fully qualified file name of the keystore that stores the certificates of all servers to which the client connects 11 50 SSL_KEYSTORE LABEL On Dynamic Server specifies the label of the server digital certificate used in the keystore database that stores Secure Sockets Layer SSL keys and digital certificates 11 50 SSL_KEYSTORE_STH On clients specifies the fully qualified file name of the stash file containing the encrypted keystore password 11 50 STORAGE_FULL_ALARM Configures the frequency and severity of messages and alarms when storage spaces become full 11 50 UPDATABLE_SECONDARY Enables client applications to perform update insert and delete operations on a high availability secondary server 11 10 ADMIN_MODE_USERS Enables user informix or a DBSA to give one or more specific users the ability to connect to the database server in administration mode through the onmode j command the oninit U command or the ADMIN_MODE_USERS configuration parameter 11 10 IBM Informix Migration Guide ADMIN_USER_MODE_ WITH_DBSA Specifies whether user informix and the DBSA group users can connect to the database server while it is in administration mode Table B 1 New Configuration Parameters continued Version
194. nal Tables If you created new external tables you must drop them before reverting 11 50xC5 The SYSEXTERNAL SYSEXTCOLS and SYSEXTDFILES system catalog tables will be dropped during reversion UDRs that use the SET ENVIRONMENT RETAINUPDATELOCKS Syntax Before reverting 11 50xC5 you must drop these UDRs MERGE Statements that include the Delete clause Before reverting you must drop these 11 50xC5 routines Reversion If You Have High Availability Clusters Before reverting see Reverting clusters 11 50xC5 MERGE Statements Before reverting you must drop any routines that use the MERGE 11 50xC4 statement Chapter 7 Reverting from Dynamic Server Version 11 50 7 3 Table 7 2 Requirements and limitations when reverting to a specific version of the server continued Reversion Requirement or Limitation If reverting to this Server or Earlier Servers SELECT Statements that Include the CONNECT BY Clause Before reverting you must drop any routines that use queries or subqueries that include the CONNECT BY clause and drop any views that are defined by SELECT statements that include the CONNECT BY clause After reversion SYS_CONNECT_BY_PATH is not supported as a built in routine 11 50xC4 ifx_replcheck shadow column Before reverting you must drop the ifx_replcheck shadow column 11 50xC4 Compressed Tables and Compressed Table Fragments You must uncompress or drop compressed tables and f
195. nd on page 13 6 If the data loads successfully delete the old table in the old dbspace and rename the new table to the old table name Create a level 0 backup of the modified database 13 12 IBM Informix Migration Guide 6 Turn logging back on if you want logging Chapter 13 The onunload and onload utilities 13 13 13 14 IBM Informix Migration Guide Chapter 14 The onmode utility reversion option You use the b option of the onmode utility to revert to the older database server from which you converted What the onmode b command does When you convert a database server several modifications make the format of the databases incompatible with the older version The onmode b command modifies data so that the earlier version of the database server can access it The utility does not revert changes made to the layout of the data that do not affect compatibility You must revert the databases before users can access the data with the earlier database server version For information about other onmode options see your IBM Informix Dynamic Server Administrator s Guide Preparation for using the onmode b command Before you use the onmode b command notify users that you are going to bring the database server offline The reversion utility forcibly removes all users and shuts down the database server The onmode b command includes an implicit yuk command Make sure that the INFORMIXSERVER environment variab
196. ndary server Chapter 6 Migrating to Dynamic Server Version 11 50 Migrating to the new version of Dynamic Server Installing the new version of Dynamic Server Setting environment variables Customizing configuration files Adding Communications Support Modules Installing or upgrading any DataBlade modules Initializing the new version of Dynamic Server Upgrading the High Performance Loader onpload databace Restoring to a previous consistent state after a failed upgrade Completing required post migration tasks For ON Bar rename the sm_versions std file Optionally update statistics on your tables after migrating Update statistics on some system catalog tables after migrating Review client applications and registry keys Verify the integrity of migrated data Back up Dynamic Server after migrating to the new version Tune the new version of Dynamic Server for performance Register DataBlade modules Chapter 7 Reverting from Dynamic Server Version 11 50 Preparing to revert Ascertain that reversion is possible and identify reversion requirements Check and configure available space for reversion Save copies of the current configuration files Save system catalog information Verify the integrity of the Version 11 50 d ta 4 Back up Dynamic Server Version 11 50 Remove Version 11 50 features iv IBM Informix Migration Guide 3 1 3 2 3 4 3 6 3 6 0 6 OE 3 8 3 8 3 8 3 9 3 10
197. ng However the HPL requires significant preparation time Q For extremely large databases the HPL has a performance advantage over other IBM Informix data migration utilities because it performs I O and code set conversions in parallel Use the HPL only for large databases for which the time savings in the actual loading or unloading of data makes the preparation time worthwhile The following HPL features provide powerful tools for handling data from non Informix sources Drivers to handle different database types Filters and functions to manipulate data Code set conversion The ipload GUI for UNIX The onpladm command line utility for UNIX and Windows For more information about the HPL refer to the IBM Informix High Performance Loader User s Guide Related reference Data migration tools on page 2 1 Nonlogging raw tables that speed up data loading time If you use a Dynamic Server utility to load data you can use nonlogging raw tables in a logging database to speed up the initial loading and validation of data if you are moving data to or from Version 9 21 or any later version Data warehousing and other applications can have very large tables that take a long time to load Nonlogging tables are faster to load than logging tables In a logged database Dynamic Server creates standard tables that use logging by default To create a nonlogging table use the CREATE RAW TABLE statement or use the ALTER TABLE sta
198. ng a table logging on the target database must be turned off When you are creating and loading an entire database the logging status does not matter Run the onload utility For details on the syntax of the onload command seel Syntax of the onload command on page 13 6 Create a level 0 backup of the modified database Turn logging back on if you want logging If you want to restore the triggers access privileges SPL routines defaults constraints that are not preserved and synonyms for the table run the dbschema utility or recreate these objects manually Constraints such as primary keys or default values are preserved even for a single table Foreign keys access privileges SPL routines and synonyms are not preserved Moving a table between dbspaces with the onunload and onload utilities You can use the onunload and onload utilities to move a table from one dbspace to another dbspace on the same computer To 1 2 4 move a table from one dbspace to another dbspace on the same computer Run the onunload utility to unload the table For details on the syntax of the onunload command see onunload command on page 13 3 Turn off logging When you are loading a table logging on the target database must be turned off Run the onload utility Specify a new table name and new dbspace name in the onload command For details on the syntax of the onload command see Syntax of the onload comma
199. ng data between compatible computers 2 7 PLCY_HASHSIZE B 3 PLCY_POOLSIZE B 3 PLOG_OVERFLOW_PATH configuration parameter B 6 Privileges 11 7 11 8 required for onunload 13 5 Q Quiescent mode 3 8 R Recompiling Java UDRs 7 12 Reconfiguring the operating system 3 8 Registering DataBlade modules 6 10 Reserve pages checking 6 10 Reserved words D 1 restore points 15 1 RESTORE_FILTER configuration parameter B 3 RESTORE_POINT_DIR configuration parameter 6 7 15 1 B 1 Reversion utility 7 11 Reverting before using the onmode b command 14 1 chunk reserve pages 7 8 determining if it is possible 7 2 from Dynamic Server Version 11 50 7 1 7 10 from Dynamic Server with Enterprise Replication 4 3 from the new version 7 1 limitations 7 3 removing Version 11 50 features 7 10 restrictions for 7 3 restrictions for reverting to prior versions 7 2 using the onmode b command 14 1 with HDR RS and SD servers 5 1 5 4 7 14 with high availability clusters 5 1 5 4 7 14 ROOTOFFSET configuration parameter 6 4 ROOTPATH configuration parameter 6 4 ROOTSIZE configuration parameter 6 4 RTO_SERVER_RESTART configuration parameter B 4 Running the reversion utility 7 11 S Schema create across a network 11 4 create for a database 11 3 display with dbschema 11 1 Screen reader reading syntax diagrams G 1 X 6 IBM Informix Migration Guide Scripts concdr bat 4 1 concdr sh 4 1 conpload sh 6 6 conploadlegacy sh 6 6 revcdrbat 4 3 revcdr sh 4 3
200. no_log sh to prevent the generation of errors if the logical log fills during the migration For more details see Initializing the new version of Dynamic Server on page 6 5 After the migration change the value of ALARMPROGRAM to log_full sh Important To facilitate migration and reversion use the same values for your new database server for ROOTOFFSET ROOTSIZE and ROOTPATH that you used IBM Informix Migration Guide for the old database server Also keep the same size for physical logs and logical logs including the same number of logical logs and the same sqlhosts file If you use an optical storage manager set the OPTICAL_LIB_PATH configuration parameter in the ONCONFIG file to the location of the optical storage manager library For more information see the IBM Informix Optical Subsystem Guide If you use custom code files with the High Performance Loader set the HPL_DYNAMIC_LIB_PATH configuration parameter in the plconfig file to the location of the shared library For example the location of the shared library might be INFORMIXDIR lib ipldd11a SOLIBSUFFIX where SOLIBSUFFIX is the shared library suffix for your operating system For information on how to configure Dynamic Server see your IBM Informix Dynamic Server Administrator s Guide For information about how to tune the configuration parameters see the IBM Informix Dynamic Server Performance Guide Adding Communications Support Modules For communi
201. nt Do not install the new version over the existing product If you do so you will not be able to revert to the earlier product and you will need to install the earlier product from the original installation media When you change from the old server to the new server change the INFORMIXDIR environment variable to ensure that it points to the location of the installed database server If you do not do this the older version of the database server will start up when you reboot If you install a new instance into a directory that already contains an instance and there is insufficient free space the install program will request that you confirm removal of the older product prior to extracting the new one Otherwise if sufficient free space exists the install program will add or replace files without deleting the existing instance During subsequent installations the behavior of the install program depends on the target directory as follows IBM Informix Migration Guide e If you install from the media into the same install location only the files chosen for replacement or installation will be installed e If you are installing into a different location on the hard drive you must verify that you have enough free disk space tests prior to file extraction After you install a new instance in a new directory complete data migration and verification The installation script installs Dynamic Server into the INFORMIXDIR directory specif
202. o a consistent point after a failed upgrade Prerequisites e Before you began the upgrade you must have enabled quick reversion according to information in Configuring for recovery of restore point data in case an upgrade fails on page 3 4 e The server must be offline To restore the primary server in a cluster to a consistent point after a failed upgrade Run the onrestorept utility For more information see consistent state after a failed upgrade on page 6 6 Alternatively if you backed up your primary server or you prepared for using the High availability Data Replication HDR secondary server as a backup server before you upgraded and the upgrade fails you can take other steps to restore the cluster See or Restoring a cluster from the HDR secondary server on page 5 7 Restoring a cluster from a backup archive 5 6 If you backed up the primary server before you migrated or reverted the cluster you can restore the primary server from the backup archive if migration or reversion fails After you restore the primary server you must recreate the other servers in the high availability cluster Prerequisite You made a level 0 backup archive of the primary server before migration or reversion To restore a cluster from a level 0 backup archive 1 Point your INFORMIXDIR PATH and any other relevant environment variables to the directory in which the original versio
203. oad 13 1 13 11 13 12 onpladm 2 5 onpload 2 5 onunload 8 1 13 3 V Verifying data integrity 6 9 Visual disabilities reading syntax diagrams G 1 VP_MEMORY_CACHE KB B 4 Index X 7 X 8 IBM Informix Migration Guide Printed in USA Sc27 3613 00 p ny uone A XIUAOJUI INI OS LEUOISISA XIUOJUI Wal UOLJEUUOJUL JULAS
204. ompleted successfully you can remove the old instance When you run the uninstaller make sure that you select this option Retains all databases but removes server binaries Migration status messages When the migration starts the online log displays the message Conversion from version lt version number gt Started The log continues to display start and end messages for all components When conversions of all components are complete the message Conversion Completed Successfully displays This message indicates that the migration process completed successfully but it does not guarantee that each individual database was converted successfully The message log could contain additional information regarding the success or failure of the migration of each individual Chapter 6 Migrating to Dynamic Server Version 11 50 6 3 6 4 database If migration of a particular database fails then try to connect to the database to find out the exact cause of the failure At the end of the migration of each individual database Dynamic Server runs a script to update some system catalog table entries The message log includes messages related to this script The success or failure of the script does not prevent the usage of a database For migration to Dynamic Server Version 11 50 from Dynamic Server 7 31 if the script fails for a database run the following script as user informix while connected to the database INFORMIXDIR etc dummyupds7x sq
205. on e Percentage of compressed rows with the onstat pT option Before you can compress a table or fragment you must run an SQL administration API command that enables compression If you enable compression on the version 11 50 xC4 server and you want to revert to an earlier version of the server which does not support compression you must uncompress or drop any compressed table or fragments before you revert To ensure successful reversion follow the Dynamic Server reversion procedures that are described in the Migration Guide You can use the onmode b command to revert to Version 11 50 xC1 11 50 xC2 or 11 50 xC3 if you previously used that version of the server If you are migrating to Version 11 50 xC4 from Version 11 50 xC1 11 50 xC2 or 11 50 xC3 you must run the buildsmi script if you plan to use the syscompdict_full table The buildsmi script which is in the etc directory in your installation drops and recreates the sysmaster database which contains the syscompdict_full table The buildsmi script must be run as user informix on UNIX or as a member of the Informix Admin group on Windows after ensuring that no connections to the sysmaster database are made during the build of the database IBM Informix Dynamic Server Administrator s Guide IBM Informix Dynamic Server Administrator s Reference Guidelines for when to use the onunload and onload utilities on page 13 1 Introduction Xi Table 2 What s
206. on parameter 10 0 LRU_MAX_ DIRTY Removed Information now specified with the BUFFERPOOL configuration parameter 10 0 LRU_MIN_ DIRTY Removed Information now specified with the BUFFERPOOL configuration parameter 9 40 ALARMPROGRAM Can be set to the alarmprogram sh file to enable event alarms 9 40 CDR_QDATA_SBSPACE Can accept up to 32 sbspaces 9 40 CDR_QDATA_SBFLAGS Removed Enterprise Replication always uses the default log mode of the sbspace for spooling row data 9 40 DBSERVERALIASES Can accept up to 32 server alias values 9 40 LTAPEBLK New default value 9 40 LTAPESIZE Can accept a value of 0 to read or write to the end of the tape device 9 40 LRU_MAX_DIRTY Can accept a value of type INTEGER or FLOAT This configuration parameter was removed in Version 10 0 IBM Informix Migration Guide Table C 4 Configuration Parameters that Were Changed or Removed in Version 11 10 10 0 9 40 and 9 30 continued Changed or Removed Version Configuration Parameter Description of Change 9 40 LRU_MIN_DIRTY Can accept a value of type INTEGER or FLOAT This configuration parameter was removed in Version 10 0 9 40 OPTICAL_LIB_PATH Is valid for both UNIX and Windows Must be set to the location of the storage manager library 9 40 TAPEBLK New default value 9 40 TAPESIZE Can accept a value of 0 to read or write to the end of the tape device 9 30 AFF_NPROCS R
207. on Completed Successfully appears For more information on this log see Migration status messages on page 6 3 7 If you successfully migrated to the new server see Completing required post mnigeation taka on page ca information on preparing the new server for use If you successfully migrated but the conversion of the High Performance Loader onpload database failed upgrade the onpload D bas ro on cl Up red one Loaded 8 If the log indicates that migration failed you must either e Install the old database server and restore your database from a level 0 backup Run the onrestorept utility to back out of the upgrade and restore files to a consistent state without having to restore from a backup You can run this utility only if you set the configuration parameters that enable the utility See If you are migrating the database server from a version that does not support label based access control users who held the DBA privilege are automatically granted the SETSESSIONAUTH access privilege for PUBLIC during the migration process For more information on SETSESSIONAUTH see the IBM Informix Guide to SQL Syntax For information on label based access control see the IBM Informix Security Guide Installing the new version of Dynamic Server Install and configure the current version of Dynamic Server On UNIX or Linux you must be logged in as user root On Windows you must be a member of the Administrators group Importa
208. onfigure the target database server If you are migrating to Windows also install the administration tools 6 Bring the target database server online 7 Use dbimport LOAD or dbload or external tables to load the databases into the target database server depending on which utility you used to export the databases 8 Make an initial level 0 backup of the target database server 9 Run UPDATE STATISTICS to update the information that the target database server uses to plan efficient queries Moving Data Between Dynamic Server and Workgroup Edition Version 7 24 on Different operating systems The UNLOAD statement lets you retrieve selected rows from a database and write those rows to a text file If you want to move selected tables or columns instead of an entire database between Dynamic Server and Workgroup Edition Version 7 24 and earlier versions use the UNLOAD and LOAD statements in the DB Access utility with the dbschema utility If you need to manipulate the data in the specified UNLOAD file before you load it into a new table use a combination of the UNLOAD statement and the dbschema and dbload utilities For information on UNLOAD LOAD dbload and dbschema see and For information on how to use DB Access see the IBM Informix DB Access User s Guide For more information about using UNLOAD dbschema and LOAD to or from Version 7 31 or an earlier version or for information about moving data to or from Version 7 31 o
209. ope clause and a resolution clause updates all tables and all UDRs that are written in SPL You do not need to run UPDATE STATISTICS statements on C or Java UDRs Update statistics on some system catalog tables after migrating After migrating successfully to Dynamic Server Version 11 50 run UPDATE STATISTICS on some of the system catalog tables in your databases If you are migrating from a Version 7 31 or 7 24 database server be sure to run UPDATE STATISTICS on the following system catalog tables in Dynamic Server Version 11 50 sysblobs sysfragments syssynonyms syscolauth sysindices syssyntable syscolumns sysobjstate systabauth sysconstraints sysopclstr systables sysdefaults sysprocauth systriggers sysdistrib sysprocedures sysusers sysfragauth sysroleauth Review client applications and registry keys After you migrate a database server on the same operating system or move the database server to another compatible computer review the client applications and sqlhosts file or registry key connections If necessary recompile or modify client applications Verify that the client application version you use is compatible with your database server version If necessary update the sqlhosts file or registry key for the client applications with the new database server information For more information about interactions between client applications and different database servers refer to a client manual Verify the integrity of migra
210. opped when you revert to earlier versions of Dynamic Server If your source database server contains a sysadmin database you must rename it Changes for Dynamic Server 10 0 E 2 Dynamic Server Version 10 0 contains new sysmaster database tables and new SMI tables The version 10 0 sysmaster database contains these new tables sysdirectives sysbufpool a system monitoring interface SMI The following changes were made to other SMI tables e The sysfragments table contains a Partition column and the Flags column now tells you if the fragmentation scheme has partitions e The sysusers table contains a defrole column e The sysams table contains an am_truncate column e The sysprocedures table contains a rtnparameters column for information on INOUT parameters e The syspaghdr table has a pg_pagesize column e The sysptnhdr table has a pagesize column e The sysptnhdr table has a bpoolindx column that indicates which buffer pool the buffer is in e The sysbufhdr table has a bufsize column which indicates the buffer page size e The sysdbstab and syschktab tables have pagesize columns e The views syschunks and sysdbspaces tables have a pagesize columns e The views systabinfo table has a ti_pagesize column e The views systabpaghdrs and sysphyspaghdrs tables have pg_pagesize columns In addition tables added to the sysscdr database are removed IBM Informix Migration Guide Changes for Dynamic Server 9 40 Dyna
211. or both UNIX is a registered trademark of The Open Group in the United States and other countries Other company product or service names may be trademarks or service marks of others Notices H 3 H 4 IBM Informix Migration Guide Index A Accessibility G 1 dotted decimal format of syntax diagrams G 1 keyboard G 1 shortcut keys G 1 syntax diagrams reading in a screen reader G 1 ADMIN_MODE_USERS configuration parameter B 2 ADMIN_USER_MODE_WITH_DBSA configuration parameter B 2 ALARMPROGRAM configuration parameter 6 4 6 5 ALL keyword dbschema utility 11 3 ALRM_ALL_EVENTS configuration parameter B 5 ANSI joins 7 3 AUTO_AIOVPS configuration parameter B 3 AUTO_CKPTS configuration parameter B 3 AUTO_LRU_TUNING configuration parameter B 3 AUTO_REPREPARE configuration parameter B 3 BACKUP_FILTER configuration parameter B 3 Backups after upgrading 6 10 before reverting 7 10 before upgrading to a new version 3 8 logical logs 6 5 ON Bar utility 3 8 7 13 ontape utility 3 8 7 13 source database 3 8 BAR_IXBAR_PATH configuration parameter B 4 BAR_PERFORMANCE configuration parameter B 3 BATCHEDREAD_TABLE configuration parameter B 1 Binary files loading 13 1 13 2 BladeManager installing and registering DataBlade modules 6 5 6 10 removing new extensions before reversion 7 10 Blobspaces moving with onunload and onload 13 10 13 11 boot90 sql and boot901 sql 7 1 BUFFERPOOL configuration parameter B 5 C CD
212. or moving data before migrating between operating systems If you are migrating between different operating systems you must choose a method for exporting and importing data The tool that you choose for exporting and importing data depends on how much data you plan to move All these methods deliver similar performance and enable you to modify the schema of the database The tools that you can use include The dbexport and dbimport utilities which you can use to move an entire database The UNLOAD and LOAD statements which move selected columns or tables The LOAD statement does not change the data format The dbload utility which you can use to change the data format The onunload utility which unloads data in page sized chunks and the onload utility which moves data to an identical database server on a computer of the same type The High Performance Loader HPL which moves selected columns or tables or an entire database For an overview of all of these data migration tools a comparison of tools and information on which Dynamic Server versions do not support all of the tools see Data migration tools on page 2 1 Related concepts Q hapter 9 The dbexport and dbimport utilities on page 9 1 Chapter 13 The onunload and onload utilities on page 13 1 Chapter 10 The dbload utility on page 10 1 hapter 11 The dbschema utility on page 11 1 Chapter 12 The LOAD and UNLOAD statement
213. orma issued the GRANT statement GRANT ALL ON tom customer TO claire AS norma When the GRANT and AS keywords appear in the dbschema output you might need to grant privileges before you run the dbschema output as an SQL script Referring to the previous example output line the following conditions must be true before you can run the statement as part of a script e User norma must have the Connect privilege to the database e User norma must have all privileges WITH GRANT OPTION for the table tom customer Chapter 11 The dbschema utility 11 7 For more information about the GRANT GRANT FRAGMENT and REVOKE FRAGMENT statements see the IBM Informix Guide to SQL Syntax Displaying privilege information for a role You can generate dbschema information on the privileges that were granted for a particular role A role is a classification with privileges on database objects granted to the role The DBA can assign the privileges of a related work task such as an engineer to a role and then grant that role to users instead of granting the same set of privileges to every user After a role is created the DBA can use the GRANT statement to grant the role to users or to other roles For example issue the following dbschema command and to display privileges that were granted for the calen role sharky dbschema p calen d stores_demo An example of information the dbschema utility displays is grant alter on tablel
214. ormation see the IBM Informix Backup and Restore Guide Important Do not restore the backed up logical log files from your old database server for your new database server Tune the new version of Dynamic Server for performance After backing up the new server you can tune the database server to maximize performance If you created sample queries for comparison use them to analyze the performance differences between the old and new database servers and to determine if you need to adjust any configuration parameters or the layout of databases tables and chunks Register DataBlade modules You must register any DataBlade modules that you installed Registration is the process that makes the DataBlade module code available to use in a particular database For more information on how to use DataBlade modules see the IBM Informix Datablade Module Installation and Registration Guide IBM Informix Migration Guide Chapter 7 Reverting from Dynamic Server Version 11 50 You can revert to the version of the database server from which you migrated When you run the reversion utility you specify the target server for reversion and then Dynamic Server checks your database If necessary Dynamic Server might tell you to drop new objects before automatically converting your data into the target server If Dynamic Server cannot revert a database Dynamic Server prevents reversion Normally reversion takes only a few minutes If you us
215. ort the database If you do not specify 0 as the tapesize then the maximum tapesize is 2 097 151 KB t device Specifies the path name of the tape device The t option does not allow you to specify a remote tape that holds the input files device Examples Showing Input File Location on UNIX or Linux To import the stores_demo database from a tape with a block size of 16 KB and a capacity of 24 000 KB issue this command dbimport c t dev rmt0 b 16 s 24000 f tmp stores_demo imp stores_demo The schema file is read from tmp stores_demo imp To import the stores_demo database from the stores_demo exp directory under the work exports directory issue this command dbimport c i work exports stores_demo The schema file is assumed to be work exports stores_demo exp stores_demo sql Examples Showing Input File Location on Windows To import the stores_demo database from a tape with a block size of 16 KB and a capacity of 24 000 KB issue this command dbimport c t TAPEDRIVE b 16 s 24000 f C temp stores_demo imp stores_demo The schema file is read from C temp stores_demo imp To import the stores_demo database from the stores_demo exp directory under the D work exports directory issue this command dbimport c i D work exports stores_demo The schema file is assumed to be D work exports stores_demo exp stores_demo sql Chapter 9 The dbexport and dbimport utilities 9 9 dbi
216. ory Do not install the new database server over the old database server If you are migrating from a Dynamic Server version that does not support the custom installation of components to a version that does support it you must choose the Typical installation option After the typical components are installed you can selectively remove the components that you do not need For more information see Installing the new version of Dynamic Server on page 6 2 2 Set environment variables For more information see Setting environment variables on page 6 4 3 Adjust configuration parameters as necessary If the ALARMPROGRAM configuration parameter is set to the script alarmprogram sh set the value of BACKUPLOGS in alarmprogram sh to N For more information see 4 Optionally add Communications Support Modules See Communications Support Modules on page 6 5 Copyright IBM Corp 1996 2010 6 1 6 2 5 Optionally upgrade DataBlade modules to correspond to the newer server See 6 Switch to user informix and initialize Dynamic Server to trigger the migration For more information see Initializing the new version of Dynamic Server on page 6 5 When the migration starts the online log displays the message Conversion from version lt version number gt Started The log continues to display start and end messages for all components When the migration of all components is complete the message Conversi
217. ory for restore point files before beginning an upgrade The default value for the CONVERSION_GUARD configuration parameter in the ONCONFIG file is on 2 and the default directory where the server will store the restore point data is INFORMIXDIR tmp You must change this information before beginning an upgrade You cannot change it during an upgrade To change information 1 If necessary for your environment change the value of the CONVERSION_GUARD configuration parameter When the CONVERSION_GUARD configuration parameter is set to 2 the default value the server will continue the upgrade even if an error related to capturing restore point data occurs for example because the server has insufficient space to store the restore point data However if the CONVERSION_GUARD configuration parameter to 2 and the upgrade to the new version of the server fails you can use the onrestorept utility to restore your data However if you set the CONVERSION_GUARD configuration parameter to 2 conversion guard operations fail for example because the server has IBM Informix Migration Guide insufficient space to store restore point data and the upgrade to the new version fails you cannot use the onrestorept utility to restore your data 2 In the RESTORE_POINT_DIR configuration parameter specify the complete path name for a directory that will store restore point files The server will store restore point files in a subdirectory of the specified d
218. ownload the free easy to use http www ibm com software data db2 migration mtk You can also use the HPL to move your data from non IBM products to Dynamic Server Upgrading Dynamic Server in place migration In place migration upgrades Dynamic Server directly to the current version by installing the product in a new directory copying a few configuration files and starting the new server to automatically convert your database data You can upgrade directly from any of the following products Dynamic Server Version 11 10 10 00 9 40 9 30 9 21 or 7 31 Upgrading is an in place migration method that uses your existing test and production hardware The operating system on those machines must be supported by the new version of the server Also you must have enough space for the system database data conversion Upgrading consists of these steps 1 Prepare your system That includes closing all transactions verifying the integrity of the data with the oncheck utility and performing a level 0 backup Chapter 1 Overview of Dynamic Server migration 1 3 If you are using Enterprise Replication or high availability clusters you must stop replication and perform required additional tasks 2 Install the new product on the machine Important The safest way to upgrade to a new version is to install the new version in another directory To save space you can select the product components that you want to install After
219. ows SINFORMIXDIR etc alarmprogram bat BAR_ ACT LOG usr informix bar_act log UNIX INFORMIXDIR tmp bar_act log Windows INFORMIXDIR tmp bar_act log BAR_BSALIB_PATH UNIX INFORMIXDIR lib libsad001 so Window libbsa dll None BAR_DEBUG_LOG UNIX usr informix bar_dbug log UNIX INFORMIXDIR tmp bar_dbug log Windows bar_dbug log Windows INFORMIXDIR tmp bar_dbug log BUFFERPOOL Operating systems with 2K _ Operating systems with 2K page size page size default buffers 5000 lrus 8 default buffers 10000 lrus 8 lru_min_dirty 50 Iru_min_dirty 50 00 lru_max_dirty 60 lru_max_dirty 60 50 size 2k buffers 5000 lrus 8 size 2k buffers 50000 lrus 8 Iru_min _dirty 50 Iru_min _dirty 50 Iru_max_dirty 60 Iru_max_dirty 60 Operating systems with 4K Operating systems with 4K page size page size default buffers 1000 lrus 8 default buffers 10000 lrus 8 Iru_min_dirty 50 Iru_min_dirty 50 00 lru_max_dirty 60 lru_max_dirty 60 50 size 4k buffers 1000 lrus 8 size 4k buffers 10000 lrus 8 lru_min_dirty 50 lru_min_dirty 50 lru_max_dirty 60 lru_max_dirty 60 CLEANERS 1 8 CONSOLE UNIX dev console UNIX INFORMIXDIR Windows console log tmp online con Windows online con DB_LIBRARY_PATH commented out DB_LIBRARY_PATH INFORMIXDIR extend commented out DB_LIBRARY_PATH Appendix C Configuration parameters that have been changed or removed C 3 Tab
220. platform sallabllity spieadsheet vole ibn com ofeware data domi Search for the product name or sort the spreadsheet by name Prepare the operating system by completing any required machine or operating system changes See the machine notes which are in a file on the installation media for information about platform specific actions that you must take to configure and use IBM Informix products Operating systems that are not supported Dynamic Server Version 11 50 does not run on the Windows 2000 Windows NT or Windows 95 operating systems If you are currently using a version of Dynamic Server on one of those operating systems you must migrate to an operating system on which Version 11 50 runs For specific information on migrating between operating systems see Fix pack naming conventions 1 6 Dynamic Server releases and fix packs contain version names that appear in the format aa bb xCn In this format e aa major release number e bb minor release number e x all operating system platforms unless one of the following characters appears in the position of x F 64 bit on any UNIX Linux or Windows platform IBM Informix Migration Guide H 32 bit build on any HP 11 x platform also runs on HP 11 x 64 bit J Java T 32 bit on Windows platforms U 32 bit on any UNIX or Linux platform e C GA release e n fix pack level A version with the letter E at the end means the versio
221. ple Collations Multiple collations among indexes stored procedures triggers and constraints must not be in use 9 30 Functional Index Limitations Functional indexes cannot contain more than 16 parameters 9 30 High Data Availability Replication and Enterprise Replication in the Same Server High Data Availability Replication and Enterprise Replication cannot co exist on the same database server 9 30 LVARCHAR Limitation The LVARCHAR n data types must not be in use if n is not equal to 2042 9 30 Extensions Added to Sever You cannot revert to an earlier database server from a database server that has had extensions added unless you remove the extensions You must remove any new data types or routines that you created either explicitly or by registering a different version of a DataBlade module To be able to revert downgrade any DataBlade module to the version that was registered prior to reversion and explicitly drop any data types and routines that were created outside of any DataBlade registration For information on how to use DataBlade modules see the DataBlade documentation 9 30 UDR Limitations New user defined or SPL routines must not be created in new databases either implicitly or explicitly If you plan to use dbexport to export a database containing existing user defined or SPL routines you must drop these routines prior to reversion New Trigger Limitations New triggers must not be def
222. prior to restarting the migration tasks Important Do not connect applications to a database server instance until the migration has successfully completed After successful migration to Dynamic Server Version 11 50 you might want to modify configuration files and environment variables to take advantage of Dynamic Server Version 11 50 features For more information see the IBM Informix Dynamic Server Getting Started Guide and your IBM Informix Dynamic Server Administrator s Guide For ON Bar rename the sm_versions std file After migration rename the sm_versions std file to sm_versions for the ON Bar backup and restore system to run Use one of the following methods e If you are using the same version of ISM copy the same sm_versions file from your old database server to the new database server installation e If you are using other storage managers copy your previous sm_versions file from the old INFORMIXDIR etc directory to the new INFORMIXDIR etc directory IBM Informix Migration Guide e If you are upgrading from Version 7 31 unload the contents of the sysutils bar_version table Optionally update statistics on your tables after migrating Optionally run UPDATE STATISTICS on your tables not system catalog tables and on UDRs that perform queries if you have performance problems after migrating to the new version of Dynamic Server An unqualified UPDATE STATISTICS statement that does not specify a table and column sc
223. programs Each copy or any portion of these sample programs or any derivative work must include a copyright notice as follows your company name year Portions of this code are derived from IBM Corp Sample Programs Copyright IBM Corp _enter the year or years_ All rights reserved If you are viewing this information softcopy the photographs and color illustrations may not appear Trademarks IBM the IBM logo and ibm com are trademarks or registered trademarks of International Business Machines Corp registered in many jurisdictions worldwide Other product and service names might be trademarks of IBM or other companies A current list of IBM trademarks is available on the Web at Copyright and trademark information at http www ibm com legal copytrade shtml Adobe the Adobe logo and PostScript are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and or other countries Intel Itanium and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries Java and all Java based trademarks are trademarks of Sun Microsystems Inc in the United States other countries or both Linux is a registered trademark of Linus Torvalds in the United States other countries or both Microsoft Windows and Windows NT are trademarks of Microsoft Corporation in the United States other countries
224. quired to name the schema file database sql You can give it any name UNIX Linux Only For non SE database servers on UNIX or Linux the command is dbexport finland reports The following command exports the database stores_demo to tape with a block size of 16 KB and a tape capacity of 24 000 KB The command also writes the schema file to tmp stores_demo imp dbexport t dev rmt0 b 16 s 24000 f tmp stores_demo imp stores_demo The following command exports the same stores_demo database to the directory named work exports stores_demo exp The resulting schema file is work exports stores_demo exp stores_demo sql dbexport o work exports stores_demo Windows Only For Windows the following command exports the database stores_demo to tape with a block size of 16 KB and a tape capacity of 24 000 KB The schema file is written to C temp stores_demo imp dbexport t TAPE2 b 16 s 24000 f C temp stores_demo imp stores_demo The following command exports the same stores_demo database to the directory named D work exports stores_demo exp The resulting schema file is D work exports stores_demo exp stores_demo sql Chapter 9 The dbexport and dbimport utilities 9 5 dbexport o D work exports stores_demo Contents of the schema file that dbexport creates The dbexport utility creates a schema file This file contains the SQL statements that you need to re create the exported database You can ed
225. r network and data tools that you use 3 2 IBM Informix Migration Guide During migration Dynamic Server drops and then recreates the sysmaster database Depending on which version of Dynamic Server you migrate from the sysmaster database in the current version can be significantly larger UNIX Linux Only Dynamic Server Version 11 50 requires 3000 free pages of logical log space approximately 6000 kilobytes for a 2 KB page size to build the sysmaster database on UNIX or Linux Windows Only Dynamic Server Version 11 50 requires 1500 to 3000 free pages of logical log space approximately 6000 kilobytes for a 4 KB page size to build the sysmaster database on Windows During migration a second database the sysadmin database is created in the root dbspace As you work after migrating the sysadmin database could grow dramatically You can move the sysadmin database to a different dbspace You might need to increase the physical log size to accommodate new features and you might consider adding a new chunk Partition header pages should not be full key descriptors and other new features might require more space after migration to the new version of Dynamic Server If partition header pages are full you can merge extents in the partition to create some free space for the partition header You can also unload the table recreate the table to reduce the large number of extents and then reload the table The root chunk should contai
226. r olddbs newdbsp from one dbspace to index fragment for the table another Additional Information This option is used with PDQ and table fragmentation database Specifies the name of the Requirement The database name cannot include a database server database name such as database dbservername References Syntax must conform to the Identifier segment see the IBM Informix Guide to SQL Syntax owner Specifies the owner of the Requirement The owner name must not include invalid characters table References For path name syntax refer to your operating system documentation table Specifies the name of the Requirement The table must not exist table References Syntax must conform to the Table Name segment see the IBM Informix Guide to SQL Syntax If you do not specify any create options for non fragmented tables the onload utility stores the database or table in the root dbspace For fragmented tables onunload preserves the fragmentation expression for later use by onload Thus an imported table is fragmented in the same way as the original table You can use the c i fd and fi options in any order and as often as necessary as long as you use unique pairs Constraints that affect onload The onload utility performs faster than the dbimport dbload or LOAD methods In exchange for this higher performance onload has certain constraints The onload utility has the following constraints The onload u
227. r and perform the following tasks in the following order a If you have remote standalone RS servers stop them by issuing the onmode ky command b If you have shared disk SD servers stop them by issuing the onmode ky command c If you have an High availability Data Replication HDR secondary server stop it by issuing the onmode ky command d If you are reverting from pre 11 50 xC6 versions of Dynamic Server perform the following tasks on the primary server e If you have an HDR pair break the HDR pair by issuing the onmode d standard command e If you have RS servers delete the RS entries by issuing onmode d delete RSS rss_server_name commands e If you have SD servers clear the primary server in the shared disk cluster by issuing an onmode d clear SDS primary primary_server_name command e Revert the standard server by issuing an onmode b target_IDS_version command f Verify that reversion was successful and the server was stopped If the reversion was not successful check the message log for error messages take appropriate action and restart reversion On each server set the INFORMIXDIR environment variable to the full path name for the target installation Ensure that all of the necessary configuration files are available in the target installation Perform any additional database server reversion tasks as described in Reverting from Dynamic Server Version 11 50 on page 7 10 Start the pr
228. r is now complete 18 Reverting clusters 5 4 If you have a high availability cluster you must complete additional tasks when you revert from the new version of Dynamic Server You must revert only the primary database server Beginning with Dynamic Server Version 11 50xC6 the server automatically removes secondary servers during reversion After reversion on the primary server is complete you must recreate all HDR RS and SD secondary servers in a high availability cluster Prerequisites e Determine if you can revert See information in Ascertain that reversion is possible and identify reversion requirements on page 7 2 e Complete the steps in Preparing to migrate upgrade or revert clusters on page 5 1 e Perform all reversion operations as user informix When you revert clusters be sure to stop and start the servers in the cluster in the order shown in the following procedure IBM Informix Migration Guide To revert high availability clusters 1 Stop the Connection Manager by issuing the oncmsm k connection_manager_name command If you are using a High availability Data Replication HDR secondary server as a backup server in case of contingencies a Quiesce the primary server by issuing an onmode sy command to prevent user connections to the server b Force a checkpoint by issuing an onmode c command on the primary server Stop the servers in the cluste
229. r positions If you specify start without end it represents a single character You can repeat the same character position in a data field definition or in different fields 10 10 IBM Informix Migration Guide The null string scope of reference is the data field for which you define it You can define an explicit null string for each field that allows null entries Inserted data types correspond to the explicit or default column list If the data field width is different from its corresponding character column inserted values are padded with blanks if the column is wider or inserted values are truncated if the field is wider If the number of columns named is fewer than the number of columns in the table dbload inserts the default value that is specified for the unnamed columns If no default value is specified dbload attempts to insert a null value If the attempt violates a not null restriction or a unique constraint the insert fails and an error message is returned If the INSERT statement omits the column names the default INSERT specification is every column in the named table If the INSERT statement omits the VALUES clause the default INSERT specification is every field of the previous FILE statement An error results if the number of column names listed or implied by default does not match the number of values listed or implied by default The syntax of dbload INSERT statements resembles INSERT statements in SQL
230. r un DELIMITER 10 INSERT INTO customer FILE manufact un DELIMITER 3 INSERT INTO manufact To see the unl input data files refer to the directory INFORMIXDIR demo prod_name UNIX or Linux or INFORMIXDIR demo prod_name Windows Syntax for the delimiter form The syntax for the delimiter form specifies the field delimiter the input file and the number of fields in each row of data The following diagram shows the syntax of the delimiter FILE statement gt gt F ILE filename DELIMITER c nfields gt lt Element Purpose Key Considerations c Specifies the character as the field If the delimiter specified by c appears as a literal character delimiter for the specific input file anywhere in the input file the character must be preceded with a backslash in the input file For example if the value of c is specified as a square bracket you must place a backslash before any literal square bracket that appears in the input file Similarly you must precede any backslash that appears in the input file with an additional backslash filename __ Specifies the input file None nfields Indicates the number of fields in None each data row The dbload utility assigns the sequential names f01 f02 03 and so on to fields in the input file You cannot see these names but if you refer to these fields to specify a value list in an associated INSERT statement you must use the
231. ragments before reverting 11 50xC3 UDRs that Use Methods or SQL Statements that Reference Savepoints You must drop these UDRs because they include new SQL syntax that earlier Dynamic Server versions do not support Before you can compile these UDRs you must rewrite their error handling code so that no savepoint objects are referenced 11 50xC2 New indexes in sbspaces If you built indexes in sbspaces so you could search the sbspaces with the Basic Text Search DataBlade module you must drop the indexes before reverting 11 50xC2 Version Columns in Tables If you have version columns in tables you must remove them 11 10 BIGINT and BIGSERIAL columns If you have any BIGINT or BIGSERIAL columns you must modify or remove them 11 10 Extended Data Types or Attributes based on BIGINT and BIGSERIAL Data Types If you have these you must remove them 11 10 Casts based on BIGINT and BIGSERIAL Data Types If you have these you must remove them 11 10 Components Installed With the Custom Installation Option If you installed components with the custom installation option you can uninstall a component only if you are not breaking any component dependencies JAVA UDRs That Have Been Compiled Using Newer Versions of JDK These must be recompiled with older JDK versions For details see Recompile any Java UDRs that were Subqueries in DELETE and UPDATE Statements If a condition with a subquery in
232. re set correctly as described in the IBM Informix GLS User s Guide dbexport can handle foreign characters in data and export the data from GLS databases For more information refer to Database renaming on page 9 11 You can use delimited identifiers with the dbexport utility The utility detects database objects that are keywords mixed case or have special characters and the utility places double quotes around them In addition to the data files and the schema file dbexport creates a file of messages named dbexport out in the current directory This file contains error messages warnings and a display of the SQL data definition statements that it generates The same material is also written to standard output unless you specify the q option Chapter 9 The dbexport and dbimport utilities 9 3 During export the database is locked in exclusive mode If dbexport cannot obtain an exclusive lock it displays a diagnostic message and exits Tip The dbexport utility can create files larger than 2 GB To support such large files make sure your operating system file size limits are set sufficiently high For example on UNIX set ulimit to unlimited Termination of the dbexport utility You can stop the dbexport utility at any time To cancel dbexport press your Interrupt key The dbexport utility asks for confirmation before it terminates dbexport errors The dbexport c option tells dbexport to complete exporting unle
233. reate tables from an onunload input tape onload can load information only into a database without logging Thus before you load a table into an existing logged database you must end logging for the database You also might want to consider loading during off peak hours Otherwise you might fill the logical log files or consume excessive shared memory resources After you load the table create a level O dbspace backup before you resume database logging When you use onload to create databases from an onunload input tape the databases that result are not ANSI compliant and do not use transaction logging You can make a database ANSI compliant or add logging after you load the database The onload utility performs all its loading within a transaction This feature allows the changes to be rolled back if an error occurs Movement of simple large objects to a blobspace If you load a table that contains simple large objects stored in a blobspace the onload utility asks you if you want to move them to another blobspace If you respond yes onload displays the blobspace name where the simple large objects were stored when the tape was created It then asks you to enter the name of the blobspace where you want the simple large objects stored If you enter a valid blobspace name onload moves all simple large object columns in the table to the new blobspace Otherwise onload prompts you again for a valid blobspace name Ownership and pr
234. rom the usr informix port stores_demo exp directory issue this command dbimport c stores demo i usr informix port 1 ansi The new database is ANSI compliant Example showing dbimport create options Windows To import the stores_demo database from the C USER informix port stores_demo exp directory issue this command dbimport c stores_demo i C USER informix port 1 ansi The new database is ANSI compliant Database logging mode Because the logging mode is not retained in the schema file you can specify logging information when you use the dbimport utility to import a database 9 10 IBM Informix Migration Guide You can specify any of the following options when you use dbimport e ANSI compliant database with unbuffered logging e Unbuffered logging e Buffered logging For more information see dbimport create options on page 9 10 The l options are equivalent to the logging clauses of the CREATE DATABASE statement as follows e The l option is equivalent to the WITH LOG clause e The l buffered option is equivalent to the WITH BUFFERED LOG Database renaming The dbimport utility gives the new database the same name as the database that you exported If you export a database to tape you cannot change its name when you import it with dbimport If you export a database to disk you can change the database name The following examples show the steps to take to change the database name In this example a
235. rs sysxtdtypeauth sysxtdtypes sysrstcb sysscblst syssessions systabnames sysuserthreads Columns that include path names or other values changed from CHAR 128 to CHAR 256 in the following sysmaster database tables sysadtinfo syschktab syschunks syscrtadt sysdrcb sysdri sysmchktab The path for a physical device changed from CHAR 128 to CHAR 260 in the following sysmaster database table arc_phys_dev Columns widths changed from CHAR 20 to CHAR 128 for longer object names in the following sysmaster database tables IBM Informix Migration Guide sysdrcb sysdris Column widths changed from CHAR 37 to CHAR 257 in the following sysmaster database tables sysdistcache sysprc sysdsc sysproccache Column widths changed from DECIMAL 16 0 to DECIMAL 32 0 in the following sysmaster database table syssesprof The tabauth column of the systabauth system catalog table is now CHAR 9 instead of CHAR 8 The 9th character indicates the Under privilege Data type changes in sysmaster tables in Version 9 20 and later versions The data type of some sysmaster database tables was changed in Dynamic Server Version 9 30 Column width changes in sysmaster tables in Version 9 20 and later versions topic lists columns that have changed from the CHAR data type to the VARCHAR data type In addition one or more columns changed from the SMALLINT data type to the integer data type in the following sysmaster database
236. rtain UNIX systems and 4 KB on Windows NT The page size is an Informix characteristic For information about page size see your IBM Informix Dynamic Server Administrator s Guide The numeric representation and the byte alignment are characteristics of your operating system For information about numeric representation and byte alignment refer to the manuals for your operating systems 2 Decide where to store the unloaded data e On disk Create an empty file for onunload to hold the data Make sure that you have write permission for the file e On tape Use the tape device and characteristics specified in the ONCONFIG configuration file by either the TAPEDEV or LTAPEDEV configuration parameter or specify another tape device Make sure that the tape device that you specify is available for onunload 3 Run the oncheck utility to make sure that your database is consistent For information about oncheck see your IBM Informix Dynamic Server Administrator s Reference 4 Run the onunload utility to unload the data from the database For details on the syntax of the onunload command see Syntax of the onunload command on page 13 3 5 If necessary transfer the storage medium tape or disk to the new computer If the two computers are on the same network you can read or write the data remotely 6 Run the onload utility to load the data into the new database For details on the syntax of the onload command seel Syntax of the
237. s on page 12 1 Q igh Performance Loader performance advantag Adjusting database tables for file system variations File system limitations vary between NFS and non NFS file systems You might need to break up large tables when you migrate to a new operating system For example if you have a 3 GB table but your operating system allows only 2 GB files break up your table into separate files before you migrate For more information see your IBM Informix Dynamic Server Administrator s Guide Copyright IBM Corp 1996 2010 8 1 An Informix storage space can reside on an NFS mounted file system using regular operating system files For information about the NFS products you can use to NFS mount a storage space for an Informix database server check product compatibility information Moving data to a database server on a different operating system 8 2 You can move data between Informix database servers on UNIX or Linux and Windows To move data to a database server on a different operating system 1 Save a copy of the current configuration files 2 Use ON Bar ON Archive or ontape to make a final level 0 backup For more information refer to your IBM Informix Backup and Restore Guide 3 Choose one of the following sets of migration utilities to unload the databases e dbexport and dbimport e UNLOAD dbschema and LOAD e UNLOAD dbschema and dbload 4 Bring the source database server offline 5 Install and c
238. s views to be folded into a parent query 10 00xC4 DB_LIBRARY_PATH Specifies a comma separated list of valid directory prefix locations from which the database server can load external modules B 4 IBM Informix Migration Guide Table B 1 New Configuration Parameters continued Version New Configuration Parameter Description 10 00xC4 SECURITY_ LOCALCONNECTION Lets you verify security on local connections by verifying that the ID of the local user who is running a program is the same ID of the user who is trying to access the database 10 0 ALRM_ALL_EVENTS Specifies whether ALARMPROGRAM runs for all events that are logged in the MSGPATH or only specified noteworthy events 10 0 BUFFERPOOL Specifies configuration information for a buffer pool for each different page size used by a dbspace 10 0 10 0 10 0 CDR_SUPPRESS_ ATSRISWARN DRIDXAUTO DS_NONPDQ_QUERY_MEM Enterprise Replication configuration parameter that specifies whether comma separated error and warning numbers are suppressed from ATS and RIS files Determines how a secondary database server reacts to a high availability data replication failure Increases the amount of sort memory that is available for a query that is not a PDQ query 10 0 EXT_DIRECTIVES An external optimizer directive that provides a temporary solution to problems when you do not want to change SQL statements in
239. schema output file tab sql dbschema d db t customer gt tab sql Remove the header information about dbschema from the output file tab sql and then use DB Access to re create the table in another database as follows dbaccess dbl tab sql Re creating the schema of a database You can use dbschema and DB Access to save the schema from a database and then re create the schema in another database A dbschema output file can contain the statements for creating an entire database To save a database schema and re create the database 1 Use dbschema to save the schema to an output file such as db sql dbschema d db gt db sql You can also use the ss option to generate server specific information dbschema d db ss gt db sql 2 Remove the header information about dbschema if any from the output file 3 Add a CREATE DATABASE statement at the beginning of the output file or use DB Access to create a new database 4 Use DB Access to re create the schema in a new database dbaccess db sql When you use db sql to create a database on a different database server confirm that dbspaces exist The databases db and testdb differ in name but have the same schema Chapter 11 The dbschema utility 11 13 11 14 IBM Informix Migration Guide Chapter 12 The LOAD and UNLOAD statements You can use the SQL LOAD and UNLOAD statements to move data The LOAD statement is moderately fast and easy to use but it only accepts speci
240. schema utility 11 11 11 12 High Mode 10 000000 Resolution Distribution information in dbschema output The distribution information in dbschema output describes the bins that are created for the distribution the range of values in the table and in each bin and the number of distinct values in each bin Consider the following example 5 1 16 7 11 2 16 6 17 3 16 8 25 4 16 8 38 5 16 7 52 6 16 8 73 7 16 12 95 8 16 12 139 9 16 Il 182 10 10 5 200 The first value in the rightmost column is the smallest value in this column In this example it is 5 The column on the left shows the bin number in this case 1 through 10 The first number in parentheses shows how many values are in the bin For this table 10 percent of the total number of rows 165 is rounded down to 16 The first number is the same for all the bins except for the last The last row might have a smaller value indicating that it does not have as many row values In this example all the bins contain 16 rows except the last one which contains 10 The middle column within the parentheses indicates how many distinct values are contained in this bin Thus if there are 11 distinct values for a 16 value bin it implies that one or more of those values are duplicated at least once The right column within the parentheses is the highest value in the bin The highest value in the last bin is also the highest
241. se Replication If you use Enterprise Replication you must remove replicate groups and perform other replication related tasks before you prepare for migration Prerequisites You must perform all migration operations as user informix To prepare for migration with Enterprise Replication 1 If you are migrating from Version 7 31 remove all replicate groups In Version 9 3 replicate groups were replaced by replicateset replset commands 2 Stop applications that are performing replicable transactions 3 Make sure that control and TRG send queues are empty e Run onstat g grp to ensure that the Enterprise Replication grouper does not have any pending transactions The grouper evaluates the log records rebuilds the individual log records into the original transaction packages the transaction and queues the transaction for transmission e Run onstat g rqm to check for queued messages 4 Replace old event class identifiers IDs used in the ALARMPROGRAM with the new event class IDs 5 Shut down Enterprise Replication with the following command cdr stop Now you can complete the steps in Preparing for migration on page 3 1 and if necessary in Migrating from 32 bit to 64 bit database servers on page 3 10 Migrating with Enterprise Replication If you use Enterprise Replication you must complete additional replication related tasks when you migrate to a new version of Dynamic Server Prerequ
242. servers on different operating systems and different kinds of database servers Conversion or reversion often involves changing connectivity information in the sqlhosts file or registry key host environment variables configuration parameters and other database server features Assumptions about your locale IBM Informix products can support many languages cultures and code sets All the information related to character set collation and representation of numeric data currency date and time is brought together in a single environment called a GLS Global Language Support locale The examples in this publication are for the default locale en_us 8859 1 This locale supports U S English format conventions for date time and currency In addition this locale supports the ISO 8859 1 code set which includes the ASCII code set plus many 8 bit characters such as and Copyright IBM Corp 1996 2010 ix If you plan to use nondefault characters in your data or your SQL identifiers or if you want to conform to the nondefault collation rules of character data you must specify the appropriate nondefault locale For instructions on how to specify a nondefault locale additional syntax and other considerations related to GLS locales see the IBM Informix GLS User s Guide What s new in migration for Dynamic Server Version 11 50 This publication includes information about new features and changes in existing functiona
243. ss a fatal error occurs Even if you use the c option dbexport interrupts processing if one of the following fatal errors occurs e dbexport is unable to open the specified tape e dbexport finds bad writes to the tape or disk e Invalid command parameters were used e dbexport cannot open the database or there is no system permission for doing so e A subdirectory with the name specified during invocation already exists dbexport server specific information The dbexport ss option generates server specific information This option specifies initial and next extent sizes fragmentation information if the table is fragmented the locking mode the dbspace for a table the blobspace for any simple large objects and the dbspace for any smart large objects The dbexport si option which is available only with the ss option does not generate index storage clauses for non fragmented tables dbexport destination options The dbexport utility supports disk and tape destination options Destination Options 0o directory t device b blocksize s tapesize _ f pathname Element Purpose Key Considerations b blocksize Specifies in kilobytes the block size of the tape None 9 4 IBM Informix Migration Guide Element Purpose Key Considerations f pathname Specifies the name of the path where you want Additional Information The path name c
244. ssume that dbexport unloaded the database stores_demo into the directory work exports stores_demo exp Thus the data files the unl files are stored in work exports stores_demo exp and the schema file is work exports stores_demo exp stores_demo sql To change the database name to a new name on UNIX or Linux 1 Change the name of the exp directory That is change work exports stores_demo exp to work exports newname exp 2 Change the name of the schema file That is change work exports stores_demo exp stores_demo sql to work exports stores_demo exp newname sql Do not change the names of the unl files 3 Import the database with the following command dbimport i work exports newname To change the database name to a new name on Windows In the following example assume that dbexport unloaded the database stores_demo into the directory D work exports stores_demo exp Thus the data files the unl files are stored in D work exports stores_demo exp and the schema file is D work exports stores_demo exp stores_demo sq l 1 Change the name of the exp directory That is change D work exports stores_demo exp to D work exports newname exp 2 Change the name of the schema file That is change D work exports stores_demo exp stores_demo sql to D work exports stores_demo exp newname sql Do not change the names of the unl files 3 Import the database with the following command dbimport i D work exports
245. statements that you can use to move data from one IBM Informix database to another or from one operating system to another You might want to use a data migration tool when you have different page sizes or code pages For example UNIX or Linux and Windows store data in different page sizes When your migration involves migrating between different operating systems you must export data and its schema information from one database server and import the exported data into the other database server Copyright IBM Corp 1996 2010 2 1 Normally if you are migrating on the same operating system you do not need to load and unload data You can use the following tools to move data e The dbexport and dbimport utilities e The dbload utility e The onunload and onload utilities e UNLOAD and LOAD statements e The High Performance Loader HPL e Nonlogging raw tables When you import data from non Informix sources you can use the following tools The dbimport and dbload utilities e The High Performance Loader HPL e IBM Informix Enterprise Gateway products e External tables that you create with the CREATE EXTERNAL TABLE statement The best method for moving data depends on your operating system and whether you want to move an entire database selected tables or selected columns from a table The following table summarizes the characteristics of the methods for loading data and the advantages and disadvantages of each method The t
246. sysmaster database is complete Dynamic Server stops and indicates that you must back up the logical logs After you back up the logical logs the database server can finish building the sysmaster database You cannot use ON Bar to back up the logical logs because the database has not been converted yet If you have ALARMPROGRAM set to log_full sh in the ONCONFIG configuration file errors are generated as each log file fills during the migration Set the value of ALARMPROGRAM to either nothing or no_log sh so that these errors are not Chapter 6 Migrating to Dynamic Server Version 11 50 6 5 generated If your logical log does fill up during the migration you must back it up with ontape the only backup tool you can use at this point Issue the ontape a command Bring the new version of Dynamic Server online for the first time by executing oninit on UNIX or by using the Service control application on Windows For more information see the IBM Informix Dynamic Server Administrator s Guide As Dynamic Server comes online for the first time it modifies certain disk structures This operation should extend the initialization process by only a minute or two If your disks cannot accommodate the growth in disk structures you will find a message in the message log file that instructs you to run oncheck on a table The oncheck utility will tell you that you need to rebuild an index You must rebuild the index as instructed Upgrading the High Perform
247. t IBM Corp 1996 2010 IBM Informix Migration Guide Appendix A New environment variables Each version of Dynamic Server contains new environment variables that could affect your installation You might also need to adjust the values of existing environment variables For more information on environment variables see the IBM Informix Guide to SQL Reference and your IBM Informix Dynamic Server Administrator s Guide Table A 1 lists the new environment variables in various versions of Dynamic Server Table A 1 New Environment Variables Version Environment Variable Description 11 50xC6 IFXRESFILE Linux Specifies the path and name of a response file when you install an IBM Informix product with RPM Package Manager The response file must contain the path of the installation directory if you do not choose the default installation location as well as your other customized installation settings 11 50xC4 IFXK_LARGE_PAGES AIX and Enables the use of large pages for Solaris non message shared memory segments that are resident in physical memory When large pages have been configured by operating system commands and the RESIDENT configuration parameter is set appropriately this feature can offer significant performance benefits for large memory configurations 11 50xC4 IFX_ NO SECURITY CHECK Turns off the utilities that check the security of SINFORMIXDIR when the database server is started Use this environm
248. t because onunload copies the data in binary format and in page sized units The onload utility takes a tape or a file that the onunload utility creates and re creates the database or the table The onunload and onload utilities are faster than dbimport dbload or LOAD but are much less flexible and do not let you modify the database schema or move from one operating system or database server version to another Important You can use the onunload and onload utilities with Dynamic Server 11 10 10 00 9 40 9 30 or 9 21 if the databases contain only legacy data types and no extended data types In addition you cannot use these utilities with Dynamic Server versions that are earlier than version 7 24 Related concepts Choosing a tool for moving data before migrating between operating systems on Page 8 1 Related reference Data migration tools on page 2 1 Guidelines for when to use the onunload and onload utilities You can use onunload and onload only when certain conditions are met You can use only onunload and onload if your answer to each of the following questions is yes If your answer is no you cannot use onunload and onload Use onunload and onload Only If Your Answer To Each Question Is Yes Is the target database server on the same hardware platform Do you want to move to another database server of the same version Do you want to keep the existing database schema without modifying it
249. t remove any new procedures fragmented tables check constraints and triggers New Configuration Parameters These cannot be reverted New or Outstanding In place Alters In place ALTER TABLE statements performed in the new version of the server must not be outstanding against any table If a table has an incomplete new in place ALTER operation you must ensure that the in place ALTER operation is complete by running a dummy UPDATE statement against the table If the reversion process does not complete successfully because of in place ALTER operations the reversion process lists all the tables that need dummy updates You must perform a dummy update on each of the tables in the list before you can revert to the older database server If an in place ALTER operation is incomplete against a system table run the following script while connected to the database for reversion to a 7 31 or 7 24 database server INFORMIXDIR etc dummyupds7x sql Important Any in place alter that was completed in a Dynamic Server Version prior to the current version will successfully revert and dummy updates are not necessary for them The following table lists additional requirements and limitations that apply if you are reverting to a particular version of the server Table 7 2 Requirements and limitations when reverting to a specific version of the server If reverting to this Server or Earlier Reversion Requirement or Limitation Servers Exter
250. t to comment on Click the feedback link at the bottom of the page fill out the form and submit your feedback e Add comments to topics directly in the IDS information center and read comments that were added by other users Share information about the product documentation participate in discussions with other users rate topics and more Find out more at http publib boulder ibm com infocenter idshelp v115 topic com ibm start doc contributing Feedback from all methods is monitored by those who maintain the user documentation The feedback methods are reserved for reporting errors and omissions in our documentation For immediate help with a technical problem contact IBM Technical Support For instructions see the IBM Informix Technical Support Web site at http www ibm com planetwide We appreciate your suggestions Introduction xvii xviii IBM Informix Migration Guide Part 1 Overview of migration Copyright IBM Corp 1996 2010 IBM Informix Migration Guide Chapter 1 Overview of Dynamic Server migration Before you upgrade to the new version of Dynamic Server ensure that you understand the migration process prerequisites and reversion options If you have IBM Informix Dynamic Server Version 11 50 11 10 10 00 9 40 9 30 9 21 or 7 31 you can migrate directly to Dynamic Server Version 11 50 If you have another version of Dynamic Server you must first migrate to an interim version of Dynami
251. tection in dbschema output Guidelines for using the dbschema utility Syntax of the dbschema command Database schema creation dbschema server specific information x User defined and complex data types Version 9 21 or latei versioni Sequence creation Synonym creation Privileges aog Granting privileges Displaying privilege information for a role Table view or procedure creation Table information Role creation Distribution information far iles in dbschema output Example of dbschema output showing distribution information Distribution information in dbschema output Overflow information in dbschema output Use dbschema output as DB Access input Inserting a table into a dbschema output file Re creating the schema of a database Chapter 12 The LOAD and UNLOAD statements Syntax of the UNLOAD statement Syntax of the LOAD statement Load and unload statements for locales that support multibyte cod ore Load and unload statements for non default locales and GL_DATETIME environment variable Chapter 13 The onunload and onload utilities Guidelines for when to use the onunload and onload utilities Requirements for using the onload and onunload utilities How the onunload and onload utilities work Syntax of the onunload command onunload destination parameters Constraints that affect onunload Privileges for database or table unloading Tables that are unloaded with a database Data that is
252. tects database objects that are keywords mixed case or have special characters and places double quotes around them If your most recent dbload session ended prematurely specify the starting line number in the command line syntax to resume loading with the next record in the file Command file for the dbload utility Before you use the dbload utility you must create a command file that names the input data files and the tables that receive the data The command file maps fields from one or more input files into columns of one or more tables within your database The command file contains only FILE and INSERT statements Each FILE statement names an input data file The FILE statement also defines the data fields from the input file that are inserted into the table Each INSERT statement names a table to receive the data The INSERT statement also defines how dbload places the data that is described in the FILE statement into the table columns Within the command file the FILE statement can appear in these forms e Delimiter form e Character position form The FILE statement has a size limit of 4 096 bytes Use the delimiter form of the FILE statement when every field in the input data row uses the same delimiter and every row ends with a new line character This format is typical of data rows with variable length fields You can also use the delimiter form of the FILE statement with fixed length fields as long as the data
253. ted data Open each database with DB Access and use oncheck to verify that data was not corrupted during the migration process You can also verify the integrity of the reserve pages extents system catalog tables data indexes and smart large objects as Table 6 1 on page 6 10 shows Chapter 6 Migrating to Dynamic Server Version 11 50 6 9 6 10 Table 6 1 Commands for verifying the data integrity Action oncheck Command Check reserve pages oncheck cr Check extents oncheck ce Check system catalog tables oncheck cc database_name Check data oncheck cD database_name Check indexes oncheck cI database_name Check smart large objects oncheck cs sbspace_name Check smart large objects plus extents oncheck cS sbspace_name If the oncheck utility finds any problems the utility prompts you to respond to corrective action that it can perform If you respond Yes to the suggested corrective action run the oncheck command again to make sure the problem has been fixed The oncheck utility cannot fix data that has become corrupt If the oncheck utility is unable to fix a corruption problem you might need to contact Technical Support before your proceed Back up Dynamic Server after migrating to the new version Use a backup and restore tool ON Bar or ontape to make a level 0 backup of the new database server Do not overwrite the tapes that contain the final backup of the old database server For more inf
254. ted using INOUT parameters 9 40 Default Roles During reversion the defrole column is dropped from the sysusers table You must revoke default roles from users before reverting 9 40 Tables and Indexes that Use Fragment Partition Syntax If you created tables using the new fragment partition syntax you must drop the tables or you must use the ALTER FRAGMENT INIT statement to change the syntax before reverting to a pre 10 00 version of Dynamic Server Dynamic Server drops the partition column from the sysfragments table during reversion 9 40 External Optimizer Directives You cannot revert if external optimizer directives have been created Non default Page Size If you specified the page size for a standard or temporary dbspace instead of using the default dbspace page size you must drop all non default size dbspaces before you revert to a pre 10 00 version of Dynamic Server IPv6 Addresses If you used an IPv6 address in the SQLHOSTS file during reversion you must replace the IPv6 address with either the machine name or IPv4 address assigned to the machine 9 40 9 40 9 40 Procedures Functions and Triggers Created with New Version You must drop all triggers procedures and functions created with the new version before reverting 9 40 Maximum chunk size Dbspaces cannot have chunks larger than 2 GB or in the new chunk format chunks that extend further than 2 GB into their device or file or conta
255. tem databases The first time the database server is brought online the sysmaster sysutils sysuser and sysadmin databases are built After moving to a database server on a different operating system check the message log to ensure that the sysmaster and sysutils databases have been created successfully before you allow users to access the database server After you ensure that client users can access data on the database server the migration process is complete Next you might want to seek ways to obtain maximum performance For details on topics related to performance see your IBM Informix Dynamic Server Performance Guide Chapter 8 Migrating database servers to a new operating system 8 3 8 4 IBM Informix Migration Guide Part 4 Data migration utilities Copyright IBM Corp 1996 2010 IBM Informix Migration Guide Chapter 9 The dbexport and dbimport utilities The dbexport and dbimport utilities import and export a database to a text file that is stored on disk or tape The dbexport utility unloads an entire database into text files and creates a schema file You can use the schema file with dbimport to re create the database schema in another IBM Informix environment and you can edit the schema file to modify the database that dbimport creates You might want to use the dbexport and dbimport utilities if you cannot use the onunload and onload utilities and you want to unload a database with or without its schema
256. tement implies that the input values for every field are defined in the most recent FILE statement This INSERT statement is valid because the stock table contains six fields which is the same number of values that the FILE statement defines The following example shows the first data row that is inserted into stock from this INSERT statement Field Column Value 01 stock_num 1 02 manu_code SMT 03 description baseball gloves 04 unit_price 450 00 05 unit case 10 8 IBM Informix Migration Guide Field Column Value 06 unit_descr 10 gloves case The FILE and INSERT statement in the following example illustrates a more complex INSERT statement syntax FILE stock unl DELIMITER 6 INSERT INTO new_stock coll col2 col3 col5 col6 VALUES f01 f03 f02 f05 autographed In this example the VALUES clause uses the field names that dbload assigns automatically You must reference the automatically assigned field names with the letter f followed by a number f01 f02 10 100 999 1000 and so on All other formats are incorrect Tip The first nine fields must include a zero f01 f02 f09 The user changed the column names the order of the data and the meaning of col6 in the new stock table Because the fourth column in new_stock col4 is not named in the column list the new data row contains a null value in the col4 position assuming that the column permits null
257. tement to change the table type from STANDARD to RAW After Chapter 2 Overview of moving data 2 5 the loading of a raw table is complete you can change the table to a logging table in a logging database by changing the table type to STANDARD Then you can use ALTER TABLE statements to add referential constraints to the table and CREATE INDEX statements to add indexes For more information on these SQL statements see the IBM Informix Guide to SQL Syntax To load raw tables you can use any data loading utility such as dbimport or HPL in express mode After you load data perform a level 0 backup Before you modify any data in a raw table or use it in a transaction change the table type to STANDARD If an error or failure occurs during the loading of a raw table the resulting data is whatever was on the disk at the time of the failure The dbexport and dbschema utilities support the CREATE RAW TABLE and ALTER TABLE TYPE RAW statements For more information on nonlogging tables see your IBM Informix Dynamic Server Administrator s Guide For more information on how to improve the performance of loading very large tables see your IBM Informix Dynamic Server Performance Guide For more information on the ALTER TABLE statement see the IBM Informix Guide to SQL Syntax Dynamic Server also supports external tables which provide an SQL interface to data in text files managed by the operating system or to data from a FIFO device To
258. this Server or Earlier Servers ANSI Joins in Distributed Queries Distributed queries that use ANSI compliant LEFT OUTER syntax for specifying joined tables and nested loop joins run more efficiently in Dynamic Server Version 10 00 UC4 than in earlier releases This occurs through sending the query to each participating database server for operations on local tables of those servers If you revert from Version 10 00 UC4 or later to an earlier release that does not support this implementation of the ANSI compliant syntax such queries might show reduced performance because the Dynamic Server instance from which the query originates will perform the joins locally 10 00 xC4 The INDEX SJ and AVOID_INDEX_SJ Optimizer Directives When queries explicitly use the new INDEX_SJ and AVOID_INDEX_SJ optimizer directives these directives have no effect when the query runs You must run UPDATE STATISTICS on stored procedures to force re compilation of stored procedures In addition reversion removes the effect of these directives in SAVE EXTERNAL DIRECTIVES statements and on output from the SET EXPLAIN statement If you revert to a version of the database server that supports the sysdirectives system catalog table but does not support the AVOID_INDEX_SJ or INDEX_SJ directives user informix must delete any active row of sysdirectives that includes AVOID_INDEX_SJ or INDEX_SJ in the directives column sysdbopen and sysdbclose procedures Earlier
259. tility only creates a new database or table you must drop or rename an existing database or table of the same name before you run onload During execution the onload utility s prompt will ask you if you want to rename blobspaces The onload utility places a shared lock on each of the tables in the database during the load Although you cannot update a table row with the lock in place the database is available for queries When you load a complete database the user who runs onload becomes the owner of the database The onload utility creates a database without logging you must initiate logging after onload loads the database When you use onload to load a table into a logged database you must turn off logging for the database during the operation For fragmented tables the dbspace assignment is preserved unless you override it using the fn option For non fragmented tables the onload utility attempts to store the table in root dbspace if a target dbspace is not specified with the d option If storing the table in root dbspace or in the dbspace specified with the d option is not Chapter 13 The onunload and onload utilities 13 9 possible due to difference in page sizes the onload utility tries to use a dbspace that has the same dbspace number as the dbspace number of originally unloaded table If this dbspace still has a different page size the load operation will fail Logging during loading When you use the onload utility to c
260. tion expands dbslice names into dbspace name lists in ss output Important Use the dbschema ss option to obtain information specific to a database server including fragmentation and storage options If the dbspace contains multiple partitions dbspace partition names appear in the output For information about fragment level authority see the GRANT FRAGMENT and REVOKE FRAGMENT statements in the IBM Informix Guide to SQL Syntax User defined and complex data types Version 9 21 or later versions The dbschema u option displays the definitions of any user defined and complex data types that the database contains The suboption i adds the type inheritance to the information that the dbschema u option displays The following command displays all the user defined and complex data types for the stork database dbschema d stork u all Output from dbschema that ran with the specified option u all might appear as the following example shows create row type informix person_t name varchar 30 10 not null address varchar 20 10 city varchar 20 10 state char 2 zip integer bdate date create row type informix employee_t salary integer manager varchar 30 10 under person_t The following command displays the user defined and complex data types as well as their type inheritance for the person_t table in the stork database dbschema d stork ui person_t Chapter 11 The dbschema utility 11 5
261. tion if you are moving to Dynamic Server Version 11 50 from an early version of Dynamic Server that has a different architecture page size optimization of dbspaces and extent allocations Migrating from a non IBM database The process of moving your data from another database management system DBMS such as Oracle or Sybase SQL Anywhere to Dynamic Server Version 11 50 This type of migration is especially useful if you are currently using various products You can consolidate to take advantage of the Dynamic Server features and total cost of ownership Migration tools You can choose from various migration tools depending on the task that you must perform e For in place upgrades You do not use any migration tools Simply start the server by using the oninit utility The data from the source database server is converted to the target database server automatically e For non in place migration You can use distributed queries to move your data or you can pick from a number of data transfer tools and utilities such as dbexport and dbimport onload and onunload dbload High Performance Loader HPL Each of these tools and utilities has specific advantages and limitations Consider all of the variables and pick a tool or utility that is appropriate for your situation e For migrating your data from non IBM products To migrate from a variety of source databases to Informix Dynamic Server regardless of platform d
262. tion parameter B 3 ENCRYPT_MAC configuration parameter B 6 ENCRYPT_MACFILE configuration parameter B 6 ENCRYPT_SMX configuration parameter B 3 ENCRYPT_SWITCH configuration parameter B 6 Enterprise Gateway using to import data 2 7 Enterprise Gateway Manager 2 7 Enterprise Replication 4 4 Environment variables DB_LOCALE 9 11 DBTEMP 9 12 Environment variables new in Dynamic Server 9 20 A 1 GL_USEGLU 6 4 IFX_ONPLOAD_AUTO_UPGRADE 6 6 INFORMIXSERVER 6 4 INFORMIXSQLHOSTS 6 4 new in Dynamic Server 10 0 A 1 new in Dynamic Server 11 10 A 1 new in Dynamic Server 11 50 A 1 new in Dynamic Server 9 21 A 1 new in Dynamic Server 9 30 A 1 new in Dynamic Server 9 40 A 1 ONCONFIG 6 4 PATH 6 4 resetting after reversion 7 12 TEMP 9 12 TMP 9 12 EXPLAIN STAT configuration parameter B 3 Express Edition does not support Enterprise Replication 4 4 migrating to 1 1 EXT_DIRECTIVES configuration parameter B 5 Extents checking 6 10 Extracting schema information 8 1 Index X 3 F FAILOVER_CALLBACK configuration parameter B 2 Fast recovery initiating 3 7 FASTPOLL configuration parameter B 4 FILE statement character position form 10 9 delimiter form 10 6 10 8 syntax for character position form 10 10 delimiter form 10 6 with dbload 10 5 FIRST clause 7 3 Fix packs naming conventions 1 6 G GL_USEGLU environment variable 6 4 Global Language Support GLS dbimport utility 9 6 using onload and onunload 13 2 GRANT statement
263. tional tasks when you migrate When you migrate clusters you need to migrate only the primary database server IBM Informix Migration Guide Beginning with Dynamic Server Version 11 50xC6 the server automatically removes secondary servers when you migrate or revert After migration or reversion on the primary server is complete you must recreate all High availability Data Replication HDR RS and SD secondary servers in a high availability cluster Prerequisites e Complete the steps in ing for migration on e Complete the steps in Preparing to migrate up rade or revert clusters on page 5 1 e Perform all migration operations as user informix When you migrate clusters be sure to stop and start the servers in the cluster in the order shown in the following procedure To migrate to a new release with high availability clusters 1 Stop the Connection Manager by issuing the oncmsm k connection_manager_name command 2 If you are using a High availability Data Replication HDR secondary server as a backup server in case of contingencies a Quiesce the primary server by issuing an onmode sy command to prevent user connections to the server b Force a checkpoint by issuing an onmode c command on the primary server 3 Stop the secondary servers in the cluster in the following order a If you have remote standalone RS secondary servers stop them by issuing the onmode ky command b If you have shared
264. to calen Table view or procedure creation Several dbschema options generate information that shows the creation of tables views and procedures The following syntax diagram shows the creation of tables views and procedures gt gt gt lt Lt tabie ae 1 i view view al p all Ea all Element Purpose Key Considerations f all Limits the SQL statement output to those statements that are needed to None replicate all functions and procedures f function Limits the SQL statement output to only those statements that are needed to None replicate the specified function f procedure Limits the SQL statement output to only those statements that are needed to None replicate the specified procedure ff all Limits the SQL statement output to those statements that are needed to None replicate all functions fp all Limits the SQL statement output to those statements that are needed to None replicate all procedures t table Limits the SQL statement output to only those statements that are needed to None replicate the specified table t view Limits the SQL statement output to only those statements that are needed to None replicate the specified view t all Includes in the SQL statement output all statements that are needed to None replicate all tables and views 11 8 IBM Informix Migration Guide Element Purpose Key Considerations
265. to the current version of Dynamic Server and created a few new databases but decide to revert to the previous version Before you revert you can use one of the data migration tools to save the data you added After reverting you can reload the data Before you move data consider these issues e Changes in the configuration parameters and environment variables e Amount of memory and dbspace space that is required e Organization of the data e Whether you want to change the database schema to accommodate more information to provide for growth or to enhance performance For information about how to move data between database servers on different operating systems also see Chapter 8 Migrating database servers to a new operating system on page 8 1 For information about how to move to a different GLS locale see the IBM Informix GLS User s Guide Automatic data migration You do not need to use data migration tools or utilities for in place migration The data is converted automatically from the source database server to the target database server after you start the target database server Prerequisites before moving data Before you use any data migration utility you must set your PATH INFORMIXDIR and INFORMIXSERVER environment variables For information about environment variables see the IBM Informix Guide to SQL Reference Data migration tools Dynamic Server provides tools utilities and SQL
266. ufficient space to store the restore point data When the CONVERSION_GUARD configuration parameter is enabled the onrestorept utility uses the data captured during the upgrade and stored in the directory specified in the RESTORE_POINT_DIR configuration parameter If an upgrade completes successfully the server automatically deletes restore point files The directory specified in the RESTORE_POINT_DIR configuration parameter must be empty when an upgrade begins If the directory contains any restore point files from a previous upgrade you must remove the files before a new upgrade begins a new restore point Important Dynamic Server must be offline when you run the onrestorept utility Do not start the server until the onrestorept utility has finished running Executing the onrestorept utility when the server is not offline or starting the server before the onrestorept utility has finished running can damage the database requiring a restore of the database from a backup copy You can use the onrestorept utility only after a failed upgrade If you need to revert to the prior version of the server after successfully upgrading to the new version you must revert using the onmode b command You should still backup your files before beginning the upgrade in case you need to use the onmode b command to revert to the prior version of the server after a successful migration Syntax of the onrestorept command The onrestorept command undoes chan
267. ult values that are associated with a table In addition access privileges that are defined for the table and synonyms or views that are associated with the table are not unloaded Locking during unload operation During the unload operation the database or table is locked in shared mode An error is returned if onunload cannot obtain a shared lock The onload utility creates a database or table in a specified dbspace excluding SE The onload utility then loads it with data from an input tape or disk file that the onunload utility creates Logging mode The onunload utility does not preserve the logging mode of a database After you load the database with onload you can make a database ANSI compliant or add logging For information about logging modes refer to the IBM Informix Guide to SQL Syntax During the load you can move simple large objects that are stored in a blobspace to another blobspace If you do not specify any source parameter options onload uses the device that is specified as TAPEDEV The block size and tape size are the values that are specified as TAPEBLK and TAPESIZE respectively For more information about TAPEDEV TAPEBLK and TAPESIZE refer to your IBM Informix Dynamic Server Administrator s Guide If you do not specify creation options onload stores the database or table in the root dbspace Syntax of the onload command 13 6 The onload command loads data that was created with the onun
268. unloaded with a table Locking during unload operation Logging mode Syntax of the onload command onload source parameters onload create options Constraints that affect onload Logging during loading Movement of simple large objects to a blobspace Ownership and privileges Exclusive locking during a load operation Moving a database between computers with the onu nload and onload utilities Moving a table between computers with the onunload and onload utilities Moving a table between dbspaces with the onunload and onload utilities Chapter 14 The onmode utility reversion option What the onmode b command does Preparation for using the onmode b command Syntax of the onmode b command Chapter 15 The onrestorept utility Syntax of the onrestorept command vi IBM Informix Migration Guide 11 1 11 1 11 2 11 2 s 11 3 11 5 211 5 11 6 11 6 11 7 11 7 11 8 11 8 11 9 11 9 11 10 11 11 11 12 11 12 11 13 11 13 11 13 12 1 12 1 12 2 12 2 12 2 13 1 13 1 13 2 13 3 13 3 13 4 13 5 13 5 13 5 13 6 13 6 13 6 13 6 13 7 13 8 13 9 13 10 13 10 13 10 13 10 13 11 13 11 13 12 14 1 14 1 14 1 14 1 15 1 15 1 Part 5 Appendixes Appendix A New environment variables Appendix B New configuration parameters Appendix C Configuration parameters that have been
269. upt key The dbimport utility asks for confirmation before it terminates dbimport errors and warnings The dbimport c option tells the dbimport utility to complete exporting unless a fatal error occurs If you include the c option in a dbimport command dbimport ignores the following errors e A data row that contains too many columns e Inability to put a lock on a table e Inability to release a lock Even if you use the c option dbimport interrupts processing if one of the following fatal errors occurs e Unable to open the tape device specified e Bad writes to the tape or disk e Invalid command parameters e Cannot open database or no system permission e Cannot convert the data The dbimport utility creates a file of messages called dbimport out in the current directory This file contains any error messages and warnings that are related to dbimport processing The same information is also written to the standard output unless you specify the q option dbimport input file location options The input file location specifies the location of the database exp directory which contains the files that the dbimport utility will import If you do not specify an input file location dbimport searches for data files in the directory database exp under the current directory and for the schema file in database exp database sql dbimport Input File Location i d i rec tory _ _ t device b
270. ust coordinate the migration of all of the servers that are involved in a cluster and you must perform additional steps when preparing to migrate Prerequisites e You must patoi all migration Operauens as user informix To prepare for migration or reversion with clusters 1 Install the target server in a different location from where the source database server is installed on all of the servers in the cluster Do not install the target server over the source server 2 Copy the configuration files the onconfig and sqlhosts files to the target installation directory for example INFORMIXDIR etc on all of the servers in the cluster 3 Install any user defined objects or Datablade modules that are used on the source server onto all of the servers in the cluster 4 Back up your primary server You can perform this step in either of the following ways e Back up all logs Then use ON Bar or ontape to make a level 0 backup on the primary source server e Alternatively if you have a high availability cluster with a High availability Data Replication HDR secondary server you can use the HDR secondary server as a standby server for any contingencies that occur while you upgrade the primary server However if it is necessary to use an HDR secondary server as a standby server for contingencies do not perform updates on the standby server while migration or reversion is in progress because the updates cannot be replicated
271. utilities to move data from one version to another version e You cannot use onload and onunload to move data between different types of database servers e The onload command must have the same scope as the corresponding onunload command that unloaded the same table or tables that onload references You cannot for example use onunload to unload an entire database and then use onload to load only a subset of the tables from that database e Do not use onload and onunload to move data if the database contains extended data types Use the HPL instead to move the data e Because the tape that onload reads contains binary data that is stored in disk page sized units the computers where the original database resides where you use onunload and where the target database will reside where you use onload must have the same page size the same representation of numeric data the same byte alignment for structures and unions e You cannot use onload and onunload to move data between non GLS and GLS locales e You cannot use onload and onunload on servers in high availability clusters e You cannot use onload and onunload if you have compressed tables or fragments You can use onunload and onload to move data between databases if the NLS and GLS locales are identical For example if both the NLS and GLS tables were created with the same French locale onload and onunload can move data However if user A has a French locale NLS table on s
272. version 11 10 10 00 9 4 TC4 Version 11 50 on Windows 2003 or 7 31 TC9 and higher on Windows 2003 Chapter 1 Overview of Dynamic Server migration 1 9 Table 1 5 Source and target versions for migration and reversion on Windows continued Source Version Target Version Dynamic Server version 11 10 TC2 on Version 11 50 on Windows x64 Windows x64 Windows 2003 or Windows XP Dynamic Server version 10 00 32 bit on Version 11 50 on Windows Vista Windows XP Dynamic Server version 11 10 32 bit or 64 bit server on Windows XP Changes in Dynamic Server Each version of Dynamic Server contains new features and new and changed environment variables configuration parameters SQL reserved words system catalogs and system databases Some of these changes might affect your applications Related concepts Related reference Appendix A New environment variables on page A 1 Appendix B New configuration parameters on page B 1 Appendix C Configuration parameters that have been changed or removed on Appendix E System catalog and system database chang 1 10 IBM Informix Migration Guide Chapter 2 Overview of moving data If you are installing the new version of the database server on another computer or operating system non in place migration you can use one of several tools and utilities to move data from your current database server For example suppose you migrated
273. w version of Dynamic Server For more 7 Tune the new version of Dynamic Server for performance For more tasks For more information see 9 If you use high availability clusters perform additional migration tasks For more information see Chapter 5 High availability cluster migration on 10 Register any DataBlade modules that you installed For more information see Register DataBlade modules on page 6 10 11 If you are migrating from Version 11 50 xC1 11 50 xC3 or 11 50 xC3 run the buildsmi script if you plan to use the syscompdict_full table which shows compression information The buildsmi script which is in the etc directory in your installation drops and recreates the sysmaster database which contains the syscompdict_full table The buildsmi script must be run as user informix on UNIX or as a member of the Informix Admin group on Windows after ensuring that no connections to the sysmaster database are made during the build of the database After you migrate and start using the new version refer to Chapter 7 Reverting from Dynamic Server Version 11 50 on page 7 1lin case you need to revert Repeat the migration and post migration procedures for each instance of Dynamic Server Version 11 50 that you plan to run on the computer If a serious error occurs during the migration you might need to return to the previous version of the server restore from a level 0 backup and then correct the problem
274. wing syntax diagram fragment shows onload source parameters Source Parameters 1 ane b blocksize s tapesize t source Notes 1 Only one occurrence of each option allowed More than one option can occur in a single invocation Element Purpose Key Considerations b blocksize tape device Specifies in kilobytes the block size of the Requirements Unsigned integer Must specify the block size of the tape device Additional Information This option overrides the default value in TAPEBLK or LTAPEBLK 13 7 Chapter 13 The onunload and onload utilities Element Purpose Key Considerations l Directs onload to read the values for tape Additional Information If you specify l and then b device block size and tape size from the s or t the value that you specify overrides the value configuration parameters LTAPEDEV in the configuration file LTAPEBLK and LTAPESIZE respectively s tapesize Specifies in kilobytes the amount of data Requirements Unsigned integer To write to the end of that the database server can store on the the tape specify a tape size of 0 tape If you do not specify 0 then the maximum tapesize is 2 097 151 KB Additional Information This option overrides the default value in TAPESIZE or LTAPESIZE t source Specifies the path name of the file on disk Must be a legitimate path name or of the tape device
275. ynamic Server on page 1 10 Configuration parameter changes in the Version 11 50 onconfig std File The onconfig std file was reorganized for Dynamic Server Version 11 50 In the new onconfig std file comments and the parameters are listed separately and are grouped by functional areas Some configuration parameters that specify sizes have now have higher values Some configuration parameters that specify file locations now have more secure default locations under the INFORMIXDIR directory Deprecated configuration parameters were removed from the file Configuration parameters that have been added to the onconfig std file The following table lists the configuration parameters that were added to the onconfig std file in Version 11 50 Table C 1 Configuration Parameters Added to the onconfig std File Configuration Parameter Value ADMIN_USER_MODE_WITH_DBSA none BISCANNER num 1 priority low threshold 5000 rangesize 1 alice 6 compression default BACKUP_FILTER none BAR_DEBUG 0 CDR_SUPPRESS_ATSRISWARN none DD_HASHMAX 10 DD_HASHSIZE 31 DEF_TABLE_LOCKMODE page DS_HASHSIZE 31 DS_POOLSIZE 127 ENCRYPT_CDR none ENCRYPT_CIPHERS none ENCRYPT_HDR none ENCRYPT_MAC none ENCRYPT_MACFILE none ENCRYPT_SMX none ENCRYPT_SWITCH none Copyright IBM Corp 1996 2010 C 1 C 2 Table C 1 Configuration Parameters Added to the onconfig std File continued
276. ynamic Server 9 30 Dynamic Server 9 21 Dynamic Server 7 31 Dynamic Server 7 30 You must first migrate to IBM Informix Migration Dynamic Server 10 00 Dynamic Guide Version 10 00 9 40 Server 9 40 or Dynamic Server or 7 31 7 31 Dynamic Server 7 24 You must first migrate to IBM Informix Migration 7 Dynamic Server 10 00 or Guide Version 10 00 or Workgroup Edition 7 24 Dynamic Server 9 40 9 40 Chapter 1 Overview of Dynamic Server migration 1 7 1 8 Table 1 2 Migration paths for moving to a newer database server continued Source Database Server Target Database Server Reference Universal Server 9 14 IBM Informix Migration You must first migrate to Guide Version 9 30 Dynamic Server 9 20 Dynamic Server 9 30 or Dynamic Server 9 21 OnLine Dynamic Server 7 23 You must first migrate to IBM Informix Migration Dynamic Server 7 31 Guide Version 7 31 OnLine Dynamic Server 7 22 OnLine 5 1 or earlier versions illustrates the paths for converting from specific older database servers to Dynamic Server version 11 50 Dynamic Server 11 10 Dynamic Server 11 50 Dynamic Server 10 00 Dynamic Server 9 40 Dynamic Server 9 30 Dynamic Server 9 21 Dynamic Server 7 31 Dynamic Server 10 0 or Dynamic Server 9 40 or Dynamic Server 7 31 Dynamic Server 7 30 Dynamic Server 10 00 or Dynamic Server 7 24 Dynamic Server 9 40 Workgroup Edition 9 24 Dynamic Server 9 20 Dynamic Server 9 21 OnLine Dyna
277. you test the database server instance with the similar configuration settings and the client connection information that you use for your current database server you can remove the old version If you do not have space on your machine for two versions install the new version over the existing version In this case you cannot selectively install components you must install the whole product to block objects from the previous version Before you choose this approach make sure that you have the original installation media for the old version because you will not be able to automatically revert to it 3 Copy the ONCONFIG file to the target and set parameters that are new for the current release 4 Start an instance of the new version of Dynamic Server The database data is automatically converted 5 If you have performance problems run UPDATE STATISTICS and UPDATE STATISTICS FOR PROCEDURE This type of migration minimizes the risk of introducing errors You can always revert from the new server to the old one In the event of a problem during reversion you can restore the level 0 backup Related Information e Supported operating systems on page 1 6 e Technical document http www ibm com support docview wss uid swg21144602 Migrating Dynamic Server non in place migration 1 4 Depending on your existing Database Server setup you might need to move to a new architecture or a different server This type of migrat
278. yscdr_nif table contains information about network connections and the flow of data between Enterprise Replication servers e The syscdr_rcv table contains information about transactions being applied on target servers and acknowledgements being sent from target servers e The syscdr_atsdir table contains information about the contents of the ATS directory e The syscdr_risdir table contains information about the contents of the RIS directory e The syscdr_ats table contains the first ten lines of content of each ATS file e The syscdr_ris table contains the first ten lines of content of each RIS file e The syscdr_rqmstamp table contains information about which transaction is being added into each queue Copyright IBM Corp 1996 2010 E 1 e The syscdr_rqmhandle table contains information about which transaction is being processed in each queue Changes for Dynamic Server 11 10 Dynamic Server Version 11 10 contains new sysmaster database tables and the new sysadmin database The version 11 10 sysmaster database contains these new tables syscheckpoint sysckptinfo Schema changes were made to the systables sysindices and sysfragments tables for Version 11 10 For information on the current schema see information on systables sysindices and sysfragments in the IBM Informix Guide to SQL Reference Version 11 10 also includes a new database sysadmin which contains tables that store task properties This database is dr

Download Pdf Manuals

image

Related Search

Related Contents

Frigidaire 137168300B Washer User Manual  Tidal manual - Burmester Network Products : Support-Area  User manual of ADA  Cisco Catalyst 3750X 24  ATENÇÃO : - ShopFisio  Harbor Freight Tools Single Action Strut Spring Compressor Product manual  各部の名称 使用上のご養生意 点 灯 順 序    PCII Software - All Models (KB-WB-WH)  MANUALE TECNICO SERIE 201 CL  

Copyright © All rights reserved.
Failed to retrieve file