创建表空间
- create tablespace ‘<数据库名>‘ datafile ‘<存储路径>‘
- size 500M
- default storage
- (initial 200m
- next 50m
- minextents 20
- maxextents 500)
- online;
Example:
- create tablespace itmyhome datafile ‘D:\oracle\product\10.2.0\oradata\orcl\itmyhome.dbf‘
- size 500M
- default storage
- (initial 200m
- next 50m
- minextents 20
- maxextents 500)
- online;
<数据库名>不带引号
创建用户
- CREATE USER <用户名> PROFILE DEFAULT IDENTIFIED BY <密码> DEFAULT
- TABLESPACE <表空间名> TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;
授权
- grant dba to testauth;
- grant connect,resource to testauth;
oracle导入导出:
- exp henanprovince/eplugger@172.16.1.4/orcl file=d:\province.dmp
- imp henanprovince1/eplugger@172.16.1.4/orcl file=d:\province.dmp full=y
oracle创建表空间、用户
原文:http://www.cnblogs.com/zuo-zijing/p/3964575.html