Install ArcSDE9.1 in Ubuntu

Source: Internet
Author: User
Although the ESRI official documentation on how to install ArcSDE has been very detailed (in English), and there are a lot of reference materials online, but here we are still for your own habits and for Ubuntu, make a description in Chinese, just for your convenience. 1. In the installation environment, the ArcSDE version we installed is 9.1forOracle10gR2. According to the official ESRI documentation, Oracle9i can be directly used for 10 Gb, but there are some changes. 1. Allreferencest

Although the ESRI official documentation on how to install ArcSDE has been very detailed (in English), and there are a lot of reference materials online, but here we are still for your own habits and for Ubuntu, make a description in Chinese, just for your convenience.

1. installation environment
The ArcSDE version we installed is 9.1 for Oracle 10gR2. According to the ESRI official documentation, the Oracle 9i can be directly used for 10 Gb, but there are some changes.
1. All references to Oracle9i can be changed to Oracle10gR2.
2. All references to the sdesetupora9i command shoshould be substituted with sdesetupora10g.
3. All references to the sdeservice-o create-d oracle9i, SID command shoshould be substituted with sdeservice-o create-d oracle10g, SID
4. UNIX installations/System Requirements

The ArcSDE 9.1 for Oracle10gR2 release is available on the following UNIX and Linux platforms:
Solaris 64bit
AIX 64bit
Red Hat Linux

2. Preparations before installation
A. Install Oracle 10g and install Oracle 10g on Ubuntu. refer to this document.
B. Create and set the sde user.
ArcSDE requires a user named sde. Other attributes of this user are not important, so I set the group to admin to facilitate the use of sudo.
In the official documentation, shell should be set to/bin/sh or/bin/csh. Here I will set it to bash.
At the same time, the sde is added to the oinstall group so that it can run some oracle commands and use some dynamic link libraries of oracle.
Create user
Sudo useradd-g admin-G oinstall-d/home/sde-s/bin/bash-m-k/etc/skel sde
Set Password
Sudo passwd sde
Enter the password you set for the sde user.
Then, log on to the sde user, or directly exit the current user and log on to the sde user.
C. Set environment variables.
Modify it in the. bashrc file (the ubuntu default. profile file reads the. bashrc file, and the. bashrc file is read every time you log on). The environment variables to be set are as follows:

SDEHOME # Where ArcSDE is installed
ORACLE_HOME # Oracle Installation
ORACLE_SID # Oracle SID Value
TNS_ADMIN # Where the tnsnames. ora file is located
PATH $ PATH: $ SDEHOME/bin: $ ORACLE_HOME/bin
LD_LIBRARY_PATH $ SDEHOME/lib:/usr/lib: $ ORACLE_HOME/lib (All platforms before t HP and IBM)
SHLIB_PATH $ SDEHOME/lib:/usr/lib: $ ORACLE_HOME/lib (for HP only)
LIBPATH $ SDEHOME/lib:/usr/lib: $ ORACLE_HOME/lib (for IBM only)
TWO_TASK # value for TWO_TASK (if ArcSDE and Oracle on different machines)


If the Oracle database is installed locally, ORACLE_HOME and ORACLE_SID need to be set and take effect. However, if TWO_TASK is set, they do not work.
TWO_TASK indicates the address of the Oracle remotely installed. If you install Oracle locally, you do not need to specify TNS_ADMIN and TWO_TASK.
Note: When ArcSDE is started, the giomgr process reads the settings in the $ SDEHOME/etc/dbinit. sde file, which overwrites the settings in the. profile file.
My environment variables are set as follows:
Umask 022 export ORACLE_BASE =/opt/oracleexport SDEHOME =/home/sde/sdeexe91export ORACLE_HOME =/opt/oracleexport ORACLE_SID = GISexport PATH = $ SDEHOME/bin: $ ORACLE_HOME/bin: $ PATHexport LD_LIBRARY_PATH = $ ORACLE_HOME/lib: $ SDEHOME/lib:/usr/lib: $ LD_LIBRARY_PATH: $ ORACLE_HOME/lib/stubs

