You are on page 1of 73

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

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

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

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

Installations on Windows 7 .

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.esri.com. see http://support. and navigate to Software > ArcGIS Server > System Requirements. Installing PostgreSQL requires approximately 100MB. 8 .

or mail) before installing the ArcSDE component. You can visit https://service. phone. you can also obtain an authorization file and register ArcSDE using the Post Installation wizard.esri. fax. On Windows. See ArcSDE authorization for registration methods using the Post Installation wizard.To obtain an authorization file Each server where the ArcSDE component is installed requires an authorization file. 9 . 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.com to obtain an authorization file (by email.

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

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

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

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

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

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

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

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

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

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

choose Custom and click Next.Installation guide: ArcSDE for PostgreSQL provided to create the ArcSDE service is complete. A Complete installation guides you through all of the postinstallation options. Selecting a custom installation allows you to choose from any of the available postinstallation options. Choose a Complete or a Custom postinstallation setup. 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. That takes you to the following dialog box: 20 . the Post Installation wizard will start the ArcSDE service for you. In that case.

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

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

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

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

you can set up the ArcSDE geodatabase repository. uncommenting the TEMP parameter and setting it to the full path name you want to use. alter the giomgr.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. 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. user. If you do not choose to perform this postinstallation option using the Post Installation wizard. and tablespace are created. If not. If that location is acceptable. then save the giomgr.Setting up the geodatabase repository Once the sde database.defs file. If left commented out. Provide your sde user password and database name to connect to PostgreSQL as the sde user and create the repository.defs file. and/or dbtune. Setting up the repository is a crucial step in the postinstallation setup. you must manually execute the sdesetup command at the DOS prompt.sde. Options are provided to specify custom giomgr.defs*. This parameter is commented out. schema. accept the default configuration files. you do not have to uncomment and change this parameter value. After the configuration files are defined. you can connect to PostgreSQL to set up the geodatabase repository.sde files. the default location for this is the temporary folder of the user logged into the Windows machine at the time the geodatabase is created. The geodatabase repository contains all the ArcSDE metadata for administering the ArcSDE geodatabase. If you do not have custom files. 25 . dbinit. *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

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

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

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 .

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

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

Installations on Linux 35 .

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

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

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

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

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

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

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

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

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

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

You can find this file. Log into psql. 3.txt. in the tools directory of $SDEHOME after you have installed the ArcSDE component. Installing PL/pgSQL Now that the database and sde user and schema exist. 46 . This component is required for you to use the database with ArcSDE.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. roles_schemas_privileges. Execute the following command: CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler VALIDATOR plpgsqsl_validator. you can install the PL/pgSQL language. psql agency sde b. a. connecting to your new database as the sde user.

