Oracle建立表空間,使用者命令的例項

2021-06-01 08:45:17 字數 987 閱讀 6878

//新建表空間hcost

create tablespace tsp_hcost

datafile 'e:\oracle\product\10.2.0\oradata\cbhs\tsp_hcost.dbf'

size 100m

reuse

autoextend on

next 50m;

//新建使用者exthcost

create user "exthcost"

profile "default" identified by "123"

default tablespace "tsp_hcost" temporary tablespace "temp"

account unlock;

grant "dba" to "exthcost";

grant "connect" to "exthcost";

grant "resource" to "exthcost";

// 新建系統管理表空間sysdata

create tablespace tsp_sysdata

datafile 'e:\oracle\product\10.2.0\oradata\cbhs\tsp_sysdata.dbf'

size 100m

reuse

autoextend on

next 50m;

// 新建系統管理使用者extsys

create user "extsys"

profile "default" identified by "123"

default tablespace "tsp_sysdata" temporary tablespace "temp"

account unlock;

grant "dba" to "extsys";

grant "connect" to "extsys";

grant "resource" to "extsys";

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend on next 32m maxs...

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend onnext 32m maxsi...

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend on next 32m maxs...