A reader, January 04, 2016 - 8:28 am UTC
Aahh.. My bad, I must have overlooked. Thanks Connor.
January 04, 2016 - 11:27 am UTC
No probs. Glad it worked out easy.
Desc for table T_X differs
Rajeshwaran, Jeyabal, January 04, 2016 - 12:56 pm UTC
I'm not sure why you think this would work ? The tables end up with different structure:
SQL> desc T
Name Null? Type
----------------------------- -------- ------------
ID NUMBER
VIRT_COL VARCHAR2(45)
CLOB_COL CLOB
SQL> desc T_X
Name Null? Type
----------------------------- -------- ------------
ID NUMBER
CLOB_COL CLOB
Not like this, but it is like this.
rajesh@ORA11G> -- The partitioned table
rajesh@ORA11G> create table t
2 (
3 id number,
4 virt_col as (id || '-TEST'),
5 clob_col clob
6 )
7 --tablespace warehouse_small_data
8 partition by list (id)
9 ( partition p_default values (1));
Table created.
rajesh@ORA11G>
rajesh@ORA11G> -- The non-partitioned table
rajesh@ORA11G> create table t_x
2 --tablespace warehouse_small_data
3 as SELECT 1 id from dual;
Table created.
rajesh@ORA11G> set linesize 71
rajesh@ORA11G> desc t
Name Null? Type
----------------------------------- -------- -------------------------
ID NUMBER
VIRT_COL VARCHAR2(45)
CLOB_COL CLOB
rajesh@ORA11G> desc t_x
Name Null? Type
----------------------------------- -------- -------------------------
ID NUMBER
rajesh@ORA11G>
January 05, 2016 - 1:56 am UTC
yes, but then the poster did:
"alter table t_x add (clob_col clob);"
(which still didnt get a matching set)
HARI PRASAD kurapati, September 11, 2018 - 12:58 pm UTC
Hi Tom,
I am working on converting Oracle queue table to partition table.
Database version is 12C.
Queue Table is - QUEUE_TABLE
interim table -- QUEUE_TABLE_11092018
Queue payload is TYPE object --USER_DATA
create table QUEUE_TABLE_11092018
partition by range (ENQ_TIME)
interval(numtodsinterval(1,'DAY'))
(
partition PART_01 values less than (TO_DATE('10/09/2018', 'DD/MM/YYYY'))) ENABLE ROW MOVEMENT
as select * from QUEUE_TABLE where 1=2;
When i created interim table as CTAS and tried to do exchange partition getting
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION
When i verified the data type and data length in sys.col$ or user_tab_cols it is different data length for type object.
select col#, name, type#, length, precision# from sys.col$
where obj# = (select object_id from dba_objects where object_name='QUEUE_TABLE_11092018' and object_type='TABLE' )
28 USER_DATA 121 3
(Length is 3)
When i verify the same query for Queue table it is showing data length as 1.
In other database's it is working fine, only in 12C or 11G for few schema's it is showing different data length and exchange partition is failing.
Can you please advise on this.
Thank You.
September 13, 2018 - 1:01 am UTC
You already asked this as a separate question