Queries the size of the elements, spatial indexes, and attribute indexes stored in the Oracle database.

Source: Internet
Author: User
Some users may have such questions that I have physical sizes in the form of files (either GDB or Shapefile), but how do I know the physical size of a layer stored in the ArcSDE database, and the related index size? For details about the internal indexing mechanism of ArcSDE, refer to blog. csdn. netlinghe301archive20110323.

Some users may have such questions that I have physical sizes in the form of files (either GDB or Shapefile), but how do I know the physical size of a layer stored in the ArcSDE database, and the related index size? For the internal index mechanism of ArcSDE, refer to the http://blog.csdn.net/linghe301/archive/2011/03/23/.


Some users may have such questions that I have physical sizes in the form of files (either GDB or Shapefile), but how do I know the physical size of a layer stored in the ArcSDE database, and the related index size?


For details about the internal indexing mechanism of ArcSDE, refer


Http://blog.csdn.net/linghe301/archive/2011/03/23/6269847.aspx



For example, if I query a layer named FW2


1: query the attribute index name of the layer.


SQL> select index_name from user_indexes where table_name = 'fw2 '; INDEX_NAME------------------------------R541_SDE_ROWID_UKSYS_IL0000085622C00027 $ A372_IX1


You can obtain R541_SDE_ROWID_UK as the attribute index name.


2: query the storage size of the index.


SQL> select bytes from user_segments where segment_name = 'r541 _ done'; BYTES ---------- 393216SQL> select bytes/1024/1024 as bytes from user_segments where segment_name = 'r541 _ done'; property_Index_MB limit. 375


3: query the storage size of the layer.


SQL> select bytes/1024/1024 as table_MB from user_segments where segment_name = 'fw2 '; TABLE_MB ---------- 6SQL> select bytes from user_segments where segment_name = 'fw2'; BYTES ---------- 6291456


4: query the storage size of spatial indexes


First, obtain the geom_id of the layer.

SQL> select geom_id from sde. st_geometry_columns where table_name = 'fw2 '; GEOM_ID ---------- 440

Obtain the spatial index name based on this ID. Generally, the spatial index name is $ _ IX1'


SQL> select bytes/1024/1024 as SpatialIndex_MB from user_segments where segment_name = 's440 $ _ IX1 'else -------- 4SQL> select bytes as SpatialIndex_MB from user_segments where segment_name = 's440 $ _ IX1 '; spatialIndex_MB ---------- 4194304

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.