(8.0.21)
前提:super_read_onlyがON
テンポラリテーブルであればスタンバイ側で作成、更新可能
drop table ttab2 purge;
create temporary table ttab2(col1 int);
insert into ttab2 values(1);
select * from ttab2;
(19c)
https://qiita.com/plusultra/items/8305e434036b49e78818
テンポラリテーブルであればスタンバイ側で作成、更新可能
drop table ttab2 purge;
create global temporary table ttab2(col1 int) on commit preserve rows;
insert into ttab2 values(1);
insert into ttab2 values(2);
commit;
select * from ttab2;
スタンバイ側でグローバルテンポラリテーブルを作成するとプライマリ側にもテーブルが作られる
drop table ora$ptt_ttab2 purge;
create private temporary table ora$ptt_ttab2(col1 int) on commit preserve definition;
insert into ora$ptt_ttab2 values(1);
insert into ora$ptt_ttab2 values(2);
commit;
select * from ora$ptt_ttab2;
スタンバイ側でプライベートテンポラリテーブルを作成してもプライマリ側にはテーブルは作られない
(13)
テンポラリテーブルでも作成不可
drop table ttab2;
create temporary table ttab2(col1 int) on commit preserve rows;
insert into ttab2 values(1);
select * from ttab2;
(2019)
テンポラリテーブルであればスタンバイ側で作成、更新可能
ローカル一時テーブル
drop table #ttab21;
create table #ttab21(col1 int);
insert into #ttab21 values(1);
select * from #ttab21;
グローバル一時テーブル
drop table ##ttab22;
create table ##ttab22(col1 int);
insert into ##ttab22 values(1);
select * from ##ttab22;