Results 1 to 1 of 1

Thread: Configuring Oracle Transparent Gateway for Global Transactions

  1. #1
    Jeanne Wiegelmann is offline Documentation
    Join Date
    Aug 2006
    Posts
    89
    Rep Power
    7

    Default Configuring Oracle Transparent Gateway for Global Transactions

    The gateway supports the following transaction capabilities:

    COMMIT_CONFIRM
    READ_ONLY
    SINGLE_SITE


    By default, the gateway runs in COMMIT_CONFIRM transaction mode. When the VSAM, IMS, or Adabas database is updated by a transaction, the gateway becomes the commit point site. The Oracle database server commits the unit of work in the VSAM, IMS, or Adabas database after verifying that all Oracle databases in the transaction have successfully prepared the transaction. Only one gateway can participate in an Oracle global transaction as the commit point site.

    To enable the COMMIT_CONFIRM transaction mode, create a recovery account and password and create a log table. The log table, called HS_TRANSACTION_LOG, records global transactions.

    Task 1: Create a Recovery Account and Password

    For the gateway to recover distributed transactions, a recovery account and password must be set up in the VSAM, IMS, or Adabas database. By default, both the user name of the account and the password are RECOVER. The name of the account can be changed with the gateway initialization parameter HS_FDS_RECOVERY_ACCOUNT. The account password can be changed with the gateway initialization parameter HS_FDS_RECOVERY_PWD.

    Note: Oracle Corporation recommends that you do not use the default value RECOVER for the user name and password. Moreover, storing plain text as user name and password in the initialization file is not a good security policy. There is now a utility called tg4pwd that should be used for encryption.

    1. Set up a user account in the VSAM, IMS, or Adabas database. Both the user name and password must be a valid VSAM, IMS, or Adabas user name and password.
    2. In the initialization parameter file, set the following gateway initialization parameters:

      • HS_FDS_RECOVERY_ACCOUNT to the user name of the VSAM, IMS, or Adabas user account you set up for recovery.
      • HS_FDS_RECOVERY_PWD to the password of the VSAM, IMS, or Adabas user account you set up for recovery.


    Task 2: Create the Transaction Log Table

    When configuring the gateway for global transactions, you must create a table must in the VSAM, IMS, or Adabas database for logging transactions. The gateway uses the transaction log table to check the status of failed transactions that were started at the VSAM, IMS, or Adabas database by the gateway and registered in the table.

    The table HS_TRANSACTION_LOG consists of two columns, GLOBAL_TRAN_ID, data type CHAR(64) NOT NULL, and TRAN_COMMENT, data type CHAR(255).
    You can use another name for the log table, other than HS_TRANSACTION_LOG, by specifying the other name using the HS_FDS_TRANSACTION_LOG initialization parameter.

    Note: Updates to the transaction log table cannot be part of an Oracle distributed transaction.

    Note: The information in the transaction log table is required by the recovery process and must not be altered. The table must be used, accessed, or updated only by the gateway.

    Create the transaction log table in the user account you created in task 1. Because the transaction log table is used to record the status of a gateway transaction, the table must reside at the database where the VSAM, IMS, or Adabas update takes place. Also, the transaction log table must be created under the owner of the recovery account.

    Note: To utilize the transaction log table, users of the gateway must be granted privileges on the table.
    Last edited by Jeanne Wiegelmann; 10-12-2006 at 04:42 AM.
    To Find Out more About Attunity Technology:
    Attunity
    or:
    Contact Us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257