search
HomeDatabaseMysql Tutorial怎么在SQLServer数据库创建多个ArcSDE服务

怎么在SQLServer数据库创建多个ArcSDE服务

Jun 07, 2016 pm 03:52 PM
sqlserverdatabase

在现在的开发过程当中,开发人员可能面临多个数据源,那么在一台服务器上部署多个ArcSDE服务就显得比较常见了,对Oracle数据库来说,一个ArcSDE服务是对应一个数据库实例,那么在建立过程是比较简单的,但是对SQLServer数据库来说就比较特殊了,因为我们可以

在现在的开发过程当中,开发人员可能面临多个数据源,那么在一台服务器上部署多个ArcSDE服务就显得比较常见了,对Oracle数据库来说,一个ArcSDE服务是对应一个数据库实例,那么在建立过程是比较简单的,但是对SQLServer数据库来说就比较特殊了,因为我们可以在SQLServer数据库的同一个实例但是对应不同的Database,但是SQLServer数据库特殊在于如果的默认Database不是sde的话,你需要指定你的默认数据库,那么我在创建服务过程中就需要进行特殊的指定设置。

假设我们已经存在了一个针对sde数据库的ArcSDE服务,那么我们又建立了一个sde931的库,我们新设定的SDEHOME是C:\ArcSDE\sqlexe,那么大家都知道,我们需要使用sdeservice命令来创建相关的服务

C:\Users\Administrator>sdeservice -o create -d sqlserver -p Super123 -s sde931 -i esri_sde2 -H C:\ArcSDE\sqlexe
Successfully created and registered esri_sde2 service

但是,如果我们对创建好的ArcSDE服务启动,我们可以看到会报如下错误

-------------------------------------------------------
ArcSDE 9.3.1  for SQL Server Build 1632 Thu Feb 26 12:05:37  2009
-------------------------------------------------------
IDBInitialize::Initialize Failed
DB_open_instance() PCC_connect error: -2147217871
init_DB DB_instance_open_as_dba: -51
DBMS error code: -2147217871
Microsoft SQL Server Native Client 10.0: 登录超时已过期

这就是我上提到的我们需要注册默认数据库。我们可以看看帮助是怎么说的

It is assumed the ArcSDE administrator user for which you are providing the password (-p) is SDE. It is also assumed that the name of the database to which the service applies is SDE. If your ArcSDE administrator user is not SDE, such as when you use a DBO schema in SQL Server, you must set the SDE_DBA_USER registry key to the login name of the DBO user using sdeservice -o register. If the name of your database is not SDE, you must set the ADMIN_DATABASE registry key to the name of your database using the sdeservice -o register command.

也可以参考相关的帮助文档:http://support.esri.com/en/knowledgebase/techarticles/detail/29575 

那么我们第一个,就是需要将我们的默认数据库和默认SDE用户注册一下

C:\Users\Administrator>sdeservice -o register -r ADMIN_DATABASE  -v sde931 -d sqlserver -p Super123 -i esri_sde2 -H "C:\ArcSDE\sqlexe"
Successfully registered 'ADMIN_DATABASE' key for esri_sde2 instance

C:\Users\Administrator>sdeservice -o register -r SDE_DBA_USER  -v sde -d sqlserver -p Super123 -i esri_sde2 -H "C:\ArcSDE\sqlexe"
Successfully registered 'SDE_DBA_USER' key for esri_sde2 instance

另外我们需要进入注册表,添加对SQLServer服务的依赖项,默认是没有的

HKEY_LOCAL_MACHINE——SYSTEM——CurrentControlSet——Services——esri_sde2(自己定义的SDE实例名)

需要在该实例添加
类型:REG_MULTI_SZ
名称:DependOnService
数据:MSSQLServer(这个根据用户的实例名称)也可以参考另外一个SDE实例的写法

我们也可以查看以下节点,验证是否填写正确

HKEY_LOCAL_MACHINE——SOFTWARE——ESRI——ArcInfo——ArcSDE——ArcSDE for SQLServer——esri_sde2(你的SDE实例名)
来查看是否已经添加好
ADMIN_DATABASE 
DATASOURCE:该项对应的应该是数据库的机器名或者IP
SDE_DBA_USER

这样的话,我们就可以启动ArcSDE服务了

更多教程请访问  MySQL视频教程

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

MySQL: Is it safe to store BLOB?MySQL: Is it safe to store BLOB?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

MySQL: Adding a user through a PHP web interfaceMySQL: Adding a user through a PHP web interfaceMay 14, 2025 am 12:04 AM

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download

Atom editor mac version download

The most popular open source editor