19:01:30 SQL> select count(1) from arch_tblapp01_14;
COUNT(1) ---------- 2000
Elapsed: 00:00:00.00 19:08:49 SQL> select count(1) from main_tblapp01_13;
COUNT(1) ---------- 1997
Elapsed: 00:00:00.00 19:08:55 SQL> select count(1) from main_tblapp01_13 where id=1;
COUNT(1) ---------- 1
Elapsed: 00:00:00.00 19:14:58 SQL> select count(1) from main_tblapp01_13 where id=1001;
COUNT(1) ---------- 1
Elapsed: 00:00:00.00 19:15:05 SQL> select count(1) from arch_tblapp01_14 where id=1;
COUNT(1) ---------- 1
Elapsed: 00:00:00.01 19:15:14 SQL> select count(1) from arch_tblapp01_14 where id=1001;
COUNT(1) ---------- 1
Elapsed: 00:00:00.01 19:15:21 SQL> update main_tblapp01_13 set partid=100 where id=1001;
1 row updated.
Elapsed: 00:00:00.00 19:15:40 SQL> select count(1) from arch_tblapp01_14 where id=1001;
COUNT(1) ---------- 2
Elapsed: 00:00:00.00 19:15:45 SQL> commit;
Commit complete.
Elapsed: 00:00:00.01 19:16:02 SQL> select count(1) from arch_tblapp01_14 where id=1;
COUNT(1) ---------- 1
Elapsed: 00:00:00.00 19:16:42 SQL> select count(1) from main_tblapp01_13 where id=1001;
COUNT(1) ---------- 1
Elapsed: 00:00:00.00 19:16:50 SQL> set lines 200 19:18:15 SQL> set pages 3000 19:18:18 SQL> set colsep , 19:18:21 SQL> alter session set nls_Date_format='DD/MON/YYYY HH24:MI:SS';
Session altered.
Elapsed: 00:00:00.00 19:18:28 SQL> col idstr for a20 19:18:33 SQL> select * from arch_tblapp01_14 where id=1001;
TSTMP , UNID, ID, PARTID,IDSTR --------------------,----------,----------,----------,-------------------- 11/OCT/2023 19:00:24, 1001, 1001, 2,RX 11/OCT/2023 19:15:40, 2001, 1001, 100,RX
Elapsed: 00:00:00.01 19:18:36 SQL> select count(1) from main_tblapp01_13 where id=1002;
COUNT(1) ---------- 1
Elapsed: 00:00:00.01 19:19:29 SQL> select * from arch_tblapp01_14 where id=1002;
TSTMP , UNID, ID, PARTID,IDSTR --------------------,----------,----------,----------,-------------------- 11/OCT/2023 19:00:24, 1002, 1002, 3,RXX
Elapsed: 00:00:00.00 19:19:47 SQL> delete main_tblapp01_13 where id=1002;
1 row deleted.
Elapsed: 00:00:00.01 19:19:59 SQL> commit;
Commit complete.
Elapsed: 00:00:00.01 19:20:03 SQL> select * from arch_tblapp01_14 where id=1002;
TSTMP , UNID, ID, PARTID,IDSTR --------------------,----------,----------,----------,-------------------- 11/OCT/2023 19:00:24, 1002, 1002, 3,RXX 11/OCT/2023 19:19:59, 2002, 1002, 3,RXX
Elapsed: 00:00:00.00 19:20:06 SQL> select count(1) from main_tblapp01_13 where id=1002;
COUNT(1) ---------- 0
Elapsed: 00:00:00.00 19:20:14 SQL> col sequence_name for a30 19:21:36 SQL> col sequence_owner for a30 19:21:47 SQL> select * from user_sequences order by 1;
SEQUENCE_NAME , MIN_VALUE, MAX_VALUE,INCREMENT_BY,C,O,CACHE_SIZE,LAST_NUMBER,S,E,S,K ------------------------------,----------,----------,------------,-,-,----------,-----------,-,-,-,- SEQAPP01_01 , 1,1.0000E+28, 1,N,N, 0, 3997,N,N,N,N SEQAPP01_02 , 1,1.0000E+28, 1,N,N, 0, 3997,N,N,N,N SEQARCH_TBLAPP01_10 , 1,1.0000E+28, 1,N,N, 0, 3002,N,N,N,N SEQARCH_TBLAPP01_12 , 1,1.0000E+28, 1,N,N, 0, 2002,N,N,N,N SEQARCH_TBLAPP01_14 , 1,1.0000E+28, 1,N,N, 0, 2003,N,N,N,N SEQMAIN_TBLAPP01_07 , 1,1.0000E+28, 1,N,N, 0, 2998,N,N,N,N SEQMAIN_TBLAPP01_09 , 1,1.0000E+28, 1,N,N, 0, 1999,N,N,N,N SEQMAIN_TBLAPP01_11 , 1,1.0000E+28, 1,N,N, 0, 1999,N,N,N,N SEQMAIN_TBLAPP01_13 , 1,1.0000E+28, 1,N,N, 0, 1999,N,N,N,N
9 rows selected.
Elapsed: 00:00:00.01 19:22:08 SQL> select count(1) from main_tblapp01_13;
COUNT(1) ---------- 1996
Elapsed: 00:00:00.00 19:22:59 SQL> select count(1) from arch_tblapp01_14;
COUNT(1) ---------- 2002
Elapsed: 00:00:00.00 19:23:13 SQL> insert into main_tblapp01_13 select seqmain_tblapp01_13.nextval,mod(level,10) partid ,rpad('R',mod(level,200),'X') idstr from dual connect by level < 1019:23:17 2 19:23:17 3 19:23:17 4 19:23:17 5 ;
9 rows created.
Elapsed: 00:00:00.01 19:23:18 SQL> commit;
Commit complete.
Elapsed: 00:00:00.00 19:23:25 SQL> select count(1) from main_tblapp01_13;
COUNT(1) ---------- 2005
Elapsed: 00:00:00.00 19:23:29 SQL> select count(1) from arch_tblapp01_14;
COUNT(1) ---------- 2011
Elapsed: 00:00:00.00 19:23:37 SQL> select count(1) from arch_tblapp01_14;
COUNT(1) ---------- 2011
Elapsed: 00:00:00.00 19:23:38 SQL> select count(1) from arch_tblapp01_14;
COUNT(1) ---------- 2011
Elapsed: 00:00:00.00 19:23:42 SQL> with t as ( select id,count(1) cnt from arch_tblapp01_14 group by id ) select id,cnt from t where cnt > 1 /19:25:30 2 19:25:30 3 19:25:30 4 19:25:30 5 19:25:30 6
ID, CNT ----------,---------- 5, 2 1001, 2 1002, 2 10, 2
Elapsed: 00:00:00.01 19:25:31 SQL> with t as ( select id,count(1) cnt from arch_tblapp01_14 group by id ) select id,cnt from t where cnt > 1 order by 1 /19:25:46 2 19:25:46 3 19:25:46 4 19:25:46 5 19:25:46 6 19:25:46 7
ID, CNT ----------,---------- 5, 2 10, 2 1001, 2 1002, 2
Elapsed: 00:00:00.01 19:25:47 SQL>
|