The Oracle database only supports READ COMMITTED
, SERIALIZABLE
or AUTOCOMMIT
as isolation level.
Use the following for the isolation level for the connection:
connection = engine.connect()
connection = connection.execution_options(
isolation_level="AUTOCOMMIT"
)
For READ COMMITTED
and SERIALIZABLE
, the Oracle dialect sets the level at the session level using ALTER SESSION, which is reverted back to its default setting when the connection is returned to the connection pool.
See the docs for more details.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…