all ArcSDE administration and utility software programs can be located without specifying absolute paths. By adding the lines below. The ArcSDE user must own all ArcSDE system files and directories. Syntax is: <VARIABLE> = <value for variable> export <VARIABLE> For the C shell.profile file. add variable definitions to the . Application programs will also be able to find the necessary program files located within the ArcSDE installation directory. Preparing to install the ArcSDE component To install ArcSDE for PostgreSQL.Installing the ArcSDE component 1. 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.bashrc or . depending on which shell it will use. Log in as root and create the ArcSDE user with the following command: /usr/sbin/useradd sde b. . By convention.sde file).cshrc file (or the SDEHOME/etc/dbinit. you must create an ArcSDE account on the OS. Syntax is: 47 . The following is a sample Linux configuration for the ArcSDE account using sde as the name.profile or .cshrc. add variable definitions to the . Log in as the newly created sde user and add the following to the sde user’s .bashrc files respectively. this account is named sde.

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

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

To change the services file requires root access. Modify files in $SDEHOME/etc and /etc/services. 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. $SDEHOME/etc/services. see The services. 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.sde file in the ArcGIS Server or Desktop help.) $SDEHOME/etc/dbtune. see the ArcGIS Server and Desktop help topic The dbtune file and the DBTUNE table.sde—Add the same line to this file that you added to the /etc/services file. To successfully complete the postinstallation setup.sde—You can set environment variables in this file that the service will use each time it starts. For more information. For PostgreSQL databases.Installation guide: ArcSDE for PostgreSQL ArcSDE postinstallation setup After the ArcSDE component is installed but before you attempt to start an ArcSDE service. If they prefer to use the name my_sde.sde—The dbtune file populates the DBTUNE geodatabase system table with keywords. (You can access the ArcGIS Server help from the help directory in the ArcSDE install location. 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. they'll need to add this same line to their system services file. Use the index. and values that control the physical storage of tables in the database. you must complete the postinstallation setup. For example: set SDE_DATABASE=mydb 50 . For more information. parameters. Other configuration files in the $SDEHOME/etc directory you may want to edit include: dbinit. 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. follow these steps: 1. which will designate the name of the database to which the ArcSDE service will connect.htm file to launch the help system.

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

sde file System tables of a geodatabase in PostgreSQL 52 .defs file and the SERVER_CONFIG table The dbinit.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 The giomgr. use the update_key operation.ecp -N More information on the sdesetup command can be obtained from the ArcSDE Administration Command Reference ($SDEHOME/documentation/Admin_Cmd_Ref).esri. use the -l <key> with sdesetup -o install. see ArcSDE authorization. To authorize ArcSDE later. 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.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.com/arcgisdesktop/9. For additional information.peeking -D agency -s myserver -l /usr/sde/server93_Ent. To authorize the software.

If you already have your authorization file. Each new version of ArcSDE requires a new authorization file.ArcSDE component authorization Each server machine on which the ArcSDE component is installed requires an authorization file.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.ecp file). you must obtain an authorization file from ESRI Customer Service (. run sdesetup again using the update_key operation and the -l option. 3. You can register the ArcSDE component with an authorization file in two ways: 1. See ArcSDE postinstallation setup. For more information on obtaining an authorization file see: https://service. Then when you receive your authorization file from ESRI. you can run the sdesetup command with either the install or upgrade operation but without the -l option. If you don't yet have your authorization file. 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. 2.esri. To authorize the ArcSDE component of ArcGIS Server for use. 53 . run the sdesetup command with the install or upgrade operation and specify the authorization key information with the -l option. 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).

consult the topic Troubleshooting the ArcSDE service in the ArcGIS Server or Desktop help. This help topic is also available from http://webhelp.esri.Installation guide: ArcSDE for PostgreSQL Starting an ArcSDE service on Linux If clients will be making connections using an ArcSDE service. If you encounter problems starting the service. Note: You may need to add the local machine's IP address to the pg_hba. For more information on the sdemon command.esri.conf file before the ArcSDE service will start.cfm.3/index.com/arcgisdesktop/9. Start the ArcSDE service by logging in as the ArcSDE administrator (the sde user) and using the sdemon command. Also note: If all of your client applications will connect to the geodatabase using direct connections.3) or the help system installed with ArcGIS Server or ArcGIS Desktop. an ArcSDE service must be started. 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 .com/arcgisdesktop/9. 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. it is ready for use. 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. you do not have to start an ArcSDE service.

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

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

Installing the DBMS and ArcSDE on different servers 57 .

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

dll ssleay32. 1.conf file.dll libpq.org/docs/8.sde file in SDEHOME on the server where the ArcSDE component is installed.postgresql.dll libeay32. in addition to adding the ArcSDE server's IP address to the pg_hba.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.22. 5. For example: set PGHOST = postgresprod set PGPORT = 5432 Details about the pg_hba. Make a backup copy of your pg_hba. uncomment this line in the file: host all all ::1/128 md5 4.dll The PostgreSQL instance must be configured to accept connections from the computer on which ArcSDE is running. PGHOST is the name of the server on which PostgreSQL is installed. the ArcSDE address is in IPV4 format. alter the pg_hba.conf file and the options to specify can be found in the PostgreSQL documentation at http://www. To do this.conf file in a text editor. Add to the pg_hba. 59 .dll libintl3.conf file. Save your changes and close the pg_hba. For an IPV6 address.html. the entry would have the full IPV6 address followed by /128.krb5_32.conf file. In this case.conf file. Set the PGHOST and PGPORT environment variables in the dbinit.dll libiconv2.conf file a line similar to the following: host gdb ALL 199. 2.100. The TCP/IP address is the address for the ArcSDE server.3/interactive/auth-pg-hba-conf. 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. 3. PGPORT is the port number through which the PostgreSQL postmaster process is listening. Open the pg_hba.

you cannot run it remotely from another machine. 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 will manually perform the database and postinstallation. 61 . Both servers are running Windows If you are installing both ArcSDE and PostgreSQL on a Windows OS. Insert the installation DVD into the drive on the PostgreSQL server. 2. The ArcSDE server has a Linux OS. When you get to the installation options dialog box. 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. 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. 1. the PostgreSQL server has a Windows OS. Make sure the ArcSDE server meets the requirements for the ArcSDE component installation and the PostgreSQL server meets the requirements for a PostgreSQL installation. Note: You must be a Windows administrator on the server to install software. The ArcSDE server has a Windows OS. 4.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. the PostgreSQL server has a Linux OS. 3. Run the executable for ArcSDE for PostgreSQL installation for Windows. Both servers have a Windows OS.

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

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

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

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

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

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

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

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

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

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

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

The help is also available from the ArcGIS Server Resource Center: http://resources. What's next? After you finish the postinstallation setup.com.htm. Topics can be found in the ArcGIS Server or ArcGIS Desktop online help or the help system installed with ArcGIS Server or ArcGIS Desktop. Open the help and search for the titles listed in the following table. there is also an Administration Command Reference provided with the ArcSDE component. you are ready to add other users and set database permissions. 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.esri. and add data to your geodatabase. 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. This file is included in the documentation folder in the ArcSDE install location. The following is a list of help topics to assist you in these tasks.