Installation Guide: ArcSDE for PostgreSQL
®

Copyright © 2006 - 2008 ESRI All Rights Reserved. Printed in the United States of America. The information contained in this document is the exclusive property of ESRI. This work is protected under United States copyright law and the copyright laws of the given countries of origin and applicable international laws, treaties, and/or conventions. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying or recording, or by any information storage or retrieval system, except as expressly permitted in writing by ESRI. All requests should be sent to Attention: Contracts Manager, ESRI, 380 New York Street, Redlands, CA 92373, USA. The information contained in this document is subject to change without notice. RESTRICTED/LIMITED RIGHTS LEGEND U.S. Government Restricted/Limited Rights: Any software, documentation, and/or data delivered hereunder is subject to the terms of the License Agreement. In no event shall the Government acquire greater than RESTRICTED/LIMITED RIGHTS. At a minimum, use, duplication, or disclosure by the Government is subject to restrictions as set forth in FAR §52.227-14 Alternates I, II, and III (JUN 1987); FAR §52.227-19 (JUN 1987); and/or FAR §12.211/12.212 [Commercial Technical Data/Computer Software]; DFARS §252.227-7015 (NOV 1995) [Technical Data]; and/or DFARS §227.7202 [Computer Software], as applicable. Contractor/Manufacturer is ESRI, 380 New York Street, Redlands, CA 92373-8100, USA. ESRI, MapObjects, ArcView, ArcIMS, ArcSDE, ArcInfo, ArcEditor, ArcGIS, ArcMap, ArcCatalog, ArcToolbox, ArcObjects, MapObjects, SDE, and the ESRI globe logo are trademarks of ESRI, registered in the United States and the European Community, or certain other jurisdictions. www.esri.com is a service mark of ESRI. The names of other companies and products mentioned herein are trademarks or registered trademarks of their respective trademark owners.

Table of Contents
Introduction .................................................................................................. 5 Installations on Windows................................................................................. 7 Preinstallation............................................................................................. 8 System requirements ................................................................................ 8 To obtain an authorization file .................................................................... 9 Installing PostgreSQL ...............................................................................10 Configuring the PostgreSQL database cluster to accept client connections ........16 Installing the ArcSDE component..................................................................18 Postinstallation ..........................................................................................19 Postinstallation overview ..........................................................................19 Setting up the sde user environment ..........................................................22 Setting up the geodatabase repository........................................................25 The ArcSDE component authorization .........................................................27 Creating an ArcSDE service .......................................................................31 Uninstalling ...............................................................................................33 Uninstalling the ArcSDE component............................................................33 Uninstalling PostgreSQL from Windows .......................................................33

Installations on Linux ....................................................................................35 System requirements..................................................................................36 Installation overview for Linux .....................................................................37 Installing and configuring PostgreSQL ...........................................................39 Preinstallation setup.................................................................................39 Installing PostgreSQL on Linux ..................................................................40 Creating and configuring a PostgreSQL database..........................................43 Installing the ArcSDE component..................................................................47 ArcSDE postinstallation setup.......................................................................50 ArcSDE component authorization ...............................................................53 Starting an ArcSDE service on Linux...........................................................54 Uninstalling ...............................................................................................55 Uninstalling the ArcSDE component............................................................55 Uninstalling PostgreSQL from a Red Hat Linux box .......................................55 iii

66 ArcSDE is installed on a Linux server and PostgreSQL is installed on a Windows server.................................................................61 Both servers are running Linux ....................Installation guide: ArcSDE for PostgreSQL Installing the DBMS and ArcSDE on different servers.................................................................................................73 iv ............ ..............................61 Both servers are running Windows ..................58 Scenarios for installing the ArcSDE component and PostgreSQL on separate machines ........................64 ArcSDE is installed on a Windows server and PostgreSQL is installed on a Linux server....................................................................................................................................................................................................... .....57 Installing the DBMS and the ArcSDE component on different machines ..............68 Accessing ArcSDE documentation and the next steps .......................................

the setup program will install the Microsoft Windows Installer if required before continuing with the installation. A documentation_server folder—This contains the ArcSDE administration command reference and the installation guides.0 on Microsoft® Windows and Red Hat® Linux® operating systems. one of which you are reading now. 5 . you manually alter the services. and the PostgreSQL installation wizard will take you through the installation. A source folder containing the PostgreSQL installation files The installation of ArcSDE for PostgreSQL is a three step process. you need to obtain the PostgreSQL installation files yourself. 3. which defines the ArcSDE administrative user's (the sde user's) environment. the ArcSDE installation wizard will launch. or you can manually install it.Introduction This installation guide includes information on installing PostgreSQL 8. you will run the ArcSDE component installation file provided on the DVD. Installation: Install ArcSDE for PostgreSQL. It also includes information on installing the ArcSDE® for PostgreSQL component of ArcGIS Server® Enterprise on Windows. Software development kit (SDK) folders ArcSdeSDK and documentation_sdk—These contain the installation file for the developer kit and the developer documentation respectively. After ArcSDE for PostgreSQL is installed on Windows.3. Each ArcSDE disk contains folders named by platform. and SUSE® Linux.3. On Linux. Postinstallation: Perform the postinstallation setup. setting up your geodatabase. On Linux machines. These contain the following: Folders named for each database—These contain the installation files for the ArcSDE component for the database indicated.sde file and perform these tasks at the shell command prompt using ArcSDE administration commands sdesetup and sdemon. On Windows. you have the option to start the ArcSDE component installation wizard. On Windows platforms. sets up the geodatabase repository. Preinstallation: Install and configure PostgreSQL. the installation guides contain instructions for the installation and setup of the ArcSDE component. The administration command reference contains syntax and usage for the ArcSDE commands. Source files for PostgreSQL 8. and creating an ArcSDE service. authorizes ArcSDE. A license folder—This folder holds the ArcGIS Server license file.0 can be obtained from the PostgreSQL site. On Red Hat Linux machines. you can run the Post Installation wizard to complete these tasks. For SUSE Linux machines. and creates the ArcSDE service. 1. Red Hat Linux. 2. you can run the scripts provided on the installation media to install and set up the PostgreSQL database cluster. When the installation is finished.

esri.cfm prior to installing the software. 6 . see the help topics in the section Geodatabases and ArcSDE/Administering ArcSDE geodatabases in the ArcGIS online help at http://webhelp.3/index.Installation guide: ArcSDE for PostgreSQL For guidelines on optimizing both your PostgreSQL server and ArcSDE server configurations. The same topics are also available in the help installed with ArcGIS Server and ArcGIS Desktop.com/arcgisdesktop/9.

Installations on Windows 7 .

esri. Installing PostgreSQL requires approximately 100MB. see http://support. Your computer is required to meet these minimum system requirements to install ArcSDE for PostgreSQL.Installation guide: ArcSDE for PostgreSQL System requirements For the latest in supported system environments. The following lists the minimum system requirements for ArcSDE for PostgreSQL: Operating system Microsoft Windows Server 2003® Microsoft Windows 2000® service pack 3 or later Free disk space Installing the ArcSDE component on Windows requires approximately 200MB. 8 .com. and navigate to Software > ArcGIS Server > System Requirements.

You can visit https://service.To obtain an authorization file Each server where the ArcSDE component is installed requires an authorization file. phone. 9 . On Windows. fax. See ArcSDE authorization for registration methods using the Post Installation wizard. you can also obtain an authorization file and register ArcSDE using the Post Installation wizard.com to obtain an authorization file (by email.esri. Each new version of ArcSDE requires a new authorization file. There are several ways to obtain an authorization file and register the ArcSDE component of ArcGIS Server Enterprise. or mail) before installing the ArcSDE component.

Log into the computer where you will be installing the software as a user with administrative privileges. skip the PostgreSQL installation. Note: If you already have a nonsupported version of PostgreSQL installed. If you are prompted to remove or upgrade the existing instance. depending on what version of PostgreSQL you already have installed. click Next. Read the PostgreSQL installation notes. 2. the PostgreSQL installation will launch first. you must use the Windows mstsc. 5. When you have finished reading. Close all applications on your computer. The Installation dialog box gives you the option to install PostgreSQL and install ArcSDE. or install into a different directory. Click Next on the Welcome dialog box. you should create a backup of the PostgreSQL instance before proceeding with the uninstallation or upgrade. and go directly to the ArcSDE component installation. 2. How to install PostgreSQL Note: If you plan to install PostgreSQL using Remote Desktop. 4. the installation wizard will detect this. If you leave both checked. 1. 3. 10 . Click the drop-down next to National language support and click Will be installed on local hard drive. Insert the ArcSDE component media into the appropriate drive and follow the directions on How to install PostgreSQL. upgrade it. How to prepare to install PostgreSQL 1.exe and be sure to grant the postgres service account full permissions to the directory on the remote machine to which PostgreSQL is being installed. If you have a supported version of PostgreSQL installed.Installation guide: ArcSDE for PostgreSQL Installing PostgreSQL Follow the steps below to install PostgreSQL on Windows. 3. Choose the ArcSDE for PostgreSQL option on the ArcSDE installation dialog box. you will be prompted to either remove the existing instance.

such as database drivers.If you want to have the option to install additional PostgreSQL components. Slony-I. click the dropdown next to Application Stack Builder and click Will be installed on local hard drive. PostGIS. or Ruby on Rails. 11 .

