/*1、创建数据库*/ --创建临时表空间,替换以下xxxx字段 create temporary tablespace xxxx_temp tempfile ‘D:\oracle\product\10.2.0\oradata\orcl\xxxx_temp.dbf‘ size 32 m autoextend on next 32 m maxsize 2048m extent management local --创建表空间 create tablespace xxxx_data logging datafile ‘D:\oracle\product\10.2.0\oradata\orcl\xxxx_data.dbf‘ size 32 m autoextend on next 32 m maxsize 2048m extent management local --创建用户,指定表空间 create user xxxx identified by xxxx default tablespace xxxx_data temporary tablespace xxxx_temp; --给用户分配权限 grant connect ,resource to xxxx