ArcGIS Engine 如何连接用户的Schema?

ArcGIS Engine 如何连接用户的Schema?
已邀请:

朱新颖

赞同来自:

【解决办法】:
参考下面代码:


IPropertySet propertySet = new PropertySetClass();

//直连Orcale 用户的user schema
propertySet.SetProperty(SERVER, );
propertySet.SetProperty(INSTANCE, sde:oracle11g:192.168.220.131/orcl:uuu);
propertySet.SetProperty(DATABASE, );
propertySet.SetProperty(USER, uuu);
propertySet.SetProperty(PASSWORD, 123);
propertySet.SetProperty(VERSION, uuu.DEFAULT);


IWorkspaceFactory sdewf = new SdeWorkspaceFactoryClass();
IWorkspace targetWorkspace = sdewf.Open(propertySet, 0);

vikingsxu

赞同来自:

我用sde用户才行,用其他用户为什么不行?
是因为我普通用户uuu.default不存在吗?
 

要回复问题请先登录注册