To find the appropriate database user credentials for CICS transactions or batch jobs, the Oracle XA switch module uses proxy authentication, calling the OCI function OCIAttrSet() with the parameter OCI_ATTR_PROXY_CLIENT. For this call to work properly, you must include an ALTER USER GRANT CONNECT THROUGH statement in your Oracle user credentials environment. This enables the xa_open user ID to impersonate the appropriate database user ID.
The following is provided as a simple example. Your security and database environment might dictate a different implementation. Please review the Oracle documentation on proxy authentication and other related topics before implementing your solution:
CREATE USER XAOPENUSER IDENTIFIED BY XAOPENUSER GRANT "CONNECT" TO MFESPROXY
CREATE USER FRITZ IDENTIFIED BY FRITZ GRANT "CONNECT” TO FRITZ
GRANT ALL ON SCHEMA1.TABLE1 TO FRITZ GRANT "RESOURCE" TO FRITZ
ALTER USER FRITZ GRANT CONNECT THROUGH XAOPENUSER