and the installation wizard will create the account for you. If you have not created an account. you can leave the default postgres name or type a new name in the Account name field. 7. type the name of the account in the Account name field and the password for the account in the Account password and Verify password fields. Note: If you use a service number other than the default. you must set the PGPORT environment variable to point to the port number you use. 6. Set up the instance to accept network connections by checking Accept 12 . then type a password in the Account password and Verify password fields. a message will be returned indicating your password is weak.Installation guide: ArcSDE for PostgreSQL Click Next. Create or designate an account to run the PostgreSQL service. If you have already created an account to use for this purpose. Create a database cluster by leaving Initialize database cluster checked. and special characters). numbers. Leave Install as a service checked. Click No to keep your weak password. Assign a port number for connections by using the default number (5432) or typing another port number. Click Next. This dialog box gives you the opportunity to have the server assign a random password. Click Yes if you want a random password assigned. Note: If you do not supply a strong password (such as one that letters. This is a nonadministrative Windows account.

this is not required. Type a password for the super user in the Password field and confirm it by typing the password in the Password (again) field. 13 . You must use the default name of postgres. Click Next. Also. Create a postgres super user account. it is recommended you accept the C locale because using other locales could slow the performance of string operations. not just localhost. Enable PL/pgsql by accepting the defaults. Click Next. 8. unless you need to specify a locale for your databases. Choose the locale for your database cluster and the encoding for the server on which the database cluster resides and client machine using the corresponding drop-down menus. UTF-8 is recommended for the encoding to take advantage of Unicode capabilities. however.connections on all addresses. The client encoding will be detected as the encoding of the machine from which you are running the installation.

Installation guide: ArcSDE for PostgreSQL 9. 14 . Install the Adminpack and plDebugger contrib modules. Click Next.

Click Finish to exit the PostgreSQL installation wizard. uncheck PostgreSQL. Go to the computer where you are installing the ArcSDE component of ArcGIS Server Enterprise. or you can install it after installing the ArcSDE component. insert the DVD. Just be sure to install PostGIS before proceeding with postinstallation setup. When you get to the Installation dialog box. When the PostgreSQL installation is complete. leave ArcSDE for PostgreSQL checked. stop here. A progress bar displays. the Installation complete dialog box appears. 11.10. you can install PostGIS at this time. the wizard proceeds to the ArcSDE component installation. Also read the topic Installing the DBMS and the ArcSDE component on different machines for more details on additional steps necessary for this type of installation. When the PostgreSQL installation completes. This requires an Internet connection. This starts the ArcSDE component installation. If you chose to install the Application Stack Builder and plan to use the PostGIS geometry type. 15 . Follow the instructions in the next section for installing the ArcSDE component. Note: If you are installing the ArcSDE component on a different computer than the one where you installed PostgreSQL. Click Next on the Ready to install dialog box. Note: You can add your email to the PostgreSQL mailing list if you want by clicking the Subscribe to pgsql-announce button. and launch the ArcSDE for PostgreSQL installation. and click Install.

conf file: host habitat all 10. you will need to alter the pg_hba.conf.12 using an md5 connection.conf file through PgAdminIII. such as Notepad. or you can alter the pg_hba.conf file to allow other machines to connect to it. you would add a line similar to the following to the pg_hba.conf file directly by opening it in a text editor. Open PgAdminIII.html#AUTH-PASSWORD.org/docs/8. point to Server Configuration.conf file: 16 . If you need to configure the database cluster to accept connections from machines with an IPV6 address. you would add this line to the pg_hba.postgresql. consult the PostgreSQL documentation at http://www. Connect to the PostgreSQL instance as the postgres super user.2. 1. Connect to the database. add the following line to the pg_hba. Click Tools.conf file: host all all 10.conf file.0/24 md5 You'll notice the preceding examples were for IPV4 addresses. and click pg_hba.Installation guide: ArcSDE for PostgreSQL Configuring the PostgreSQL database cluster to accept client connections Once the database you will use for your ArcSDE geodatabase has been created. 3. you need to uncomment the following line in the pg_hba. Before you do this. 2. you will be adding an entry for client connections to PostgreSQL. This file is found in the etc directory of the PostgreSQL installation location. For example. No matter which method you use. If you want to allow all users who supply a valid password to connect to any of the databases on the PostgreSQL instance.12.2. You can either alter the pg_hba.3/interactive/authmethods.0/24 md5 Note: The recommended authentication type to use with your ArcSDE database is md5. 4. make a backup copy of your pg_hba.2.conf file: host all all fe60::0000:0000:0000:0000%10/8 md5 If your PostgreSQL database cluster is set up on a machine that has an IPV6 address and you want machines with an IPV4 address to connect to it. For a description of this authentication method. to allow any user who supplies a valid password to connect to a database named habitat from any address beginning with 10.12. the format would be as follows: host all all fe60::61f9:1253:c522:9b92%10/128 md5 To allow any machines with an address beginning with fe60 connect.

org/docs/8.3/interactive/auth-pg-hba-conf.postgresql.html.host all all ::1/128 md5 Details about the pg_hba.conf file can be found in the PostgreSQL documentation at http://www. 17 .

If you already have a supported version of PostgreSQL on the machine. 4. To complete the software installation. How to install the ArcSDE component 1. See the topic To obtain an authorization file. The Post Installation wizard provides the options to set up the geodatabase repository in the database. 3. 3. Obtain an authorization file for the machine on which you will be installing the ArcSDE component. This is not required to install the ArcSDE component but is required to complete the postinstallation setup. create an ArcSDE administrative user. 2. 2. 18 . follow the directions in the setup program. the setup program provides the opportunity to begin the Post Installation wizard. When the PostgreSQL installation completes. The license agreement dialog box contains a link to view the license agreement in another language. 4. If you intend to use the PostGIS geometry type but have not yet installed PostGIS. the ArcSDE component installation will begin immediately. authorize the software. During the installation. This is covered in the first bullet point on the topic Installing the DBMS and the ArcSDE component on different machines. and create and start the ArcSDE service. Log into the computer where you will be installing the ArcSDE component as a user with administrative privileges. exit out of the Post Installation wizard and install PostGIS. Note: If you intend to use ArcSDE with a pre-existing supported version of PostgreSQL. See the Postinstallation overview for more information. Preparing to install the ArcSDE component 1.Installation guide: ArcSDE for PostgreSQL Installing the ArcSDE component Follow the steps below to install the ArcSDE component of ArcGIS Server Enterprise on Windows. Close all applications on your computer. After the ArcSDE component installation completes. you will be asked to read the license agreement and accept it or exit if you do not agree with the terms. Insert the ArcSDE component media into the appropriate drive and follow the directions on How to install the ArcSDE component. the ArcSDE component installation will begin. you need to copy certain ArcSDE files to the PostgreSQL installation folder.

tablespace. and locators. If this step does not run successfully. an sde user and schema. you will have a chance to include them here. sde user. you must set up your database. The database. authorize the geodatabase for use. Creating the ArcSDE service—Once the ArcSDE component has been authorized for use. you will not be able to connect to the geodatabase. or giomgr. You can access the Command Reference from the Start menu: Start > All Programs > ArcGIS > ArcSDE > Command References. and schema must exist before the rest of the postinstallation setup will succeed. The Post Installation wizard will guide you through the following options: Setting up the sde user environment—If you do not already have a database to use for your geodatabase. If the information 19 . you can reopen the Post Installation wizard from the start menu and skip the first step by selecting the custom postinstallation setup option on the first dialog box of the Post Installation wizard. dbinit.defs file and want to use one or all of those. Accept the defaults if you do not have any custom files to use. This postinstallation option allows you to define the ArcSDE configuration files to be used by ArcSDE in the database. See the ArcSDE Administration Command References for details on using sdesetup. and a tablespace in which to store the database.sde. the Post Installation wizard will create them by connecting to PostgreSQL as the super user. and you can create an ArcSDE service. The ArcSDE service will not start and direct connections will be refused unless your geodatabase repository has been configured using a valid authorization file. stored procedures. See the ArcSDE Command Reference for details on the use of the sdesetup command. If you modified a dbtune.Postinstallation Postinstallation overview Once the ArcSDE component is installed. create an ArcSDE geodatabase. This postinstallation option authorizes your geodatabase repository using the authorization file. The Post Installation wizard provides an easy way to complete these tasks. the ArcSDE service can be created. Setting up the ArcSDE repository—This is a crucial step in the postinstallation setup because it creates the ArcSDE geodatabase system tables. Security at your site may dictate you skip this part of the setup and allow your PostgreSQL database administrator to manually create them. You can reconfigure your geodatabase repository using the sdesetup command with the update_key operation. Once the database administrator has created these objects for you. Note: This step can be performed manually with the sdesetup command. Authorizing ArcGIS Server Enterprise—Each ArcSDE server requires a unique authorization file.sde.

A Complete installation guides you through all of the postinstallation options. The Custom installation can be used if you need to run parts of the postinstallation setup at different times or if you do not need to perform all the steps.Installation guide: ArcSDE for PostgreSQL provided to create the ArcSDE service is complete. choose Custom and click Next. Choose a Complete or a Custom postinstallation setup. That takes you to the following dialog box: 20 . Selecting a custom installation allows you to choose from any of the available postinstallation options. In that case. the Post Installation wizard will start the ArcSDE service for you.

perform the first three steps only. schema. 21 .Some scenarios for which you might run parts of the postinstallation setup at different times include the following: If you need to request your authorization file. skip the first step. Later. skip the fourth step. You cannot complete the third step nor proceed with the fourth step until you have the authorization file. you can go back and complete the third and fourth steps. If you are upgrading the geodatabase. run only the third step. you can request your authorization file. If you need to run the Post Installation wizard again at a later time. If you or your database administrator already manually created the sde user. skip the first step. it is available from Start > Programs > ArcGIS > ArcSDE > ArcSDE for PostgreSQL Post Installation. tablespace. If none of your users plan to utilize an ArcSDE service to connect to the geodatabase. As part of the third step. If you have an existing geodatabase but received a new authorization file. and database.

UPDATE. 2. 22 . sde user. and tablespace. Create the sde user in the database cluster. 4. schema.geometry_columns table to the sde user. Grant the sde user super user privileges to complete the installation. Grant USAGE to Public on the sde schema. Create the sde user's schema in the PostGIS database. Note: If you installed PostGIS and plan to use its geometry type in your geodatabase. choose to use a Custom setup. Create the sde user's default schema in the database. you can start the Post Installation wizard. Proceed with the steps in Setting up the geodatabase repository. 5. Grant the user super user permissions. Once you finish these manual steps. Grant SELECT. Create or designate a tablespace in which to store the database. you must skip this portion of the Post Installation wizard and manually do the following: 1.Installation guide: ArcSDE for PostgreSQL Setting up the sde user environment This postinstallation setup option will do the following: Create the sde user. This is the user you created when you installed PostgreSQL. and uncheck the option to define the sde user environment. INSERT. You must provide the super user name and password. Create the database to be used for the ArcSDE geodatabase. To set up the database. the Post Installation wizard connects to PostgreSQL as the postgres super user. 3. and DELETE on the public.

23 . Note: PostgreSQL requires the tablespace be created in an empty directory. you will be required to set a password for the sde user. You may change it to another name as long as the name begins with a letter. and is all lower case. Also note.Note: If for some reason your super user's name is stored in mixed case or all capital letters in the database. the database name is also set to sde. is less than 32 characters. you cannot specify a path to a remote directory for the tablespace. tablespace creation will fail. You may also provide a tablespace name and assign a path to the tablespace file or accept the default provided. Once connected to PostgreSQL as the super user. The user name must be sde and the schema created in the database for this user will also be sde. If you specify a folder that already exists and contains any files. By default. enclose the name in double quotes when you type it.

Related concepts found in the help You can get more information related to the sde user and permissions in the ArcGIS Desktop online help (http://webhelp. Note: After all postinstallation steps are complete. before you can upgrade your geodatabase. these privileges must be regranted to the sde user.com/arcgisdesktop/9. but are not included when granting super user privileges through PgAdminIII. and user will be created if necessary. However.esri. Open the help and search for the following titles: The ArcSDE administrative account User permissions 24 .3) or the help system installed with ArcGIS Server or ArcGIS Desktop. These permissions are included with super user privileges when granted using psql.Installation guide: ArcSDE for PostgreSQL The sde database. super user privileges can be removed from the sde user. Be aware that if you grant these privileges using PgAdminIII. tablespace. and the required super user privileges will be granted to the sde user to create the geodatabase repository. you must also grant the sde user privileges to modify the catalog directly. schema.

If you do not choose to perform this postinstallation option using the Post Installation wizard. If not. The geodatabase repository contains all the ArcSDE metadata for administering the ArcSDE geodatabase.defs file. you can set up the ArcSDE geodatabase repository. If left commented out. After the configuration files are defined. This parameter is commented out. you must manually execute the sdesetup command at the DOS prompt. accept the default configuration files. dbinit. the default location for this is the temporary folder of the user logged into the Windows machine at the time the geodatabase is created. you do not have to uncomment and change this parameter value. uncommenting the TEMP parameter and setting it to the full path name you want to use. 25 .defs*. Setting up the repository is a crucial step in the postinstallation setup.defs file. If you do not have custom files. Provide your sde user password and database name to connect to PostgreSQL as the sde user and create the repository.sde files. user.defs file contains a parameter—TEMP—that is used to specify the full path name to a temporary disk space directory used for attribute binary large objects that exceed the size specified by the BLOBMEM parameter. and tablespace are created. Refer to the sdesetup command in the ArcSDE Administration Command Reference (%SDEHOME%\Documentation\Admin_Cmd_Ref) for specifics on what is occurring with this operation. schema. alter the giomgr.sde. and/or dbtune. If that location is acceptable. then save the giomgr. Options are provided to specify custom giomgr.Setting up the geodatabase repository Once the sde database. you can connect to PostgreSQL to set up the geodatabase repository. *The giomgr.

Installation guide: ArcSDE for PostgreSQL

Related concepts found in the help You can get more information related to setting up the repository in the ArcGIS Desktop online help (http://webhelp.esri.com/arcgisdesktop/9.3) or the help system installed with ArcGIS Server or ArcGIS Desktop. Open the help and search for the following titles: The dbtune file and the DBTUNE table DBTUNE configuration keywords DBTUNE configuration parameter name-configuration string pairs About geometry storage types A spatial type for PostgreSQL The ST_Geometry storage type Using the PostGIS geometry type The giomgr.defs file and the SERVER_CONFIG table The dbinit.sde file System tables of a geodatabase in PostgreSQL

26

The ArcSDE component authorization
Each server on which the ArcSDE component is installed requires a unique authorization file. You can obtain an authorization file using the Post Installation wizard. If you have already obtained your authorization file, the Post Installation wizard will configure your geodatabase repository using your authorization file. Every ArcSDE geodatabase that resides on the same machine must be authorized using the authorization file because the authorization information is stored in the geodatabase repository. The ArcSDE service will not start nor will you be able to make any direct connections to the geodatabase unless your geodatabase repository has been configured using a valid authorization file. To reconfigure the repository with an updated authorization file, run through this portion of the Post Installation wizard again. To launch the Post Installation wizard at a later time, go to Start > All Programs > ArcGIS > ArcSDE > ArcSDE for PostgreSQL Post Installation. If the software authorization option is not selected with the repository setup option, you will also be required to provide the following information to connect to the geodatabase:

Provide your sde user password and database name to connect to PostgreSQL as the sde user and register the database with ArcGIS Server Enterprise. To successfully register and authorize ArcGIS Server Enterprise for this database: Choose your registration option

27

Installation guide: ArcSDE for PostgreSQL

You can configure the geodatabase repository using two methods: 1. I have installed my software and need to register it. 2. Select this option if you do not already have an authorization file. There are several methods to provide your registration information.

28

This is the method in which you will provide your registration information.Select the registration method you would like to use. Tip Register now using the Internet enables you to authorize the software immediately. 4. After providing your registration information. Select this option if you have already received your authorization file from ESRI Customer Service. your authorization file will be emailed to you. you can either browse to the 29 . I have received an authorization file from ESRI and am now ready to finish the registration process. It requires an Internet connection. If you select this option. 3. including the registration number you received with the software.

you are required to Choose or enter the location of the authorization file that you received from Customer Service. you are required to provide the following information: (This information can be obtained from the authorization file you received by mail. telephone. or fax) Feature name Version number Time-out date Registration number Authorization code 30 .Installation guide: ArcSDE for PostgreSQL location of the file (if you received the file by email). If you choose the option to browse to an authorization file on disk. If you choose the option to manually enter the authorization information. email. or you can manually enter the authorization information.

the password that you used for your SDE user. this is c:\WINNT\system32\drivers\etc\services) and will register the service with Windows. Replace it with the name of your database. this field will be populated with sde.com/arcgisdesktop/9. By default. and the database name. you can run through this option in the Post Installation wizard again. the database you specified during geodatabase repository creation is specified. Information on the sdeservice command can be found in the ArcSDE Administration Command Reference (%SDEHOME%\Documentation\Admin_Cmd_Ref). All fields in this dialog box are required. Related concepts found in the help You can get more information related to the ArcSDE service in the ArcGIS Desktop online help (http://webhelp. Open the help and search for the following titles: An overview of ArcSDE geodatabase connections Starting an ArcSDE service 31 . You must provide a unique TCP/IP port number and service name.Creating an ArcSDE service This option of the Post Installation wizard allows you to create an ArcSDE service. This portion of the Post Installation wizard will add an entry to the services file of your server machine (usually. if you chose a complete postinstallation setup.esri. If you are doing a custom postinstallation. or you can use the sdeservice command at the DOS prompt.3) or the help system installed with ArcGIS Server or ArcGIS Desktop. If you need to modify your service later.

Installation guide: ArcSDE for PostgreSQL Stopping an ArcSDE service Pausing and resuming an ArcSDE service Accessing an ArcSDE service through a firewall Troubleshooting the ArcSDE service 32 .

2. Click on PostgreSQL in the Currently installed programs list and click Remove. 4. 5.sde file) you want to keep for future use. make a copy of any custom files (such as the dbtune. be sure you have created backups of all your databases prior to uninstallation and have moved the backup files to a secure location! Before uninstalling your PostgreSQL software. click Yes when asked to delete the services. Open Windows Explorer. Stop all ArcSDE services on the computer. This can be done using the Windows Services menu or using the sdemon command. and click the Remove button. you need to stop and delete any ArcSDE services you have associated with PostgreSQL databases. 2. If you no longer need or plan to re-create the existing ArcSDE services associated with PostgreSQL. If you plan to keep the ArcSDE service for transition purposes. Click Yes to confirm the uninstallation of PostgreSQL. 1. you need to delete the installation folder. Uninstalling the PostgreSQL software You can uninstall PostgreSQL through the Windows Control Panel. Cleaning up the PostgreSQL folders After you have uninstalled the PostgreSQL software. 33 . click No. you won't be able to uninstall PostgreSQL because the ArcSDE service will be using it. 3. Uninstalling PostgreSQL from Windows Note: If you are uninstalling PostgreSQL as a precursor to upgrading the PostgreSQL or PostGIS products. (Make sure you didn't save your backup files to this folder if you plan to reinstall PostgreSQL and restore your databases!) 1. Before uninstalling. Note: Uninstalling PostgreSQL does not uninstall PgAdminIII. stored procedures. This removes the ArcSDE component from disk. The ArcSDE system tables.Uninstalling Uninstalling the ArcSDE component 1. Select ArcSDE for PostgreSQL from the program list. From the Start menu. and user data are still in your PostgreSQL database. 3. open the Control Panel and double-click the Add/Remove Programs icon. If you don't. Open the Control Panel then open Add or Remove Programs.

3. Note: When you restore your databases or database cluster. 34 . Navigate to your PostgreSQL installation location. you must recreate your tablespaces prior to restore. Consult the PostgreSQL documentation for information on tablespaces and restoring. The default location is \Program Files\PostgreSQL.Installation guide: ArcSDE for PostgreSQL 2. you need to navigate to and manually delete these directories as well. 4. If you installed any parts of PostgreSQL in other directories (such as tablespaces. Delete the PostgreSQL folder. data files).

Installations on Linux 35 .

36 .Installation guide: ArcSDE for PostgreSQL System requirements For the latest in supported system environments. work. and usually do.esri. if the DBMS is not supported on that version of the operating system. see http://support.com and navigate to Software > ArcGIS Server > System Requirements.4.6-8) gcc version 3. ArcSDE is not supported either.4.6 20060404 (Red Hat Linux 3.4. PLATFORM Red Hat® Linux® SUSE® Linux OPERATING SYSTEM Red Hat Linux ES 4 COMPILER gcc version 3. Lower versions of releases are not supported. Your computer is required to meet these minimum system requirements to install ArcSDE for PostgreSQL.6 20060404 SUSE Linux Enterprise Server 10 Higher releases may. Note: For any given operating system.

sde script as the postgres user to create a tablespace. sde schema. 1. For information on the postgresql.conf and postgresql. consult the PostgreSQL documentation. 7. create an sde OS user. If installing on Red Hat Linux. As root. As the postgres user. As the postgres user. and libsg.conf. you have to obtain the installation files on your own. start the PostgreSQL process. 6. See step 10 of the Installing PostgreSQL on Linux topic for instructions on setting environment variables. create a postgres OS user. run the setup_pgdb. Either: a. For details on settings in pg_hba. set up the PostgreSQL database cluster.Installation overview for Linux The steps to install PostgreSQL and ArcSDE for PostgreSQL on a Linux operating system (OS) are summarized below. Either: a. If you are installing on Red Hat Linux. The user you log in as to run each step is in bold. set environment variables.conf files to configure the PostgreSQL database cluster.so files from the installation disk to the PostgreSQL lib directory.so. 5. Log in as root and manually install PostgreSQL. or b. database. and copy the st_geometry. For installations on Red Hat Linux. 2.sde script as root to install PostgreSQL. 4. edit the pg_hba. run the create_pgdb. and copy the necessary library files. create the postgres OS user. sde user. See Preinstallation setup and Installing PostgreSQL on Linux for instructions. Log in as root. see the section Configuring the database to accept connections on the topic "Creating and configuring a PostgreSQL database".conf file. and PL/pgsql language. RPM files are provided on the ArcSDE component installation media.so. create a directory to house the RPM files and copy the files from the installation media to this directory. libpe. or 37 . As the postgres user. For installations on SUSE Linux. 3. set up the database cluster.

9. As root. See Installing the ArcSDE component for instructions.sde file in the etc directory of the ArcSDE installation location to also include the name and port number for the ArcSDE service. Run the sdemon -o start command as the sde user to start the ArcSDE service. 12. database. 13. sde schema in the database. and PL/pgsql language. 11. alter the services. As the sde user.Installation guide: ArcSDE for PostgreSQL b. run the ArcSDE installation. 10. Run the sdesetup -o install command to create the geodatabase and authorize the ArcSDE component. As the sde user. tablespace. alter the services file in the etc directory to include the name and port number for the ArcSDE service. See Creating and configuring a PostgreSQL database for instructions. See ArcSDE postinstallation setup for instructions. 8. Log in as the postgres user and manually create the sde DBMS user. edit the dbinit. set the sde environment variables. See Starting the ArcSDE service. 38 . See ArcSDE postinstallation setup for instructions. See Installing the ArcSDE component for instructions. As the sde user. As the sde user.sde file to include the name of the database.

you will have to check for it manually. upgrade the existing instance. Be aware.0 release of PostgreSQL on the server. so on the Red Hat operating system. be sure to create a backup of the existing PostgreSQL instance.3. Check for previous versions of PostgreSQL on your machine by logging in as the root user and issuing the following command: rpm –qa | grep postgres Note: If you had installed a previous version of PostgreSQL by compiling from source files rather than using RPMs. you either have to remove it prior to installing the release of PostgreSQL that ships with the ArcSDE component of ArcGIS Server Enterprise.0). To remove a previous version of PostgreSQL from the machine. 2. If you choose to upgrade.postgresql.0 release on the server (either you upgraded an older existing instance or you already installed 8. Consult the PostgreSQL documentation at http://www.org/docs/ for details. make sure your server meets the minimum system requirements and that there is not a previous version of PostgreSQL already installed on the server.Installing and configuring PostgreSQL Preinstallation setup Before you install PostgreSQL. Be sure to remove the PostgreSQL installation directory as well. If there is an existing 8. 1.3. proceed to the instructions for creating and configuring the database to use with ArcSDE.3. If there is no 8. or install PostgreSQL 8. it is likely you will have a previous installation of PostgreSQL.3. If this command indicates an installation of any previous version of PostgreSQL exists on your computer. 39 . proceed to the PostgreSQL installation instructions. the Red Hat Linux installation comes with an older version of PostgreSQL by default. this command will not show that a previous installation exists. issue the following command: rpm –e <name_of_the_returned_package> 3.0 in another directory.

3. Place the ArcSDE component installation media into the appropriate drive and mount the drive. The create_pgdb. If you plan to also install and use PostGIS.sde script will prompt you to install either the minimum (the files listed here plus postgresql-docs) or all of the components. Copy the RPMs from the drive to the new directory cp -r /media/cdrom/linux/pg/pg /usr/postgres 40 . mkdir /usr/postgres 4.3. you should install the postgresql-devel package at this time. the only step you need to manually perform is step 11. If you run the create_pgdb. Log in as the root user. At a minimum. 3.sde script provided on the installation media to install . Source files can be obtained from the PostgreSQL Web site.0 on Red Hat Linux. please follow the installation instructions provided by PostgreSQL.0 on SUSE Linux. it will prompt you for information to complete steps 1 through 9 of the PostgreSQL installation. you need to obtain the source files and use those to install PostgreSQL. If you are installing on SUSE Linux using source files. if you run the script. Note: You must know the root password to install any packages on a Linux based system. To install PostgreSQL 1. Therefore.3. The following steps explain how to manually install PostgreSQL on Red Hat Linux using RPMs.Installation guide: ArcSDE for PostgreSQL Installing PostgreSQL on Linux To install PostgreSQL 8. 2. How to install PostgreSQL The Red Hat package manager (RPM) files for PostgreSQL 8. you must install the following packages to use PostgreSQL with ArcSDE: postgresql-libs postgresql postgresql-server Note: Additional RPMs are included on the installation media for other optional components. Follow the steps below to install PostgreSQL 8. These RPM files can be used for installations on Red Hat 4 Linux. Create a directory to house the RPMs.0 are provided to you on the ArcSDE component installation media.

which creates all of the files in the PGDATA directory: /usr/bin/initdb -D /var/lib/pgsql/data Note: There are additional options you can specify with these commands. you need to point to an encryption key. three RPM files—postgresql-libs.rpm 6.i686.3.rpm rpm -ihv postgresql-8. such as to specify authentication method and to set the database cluster's locale. If the key is not present. Copy the following ArcSDE library files from the ArcSDE installation media to the PostgreSQL lib directory: st_geometry.so libpe.0-1PGDG. Be sure to read the PostgreSQL documentation for a full list of options for each command. To install the PostgreSQL database cluster.so libsg. database cluster initialization will fail.5.3. 41 . After the PostgreSQL database cluster is initialized.rpm rpm -ihv postgresql-docs-8. Execute the RPM file to install PostgreSQL.so 9.rhel4.rhel4.i686. at a minimum.i686.3. Before installing any packages.3. A database cluster is a collection of databases managed by a database server. It is recommended you create a password for the postgres user. Also note there is only error logging with the last command in the preceding list.rhel4.i686. This user is created without a password. you will receive a warning message when installing PostgreSQL. and postgresql-server—in the order listed.0-1PGDG. Initialize the database cluster. Log in as the postgres user and issue the following command to initialize the database cluster. postgresql-8.rpm rpm -ihv postgresql-server-8.rpm rpm -ihv postgresql-devel-8. 7.0-1PGDG.i686. If it is not.0-1PGDG. template1. The following examples show installing the three required RPMs plus the documentation and developer RPMs: rpm –ihv postresql-libs-8.3. you need to use. The PostgreSQL database cluster must be created in an empty directory by the postgres user.rhel4. The encryption key provides you assurance that the file you are downloading is indeed what it says it is. 8. which is provided on the installation media.3.0. it contains two databases: one named postgres and a template database.rhel4. an operating system (OS) user named postgres is created. When you execute the RPMs.0-1PGDG.

bashrc (Bash) or . 42 . depending on which shell type is used. sde is the name of the directory. .cshrc (C). If you are installing the ArcSDE component on a machine separate from the PostgreSQL instance.profile (Bourne) file. If you are going to store the tablespace in a location other than the default. PGDATA=/var/lib/pgsql/data export PGDATA PATH=$PATH:/usr/bin export PATH LD_LIBRARY_PATH=/usr/lib:/usr/lib/pgsql export LD_LIBRARY_PATH The syntax for adding these variables to the .cshrc file: setenv <VARIABLE> <variable_value> WARNING: You must source the shell file after defining these variables. please refer to http://pgfoundry.bashrc and . That completes the base PostgreSQL installation. Log in as the postgres user and prepare a shell by defining the following variables in the postgres user's shell file.Installation guide: ArcSDE for PostgreSQL 10. You should now proceed with Creating and configuring the PostgreSQL database.bashrc files is as follows: <VARIABLE> = <value for variable> export <VARIABLE> The following is the syntax to add these variables to the . create a directory to store the ArcSDE tablespace by issuing commands similar to the following: mkdir $PGDATA/sde chown -R postgres $PGDATA/sde In these examples. 11.org/docman/?group_id=1000048. The following examples are for a . For further documentation on how to install PostgreSQL with RPMs.profile or .profile shell. be sure to read Installing the DBMS and the ArcSDE component on different machines. This is either the .

manually perform all steps. For a description of this authentication method. and a schema named sde owned by the sde login.0/24 md5 If you want to allow all users who supply a valid password to connect to any of the databases on the PostgreSQL instance from addresses beginning with 100. you must configure the database cluster.0. you would add this line to the pg_hba. then create a database. the format would be as follows: host all all fe60::61f9:1253:c522:9b92%10/128 md5 To allow any machines with an address beginning with fe60 connect. You also need to install and configure an additional component.conf file in a text editor and add the IP address of connecting client machines and the client authentication method used. Next.conf file: host habitat all 10.0.3/interactive/auth-methods. open the pg_hba.conf file: 43 . to allow any user who supplies a valid password to connect to a database named habitat from addresses beginning with 10. If you need to configure the database cluster to accept connections from machines with an IPV6 address.sde script. Note: The recommended authentication type to use with your ArcSDE database is md5.2. Before you alter this file. If you run the setup_pgdb.Creating and configuring a PostgreSQL database After you install PostgreSQL. you need to uncomment the following line in the pg_hba. create a PostgreSQL database login named sde.0/8 md5 You will notice the preceding examples were for IPV4 addresses.sde script if you are installed on Red Hat Linux.conf file: host all all fe60::0000:0000:0000:0000%10/8 md5 If your PostgreSQL database cluster is set up on a machine that has an IPV6 address and you want machines with an IPV4 address to connect to it.html#AUTHPASSWORD.postgresql. Configuring the database cluster Connection information PostgreSQL uses a configuration file—pg_hba.conf—to store connection information. make a backup copy of it.org/docs/8. add the following line to the pg_hba.12 using an md5 connection. you only need to manually perform step 1. you would add a line similar to the following to the pg_hba.12. You can use the setup_pgdb.conf file: host all all 100. For example. For installations on SUSE Linux. 1.2. consult the PostgreSQL documentation at http://www.

Postgresql. you cannot use these with ArcSDE. For more guidance on PostgreSQL installation. Log into psql as the postgres super user and create the ArcSDE administrative user. Or you can set this parameter to '*' to allow the server to listen on all available IP addresses.org/docs/8. Start PostgreSQL Now that you have changed the pg_hba. a.conf file can be found in the PostgreSQL documentation at http://www. Creating the PostgreSQL database and sde user The Linux installation of ArcSDE provides a script—setup_pgdb. Note: It is likely you will have to add the IP address of the local computer before the ArcSDE service will start. For additional information on setting postgresql. and vacuuming parameter settings. You can enter a comma-separated list of host names or IP addresses. If you want to store the database used for your ArcSDE geodatabase in a tablespace different from the default (pg_default). You can use the script provided on the installation media. b. start the postmaster process. Note: Although PostgreSQL allows you to store object names that are mixed case or upper case by doing such things as enclosing the name in quotes. and its schema on Red Hat Linux.conf The postgresql. You need to set the listen_addresses parameter to indicate on what IP addresses PostgreSQL should listen for client applications. The user created must be named sde.conf parameters.html. /usr/bin/pg_ctl start 2. how resources are used. database. psql CREATE ROLE sde LOGIN PASSWORD <password> SUPERUSER NOINHERIT CREATEDB.conf file is used to set various parameters that affect the database cluster. how and where error logs are created. consult the PostgreSQL documentation. such as how and through which port connections are made to PostgreSQL. sde user.3/interactive/auth-pghba-conf. or manually perform this step.postgresql. create a new 44 .sde—for creating the PostgreSQL tablespace.conf file. please refer to the PostgreSQL documentation.Installation guide: ArcSDE for PostgreSQL host all all ::1/128 md5 Details about the pg_hba. but you can choose whatever password you like.

you must also grant SELECT. (Full access is necessary for the sde user to create the geodatabase. GRANT SELECT. and is stored in the sde1 tablespace. Log into the database to create the sde user’s schema. Note: PostgreSQL requires the tablespace be created in an empty directory. the agency database is owned by the postgres super user.tablespace in the directory you created in step 9 on Installing PostgreSQL on Linux. GRANT ALL ON SCHEMA sde to sde. UPDATE. The schema name must be sde. DELETE ON TABLE public. GRANT ALL ON DATABASE agency TO sde. grant public permission to access it.) Also grant usage privileges to public so other users can access the database.geometry_columns TO sde. a tablespace named sde1 is created in the sde directory. 45 . UPDATE. The tablespace is owned by the sde user. tablespace creation will fail. CREATE TABLESPACE sde1 OWNER sde LOCATION '/var/lib/pgsql/data/sde'. \c agency CREATE SCHEMA sde AUTHORIZATION sde. If you specify a directory that already contains any files. Grant the sde user full rights to this schema. In this example. Note: If you intend to use the PostGIS geometry type for data storage. Note: If you are using the PostGIS geometry type.geometry_columns table to sde. CREATE DATABASE agency OWNER sde ENCODING 'UTF8' TABLESPACE sde1. In the following example. and DELETE privileges on the public. GRANT USAGE ON SCHEMA sde TO public. Because other users have to access the objects in the sde schema. you must create the database using the PostGIS template or enable an existing database for PostGIS geometry after the fact using a script provided by PostGIS. INSERT. uses UTF8 character encoding. c. create a database and grant the sde user full access to it. Next. This is the schema in which all the ArcSDE geodatabase system tables will be stored. d. INSERT.

roles_schemas_privileges. You can find this file. This component is required for you to use the database with ArcSDE. Execute the following command: CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler VALIDATOR plpgsqsl_validator. psql agency sde b. 46 . a. connecting to your new database as the sde user. you can install the PL/pgSQL language.Installation guide: ArcSDE for PostgreSQL Other users A file is included with the ArcSDE component installation that contains SQL statements for the creation of other users and their schemas. Log into psql. 3. Installing PL/pgSQL Now that the database and sde user and schema exist. in the tools directory of $SDEHOME after you have installed the ArcSDE component.txt.

you must create an ArcSDE account on the OS.cshrc file (or the SDEHOME/etc/dbinit. By convention. this account is named sde. Log in as root and create the ArcSDE user with the following command: /usr/sbin/useradd sde b. Syntax is: 47 .Installing the ArcSDE component 1.cshrc. Preparing to install the ArcSDE component To install ArcSDE for PostgreSQL.profile or . Application programs will also be able to find the necessary program files located within the ArcSDE installation directory. depending on which shell it will use. add variable definitions to the .bashrc files respectively. all ArcSDE administration and utility software programs can be located without specifying absolute paths. The ArcSDE user must own all ArcSDE system files and directories. Log in as the newly created sde user and add the following to the sde user’s . By adding the lines below.profile file.sde file).bashrc or . Syntax is: <VARIABLE> = <value for variable> export <VARIABLE> For the C shell. The following is a sample Linux configuration for the ArcSDE account using sde as the name. The environment variables you should set are as follows: SDEHOME <location of ArcSDE> PATH $PATH:$SDEHOME/bin LD_LIBRARY_PATH $LD_LIBRARY_PATH:$SDEHOME/lib:<postgresql_location>/lib For the Bourne and Bash shells. Login name: User Id: sde <Any unused user id> Group Id: <Any group id> Home <home directory for user sde> Directory: Default Shell: /bin/bash a. . add variable definitions to the .

'^'. Installing the ArcSDE component The ArcSDE component should be installed logged in as the sde user created in the previous step. To obtain a list of options or online help. or . To read more about the installation procedure. The default is set to "no" and you have to type "yes" to proceed with the installation. you will be asked to read the license agreement and accept it or exit if you do not agree with the terms. To return to a previous question. type the caret. Make sure the sde account has write permissions to the installation directory. type: . Default selections are noted in brackets. Before continuing with the installation.) Running the install command will start the command-driven dialog for the ArcSDE component installation procedure. Please read the license agreement file appropriate for your locale. c. d.com/licenseagreement/. type '?' at any prompt. The license agreement can be found under the License folder at the root level of each CD or on the DVD under each platform's install folder (ArcSDE/<platform>/License). c. b. ESRI is willing to license the software to you only if you accept and agree to the enclosed license agreement./install -help.sde file. if not press <return> or type 'no' to exit installation process.Installation guide: ArcSDE for PostgreSQL setenv <VARIABLE> <variable_value> Note: When the ArcSDE service is started.profile. You can quit the installation procedure at any time by typing 'quit' or 'q'.sde file in the ArcGIS Server and Desktop help. If you have read and agree with the terms in the enclosed license agreement type 'yes' to continue the installation process. [ ]./install -load (Note: The usage for the install command is: install <-help | -load | remove | -verify >.bashrc files.esri.sde file is further explained in the help topic The dbinit. . These variable settings override the variables set by . Place the ArcSDE installation media into the appropriate drive and mount the drive. [no] 48 . Change directories into the Linux directory on the installation disk. a. type the install command at the operating system prompt: # .cshrc. The license agreement also can be viewed in a different language at http://www. To start the ArcSDE component installation. the giomgr process reads the variable settings in the $SDEHOME/etc/dbinit. The role of the dbinit. 2.

These files are listed in the first bullet point on the topic Installing the DBMS and the ArcSDE component on different machines.Once the installation is complete. you need to copy certain ArcSDE files to the PostgreSQL installation location. please continue with the postinstallation setup. Note: If you intend to use ArcSDE with a pre-existing supported version of PostgreSQL. 49 .

To successfully complete the postinstallation setup. For PostgreSQL databases. it is important that you edit this file prior to running the sdesetup command to designate in which tablespaces the database should use to store certain system tables.) $SDEHOME/etc/dbtune. $SDEHOME/etc/services.sde—Add the same line to this file that you added to the /etc/services file. The syntax for setting these environment variables is as follows: set <variablename>=<value> You can set an environment variable called SDE_DATABASE in this file. follow these steps: 1. To change the services file requires root access.htm file to launch the help system.sde—The dbtune file populates the DBTUNE geodatabase system table with keywords. and values that control the physical storage of tables in the database. Add a line similar to this one: my_sde 5151/tcp # ArcSDE service on pinetree Users connecting to your service can use the number 5151 as the service name. Other configuration files in the $SDEHOME/etc directory you may want to edit include: dbinit. Use the index. which will designate the name of the database to which the ArcSDE service will connect.sde—You can set environment variables in this file that the service will use each time it starts. they'll need to add this same line to their system services file. see The services. see the ArcGIS Server and Desktop help topic The dbtune file and the DBTUNE table.sde file in the ArcGIS Server or Desktop help.Installation guide: ArcSDE for PostgreSQL ArcSDE postinstallation setup After the ArcSDE component is installed but before you attempt to start an ArcSDE service. Modify files in $SDEHOME/etc and /etc/services. parameters. you must complete the postinstallation setup. For example: set SDE_DATABASE=mydb 50 . You will need to modify one or more files: /etc/services—The services file in the etc directory is a system file to which you'll need to add a line to define the TCP/IP port number and name to use for your ArcSDE service. For more information. (You can access the ArcGIS Server help from the help directory in the ArcSDE install location. For more information. If they prefer to use the name my_sde.

