3 3 33>>-CREATE XADATASOURCE--xa_source--USING--xa_type-------------->< 3
Element | 3Description | 3Restrictions | 3Syntax | 3
---|---|---|---|
xa_source | 3Name that you declare here for the new XA data source | 3Must be unique among XA data source names in sysxadatasources | 3Database Object Name, p. Database Object Name | 3
xa_type | 3Name of an existing XA data source type | 3Must already exist in the database in the sysxasourcetypes system catalog table | 3Database Object Name, p. Database Object Name | 3
An XA-compliant data 3source is an external data source that complies with the X/Open DTP XA Standard 3for managing interactions between a transaction manager and a resource manager. 3To register XA-compliant data sources in the database requires two SQL statements:
3You can integrate transactions at the XA data source with the Dynamic 3Server transaction, using a 2-phase commit protocol to ensure that transactions 3are uniformly committed or rolled back among multiple database servers, and 3manage multiple external XA data sources within the same global transaction.
3Any 3user can create an XA data source, which follows standard owner-naming rules, 3according to the ANSI-compliance status of the database. Only a database that 3uses transaction logging can support the X/Open DTP XA Standard.
3Both XA data source types and instances of XA data sources are specific 3to one database. To support distributed transactions, they must be created 3in each database that interacts with the external XA data source.
3The following statement creates a new XA data source instance called informix.NewYork of type informix.MQSeries.
3CREATE XADATASOURCE informix.NewYork USING informix.MQSeries;3
Related statements: CREATE XADATASOURCE TYPE, DROP XADATASOURCE, DROP XADATASOURCE TYPE
3For the schema of the sysxadatasources system catalog 3table, see the documentation notes to the IBM Informix Guide to SQL: Reference. 3For more information on XA data sources, see the IBM Informix DataBlade API Programmer's Guide.
3