質問

When we issue manually Alter system switch logfile, does this statement force all uncommited transactions to commit? When I issue this I see my number session raised in database and graph indicates these were commits in that period. So I was wondering if that command causes uncommited transactions to commit.

役に立ちましたか?

解決

No, open transactions are not commited by this statement. You can test this yourself:

create table TESTSWITCH(testid NUMBER);
insert into TESTSWITCH values(1);
select * from TESTSWITCH;
alter system switch logfile;
rollback;
select * from TESTSWITCH;

output:

table TESTSWITCH created.
1 rows inserted.
TESTID
------
     1 

system SWITCH altered.
rollback complete.
no rows selected
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top