/*Step 1: Create a temporary tablespace */
create temporary tablespace yuhang_temp
tempfile 'D:\oracledata\yuhang_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local; /*Step 2: Create a data tablespace* / create tablespace yuhang_data logging datafile 'D:\oracledata\yuhang_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; /*Step 3: Create a user and specify a tablespace */ create user yuhang identified by yuhang default tablespace yuhang_data temporary tablespace yuhang_temp; /*Step 4: Grant permission to the user */ grant connect,resource,dba to yuhang;