HOW TO
1. Describe the layer. Record the entity flags listed next to "Entities". In this example, the table support nil, area (polygon), CAD and multipart entities.
sdelayer -o describe -l states,shape -u username -p password
ArcSDE 8.2 Build 967 Fri Feb 15 16:52:05 PST 2002
Layer Administration Utility
-----------------------------------------------------
----------------------------------------------------------------
Table Owner : USERNAME
Table Name : STATES
Spatial Column : SHAPE
Layer id : 19
Entities : nac+
Layer Type : In-Line Spatial Type
I/O Mode : NORMAL
User Privileges : SELECT, UPDATE, INSERT, DELETE
Layer Configuration: DEFAULTS
2. Get exclusive use of the ArcSDE server. If other users connect to the server during steps #5 through #6, the auto-registration process will re-register the layer with the annotation and CAD entity support flags.
3. Save the Oracle Spatial metadata for the table.
CREATE TABLE SAVED_METADATA AS
SELECT * FROM USER_SDO_GEOM_METADATA
WHERE TABLE_NAME = '<table name>';
4. Unregister the Oracle Spatial table from ArcSDE. WARNING! Make sure it is an Oracle Spatial table. If it is an ArcSDE compressed binary table, this command will delete the geometry from the table.
sdelayer -o delete -l <table name>,<shape column> -u <...>
5. Replace the Oracle Spatial metadata from the table you saved it in during step #2.
INSERT INTO USER_SDO_GEOM_METADATA
SELECT * FROM SAVED_METADATA;
COMMIT;
6. Manually register the table. Use all entity support flags listed in the output of sdelayer -o describe, excluding "c" or "A".
sdelayer -o register -l <table name>,<shape column> -e na+ -c <objectid column> -C SDE -u <...>
Adjusting the array fetch size
The array fetch size can be increased from 24 to more optimum size of 100 by modifying the giomgr.defs parameters ATTRBUFSIZE to 200800 (it is 50000 by default) and MAXARRAYBYTES to 600800 (it is 550000 by default). When fetching for the ROWID and SHAPE columns from an Oracle Spatial table, the row size is 2008 bytes, which includes 4 bytes for alignment.
array fetch size = 200800/2008 = 100
After modifying giomgr.defs, restart the ArcSDE server to re-read the parameters.
Article ID:000005079
Get help from ArcGIS experts
Download the Esri Support App