Oracle创建一表空间,用户,并授权。导入dmp

来源:互联网 发布:超市在线购物商城源码 编辑:程序博客网 时间:2024/04/28 08:27
详细步骤如下:1. 创建表空间例如:create tablespace test(表空间名称) datafile 'F:\oracle\oradata\orcl\test.dmp'(表空间的存储位置)size 50M (表空间大小,单位兆)autoextend on next 50Mmaxsize unlimitedextent management local autoallocatesegment space management auto;2. 创建用户并将表空间分配给用户create user test(用户名)identified by test(密码)default tablespace test(表空间名称);3. 给用户授予权限grant dba,connect,resource,aq_administrator_role,aq_user_role,authenticateduser to test(用户名);4. 导入数据(在命令提示符窗口)imp test/test@orclBUFFER=64000file=D:\test.dmp(dmp文件所在位置)FULL=y(FULL和TABLES是两种导入模式,TABLES可以只导入部分表,TABLES=(tab1,tab2,...))注:()内内容为注解。
0 0