oracle数据库如何配置表空间,配置表空间、建立用户、导入数据库-Oracle

配置表空间、建立用户、导入数据库

---cmd 进入dos界面

sqlplus / as sysdba

----建立表空间 ---dbf文件时自己手动建立的

CREATE TABLESPACE ciqpspace

DATAFILE 'D:\oracle\product\10.2.0\oradata\orcl\CIQP.DBF' size 30M reuse AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED

EXTENT MANAGEMENT LOCAL AUTOALLOCATE

SEGMENT SPACE MANAGEMENT AUTO;

--建立用户

create user fqs identified by "1"

default tablespace fqs01

temporary tablespace temp;

grant connect, resource to fqs;

grant unlimited tablespace to fqs;

grant dba to fqs;

create tablespace mcsspace

logging

datafile 'e:\mcs20130415.dmp'

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;

imp ciqpf/ciqpf@orcl file=e:/ciqp20130413.dmp full=y

create tablespace mcsspace

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;

C:\Documents and Settings\Administrator>exp ciqp/ciqp@orcl_251 file=e:/ciqp2013

0412.dmp

imp full=y

exp mcs/1@orcl_251 file=e:/mcs.dmp

imp mcs/mcs@orcl file=e:/mcs.dmp full=y

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值