Collections:
Restrictions in a READ ONLY Transaction in Oracle
What Are the Restrictions in a READ ONLY Transaction in Oracle?
✍: FYIcenter.com
There are lots of restrictions in a READ ONLY transaction:
The tutorial exercise below shows you some of the restrictions:
SQL> connect HR/fyicenter SQL> SET TRANSACTION READ ONLY; Transaction set. SQL> SET TRANSACTION READ WRITE; ORA-01453: SET TRANSACTION must be first statement of transaction SQL> INSERT INTO fyi_links (url, id) 2 VALUES ('sql.com', 113); ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction SQL> DELETE FROM fyi_links where id = 110; ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction SQL> SELECT * FROM fyi_links; ID URL NOTES COUNTS CREATED ------- ---------------- ---------- ---------- --------- 101 FYICENTER.COM 07-MAY-06 110 CENTERFYI.COM 07-MAY-06
2019-08-19, 798👍, 0💬
Popular Posts:
What Are the Underflow and Overflow Behaviors on FLOAT Literals in SQL Server Transact-SQL? If you e...
How to run Queries with "sqlcmd" tool in SQL Server? "sqlcmd" is a client tool that you can use to i...
How To Get the Definition of a Stored Procedure Back in SQL Server Transact-SQL? If you want get the...
What are single-byte character string data types supported in SQL Server Transact-SQL? Single-byte c...
What is mscorsvw.exe - Process - Microsoft .NET Framework NGEN in SQL Server? Process mscorsvw.exe i...