Oracle创建用户和表空间脚本

--set feedback off
--此行代表不用Orcal返回信息
--set define off

--drop user LNO cascade;
-- 此行代表删除用户,以及用户相关的表,视图等


--drop tablespace LNO including contents;
--drop tablespace LNOTEMP including contents;


create tablespace LNO datafile
 'LNO_01.dbf' size 50M reuse autoextend on
 next 16K maxsize unlimited extent management local autoallocate;

create temporary tablespace LNOTEMP tempfile
 'LNOTEMP_01.dbf' size 50M reuse autoextend
 on next 10240K MAXSIZE 2000M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1024K;


create user LNO identified by tybb1118 default tablespace LNO
 temporary tablespace LNOTEMP quota unlimited on LNO;

grant connect, dba to LNO;
grant select any table to LNO;
GRANT DELETE ANY TABLE TO "LNO";
GRANT INSERT ANY TABLE TO "LNO";
GRANT UPDATE ANY TABLE TO "LNO";
GRANT EXECUTE ANY PROCEDURE TO "LNO";

--set feedback on
--set define on
prompt Done.

exit;

posted @ 2010-10-27 13:06  李阳  阅读(457)  评论(0编辑  收藏  举报