@@ -825,6 +825,25 @@ Connection Attributes
825825
826826 This attribute is an extension to the DB API definition.
827827
828+ .. attribute :: Connection.serial_num
829+
830+ This read-only attribute specifies the session serial number associated with
831+ the connection. It is the same value returned by the SQL
832+ ``SELECT SERIAL# FROM V$SESSION ``. It is available only in python-oracledb
833+ Thin mode.
834+
835+ .. versionadded :: 2.5.0
836+
837+ .. note ::
838+
839+ This attribute is an extension to the DB API definition.
840+
841+ For applications using Database Resident Connection Pooling (DRCP),
842+ the ``serial_num `` attribute may not contain the current session state
843+ until a round-trip is made to the database after acquiring a session.
844+ It is recommended to not use this attribute if your application uses
845+ DRCP but may not perform a round-trip.
846+
828847.. attribute :: Connection.service_name
829848
830849 This read-only attribute specifies the Oracle Database service name
@@ -837,6 +856,25 @@ Connection Attributes
837856
838857 This attribute is an extension to the DB API definition.
839858
859+ .. attribute :: Connection.session_id
860+
861+ This read-only attribute specifies the session identifier associated with
862+ the connection. It is the same value returned by the SQL
863+ ``SELECT SID FROM V$SESSION ``. It is available only in python-oracledb
864+ Thin mode.
865+
866+ .. versionadded :: 2.5.0
867+
868+ .. note ::
869+
870+ This attribute is an extension to the DB API definition.
871+
872+ For applications using Database Resident Connection Pooling (DRCP),
873+ the ``session_id `` attribute may not contain the current session state
874+ until a round-trip is made to the database after acquiring a session.
875+ It is recommended to not use this attribute if your application uses
876+ DRCP but may not perform a round-trip.
877+
840878.. attribute :: Connection.stmtcachesize
841879
842880 This read-write attribute specifies the size of the statement cache. This
0 commit comments