강좌
클라우드/리눅스에 관한 강좌입니다.
데이터베이스 분류

클러스터 사용

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

클러스터 사용

SVRMGR> create tablespace clustered_data_02
     2> datafile '/usr/local/Oracle/oradata/test/cluster.dbf' size 10m;
명령문이 처리되었습니다
SVRMGR> create cluster cluster_test
	2> (invoice_id varchar2(20))
	3> pctused 90 pctfree 5 size 400
	4> tablespace clustered_data_02
	5> storage(initial 1m next 1m minextents 2 maxextents 100 pctincrease 50);
명령문이 처리되었습니다
SVRMGR> create table invoice(
     2> invoice_id varchar2(20) primary key,
	3> user_account varchar2(9),
	4> pmt_dttm date)
	5> 
명령문이 처리되었습니다
SVRMGR> create table invoice_item(
	2> invoice_id varchar2(20) primary key,
	3> part_id varchar2(10),
	4> item_amount number)
	5> 
명령문이 처리되었습니다
SVRMGR> create table invoice_detail(
	2> invoice_id varchar2(20) primary key,
	3> prchs_address varchar2(20),
	4> purchaser_zip varchar2(10))
	5> 
명령문이 처리되었습니다
SVRMGR> create index cluster_test_index
     2> on cluster cluster_test
	3> tablespace clustered_data_02
	4> storage(initial 1m next 1m minextents 2 maxextents 50 pctincrease 50) pctfree 5;
명령문이 처리되었습니다

Copyleft(C) 명규의 오라클OCP All rights free

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,038 명
  • 현재 강좌수 :  35,814 개
  • 현재 접속자 :  93 명