Configuring an OS User with Oracle Call Interface (OCI)

I am trying to change the OS user that is passed by Oracle during a database connection set in the golang oracle oci-8 driver . This is the same as installing v$session.osuser

in Java JDBC drivers. I am trying to change the oranle go-oci8 mattn driver so that I can change the os user value on the fly. I tried adding conn.attrs.Set("os_user", "test_os_user")

to a public method.

I have flown through the oci docs and I think I might need to install OCI_ATTR_CLIENT_IDENTIFIER

, but I can figure out if this is correct or how to do it. Any ideas if possible (and how) to change the osuser value using OCI?

Greetings

0


source to share


1 answer


It looks like installing OS User with OCI driver is not possible. The Oracle documentation for Java emphasizes that customization of the OS is only possible if the oracle Java Thin driver is used. In the meantime, there is no need to know about it. ”



0


source







All Articles