1.首先以管理员的身份登录到oracle系统中,进入到命令行:
sqlplus / as sysdba; 登录到管理员用户
2.创建用户 aqb 密码为aqb;
create user aqb identified by aqb;
3.创建表空间,在D盘下建立50M 的表空间 data_aqb;
create tablespace aqb_tablespace datafile 'D:\data_aqb' size 50M;
4.为用户分配表空间
alter user aqb identified by aqb default tablespace aqb_tablespace;
5.给用户授权
grant create session,create procedure,create type,create view,create sequence,unlimited tablespace to aqb;
grant connect,resource,dba to aqb;
6.aqb/aqb;
7.导入sql语句,导入创建好的表
@D:\(sql路径)