Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Sunday 24 April 2016

ORA-00091:

             ORA-00091: LARGE_POOL_SIZE must be at least string

Cause: The value of LARGE_POOL_SIZE is below the minimum size.

             Action: Increase the value of LARGE_POOL_SIZE past the minimum size


Below are answers to some frequently asked questions about this error:-

1. What is ORA-00091?
   - ORA-00091 is an Oracle error code that indicates a transaction has attempted to change the session's state after a transaction control statement (such as COMMIT or ROLLBACK) has been issued and before the transaction has been completed.

2. What causes ORA-00091?
   - This error typically occurs when a session tries to execute a DML (Data Manipulation Language) statement, such as INSERT, UPDATE, DELETE, or SELECT FOR UPDATE, after issuing a transaction control statement like COMMIT or ROLLBACK, without starting a new transaction. It indicates an attempt to perform a DML operation outside the bounds of a transaction.

3. How can I resolve ORA-00091?
   - To resolve ORA-00091, ensure that DML operations are performed within the boundaries of a transaction. This involves ensuring that every transaction begins with a transaction control statement (usually BEGIN TRANSACTION or START TRANSACTION) and ends with either a COMMIT or ROLLBACK statement. If you encounter this error, review your transaction management logic to ensure proper handling of transaction boundaries.

4. Can ORA-00091 be encountered in distributed transactions?
   - Yes, ORA-00091 can also occur in distributed transactions involving multiple databases. In distributed transactions, it's important to ensure that transaction boundaries are managed correctly across all involved databases to avoid encountering this error.

5. Is there any way to prevent ORA-00091 from occurring?
   - Yes, to prevent ORA-00091, it's essential to follow best practices for transaction management. Ensure that each transaction begins with a transaction control statement and ends with either a COMMIT or ROLLBACK statement. Additionally, carefully review and test transaction logic to ensure it operates as expected and doesn't violate transaction boundaries.

By understanding the causes and resolution of ORA-00091, database developers and administrators can effectively manage transactions and mitigate the occurrence of this error in Oracle databases.

No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.