Creating the product library user-schema geodatabase (Maritime Charting)
This workflow provides steps for creating the product library user-schema geodatabase.
Creating the geodatabases
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).
- Démarrez ArcCatalog ou ArcMap.
- Ouvrez l'outil de géotraitement Créer une géodatabase d'entreprise.
Recherchez l'outil dans la fenêtre Rechercher ou ouvrez directement la boîte de dialogue de l'outil dans le jeu d'outils Administration de la géodatabase de la boîte à outils de Gestion de base de données.
- Sélectionnez Oracle dans la liste déroulante Plateforme de la base de données.
- Fournissez les informations requises pour vous connecter à l'instance Oracle.
- Si vous avez déjà configuré le client Oracle pour utiliser un alias de réseau TNS, saisissez l'alias de service Net dans la zone de texte Instance.
- Si vous n'avez pas configuré l'alias réseau du client Oracle, indiquez la chaîne Oracle Easy Connection dans la zone de texte Instance.
Reportez-vous à la rubrique Connexions aux bases de données dans ArcGIS for Desktop pour une liste des valeurs possibles.
- Tapez le mot de passe de l'utilisateur système dans la zone de texte Mot de passe administrateur de géodatabase.
- Type pl in the Geodatabase Administrator text box.
- Saisissez un mot de passe pour l'administrateur de géodatabase dans la zone de texte Mot de passe de l'administrateur de géodatabase.
Si l'administrateur de géodatabase spécifié existe déjà dans la base de données, veillez à entrer le mot de passe correspondant à l'utilisateur existant ; cet outil ne modifiera pas le mot de passe. Si vous créez un utilisateur sde, le mot de passe que vous fournissez est utilisé lors de la création de l'utilisateur sde.
- Spécifiez un tablespace pour l'administrateur de géodatabase.
- Si vous devez utiliser un tablespace préconfiguré pour le référentiel de géodatabase, saisissez son nom dans la zone de texte Nom de l'espace de table.
- Si vous souhaitez que l'outil crée un tablespace à votre place, saisissez un nom valide dans la zone de texte Nom de l'espace de table pour que l'outil crée un tablespace de 400 Mo à l'emplacement Oracle par défaut. Si vous n'entrez pas le nom d'un tablespace, un tablespace SDE_TBS est créé et défini comme tablespace par défaut pour l'utilisateur et ArcSDE.
- Pour spécifier un fichier d'autorisation, accédez au fichier de codes clés qui a été créé lorsque vous avez autorisé ArcGIS for Server Enterprise et sélectionnez-le.
Ce fichier est écrit dans le dossier \\Program Files\ESRI\License<n° de version>\sysgen sous les serveurs Windows et dans /arcgis/server/framework/runtime/.wine/drive_c/Program Files/ESRI/License<n° de version>/sysgen sous Linux. Si vous ne l'avez pas déjà fait, autorisez ArcGIS for Server maintenant pour créer ce fichier.
- Cliquez sur OK pour exécuter l'outil.
For example, type pl.
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.
You may update these parameters directly in the SERVER_CONFIG table. Execute the following commands as the sys user in SQL*Plus.

Changes do not take effect until the ArcSDE service has been restarted.
update pl.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>:pl -u pl -p <pl_password>
Validating database objects
It is advisable to verify the product library schema's objects in your database. Ensure that all the product library 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 product library 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( 'PL', compile_all => FALSE );
Creating spatial database connection files
Create spatial database connection files for the following users.
- PL—Product library user-schema and data owner with full privileges
- PLEditor—Product library editors will have permission to do check in/out and edit the existing product nodes.
- Démarrez ArcCatalog ou ArcMap.
- Double-click the Database Connections folder in the Catalog tree to expand it.
- Double-cliquez sur Ajouter une connexion à une base de données.
La boîte de dialogue Connexion à une base de données s'affiche.
- Choose Oracle from the Database Platform drop-down list.
- Fournissez les informations de connexion appropriées comme décrit dans Connexions aux bases de données dans ArcGIS for Desktop.
- Click the Authentication Type drop-down arrow and choose Database authentication.
- Type the user name and password.
- Cliquez sur OK.
- Right-click the existing connection and click Geodatabase Connection Properties.
- Choose the user-schema geodatabase from the Schema drop-down list.
This automatically connects you to the <user>.DEFAULT transactional version.
For the convenience of all other users, this connection file can be moved to a central location from where it can be accessed.
You can enter the Oracle Net service alias if it has been configured, or the Oracle Easy Connection string.