- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
-- Create table
create global temporary table REPLDATALOBS
(
dummy VARCHAR2(1),
table_name VARCHAR2(30) not null,
column_name VARCHAR2(30) not null,
row_id VARCHAR2(4000) not null,
position NUMBER not null,
data VARCHAR2(4000)
)
on commit delete rows;
-- Create/Recreate primary, unique and foreign key constraints
alter table REPLDATALOBS
add constraint C_REPLDATALOBS_PK primary key (ROW_ID, TABLE_NAME, COLUMN_NAME, POSITION);
-- Grant/Revoke object privileges
grant select, insert, update, delete, references, alter, index on REPLDATALOBS to PUBLIC;
Продакшн Oracle10g, PK из 4х элементов, а один из 4000 символов Т_Т блжад, что за жизнь ..........