728x90
-- BLOB, CLOB 생성
create tablespace test datafile '/oracle/base/oradata/ORCL/test.dbf' size 100M autoextend on;
create user test identified by test default tablespace test temporary tablespace temp;
grant dba to test;
create table clob (
name varchar2(20) primary key not null,
age number(10),
character CLOB);
create table blob (
name varchar2(20) primary key not null,
age number(10),
character BLOB);
insert into clob values
('AAA', 26, 'ABCDEFGHIG1ABCDEFGHIG2ABCDEFGHIG3');
insert into clob values
('BBB', 27, EMPTY_CLOB());
insert into blob values
('AAA', 26, null);
|
-- table 구조 조회
desc <테이블명>
-- lob table 조회
select owner, table_name from dba_lobs;
-- LOB table count(*)
set line 300
col OWNER for a20
col OBJECT_TYPE for a5
select owner, object_type, count(*) from dba_objects
where object_type = 'LOB'
group by owner,object_type
order by owner,object_type ;
|
728x90
'ORACLE' 카테고리의 다른 글
[ORCLE] dbca script 생성 명령어 - silent (0) | 2022.05.11 |
---|---|
[ORACLE] 공통계정 생성 시 c## 제거 설정 (0) | 2022.05.11 |
[ORACLE] 특정 스키마의 PK, UK 없는 table 조회 (0) | 2022.05.11 |
[ORACLE] PK, UK table 조회 (0) | 2022.05.11 |
[ORACLE] SE to EE 버전업 테스트 (0) | 2022.05.11 |