Oracle

Oracle创建用户和表空间脚本

日期:2015/6/28来源: IT猫扑网

  --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;

相关文章

相关下载

网友评论

我要评论...
    没有更早的评论了
    取消