GeoScene+人大金仓使用方法
基于兼容oracle模式,initdb 的时候 dbmode不指定的情况下就是基于oracle模式
如果是基于oracle模式,初始化库完后需要先在kingbase.conf中添加如下四个参数
nls_length_semantics=char
enable_upper_colname=false
ora_numop_style=false
ora_input_emptystr_isnull=off
如果基于pg模式,上述四个参数不需要设置
1. create user sde with password 'password';
2 . create database database_name with owner=sde;
3. create role rds_superuser; (pro 6.1不需要);
4. 链接到新建的库上 create extension postgis. 和 create schema sde authorization sde;
5. 使用pro或者arcmap(10.8.1,10.8.2)用sde用户建立链接后,右键选择Enable Enterprise Geodatabase就可以了
如果没有pro可以使用
登录geoscene server的python 中
import arcpy
arcpy.CreateDatabaseConnection_management("/home/geoscene4","138.sde","POSTGRESQL","192.168.100.138","DATABASE_AUTH","sde","sde","SAVE_USERNAME","test2")
arcpy.EnableEnterpriseGeodatabase_management("/home/geoscene4/138.sde",/home/geoscene4/server.ecp")
