oracle导入导出 创建表空间

/导入

imp username/password@orac file=@@@.dmp  ignore=y full=y buffer=100000000 feedback=1000


//导出

exp username/password@orac file =d:\@@.dmp log=d:@@.log owner=oa_kf


----创建表空间
create temporary tablespace user_temp  


tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' 


size 50m  


autoextend on  


next 50m maxsize 20480m  


extent management local; 
-----创建临时表空间
create tablespace user_data  


logging  


datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' 


size 50m  


autoextend on  


next 50m maxsize 20480m  


extent management local;  
---创建用户并设置密码
create user username identified by password  


default tablespace user_data  


temporary tablespace user_temp;  


---给用户权限


grant connect,resource,dba to username; 

你可能感兴趣的:(oracle导入导出 创建表空间)