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路徑)
