1、创建数据库
简单的方式是使用'Database Configuration Assistant'数据库配置工具根据向导创建
2、创建表空间
简单的方式是使用'Database Configuration Assistant'数据库配置工具根据向导创建
2、创建表空间
在实际使用中需要创建自定义的表空间和临时表空间
2.1、创建表空间
create tablespace tabspace_name
logging
datafile 'C:\app\oratable_space\ tabspace_name_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
(toad在导入数据库的时候,有时提示表空间不对。这个时候新建的表空间名字要改。)
2.2、创建临时表空间
create temporary tablespace tabspace_name_temp
tempfile 'C:\app\table_space\ tabspace_name_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
3、创建用户
在实际使用中需要创建用户、指定表空间和临时表空间并给用户授权
3.1、创建用户
create user user_name identified by user_password
default tablespace tabspace_name
temporary