Skip to content

Commit dfda9ea

Browse files
committed
Added blob and clob tables in the example oracle setup
1 parent 669bd23 commit dfda9ea

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

examples/oracle/demo/load_c##rcuser_schema.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,33 @@ sqlplus c##rcuser/rcpwd@ORCLPDB1 <<- EOF
2121
SELECT table_name, owner, LOGICAL_REPLICATION FROM all_tables WHERE owner='C##RCUSER' AND table_name='EMP';
2222
select count(*) from C##RCUSER.EMP;
2323

24+
create table C##RCUSER.CLOB_DATA1(
25+
id number(8) not null primary key,
26+
clob_data1 clob
27+
);
28+
29+
create table C##RCUSER.CLOB_DATA2(
30+
id number(8) not null primary key,
31+
clob_data2 clob
32+
);
33+
34+
create table C##RCUSER.BLOB_DATA1(
35+
id number(8) not null primary key,
36+
blob_data1 blob
37+
);
38+
39+
ALTER TABLE C##RCUSER.CLOB_DATA1 ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
40+
SELECT table_name, owner, LOGICAL_REPLICATION FROM all_tables WHERE owner='C##RCUSER' AND table_name='CLOB_DATA1';
41+
select count(*) from C##RCUSER.CLOB_DATA1;
42+
43+
ALTER TABLE C##RCUSER.CLOB_DATA2 ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
44+
SELECT table_name, owner, LOGICAL_REPLICATION FROM all_tables WHERE owner='C##RCUSER' AND table_name='CLOB_DATA2';
45+
select count(*) from C##RCUSER.CLOB_DATA2;
46+
47+
ALTER TABLE C##RCUSER.BLOB_DATA1 ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
48+
SELECT table_name, owner, LOGICAL_REPLICATION FROM all_tables WHERE owner='C##RCUSER' AND table_name='BLOB_DATA1';
49+
select count(*) from C##RCUSER.BLOB_DATA1;
50+
2451
exit;
2552
EOF
2653

0 commit comments

Comments
 (0)