The sde database user must be a super user to run sdesetup. The usage for the sdesetup command to setup a geodatabase in PostgreSQL is as follows: sdesetup -o install -d POSTGRESQL [-H <sde_directory>] [-u <DB_Admin_user>] [-p <DB_Admin_password>] [-D <database>] [-s <server_name>] [-N] [-l <key>] [-q] Where: -o install Creates geodatabase system tables and procedures 51 . there is no crossdatabase access of spatial data. Populate the LOCATORS and METADATA system tables with data from $SDEHOME/geocode/templates. these privileges must be regranted to the sde user prior to a geodatabase upgrade. Each database will have its own set of ArcSDE and geodatabase system tables and stored procedures. see ArcSDE initialization parameters.Each geodatabase is self contained. This privilege can be revoked after postinstallation is complete. you will need a second connection to that database. 2. That is. see the ArcGIS Server and Desktop help topic The giomgr. The default parameters are sufficient for most applications. The sdesetup command will do the following: Create all the ArcSDE and geodatabase system tables in the database. See Using multiple geodatabases within a DBMS for information on how to support multiple ArcSDE services for multiple geodatabases. If data from another geodatabase is also needed.defs—This file populates the sde_server_config ArcSDE geodatabase system table with parameters that define how ArcSDE will utilize memory. Edit with care. The sdesetup command must execute successfully to properly create your geodatabase and for ArcSDE to function correctly. once connected to a database. See the ArcGIS Server and Desktop help topic The dbinit. Run $SDEHOME/bin/sdesetup. Create ArcSDE stored procedures. For more information on this file. For a list of the parameters found in this file. Note: If revoked. giomgr. you can only access spatial data in that database.sde file for more information on variables you can set in this file.defs file and the SERVER_CONFIG system table.

