-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
Description
In cx_Oracle, when you connected with a proxy user, you were able to see that user in connection.username
>>> import cx_Oracle
>>> connection = cx_Oracle.connect("sessionuser[proxyuser]/pw@db")
>>> print(connection.username)
sessionuser[proxyuser]Though "hacky", you could parse this output to get the proxy user.
In oracledb, when you connect with a proxy user, there is no way to access the proxy user, as it is not included in connection.username
>>> import oracledb
>>> oracledb.init_oracle_client()
>>> connection = oracledb.connect(
... user="sessionuser",
... proxy_user="proxyuser",
... password="pw",
... dsn="db",
... )
>>> print(connection.username)
sessionuserIt would be great to be able to access the connected proxy user trough either the connection.username or even better a connection.proxy_user
Info
- python -> 3.11.6
- oracledb -> 1.4.2
cjbj