首先以DBA连接到数据库:sqlplus / as sysdba; --创建表空间 create tablespace test_tablespace datafile 'D:\developer\oracle\product\10.2.0\oradata\orcl\test.dbf' size 1024M;--创建用户 create user test identified by test default tablespace test_tablespace;--授权 grant dba,co…
/*创建表空间名为:DB_NAME*/ create tablespace DB_NAME datafile 'E:\oracle_data\db_name.dbf' size 100M autoextend on next 10M maxsize unlimited logging extent management local autoallocate segment space management auto; /*创建用户lwj赋予权限并默认表空间为DB_NAME:*/ create…
create [undo|temporary] tablespace orcp datafile|tempfile 'E:\orcle\oracleBaseDir\oradata\orcp\orcp.dbf' size 10M autoextend on next 20M maxsize 500M; drop tablespace orcp including contents and datafiles;…