Prashobh Chandran
Prashobh Chandran

Reputation: 311

Oracle Sql Developer can't export clob data?

I have a table, which contain a clob field having some data. When I export, i couldn't get the data of clob field.

  CREATE TABLE "ADMIN"."TABLE" 
   (    "ID" NUMBER(10,0), 
    "DATAS" CLOB
   ) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "SYSTEM" 
 LOB ("DATAS") STORE AS BASICFILE (
  TABLESPACE "SYSTEM" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION 
  NOCACHE LOGGING 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ;
REM INSERTING into ADMIN.TABLE
SET DEFINE OFF;



Insert into ADMIN.TABLE (ID) values (1);

This is the exported sql query. Here you can find the last line in 'Insert into ADMIN.TABLE (ID) values (1);' No 'DATAS' field here. Its a clob field.

Upvotes: 2

Views: 6381

Answers (1)

JDro04
JDro04

Reputation: 670

You'll have to do this.

SELECT  /*insert*/*  FROM ADMIN.TABLE;

Click run script, not run statement. This will produce the insert statements you are looking for.

Upvotes: 4

Related Questions