Creating the master ArcSDE geodatabase in Oracle (Maritime Charting)

This workflow provides steps for creating the master ArcSDE geodatabase that keeps track of the user-schema geodatabases in Oracle.

Creating the geodatabase

The Create Enterprise Geodatabase geoprocessing tool does the following:

  • Creates the geodatabase administrator user and default tablespace (if not created manually)
  • Grants the geodatabase administrator privileges to create a geodatabase and drop database connections (if not granted manually)
  • Populates geodatabase system tables and stored procedures in the database
  • Authorizes ArcSDE using the ArcGIS Server Enterprise license file

To run the Create Enterprise Geodatabase tool, you must install an Oracle client on the computer where ArcGIS for Desktop is installed. You also need a valid ArcGIS for Server authorization file (.ecp).

Шаги:
  1. Запустите ArcCatalog или ArcMap.
  2. Откройте диалоговое окно инструмента геообработки Создать многопользовательскую базу геоданных.

    Для поиска этого инструмент используйте окно Поиск (Search) или откройте его диалоговое окно непосредственно в группе инструментов Администрирование базы геоданных (Geodatabase Administration) набора инструментов Управление данными (Data Management).

  3. В раскрывающемся списке Платформа базы данных (Database Platform) выберите Oracle.
  4. Укажите информацию, необходимую для подключения к экземпляру Oracle.
    • Если вы уже настроили конфигурацию клиентского приложения Oracle для использования псевдонима сети TNS, введите псевдоним сервиса сети в текстовом окне Экземпляр (Instance).
    • Если вы не настроили конфигурацию псевдонима сети клиентского приложения Oracle, введите в текстовом окне Экземпляр (Instance) строку быстрого подключения Oracle (Oracle Easy Connection).

    Список возможных значений см. в разделе Подключения баз данных в ArcGIS for Desktop.

  5. Введите пароль пользователя sys в поле Пароль администратора базы данных (DBMS Administrator Password).
  6. Введите имя администратора базы геоданных в текстовом окне Администратор базы геоданных (Geodatabase Administrator).

    For a master ArcSDE geodatabase, the geodatabase administrator must be named sde. If a user with that name does not already exist in the database, the tool creates it and grants it the privileges necessary to create a geodatabase. If the user already exists, the required privileges are granted to it.

  7. Введите пароль администратора базы геоданных в текстовом окне Пароль администратора базы геоданных (Geodatabase Administrator Password).

    Если указанный вами администратор базы геоданных уже существует в базе данных, необходимо ввести правильный пароль существующего пользователя; этот инструмент не изменяет пароль. Если вы создаете пользователя sde, будет использоваться тот же пароль.

  8. Задайте табличное пространство для администратора базы геоданных.
    • Если у вас имеется заранее настроенное табличное пространство, которое вы хотите использовать как репозитарий базы геоданных, введите имя этого табличного пространства в текстовом поле Имя табличного пространства (Tablespace Name).
    • Если вы хотите, чтобы инструмент создал табличное пространство, введите корректное имя в текстовом окне Имя табличного пространства (Tablespace Name), и инструмент создаст для вас 400 MB табличного пространства в Oracle в местоположении по умолчанию. Если имя табличного пространства не указано, будет создано табличное пространство SDE_TBS в качестве табличного пространства по умолчанию для пользователя sde.
  9. Чтобы указать Файл авторизации (Authorization File), выберите файл keycodes, который был создан при авторизации ArcGIS for Server Enterprise.

    Этот файл записывается в папку \\Program Files\ESRI\License<release#>\sysgen на серверах Windows и /arcgis/server/framework/runtime/.wine/drive_c/Program Files/ESRI/License<release#>/sysgen в Linux. Если вы еще не сделали этого, авторизуйте ArcGIS for Server сейчас, чтобы создать этот файл.

  10. Щелкните OK, чтобы запустить инструмент.

Customizing ArcSDE initialization parameters

If users will connect to the enterprise geodatabase using an ArcSDE service, you need to configure the TCPKEEPALIVE ArcSDE initialization parameter to 1 (TRUE) for the master geodatabase and each user-schema geodatabase.

ПримечаниеПримечание:

Changes do not take effect until the ArcSDE service has been restarted.

You may update these parameters directly in the SERVER_CONFIG table. Execute the following commands as the sys user in SQL*Plus.

update sde.server_config set num_prop_value = 1 where prop_name = 'TCPKEEPALIVE';
commit;

Alternately, the following command can be run at the command prompt of a machine where the ArcSDE administration command line tools are installed.

sdeconfig -o alter -v TCPKEEPALIVE=TRUE -i <service> -u sde -p <sde_password>

Validating database objects

It is advisable to verify the SDE schema's objects in your database. Ensure that all the ArcSDE schema's procedures, packages, and triggers are valid and all the related constraints are enabled. Execute the following query as the sys user in SQL*Plus.

select * from dba_objects where status != 'VALID';

If any objects owned by the ArcSDE schema are reported as invalid, you need to recompile them using the following SQL*Plus command as sys user.

ПримечаниеПримечание:

The compile_all => FALSE option compiles only invalid objects, whereas TRUE, which is the default, will compile all objects regardless of status.

exec dbms_utility.compile_schema( 'SDE', compile_all =>  FALSE );

Creating spatial database connection files

Create spatial database connection files for the ArcSDE user (master ArcSDE geodatabase owner).

Шаги:
  1. Запустите ArcCatalog или ArcMap.
  2. Double-click the Database Connections folder in the Catalog tree to expand it.
  3. Дважды щелкните Добавить подключение к базе данных (Add Database Connection).

    Откроется диалоговое окно Подключение к базе данных (Database Connection).

  4. Choose Oracle from the Database Platform drop-down list.
  5. Укажите соответствующую информацию о подключении согласно инструкциям раздела Подключения баз данных в ArcGIS for Desktop.
  6. You can enter the Oracle Net service alias if it has been configured, or the Oracle Easy Connection string.

  7. Click the Authentication Type drop-down arrow and choose Database authentication.
  8. Type the ArcSDE user name and password.
  9. Нажмите ОК.

For the convenience of all other users, this connection file can be moved to a central location from where it can be accessed.

4/27/2014