Does anyone know if there's a way to pass in proxy user to the Oracle connection string when using the oracle connector? Thanks, GilThis message has been edited. Last edited by: FP Mod Chuck,
I found this solution in IB Tech Support for Oracle proxy connection. I don't have access to Oracle so I couldn't test it but it looks like it's possible.
To configure an Oracle adapter connection using an authenticated user based on
the &FOCSECUSER ID via an Oracle proxy user, create an Oracle adapter
connection using Explicit security for the Oracle proxy user. Then add the
following to the edasprof.prf file or other profile files:
-SET &DBMS_USERID = GETTOK(&FOCSECUSER,70,2,'\',64,'A64');
-IF &DBMS_USERID EQ '' GOTO NOPROV;
-SET &CONCT_STRING = 'ENGINE SQLORA SET CONNECTION_ATTRIBUTES ORAXE
XE/ORA1USER' | '[' || &DBMS_USERID || ']' || ',CD25FFDBB91B6790';
-GOTO DONE;
-NOPROV
-SET &CONCT_STRING = 'ENGINE SQLORA SET CONNECTION_ATTRIBUTES ORAXE
XE/ORA1USER' | '[' || &FOCSECUSER || ']' || ',CD25FFDBB91B6790';
-DONE
-*TYPE &CONCT_STRING
&CONCT_STRING
Use the same adapter connection name that was created for the Oracle proxy user
previously, so it overwrites the previously created connection. For example,
"ORAXE" replace the password hash CD25FFDBB91B6790 with the hash used in the
previously created adapter connection.
In this example, ORA1USER is the Oracle proxy user and any prefix to
&FOCSECUSER will be stripped before it is sent to Oracle.
WebFOCUS 8206, Unix, Windows
Posts: 1716 | Location: New York City | Registered: December 30, 2015