boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Is there table level commit?
相关主题
大家对 Transaction 是怎么看的?
Uncommited transaction 能写到 log嘛? sql server
求救,这个更新如何写?
mysql challenge
急问:如何恢复被删除的数据?
A SQL update question.
请教PL/SQL 语法
MS Sql 2012: cannot detach database
Where to find log files in SQL server?
请教teradata问题
相关话题的讨论汇总
话题: table话题: log话题: pl话题: opr话题: sql
进入Database版参与讨论
1 (共1页)
r*****l
发帖数: 2859
1
I am new to PL/SQL so if this question is stupid, don't blame me.
I am writing a PL/SQL procedure to operation on a table, say T_OPR.
I want to write the log information to another table, say T_LOG.
The operations on T_OPR should be rollback-ed if there is a single error.
When this happened, I still want to info in T_LOG to be committed.
If there any way to do it? Thanks a lot.
n********a
发帖数: 68
2
Use autonomous transaction.
" target="_blank" class="a2">http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/06_ora.htm#27440

【在 r*****l 的大作中提到】
: I am new to PL/SQL so if this question is stupid, don't blame me.
: I am writing a PL/SQL procedure to operation on a table, say T_OPR.
: I want to write the log information to another table, say T_LOG.
: The operations on T_OPR should be rollback-ed if there is a single error.
: When this happened, I still want to info in T_LOG to be committed.
: If there any way to do it? Thanks a lot.

r*****l
发帖数: 2859
3
Thanks a million!
This is the right kind fo information that I need.

【在 n********a 的大作中提到】
: Use autonomous transaction.
: " target="_blank" class="a2">http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/06_ora.htm#27440

1 (共1页)
进入Database版参与讨论
相关主题
请教teradata问题
question about MS SQL mirroring...
SQL Servedr complete recovery question
各位各位,江湖救急 -- 数据被删
Need help on a strange SQL server problem
Help! Diff between Teradata SQL and Oracle SQL.
Opening: SQL Server ELT Developer @Maryland (转载)
how to create user in Oracle?
oracle求助
Set autocommit off
相关话题的讨论汇总
话题: table话题: log话题: pl话题: opr话题: sql