arcsde用户方案(转)

使用arcgis的sde用户方案,如果不能通过arcgis 自动创建sde用户,则需要使用如下sql手动创建

--创建地理数据库所有代码如下(必须创建名为sde的地理数据库!!!!):

create user sde identified by 密码;
--基础权限
grant create session to sde;
grant create table to sde;
grant create tablespace to sde;
grant create view to sde;
--创建表空间
create tablespace sdespace 
  logging 
    datafile '路径\sdespace.dbf' size 50M
      autoextend on
        next 10m maxsize 400m  
          extent management local;
--指定用户默认表空间(也可以在创建用户的时候指定)
alter user sde  default tablespace arcspace;
--创建或升级地理数据库需要的执行权限
grant execute on dbms_pipe to sde;
grant execute on dbms_lock to sde;
grant execute on dbms_lob to sde;
grant execute on dbms_utility to sde;
grant execute on dbms_sql to sde;
grant execute on utl_raw to sde;


--地理数据库管理员还需要的最低权限:
  --create session,create sequence,create table,create trigger,create procedure
grant create sequence to sde;
grant create trigger to sde;
grant create procedure to sde;
--SDE用户在SDE用户方案中创建地理数据库所需的权限(SDE主地理数据库)
grant execute on dbms_crypto to sde;--允许创建st_geometry类型的地图成员函数
grant create indextype to sde;
grant create library to sde;
grant create operator to sde;
grant create public synonym to sde;
grant create type to sde;
grant drop public synonym to sde;
grant ADMINISTER database trigger to sde;
--测试中已知的其他必选权限(文档说明可选,实际上必须要)
grant unlimited tablespace to sde;


--其他常用可选权限(非创建地理数据库必须的,后续维护可能用到的,详见参考文档):
  --alter session, plustrace, alter any index, analyze any, select any dictionary, 
  --create database link, create materilized view, restricted session,
  --alter system, select_actalog_role,
  --(oracle 10g还有 advisor,create job)

猜你喜欢

转载自blog.csdn.net/chpswg/article/details/81135349