
ArcGIS® 9 ArcSDE® Configuration and Tuning Guide for Oracle® Copyright © 1999, 2002–2005 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 other international copyright treaties and conventions. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and 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-8100, USA. The information contained in this document is subject to change without notice. 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 U.S. Government acquire greater than RESTRICTED/LIMITED RIGHTS. At a minimum, use, duplication, or disclosure by the U.S. 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); and 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, SDE, ArcView, ArcIMS, ArcInfo Librarian, MapObjects, ArcInfo, ArcSDE, ArcCatalog, ArcMap, ArcToolbox, ArcStorm, ArcGIS, and Spatial Database Engine are trademarks, registered trademarks, or service marks of ESRI in the United States, the European Community, or certain other jurisdictions. Other companies and products mentioned herein are trademarks or registered trademarks of their respective trademark owners. Contents Getting started 1 Tuning and configuring the Oracle instance 1 Arranging your data 2 Creating spatial data in an Oracle database 3 ArcSDE geodatabase maintenance 3 National language support 3 Backup and recovery 4 Essential Oracle configuring and tuning 5 How much time should you spend tuning? 5 Reducing disk I/O contention 6 Setting the Oracle initialization parameters 28 Enabling the optional Oracle startup trigger 31 Updating Oracle statistics 32 Updating ArcSDE compressed binary statistics 33 Configuring DBTUNE storage parameters 35 The DBTUNE table 36 Managing the DBTUNE table 38 Using the DBTUNE table 40 Defining the storage parameters 42 Arranging storage parameters by keyword 46 Oracle Spatial DBTUNE storage parameters 64 Oracle default parameters 68 Converting previous versions of SDE storage parameters into the DBTUNE table 69 The complete list of ArcSDE 9 storage parameters 72 Managing tables, feature classes, and raster columns 81 Data creation 81 Creating and populating raster columns 87 Creating views 87 Exporting data 88 Schema modification 88 Choosing an ArcSDE log file configuration 88 Using the ArcGIS Desktop applications 90 Efficiently registering large business tables with ArcSDE 94 iv ArcSDE Configuration and Tuning Guide for Oracle National language support 99 Oracle database character sets 99 Setting the NLS_LANG variable on the client 99 Setting the NLS_LANG for the ArcSDE server 102 Backup and recovery 103 Recording database changes 103 Database backup 108 Database recovery 111 Estimating the size of your tables and indexes 113 The business table 113 The feature table 114 The spatial index table 115 The version delta tables 116 The network tables 117 The raster data tables 120 The indexes 123 Storing raster data 125 Raster schema 128 ArcSDE compressed binary 137 Compressed binary 137 The spatial grid index 140 Creating tables with compressed binary schema 146 Tuning LOB storage 147 Referential integrity 148 Oracle Spatial geometry type 149 What is Oracle Spatial? 149 How does ArcSDE use Oracle Spatial? 151 How ArcSDE uses existing Oracle Spatial tables 156 Interoperability considerations 158 The well-known binary representation 163 Numeric type definitions 164 XDR (big-endian) encoding of numeric types 164 NDR (little-endian) encoding of numeric types 164 Conversion between the NDR and XDR representations of WKB geometry 164 Description of WKBgeometry byte streams 165 Assertions for well-known binary representation for geometry 169 Contents v Storing locators 171 Locator schema 172 Making a direct connection 181 What files do you need? 181 How to get your database setup files 182 Environment variables 183 Client/Database compatibility 185 Registration and authorization 185 Setting up clients for Oracle direct connect 185 Storing XML Data 189 Configuring ArcSDE for Oracle 190 ArcSDE XML columns database schema 198 Index 205 CHAPTER 1 Getting started Creating and populating a geodatabase is arguably a simple process, especially if you use ESRI’s ArcCatalogTM or ArcToolboxTM to load the data. So why is there a configuration and tuning guide? Well, while database creation and data loading can be relatively simple, the resulting performance may not be acceptable. It requires some effort to build a database that performs optimally. Also, as an Oracle® user, you have some choices for storing the geometry of your spatial data. This book provides instruction for configuring the physical storage parameters of your data in the database management system (DBMS), as well as information about the available options you have to store the geometry. This book also provides some important guidelines for configuring and tuning the Oracle instance itself. Tuning and configuring the Oracle instance Building an efficient geodatabase involves properly tuning and configuring the Oracle instance and proper arrangement and management of the database’s tables and indexes. Chapter 2, ‘Essential Oracle configuring and tuning’, teaches you how to do just that. Chapter 2 lists the necessary steps to create a geodatabase. You will learn how to properly: • Create an Oracle database. • Create the tablespaces that will store your tables and indexes. 2 ArcSDE Configuration and Tuning Guide for Oracle • Tune the Oracle instance that will mount and open the database. • Manage the optimization statistics of the tables and indexes after they have been created and populated. Arranging your data Every table and index created in a database has a storage configuration. How you store your tables and indexes affects your database’s performance. DBTUNE storage parameters How is the storage configuration of the tables and indexes controlled? ArcSDE® reads storage parameters from the SDE.DBTUNE table to define physical data storage parameters of ArcSDE tables and indexes. The storage parameters are grouped under configuration keywords. You assign configuration keywords to your data objects (tables and indexes) when you create them from an ArcSDE client program. The initial source of storage parameters is the dbtune.sde file found under the ArcSDE etc directory. When the ArcSDE sdesetupora* setup command executes, the configuration parameters are read from the file and written into the DBTUNE table. Most ArcSDE storage parameters are configuration strings and represent the entire storage configuration for a table or index. Most SDE.DBTUNE storage parameters hold the parameters of an Oracle CREATE TABLE or CREATE INDEX statement. The sdedbtune command provides the ArcSDE administrator with an easy way to maintain the SDE.DBTUNE table. The sdedbtune command exports and imports all the records of the SDE.DBTUNE table to a file in the ArcSDE etc directory. The ArcSDE installation creates the SDE.DBTUNE table. If the dbtune.sde file is absent or empty, sdesetupora* creates the SDE.DBTUNE table and populates it with default configuration keywords representing the minimum ArcSDE configuration. In almost all cases, you will populate the SDE.DBTUNE table with specific storage parameters for your database. Chapter 3, ‘Configuring DBTUNE storage parameters’, describes in detail the SDE.DBTUNE table and all possible storage parameters and default configuration keywords. Spatial data storage choices The SDE.DBTUNE storage parameter GEOMETRY_STORAGE allows you to choose from three possible spatial column storage formats. The three possible storage formats are: • ArcSDE compressed binary with LONG RAW. The ArcSDE geometry is stored in a ‘LONG RAW’ column in a separate feature table. A business table’s spatial column is a foreign key reference to the records of a feature table. This is the default spatial storage format for ArcSDE. Chapter 1—Getting started 3 • ArcSDE compressed binary with binary large object (BLOB). The schema of this storage format is the same as the previous one except that the geometry is stored in the BLOB data type. • Oracle Spatial geometry type. The object-relational model extends the database model to include an SDO_GEOMETRY type. Under this storage format, the spatial column is an SDO_GEOMETRY data type, and no foreign key reference to another table storing a geometry column is required. These spatial storage choices are discussed more fully later in this book. Appendix C, ‘ArcSDE compressed binary’, describes the ArcSDE compressed binary for both LONG RAW and BLOB. Appendix D, ‘Oracle Spatial geometry type’, describes ArcSDE support for the Oracle Spatial storage format. Creating spatial data in an Oracle database ArcCatalog and ArcToolbox are graphical user interfaces (GUIs) specifically designed to simplify the creation and management of a spatial
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages213 Page
-
File Size-