defs file and the SERVER_CONFIG table The dbinit.com/arcgisdesktop/9. use the update_key operation.peeking -D agency -s myserver -l /usr/sde/server93_Ent. Open the help and search for the following titles: The dbtune file and the DBTUNE table DBTUNE configuration keywords DBTUNE configuration parameter name-configuration string pairs The giomgr. see ArcSDE authorization. For additional information.ecp -N More information on the sdesetup command can be obtained from the ArcSDE Administration Command Reference ($SDEHOME/documentation/Admin_Cmd_Ref). To authorize the software.esri.3) or the help system installed with ArcGIS Server or ArcGIS Desktop.sde file System tables of a geodatabase in PostgreSQL 52 .Installation guide: ArcSDE for PostgreSQL -d -D -H -l -N -p -q -s -u For example: sdesetup -o install -d POSTGRESQL -u sde -p no. To authorize ArcSDE later. use the -l <key> with sdesetup -o install. Underlying RDBMS used to store the geodatabase Database name The ArcSDE installation directory ($SDEHOME) ArcSDE authorization key or location of file No verification prompt given DBMS DBA user password Quiet Data source name DBMS DBA user name Related concepts found in the help You can get more information related to setting up the repository in the ArcGIS Desktop online help (http://webhelp.

run the sdesetup command with the install or upgrade operation and specify the authorization key information with the -l option. you must obtain an authorization file from ESRI Customer Service (.esri.ecp file). The syntax for the sdesetup command with the update_key operation is as follows: sdesetup -o update_key -d POSTGRESQL -l <key> [-u <DB_Admin_user>] [-p <DB_Admin_password>] [-H <sde_directory>] [-D <database>] [-s datasource] [-i <service>] [-N] [-q] Where <key> is the authorization key information or the location of your authorization file For example: sdesetup -o update_key -d POSTGRESQL -l /machine/keycode -u sde -p sde More information on the sdesetup command can be obtained from the ArcSDE Administration Command Reference ($SDEHOME/documentation/Admin_Cmd_Ref).com Every ArcSDE geodatabase that resides on the same machine must be authorized using the authorization file because the authorization information is stored in the geodatabase repository. Each new version of ArcSDE requires a new authorization file. For more information on obtaining an authorization file see: https://service. 53 . Then when you receive your authorization file from ESRI. To authorize the ArcSDE component of ArcGIS Server for use. run sdesetup again using the update_key operation and the -l option. The ArcSDE service will not start nor will you be able to make any direct connections to the geodatabase unless your geodatabase repository has been configured using a valid authorization file. See ArcSDE postinstallation setup. If you already have your authorization file. You can register the ArcSDE component with an authorization file in two ways: 1.ArcSDE component authorization Each server machine on which the ArcSDE component is installed requires an authorization file. If you don't yet have your authorization file. you can run the sdesetup command with either the install or upgrade operation but without the -l option. 3. 2.

This help topic is also available from http://webhelp.com/arcgisdesktop/9. an ArcSDE service must be started. For more information on the sdemon command.esri. you do not have to start an ArcSDE service.3) or the help system installed with ArcGIS Server or ArcGIS Desktop.cfm. Also note: If all of your client applications will connect to the geodatabase using direct connections.conf file before the ArcSDE service will start. Open the help and search for the following titles: An overview of ArcSDE geodatabase connections Stopping an ArcSDE service Pausing and resuming an ArcSDE service Accessing an ArcSDE service through a firewall Troubleshooting the ArcSDE service 54 .Installation guide: ArcSDE for PostgreSQL Starting an ArcSDE service on Linux If clients will be making connections using an ArcSDE service. it is ready for use. consult the topic Troubleshooting the ArcSDE service in the ArcGIS Server or Desktop help.esri. see the ArcSDE Administration Command Reference ($SDEHOME/documentation/Admin_Cmd_Ref). Related concepts found in the help You can get more information related to the ArcSDE service in the ArcGIS Desktop online help (http://webhelp.3/index.com/arcgisdesktop/9. Start the ArcSDE service by logging in as the ArcSDE administrator (the sde user) and using the sdemon command. Note: You may need to add the local machine's IP address to the pg_hba. sde on edsel > sdemon -o start -i <service_name> Please enter ArcSDE DBA password: <enter your PostgreSQL sde password here> Once the service is accepting connections. If you encounter problems starting the service.

Uninstalling This topic provides steps for uninstalling the ArcSDE component of ArcGIS Server and a PostgreSQL installation that was originally installed using RPM files. Uninstalling PostgreSQL from a Red Hat Linux box Note: If you are uninstalling PostgreSQL as a precursor to upgrading the PostgreSQL or PostGIS products. Stop the postgres process. this would already have been done. Open a command shell. sdemon -o shutdown -i <service_name> 2. 55 . If you installed PostgreSQL from source files. For example: /usr/bin/pg_ctl stop -D var/lib/pgsql/data 3. perform the following steps: 1. These two steps stop the service and remove the ArcSDE component from disk. Use the operating system command to remove the software. Uninstalling the ArcSDE component To remove the existing version of the ArcSDE component from the server. you need to stop any ArcSDE services you have associated with PostgreSQL databases. rm -r $SDEHOME You may also want to remove the service entry from the /etc/services file. Uninstalling the PostgreSQL software 1. 2. consult the PostgreSQL documentation for uninstallation instructions. stored procedures. Execute the following command to see what RPMs were used for your installation. The ArcSDE system tables. and user data are still in your PostgreSQL database. Stop the service if one is running. Use the sdemon command to do this. sdemon -o shutdown -i 5000 Note: If you had first uninstalled the ArcSDE component. be sure you have created backups of all your databases prior to uninstallation and moved the backup files to a secure location! Before uninstalling your PostgreSQL software.

you need to delete the $PGDATA directory. 4.Installation guide: ArcSDE for PostgreSQL rpm -qa | grep -i postgres Note: If you installed PostgreSQL from source code.3. Cleaning up the PostgreSQL directories After you have uninstalled the PostgreSQL software. this command will not return any PostgreSQL RPMs. Remove the RPMs returned with the previous command in reverse order of their installation. 56 .rpm Execute this for each PostgreSQL RPM present. log in as the root user and execute the following: rpm -e <name_of_rpm>. That means you would remove them in the following order: postgresql-test postgresql-pltcl postgresql-plpython postgresql-plperl postgresql-server postgresql-devel postgresql-docs postgresql-libs postgresql-8. To remove the RPMs that are present in the order indicated.0 You may have all or only a few of these present. Consult the PostgreSQL documentation for information on uninstalling software installed using source code.

Installing the DBMS and ArcSDE on different servers 57 .

dll (Windows).so (Linux) Projection Engine pe.rhel14.dll gssapi32. libsg. The steps for each are slightly different. If you execute the sdesetup command to create the geodatabase repository.01PGDG. and geometry shared library files (listed in the following table) in the PostgreSQL installation directory on the PostgreSQL server. See Scenarios for installing ArcSDE and PostgreSQL on separate machines for these steps.i686. projection engine. Files on Linux Files on Windows postgresql-libs-8. and libsg.dll (Windows). Library name OS-dependent file names st_geometry st_geometry.so files to the PostgreSQL bin directory on Linux because this directory is owned by root. rather than run the Post Installation wizard on Windows. there are a few things you should know. you must copy or ftp certain libraries from the PostgreSQL lib directory to SDEHOME > bin on the server where ArcSDE is installed so that the ST_Geometry type can access them.so. libpe.so.dll k5sprt32.Installation guide: ArcSDE for PostgreSQL Installing the DBMS and the ArcSDE component on different machines If you install PostgreSQL on a computer separate from the ArcSDE component.dll 58 .so (Linux) Note: You must be logged in as root when you copy the st_geometry.rpm comerr32.3. you need to run the RPM after it is placed on the Linux server. You must have the st_geometry. There are various scenarios for ArcSDE and PostgreSQL being installed on separate machines. libpe. st_geometry. For Linux.dll (Windows).so (Linux) Geometry sq.

sde file in SDEHOME on the server where the ArcSDE component is installed. in addition to adding the ArcSDE server's IP address to the pg_hba. the ArcSDE address is in IPV4 format. uncomment this line in the file: host all all ::1/128 md5 4.dll libintl3.krb5_32.html. To do this.conf file in a text editor. 3.100.conf file a line similar to the following: host gdb ALL 199. 2. 1. the entry would have the full IPV6 address followed by /128.conf file. as shown in the following example: host gdb all ss22::45b9:1132:d511:2b64%10/128 md5 If the ArcSDE server has an IPV4 address but the PostgreSQL server uses an IPV6 address.22. Make a backup copy of your pg_hba. For example: set PGHOST = postgresprod set PGPORT = 5432 Details about the pg_hba.dll libpq.dll libeay32.dll The PostgreSQL instance must be configured to accept connections from the computer on which ArcSDE is running.dll ssleay32.postgresql. 59 .conf file.org/docs/8. PGPORT is the port number through which the PostgreSQL postmaster process is listening.3/interactive/auth-pg-hba-conf. Set the PGHOST and PGPORT environment variables in the dbinit. In this case. Save your changes and close the pg_hba.conf file. Add to the pg_hba. Open the pg_hba. The TCP/IP address is the address for the ArcSDE server. alter the pg_hba.conf file and the options to specify can be found in the PostgreSQL documentation at http://www. For an IPV6 address.dll libiconv2. PGHOST is the name of the server on which PostgreSQL is installed.conf file.55/32 md5 This allows all users connecting from the TCP/IP address specified to connect to a database named gdb on the PostgreSQL database cluster. 5.

60 .Installation guide: ArcSDE for PostgreSQL The installation file for PostgreSQL must be run on the computer where you are installing the PostgreSQL instance. you cannot run it remotely from another machine.

The ArcSDE server has a Linux OS. You will manually perform the database and postinstallation. 1. Run the executable for ArcSDE for PostgreSQL installation for Windows. 4. 2. Insert the installation DVD into the drive on the PostgreSQL server. Both servers have a Linux OS. you can run the installation executable first on the PostgreSQL server to install PostgreSQL then run the executable on the ArcSDE server to install the ArcSDE component. When you get to the installation options dialog box. Note: You must be a Windows administrator on the server to install software.Scenarios for installing the ArcSDE component and PostgreSQL on separate machines There are four possible scenarios based on the operating system (OS) of the servers. Make sure the ArcSDE server meets the requirements for the ArcSDE component installation and the PostgreSQL server meets the requirements for a PostgreSQL installation. Both servers have a Windows OS. The ArcSDE server has a Windows OS. Both servers are running Windows If you are installing both ArcSDE and PostgreSQL on a Windows OS. 3. the PostgreSQL server has a Linux OS. the PostgreSQL server has a Windows OS. 61 . This includes removing or upgrading any older release of PostgreSQL on the PostgreSQL server. uncheck ArcSDE for PostgreSQL and just install the PostgreSQL software on this server.

Remove the installation DVD from the PostgreSQL server's drive and insert it into the drive on the ArcSDE server.Installation guide: ArcSDE for PostgreSQL Follow the instructions in the topic Installing PostgreSQL to complete the PostgreSQL installation. 62 . 5. this time unchecking PostgreSQL on the installation options dialog box and just installing the ArcSDE component. Note: You must be a Windows administrator on the server to install software. 6. Run the ArcSDE for PostgreSQL on Windows installation again.

dll file from the SDEHOME\bin on the ArcSDE server to the lib folder in PostgreSQL home on the database server.dll ssleay32. PGHOST is the name of the server on which PostgreSQL is installed. Set the PGHOST and PGPORT environment variables in the dbinit. Do not proceed with the Post Installation wizard.dll libiconv2. 10. Copy the st_geometry.dll libeay32.dll k5sprt32.dll libpq. 9. Copy the following files from the lib folder in PostgreSQL home to the SDEHOME\bin on the ArcSDE server: comerr32.sde file in SDEHOME\etc on the server where the ArcSDE component is installed.dll gssapi32.dll krb5_32. 8. For example: set PGHOST = postgresprod 63 .dll 11.dll libintl3.dll files from SDEHOME\bin on the ArcSDE server to the bin folder in PostgreSQL home on the database server.7. Copy the pe. PGPORT is the port number through which the PostgreSQL postmaster process is listening.dll and sg.

Note: If you will be using the PostGIS geometry type. such as pgAdminIII. 15. 16. Run sdemon to start the service. installation will be nearly the same as when both are installed on the same server. See Installing the DBMS and the ArcSDE component on different machines for examples of entries in the pg_hba. such as pgAdminIII. Super user permissions can be revoked after installation is complete as long as CREATEDB permission is granted to the sde user. sdemon -o start -i <ArcSDE_service_port_number> For details on using the preceding commands. Create a database in the PostgreSQL database cluster using either psql or one of the PostgreSQL administration tools. sdeservice -o create -d POSTGRESQL. Make the super user the owner of the database.Installation guide: ArcSDE for PostgreSQL set PGPORT = 5432 12. 18. 13. consult the ArcSDE Administration Command Reference that is installed with the ArcSDE component. and grant USAGE on the schema to public. the only differences being you will only create an sde OS user on the ArcSDE server and a postgres OS 64 . Both servers are running Linux If you are installing both ArcSDE and PostgreSQL on a Linux OS.conf file in a text editor and add connection information to allow the ArcSDE server to connect to the database. Create a role named sde in the PostgreSQL database cluster using either psql or one of the PostgreSQL administration tools. sdesetup -o install -d POSTGRESQL -s <DBMS_server_name> -D <database_name> -l <authorization_key> -u sde 17. Grant it super user permissions. be sure the database is created from the PostGIS template. Run the sdeservice command with the create and register operations to create an ArcSDE service and register the database. If granting through pgAdminIII. (This is needed to complete step 11. Run the sdesetup command as the sde user to create the ArcSDE geodatabase repository and to authorize the software. Create a schema named sde in your newly created database. Open the PostgreSQL pg_hba. Make the sde user the owner of the schema. also grant privilege to modify catalog directly.conf file.sde file. Note: You must be an administrator on the machine to alter the Windows services file.) 14.<postgresql_instance> -i <ArcSDE_service_name> -s <DBMS_server_name> -p <sde_user_password> sdeservice -o register -r ADMIN_DATABASE -v <database_name> -i <ArcSDE_service_name> -d POSTGRESQL 19. Add the name and port number for the ArcSDE service to the Windows services file and the ArcSDE services.

For step 2 on the same topic.rpm on the ArcSDE server to get the PostgreSQL libraries to which ArcSDE needs to have access. Set the PGHOST and PGPORT environment variables in the dbinit. This includes making sure an older version of PostgreSQL does not already exist on the PostgreSQL server. and libsg. or follow all the instructions on the same topic to manually install PostgreSQL.conf file. 6. run the create_pgdb. Open the PostgreSQL pg_hba. As root. or manually perform all the steps on the same topic. and you will need to specify the -s option when running sdesetup. 1.ecp123456. 7. install the postgresql-libs-8. 8. Make sure the ArcSDE server meets the requirements for the ArcSDE component installation and the PostgreSQL server meets the requirements for a PostgreSQL installation. 2. 3. See Installing the DBMS and the ArcSDE component on different machines for examples of entries in the pg_hba.rhel4.3.user on the PostgreSQL server. libpe. As the root user.so. For example: sdesetup -o install -d postgresql -u sde -s pgserver -D arcsdegdb -l arcsdeserver. As root. Place the ArcSDE component installation media into the appropriate drive of the ArcSDE server and mount the drive.93. 10. ftp the st_geometry. See Preinstallation setup for details. 4. PGPORT is the port number through which the PostgreSQL postmaster process is listening. As the postgres user. Place the ArcSDE component installation media into the appropriate drive of the PostgreSQL server and mount the drive. Follow the instructions in Installing the ArcSDE component to setup the ArcSDE server and install ArcSDE.so files from SDEHOME/bin directory on the ArcSDE server to the bin directory in the PostgreSQL installation location on the PostgreSQL server. 5. be sure you provide the -s option with the PostgreSQL server name.sde file in the SDEHOME/etc directory on the server where the ArcSDE component is installed. 9.none. For example: set PGHOST = postgresprod set PGPORT = 5432 11. PGHOST is the name of the server on which PostgreSQL is installed. Complete step 1 as instructed in ArcSDE postinstallation setup on Linux.so.sde script and perform steps 1 and 2 on Creating and configuring a PostgreSQL database. run the setup_pgdb.i686.sde script provided on the installation media plus perform steps 10 and 11 on Installing PostgreSQL on Linux.0-1.ABCDEF 65 .conf file in a text editor and add connection information to allow the ArcSDE server to connect to the database.

go ahead and install both PostgreSQL and the ArcSDE when you get to the installation options dialog box. 2. You will manually perform the postinstallation set up from the ArcSDE server. that means you must ftp the libst_geometry. Start the ArcSDE service by following the instructions on Starting the ArcSDE service on Linux. ArcSDE is installed on a Windows server and PostgreSQL is installed on a Linux server. and libsg. or follow all the instructions on the same topic to manually install PostgreSQL. run the pg_linux_installation2. run the pg_linux_installation1. Make sure the ArcSDE server meets the requirements for the ArcSDE component installation and the PostgreSQL server meets the requirements for a PostgreSQL installation. If you are installing ArcSDE on a Windows OS but the PostgreSQL database cluster will be installed on a Linux OS. or manually perform all the steps on the same topic. Ftp the libst_geometry.Installation guide: ArcSDE for PostgreSQL 12. Since you need to get the Windows versions of the PostgreSQL libraries to copy to SDEHOME. 1. As root. Insert the installation DVD into the drive on the ArcSDE server.so.so. you can run the scripts on the PostgreSQL server to install PostgreSQL and set up the database.sde script and perform steps 1 and 2 on Creating and configuring a PostgreSQL database.so. 66 . and libsg. When your ArcSDE component is installed on a server with a different OS than your PostgreSQL database is. the PostgreSQL files needed by ArcSDE need to be for Windows (see the second bullet point on Installing the DBMS and the ArcSDE component on different machines). you need to temporarily install PostgreSQL on the Windows server. 7. Note: You must be a Windows administrator on the server to install software. Run the executable for ArcSDE for PostgreSQL installation for Windows. then run the executable on the ArcSDE server to install the ArcSDE component. See Preinstallation setup for details. As the postgres user. To get these files. Place the ArcSDE component installation media into the appropriate drive of the PostgreSQL server and mount the drive.so files from the installation DVD to the PostgreSQL computer.so.sde script provided on the installation media plus perform steps 10 and 11 on Installing PostgreSQL on Linux. libpe. 4. 6. 3. Similarly. libpe. 8. This includes making sure an older version of PostgreSQL doesn't already exist on the PostgreSQL server. 5. you have to be sure the files you copy or ftp to the PostgreSQL installation location are designed to run on the OS of the PostgreSQL server. For this scenario.so files from the installation DVD to the bin directory in the PostgreSQL installation location.

9.dll libiconv2. Open the Control Panel.dll libpq. and click Remove.3 from the list. PGPORT is the port number through which the PostgreSQL postmaster process is listening.dll libintl3. Set the PGHOST and PGPORT environment variables in the dbinit. navigate to the PostgreSQL installation location and delete the files.dll krb5_32. 12. After PostgreSQL is uninstalled. choose PostgreSQL 8.sde file in SDEHOME on the server where the ArcSDE component is installed. PGHOST is the name of the server on which PostgreSQL is installed.dll 11.dll k5sprt32. For example: set PGHOST = postgresprod 67 . Navigate to the bin folder in the PostgreSQL installation location on the ArcSDE (Windows) server. 10.dll ssleay32. open Add or Remove Programs. Copy the following files from this location to the SDEHOME\bin folder: comerr32.dll libeay32. After the ArcSDE component is installed do not proceed with the Post Installation setup wizard.dll gssapi32.

sde file. 14. authorizing the software. 17. Open the PostgreSQL pg_hba.conf file. Run the sdeservice command with the create and register operations to create an ArcSDE service and register the database. sdeservice -o create -d POSTGRESQL. You can also use the Custom option of the Post Installation wizard to create the tablespace. and starting the ArcSDE service) from the ArcSDE server.conf file in a text editor and add connection information to allow the ArcSDE server to connect to the database. If you are installing ArcSDE on a Linux OS but installing the PostgreSQL database cluster on a Windows OS. Then perform the preinstallation steps and install the ArcSDE component on the ArcSDE server as described in the topic Installing the ArcSDE component. Manually perform the remainder of the postinstallation set up (creating the ArcSDE repository. you have to be sure the files you copy or ftp to the PostgreSQL installation location are designed to run on the OS of the PostgreSQL server. or you can manually perform these steps. sde user and sde schema. See Installing the DBMS and the ArcSDE component on different machines for examples of entries in the pg_hba. Run sdemon to start the service. you can run the executable on the PostgreSQL server to install PostgreSQL. run the sdesetup command as the sde database user to create the ArcSDE geodatabase repository and to authorize the software. You will be prompted to provide the sde user's password. sdesetup -o install -d POSTGRESQL -s <DBMS_server_name> -D <database_name> -l <authorization_key> -u sde 16. Save and close the pg_hba. 15. Add the name and port number for the ArcSDE service to the Windows services file and the ArcSDE services.<postgresql_instance> -i <ArcSDE_service_name> -s <DBMS_server_name> -p <sde_user_password> sdeservice -o register -r ADMIN_DATABASE -v <database_name> -i <ArcSDE_service_name> -d POSTGRESQL 18. that means you will need to temporarily install the Windows version of ArcSDE for PostgreSQL on the PostgreSQL server to get the 68 .conf file.Installation guide: ArcSDE for PostgreSQL set PGPORT = 5432 13. sdemon -o start -i <ArcSDE_service_port_number> ArcSDE is installed on a Linux server and PostgreSQL is installed on a Windows server. database. Note: You must be an administrator on the machine to alter the Windows services file. When your ArcSDE component is installed on a server with a different OS than your PostgreSQL database is. From a DOS prompt on the ArcSDE server. For this scenario.

You also need to get the Linux version of the PostgreSQL files that ArcSDE needs. 3. 4. when you get to the installation options dialog box. Make sure the ArcSDE server meets the requirements for the ArcSDE component installation and the PostgreSQL server meets the requirements for a PostgreSQL installation. 69 . choose the custom option. Insert the installation DVD into the drive on the PostgreSQL server. keep both options checked and install both.rhel4. 1.i686. You can install the postgresql-libs-8. Since you will need to temporarily install the ArcSDE component to get the dll you need. Run the executable for ArcSDE for PostgreSQL installation for Windows. 5.rpm on the ArcSDE server to get the PostgreSQL libraries. When the Post Installation wizard comes up.0-1.3. pe. 2.dll. then uninstall the ArcSDE component. Note: You must be a Windows administrator on the server to install software.dll. and sg.st_geometry. copy them to the the PostgreSQL installation location.dll files from SDEHOME.

Installation guide: ArcSDE for PostgreSQL 6. 70 . 7. Uncheck all but the first option on the ArcSDE Setup Wizard Option dialog box and click Next. Provide the PostgreSQL super user's name and password and click Next.

13. If you used the default location. copy the pe. Provide a password for the sde user. then click Next.sde file and set it to the name or TCP/IP address of the server on which PostgreSQL is installed. and the path to and name of the folder in which the tablespace will be created.3\lib. opening Add or Remove Programs. 17. 11. 15.conf file. the name of the database.dll file from this location and paste it into the lib folder of the PostgreSQL installation location. this is c:\Program Files\PostgreSQL\8. 14. Copy the st_geometry. For step 2 on the same topic.dll to the bin folder of the PostgreSQL installation location.45. be sure you provide the -s option with the PostgreSQL server name. choosing ArcGIS ArcSDE for PostgreSQL from the list.i686. Complete step 1 as instructed in ArcSDE postinstallation setup on Linux.conf file in a text editor and add connection information to allow the ArcSDE server to connect to the database.8. Place the ArcSDE component installation media into the appropriate drive of the ArcSDE server and mount the drive.none. and clicking Remove.) 10. As root. 9.rpm on the ArcSDE server to get the PostgreSQL libraries to which ArcSDE needs to have access. Add the PGHOST or PGHOSTADDR environment variable to the dbinit. a name for the tablespace in which the database will be created.678. For example: sdesetup -o install -d postgresql -u sde -s pgserver -D arcsdegdb -l arcsdeserver. Open the PostgreSQL pg_hba.sde file is in the etc directory of SDEHOME. set PGPORT=9999 16. set PGHOST=werther or set PGHOSTADDR=123. Open Windows Explorer and navigate to the bin folder of SDEHOME. Uninstall the ArcSDE component by opening the Control Panel. 18.0-1. Also from the bin folder of SDEHOME. 12.ecp123456.ABCDEF 71 . Note: Be sure the folder in which you create the tablespace is empty or tablespace creation will fail.3. The dbinit. install the postgresql-libs-8.90 You also need to set the PGPORT variable. See Installing the DBMS and the ArcSDE component on different machines for examples of entries in the pg_hba.rhel4.dll and sg. (SDEHOME is the pgexe directory in the ArcSDE installation location. Follow the instructions in Installing the ArcSDE component to setup the ArcSDE server and install ArcSDE.93.

72 .Installation guide: ArcSDE for PostgreSQL 19. Start the ArcSDE service by following the instructions on Starting the ArcSDE service on Linux.

and add data to your geodatabase. What's next? After you finish the postinstallation setup.com. there is also an Administration Command Reference provided with the ArcSDE component. This file is included in the documentation folder in the ArcSDE install location. you are ready to add other users and set database permissions. The following is a list of help topics to assist you in these tasks. Open the help and search for the titles listed in the following table.esri. The help is also available from the ArcGIS Server Resource Center: http://resources. As mentioned throughout this installation guide.Accessing ArcSDE documentation and the next steps ArcSDE documentation is available in the ArcGIS Server help in the topics found in these sections: Geodatabases and ArcSDE/Administering ArcSDE geodatabases Geodatabases and ArcSDE/Geodatabase data storage and schema Geodatabases and ArcSDE/Working with geodatabases using SQL These topics can be accessed by navigating to the help folder and double clicking index.htm. TASK RELATED TOPICS Geodatabase users Adding users to an ArcSDE geodatabase User permissions Grouping users by access needs Client connections An overview of ArcSDE geodatabase connections Setting up clients for a direct connection Creating spatial database connections Accessing an ArcSDE service through a firewall Adding data An overview of adding datasets to the geodatabase Registering tables with ArcSDE to be used by ArcGIS Desktop 73 . set up client connections. Topics can be found in the ArcGIS Server or ArcGIS Desktop online help or the help system installed with ArcGIS Server or ArcGIS Desktop.

Sign up to vote on this title
UsefulNot useful