1、sqlplus /nolog; conn / as sysdba;
2、登錄成功后,首先創(chuàng)建表空間,此處我的表空間“StationSpace”。
Create TableSpace StationSpace DataFile 'E:\oracle\oradata\StationSpace\StationSpace.dbf' Size 1024M Uniform Size 128k;
3、表空間創(chuàng)建成功后,接著創(chuàng)建用戶。
Create User UserName Identified by Password Default TableSpace StationSpace;
4、用戶創(chuàng)建成功后,接著就可以給用戶授權(quán)。
Grant Connect,Resource to UserName;