表空間創(chuàng)建
????????create tablespace stbss datafile '/opt/app/oracle/product/11.2.0/db_1/db01.dbf' size 100m; ?
mytablespace : 表空間名稱
datafile: 指定表空間對應的數(shù)據(jù)文件(位置)
? size:表空間的初始大小
? autoextend on :自動增長,
? next: 一次自動增長的大小
格式:?
1.impdp & expdp的用法:
impdp 用戶名/密碼@服務名? ? 導入已經(jīng)有的數(shù)據(jù)庫
impdp system/123@orcl
expdp 用戶名/密碼@服務名? ? 導出已經(jīng)有的數(shù)據(jù)庫付秕,默認(app\Administrator\admin\orcl\dpdump)
expdp ysgl/abc123@ysgl? version=’11.2.0.1.0’
創(chuàng)建唯一索引:
????create unique index index_01 on test(a,b);
普通索引:
? ? create index index_02 on test(a);