I have created a connection to an Oracle database, with Basic connection type. I have also created a Semantic Model using this connection. In the connection pool settings, I have defined the following "before query" connection script:
insert into test_login_log(txt) values ('VALUEOF (NQ_SESSION.USER)')
This inserts the text "VALUEOF (NQ_SESSION.USER)", rather than the value of the session variable. If I remove the single quotes, I get error "ORA-01747: invalid user.table.column, table.column, or column specification".
My intent is to store the OAC user in a database session context to allow fine grained data access.
Can someone explain how to use this session variable in a "before query" connection script?
Thank you,
Ned