1.创建临时表空间
CREATE TEMPORARY TABLESPACE test_temp TEMPFILE ‘C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf‘ SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE 2048M EXTENT MANAGEMENT LOCAL;
2.创建用户表空间
CREATE TABLESPACE test_data LOGGING DATAFILE ‘C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\TEST_DATA01.DBF‘ SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE 2048M EXTENT MANAGEMENT LOCAL;
3.创建用户并指定表空间
CREATE USER username IDENTIFIED BY password DEFAULT TABLESPACE TEST_DATA TEMPORARY TABLESPACE TEST_TEMP;
4.给用户授予权限
grant dba to user;
时间: 2024-10-13 13:46:20