Oracle Client Identifier

22 views
Skip to first unread message

nisi242424

unread,
Aug 30, 2016, 3:23:09 AM8/30/16
to Django users
Hi Expert,

Oracle has the feature that it notifies application user id to connected
database session like this.

https://oracle-base.com/articles/misc/dbms_session#client_identifier

We could realize it for a new connection in Python, for example,

cursor = connection.cursor()
cursor.callproc('dbms_session.
set_identifier',['client_id'])
cursor.execute("SELECT * FROM EMP ORDER BY EMPNO")

I want to set client identifier to the connection used by Django data
model. Is it possible? I would appreciate it if you could give me any idea.

Thanks,
Katsuya
Reply all
Reply to author
Forward
0 new messages