Randomly getting ORA-08177 with only one active session

后端 未结 2 819
野性不改
野性不改 2021-01-07 18:20

I\'m running a program that creates a table and then inserts some data.
This is the only program that accesses the database.
I\'m getting ORA-08177 randomly.
Act

2条回答
  •  旧巷少年郎
    2021-01-07 18:53

    Total rewrite (having barked up the wrong tree the first time around).

    The SERIALIZABLE isolation level grabs a slot in the Interested Transactions List. If Oracle cannot get a slot then it hurls ORA-8177. The number of available ITL slots is controlled by INITRANS and MAXTRANS. According to the documentation:

    To use serializable mode, INITRANS must be set to at least 3.

    This must be set for both the table and its indexes. So, what are your INITRANS settings? Certainly your sample code uses the default value (1 for tables, 2 for indexes).

提交回复
热议问题