D. Create an Oracle database user and tablespace.
I. Create a tablespace.
Tablespace must have at least MB space. We create 2 GB space here, and the maximum is unlimited.
Because local tablespace management is recommended for Oracle, the local management is set here. For definitions and comparisons of local management and data dictionary management, see the following documents:

Locally Managed Tablespaces:
A tablespace that manages its own extents maintains a bitmap in each datafile to keep track of the free or used status of blocks in that data file. each bit in the bitmap corresponds to a block or a group of blocks. when an extent is allocated or freed for reuse, the Oracle server changes the bitmap values to show the new status of the blocks.

Dictionary-Managed Tablespaces:
For a tablespace that uses the data dictionary to manage its extents, the Oracle server updates the appropriate tables in the data dictionary whenever an extent is allocated or deallocated.

Advantages of Locally Managed Tablespaces:
Locally managed tablespaces have the following advantages over dictionary-managed tablespaces:
Local management avoids recursive space management operations, which can occur in dictionary-managed tablespaces if consuming or releasing space in an extent results in another operation that consumes or releases space in a undo segment or data dictionary table.
Because locally managed tablespaces do not record free space in data dictionary tables, it cannot CES contention on these tables.
Local management of extents automatically tracks adjacent free space, eliminating the need to coalesce free extents.
The sizes of extents that are managed locally can be determined automatically by the system. Alternatively, all extents can have the same size in a locally managed tablespace.
Changes to the extent bitmaps do not generate undo information because they do not update tables in the data dictionary (could t for special cases such as tablespace quota information ).


For more information about the performance of these two management methods, see http://db.rdxx.com/Oracle/2006-5/18/190634694.shtml.
The statement for creating a tablespace is:
Create tablespace sde DATAFILE '/opt/oradata/GIS/SDE. dbf' SIZE 2000 mautoextend onnext 32 mmaxsize unlimitedloggingextent management local uniform size 1 msegment space management auto;

Before doing this, You need to log on with an oracle user and create an SDE file folder under/opt/oradata/GIS.
Here, extent management local refers to the local management mode, and UNIFORM refers to the size of the allocated space (extent size) for each table ).
NEXT refers to the size of the table space allocated again when the space is insufficient.
Here is a passage that indicates the differences between the two:
"Each time extent is allocated, it is a resource-consuming operation. Of course, the smaller the number of assignments, the better. In some cases, this also directly affects performance. For example, when executing batch insert, if your extent is too small and will soon run out, you have to reallocate the next one. Then the insert process can only wait for the system to allocate the next extent. in this case, allocating a larger extent will help improve performance. In addition, extent is composed of continuous blocks. If extent is large, data is stored in a centralized manner. This may be advantageous for sequential reads, but not for random reads. Now, the data files are basically stored, and the storage has dispersed the space to different disks. Even in oracle's view, the storage space may actually be scattered. Http://www.britepic.org/
If your table is indeed large, allocate a larger extent. If the table is small, allocate a smaller extent ."
In my understanding, if the tablespace space is insufficient, allocate the size indicated by NEXT. When the tablespace space is sufficient, when inserting data into the table in tablespace, if the data inserted at a time is greater than the value of UNIFORM, the size specified by UNIFORM needs to be allocated again.
Therefore, if the data volume inserted each time is large, you can consider that the UNIFORM value is larger.

Segment space management should be set to AUTO, this web page http://www.databasejournal.com/features/oracle/article.php/1576991
Explains why AUTO is set.
Other parameters can see Oracle instructions, here is a recommended web page: http://www.psoug.org/reference/tablespaces.html
At the same time, there are two images provided by Oracle, which can clearly show how to create and modify tablespace.
Create tablespace:

Modify tablespace:

Ii. Create an sde user.
When sqlplus is used, the created SQL statement is:
Create user sdeIDENTIFIED BY your password default tablespace sdeTEMPORARY tablespace temp;

It is easy to create a user's SQL statement, for its parameters can see this web page http://www.psoug.org/reference/user.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.