--创建表空间
create tablespace RichMediaDev
datafile '/opt/11g/oracle/oradata/orcl/RichMediaDev_DATA01.dbf'
size 2048M autoextend on next 100M maxsize 20480M;
--创建用户
create user richmediadev identified by “zving10301";
grant create session to richmediadev;
grant create table to richmediadev;
grant create tablespace to richmediadev;
grant create view to richmediadev;
alter user richmediadev quota unlimited on RichMediaDev;
--创建临时表空间
create temporary tablespace RichMediaDevTemp TEMPFILE '/opt/11g/oracle/oradata/orcl/RichMediaDev_temp_DATA02.dbf' SIZE 30720M REUSE AUTOEXTEND ON NEXT 1024K MAXSIZE UNLIMITED;
--设置临时表空间
alter user richmediadev temporary tablespace RichMediaDevTemp;
--删除临时表空间
drop tablespace RichMediaDevTemp;
--查询所有的表名称
select table_name from user_tables order by table_name ;