- 浏览: 1763188 次
- 性别:
- 来自: 成都
文章分类
- 全部博客 (520)
- Oracle (10)
- Oracle错误集 (8)
- Oracle安装升级 (15)
- Oracle日常管理 (51)
- Oracle字符集 (7)
- Oracle备份恢复 (24)
- Oracle优化 (4)
- Oracle编程 (52)
- Oracle导入导出 (19)
- Oracle体系结构 (15)
- Oracle网络 (2)
- Oracle安全 (2)
- Oracle权限 (3)
- Oracle数据字典和性能视图 (2)
- Oracle常用地址 (5)
- SQLPLUS专栏 (7)
- SqlServer (13)
- SqlServer2005编程 (27)
- SqlServer2005管理 (15)
- MySQL (20)
- Dorado应用 (1)
- C# (24)
- Arcgis Server开发 (20)
- ArcSDE技术 (19)
- UML学习 (2)
- 设计模式 (2)
- JAVA EE (4)
- JavaScript (3)
- OFBIZ (27)
- JAVA WEB开发 (22)
- Linux&Unix (34)
- SHELL编程 (14)
- C语言 (11)
- 网络协议 (14)
- FREEMARKER (2)
- GROOVY (2)
- JAVA语言 (3)
- 防火墙 (0)
- PHP (2)
- Apache (2)
- Loader Runner (1)
- Nginx (3)
- 数据库理论 (2)
- maven (1)
最新评论
-
怼怼怼怼:
oracle的timestamp类型使用 -
怼怼怼怼:
oracle的timestamp类型使用 -
怼怼怼怼:
oracle的timestamp类型使用 -
pg_guo:
感谢
oracle中查看用户权限 -
xu234234:
5、MapResourceManager控件中添加了两个服务, ...
北京ArcGis Server应用基础培训笔记1
Each database management system (DBMS) has different rules for using multiple geodatabases. In general, though, it is possible to create separate databases, store a geodatabase in each one, and connect to each one using separate ArcSDE services no matter what DBMS you are using.
Beginning with 9.2, you can also create multiple geodatabases inside one Oracle database. This model for storing multiple geodatabases in one Oracle database is described below. This is followed by sections containing specific information for storing multiple geodatabases using other DBMS types and models.
Multiple geodatabases in one Oracle database
You can create multiple geodatabases in one Oracle database. When you do this, you create a geodatabase in a user's schema. These geodatabases contain their own ArcSDE and geodatabase system tables. There can be only one geodatabase per user schema. Geodatabases in the user's schema run concurrently with one master SDE geodatabase that is stored in the SDE schema.
The geodatabase in the SDE schema is always the master geodatabase and contains a table (SDE.INSTANCES) that keeps track of all the other geodatabases in the Oracle database. The SDE schema also contains the ST_Geometry type as well as its subtypes and functions.
Both the SDE geodatabase and user-schema geodatabases are created under a single Oracle database and can be accessed by a single ArcSDE service.
Situations for which you may want to have multiple geodatabases in the same Oracle database include the following:
- If smaller groups within an organization, such as departments or project groups, will work independently of each other, they may want their own data. You could have a geodatabase for each group.
- Separating your development environment from your production environment
- Separately tuning each geodatabase for the specific applications it will service
- Protecting sensitive information
For example, you may want to have a sensitive military database protected in its own geodatabase so owners of other instances will not be able to see the data.
Rules for using multiple geodatabases in one Oracle database
- A user can own only one geodatabase.
- Only one geodatabase can reference a dataset that has been registered with ArcSDE.
- A geodatabase is owned by the user who created it. That user is the ArcSDE administrator user for that geodatabase.
Creating geodatabases in a user's schema in an Oracle database
You create user geodatabases by running the sdesetup command with the install operation. For the instance (the –i option), you must specify the port number and the schema. For the user name and password, these must be the user name and password of the user who will own the geodatabase. The following is an example of this:
sdesetup –o install –d ORACLE10G –i 5151:Thor –u Thor –p rot –l license.txt
For the instance option, 5151 is the port number and Thor is the schema, which is also the user name since schemas correspond to user names in Oracle databases.
NOTE: Be sure you specify the schema. If it is not specified and only a port number is provided, the SDE schema will be used by default. Since the geodatabase in the SDE schema already exists, executing the sdesetup –o install command will upgrade the SDE geodatabase.
If you are using a direct connection, you still need to specify 5151:<user_schema> with the –i option. If doing a remote installation from a Windows machine, you also need to add a 5151 service in the Windows service file of the machine from which you are executing the sdesetup command.
It is recommended you store the system tables that get created with the sdesetup –o install command in a different tablespace than the one used for your SDE geodatabase. This will help avoid I/O contention and will allow you to backup the tablespace seperately if needed. To create the system tables of the user-schema geodatabase in a different tablespace, make a copy of your dbtune.sde file, and edit the parameters under the in the dbtune file to point them to a different tablespace. Do this prior to running the sdesetup command to create the geodatabase in a user's schema. For information on the dbtune file and how to alter it, see The dbtune file and the DBTUNE table.
NOTE: The user (in this example, Thor) must be given the same privileges you provide for the SDE user while installing or upgrading the SDE geodatabase.
Registering tables and layers
Users who own geodatabases are allowed to create tables in other geodatabases, but the table can be registered in only one geodatabase.
sdetable –o register –t tablename –i port:schemaname –u user –p passwd sdelayer –o create –l tablename,shape –i port:schemaname –u user –p passwd
If the table has already been registered in another schema, the SE_TABLE_REGISTERED_OUTSIDE_SCHEMA error will be returned.
For tables created with Oracle Spatial, you could use autoregistration for table and layer registration. Autoregistration registers as feature classes with the ArcSDE geodatabase any unregistered SDO_GEOMETRY tables. Autoregistration detects unregistered SDO_GEOMETRY tables by comparing the list of feature classes in the LAYERS table with the list of SDO_GEOMETRY tables in the USER_SDO_GEOM_METADATA table whenever a user connects and requests a list of feature classes from the ArcSDE server. To use autoregistration, the server configuration parameter DISABLEAUTOREG in the ArcSDE SERVER_CONFIG table must be set to FALSE.
Each ArcSDE geodatabase has its own LAYERS and SERVER_CONFIG tables. You must separately set to FALSE the DISABLEAUTOREG parameter in the user geodatabase's SERVER_CONFIG table to allow SDO_GEOMETRY tables to be autoregistered in the user's geodatabase.
Managing geodatabases created in user schemas
The user who owns the geodatabase is the ArcSDE administrator. In other words, the user is equivalent to the SDE user in the SDE master geodatabase. In the example geodatabase created above, the user Thor would perform such tasks as compressing or upgrading for the geodatabase Thor owns.
Note that since the geodatabase is in Thor's schema, the DEFAULT version for the geodatabase in the version table is named Thor.DEFAULT.
Starting and stopping a geodatabase in a user's schema
Geodatabases stored in schemas other than the SDE schema are dependent on the SDE geodatabase. Once you start or shut down the SDE geodatabase, all associated geodatabases will automatically be started or shut down. An attempt to start a geodatabase stored in a user's schema independently will result in an error similar to the following:
init_DB DB_instance_open_as_dba: -93 DBMS error code: 1017 ORA-01017: invalid username/password; logon denied
Listing the geodatabases present on a server
You can find out what geodatabases are running on a server by using the –I option on the sdemon –o info command. This option will return information regarding the various geodatabases that are present on a server.
sdemon –o info –I instances ArcSDE Instance sdeora10g's instances on jupiter at Wed Mar 08 08:23:14 2006 Instance Created Id SDE Thu Oct 28 16:30:20 2004 0 MAP Mon Feb 27 11:18:04 2006 1
NOTE: This will not work if you are only using direct connect because you cannot use the sdemon command if no ArcSDE service is running.
For details on the sdemon command, consult the ArcSDE Administration Command Reference installed with ArcSDE.
Creating stored procedures for geodatabases stored in a user's schema
Each geodatabase has its own set of stored procedure packages that are automatically created in the ArcSDE administrator's schema upon geodatabase creation.
In addition, you can create individual packages in the geodatabase through SQL*Plus if you provide the schema name. For example, to create the dbtune_util package in the Thor user schema, issue the following command at the SQL prompt:
@dbtune_util.sps Thor
Creating connections to geodatabases in user's schemas
You can use an ArcSDE service or a direct connection to geodatabases owned by users other than SDE. However, only one giomgr process is used: the one to the SDE geodatabase. There are not separate giomgr processes for each geodatabase.
For ArcSDE service connections, use the port number and the schema as in the example 5151:Thor. (Note that the port number is the same for the SDE geodatabase and user-owned geodatabases.)
To create a direct connection to a user-owned geodatabase, specify the schema name in the connection using this:
sde:oracle10g:/:<schema_name>
If you don't provide a schema name, the SDE schema will be used by default.
NOTE: The forward slash, "/", between Oracle 10g and the schema_name is used in place of the database name, since Oracle does not use one.
Connecting to a geodatabase in a user's schema from ArcGIS
You can use ArcGIS 9.2 clients to connect to a user-owned geodatabase. You do this by specifying the port and schema (in the format port:schema) for the service name on the Spatial Database Connection Properties dialog box in ArcCatalog.
When you initially make a database connection in ArcCatalog, you are automatically connecting to the sde.DEFAULT version of the geodatabase. To connect to a geodatabase in the schema of a user other than SDE, click the Change button under Connection details on the Spatial Database Connection Properties dialog box and change the version name from sde.DEFAULT to <user_schema>.DEFAULT. In the following example, the schema name is TEST, so the connection would be to TEST.DEFAULT.
For more information on making a spatial database connection, see Creating spatial database connections.
Loading data into a geodatabase
You load data into geodatabases stored in a nonSDE user's schema the same way that you load data into the SDE master geodatabase—with either ArcCatalog (the recommended method) or ArcSDE commands.
It is important to note that if you are connected to two different geodatabases in the same Oracle database as the same user in ArcCatalog, when you try to copy and paste data between the geodatabases, the paste will fail.
You can load a table into a geodatabase with the same table name that exists in another geodatabase as long as the tables are owned by different schemas.
Creating a backup of a user-owned geodatabase
If all the tables in the geodatabase are owned by the geodatabase owner (in other words, if no other user created data in the geodatabase) and the geodatabase owner does not own data in any other geodatabase, you can create a backup of the geodatabase owner's schema. If users have data spread across multiple geodatabases in the same Oracle database, you would have to perform a complete Oracle system backup and restore.
发表评论
-
SDE用户权限脚本
2008-07-14 13:44 3524DROP ROLE SDE_UPGRADE;CREATE RO ... -
ArcSDE/Oracle的简单优化(图层和索引分开)
2008-07-10 10:01 27431.SDE的性能主要还是取决于Oracle的性能,然后才是SD ... -
ArcSDE的版本管理机制
2008-07-07 15:10 2677版本是SDE数据库中管理数据的一种机制,主要解决长事务问题。 ... -
ArcSDE栅格数据的存储结构
2008-07-07 13:19 2257一个元数据表:SDE_raster_columns 一个业务 ... -
Raster dataset schema overview
2008-07-07 10:51 13821、Business table 2、AUX table:St ... -
常用命令
2008-07-07 10:41 14121、sdetable 查看表的关系 eg. sdet ... -
Manage vector storage
2008-07-07 10:32 1376一、创建表空间create tablespace gis_da ... -
Manage raster storage
2008-07-07 09:37 1063一、创建表空间create tablespace versio ... -
SDE中的表
2008-07-04 09:25 24661、B表:属性表 2、F表:要素表 3、S表:索引表 4、A表 ... -
SDE三种连接方式
2008-07-03 14:57 2628一、Application server connection ... -
Operating multiple geodatabases
2008-07-03 14:15 1420Creating multiple geodatabases ... -
基于Geodatabase数据模型的版本机制
2008-07-03 11:32 1702一、版本是什么?(What is Version?) “版本” ... -
arcsde9.2和oracle分布式安装
2008-07-02 11:18 2684环境: oracle10gR2安装在两台服务器上,但只是做双机 ... -
创建多个ArcSDE实例
2008-07-02 09:29 2706有时候,我们需要有多于一个的ArcSDE实例同时运行。只要存在 ... -
SDE命令行安装配置
2008-07-01 16:34 3408一、创建相关表空间 创建sde表空间 create table ... -
oracle for sde配置
2008-06-30 15:40 21611、修改oracle系统参数alter system set ... -
ArcSDE空间数据库中SDE用户使用探讨
2008-06-30 15:26 3059ArcSDE作为空间数据库解决方案,应用非常广泛,本短文将尝试 ... -
创建多个ArcSDE实例
2008-06-23 19:42 2112有时候,我们需要有多 ...
相关推荐
### 构建地理数据库(Geodatabases):详解与步骤 #### 一、引言 在地理信息系统(GIS)领域,地理数据库(Geodatabases)是存储和管理空间数据的关键工具之一。它允许用户高效地组织、管理和分析复杂的地理信息。...
arcsde 空间数据库教程,管理员手册。 字数补丁。
### 使用Visio设计Geodatabases的关键知识点 #### 一、概览 《Designing Geodatabases With Visio》是一份由ESRI出版的专业文档,主要介绍了如何使用Microsoft Visio这一工具来设计地理数据库(Geodatabases)的...
#### 标题:Learning ArcGIS Geodatabases - **核心概念**:本书主要介绍了如何使用ArcGIS技术来创建、管理和维护地理数据库(Geodatabases)。地理数据库是存储地理空间数据的一种高级形式,支持多用户环境下的...
### 使用Visio设计地理数据库的关键知识点 #### 一、地理数据库设计概述 地理数据库(Geodatabase)是存储和管理空间数据的一种高级方法,它能够有效地处理地理信息系统的复杂需求。设计良好的地理数据库不仅能提高...
Chapter 7, Geoprocessing with Geodatabases, shows the readers how to use Spatial SQL to perform geoprocessing with database tables containing a spatial column. Chapter 8, Automating QGIS Analysis, ...
### ArcGIS Geodatabases学习指南 #### 一、ArcGIS Geodatabases简介 在深入了解《Learning ArcGIS Geodatabases》这本书之前,我们首先需要对ArcGIS Geodatabases有一个基本的认识。ArcGIS Geodatabases是Esri...
Access the spatial data contained within shapefiles and geodatabases, for updates, analysis and even transformation between spatial reference systems Produce map books and automate the mapping of ...
【事务处理与版本管理】ArcSDE Geodatabases支持版本和长事务处理,这意味着多个用户可以同时编辑数据而不会相互干扰,同时提供了一种追踪和合并不同编辑版本的能力,这对于协作编辑和数据管理至关重要。 总的来说...
这个API是Esri公司提供的一个用于创建、管理和操作File Geodatabases的软件开发工具包(SDK)。在本文中,我们将详细探讨FileGDB API以及它在macOS环境中的应用。 **FileGDB API 简介** FileGDB API 是Esri公司的...
标题 "FileGDB_API_1_5_1-VS2013.zip" 暗示我们正在处理Esri的File Geodatabase API的一个版本,该API专为Visual Studio 2013环境设计,用于与File Geodatabases进行交互。File Geodatabases是Esri公司开发的一种...
对于ArcSDE geodatabases,版本和长事务处理功能是其一大特色。这使得多用户可以在同一数据集上同时工作,而不会相互干扰,确保数据的准确性和一致性。 总之,Geodatabase是GIS数据管理的核心,它结合了空间数据和...
ArcSDE geodatabases支持版本管理和长事务处理,这是在多用户环境中保持数据一致性和追踪更改的关键特性。版本管理允许用户在同一数据集上同时工作,而不会相互干扰,从而提高了协同工作的效率。 总结来说,...
这个API允许程序员创建、读取和修改File Geodatabases,这是一种由Esri开发的空间数据存储系统,广泛应用于地理信息系统(GIS)领域。FileGDB_API提供了对空间数据的强大支持,使得开发者能够将地理信息集成到他们的...
Geodata Service提供了通过Internet访问geodatabases的功能,支持所有类型的geodatabases,包括数据导出、查询和geodatabase复制。特别是对于ArcSDE geodatabases,还支持业务简单的WebGIS应用。 此外,ArcGIS ...
ArcSDE Geodatabases支持版本控制和长期事务处理。这意味着用户可以在不影响其他用户的情况下进行编辑,并且可以在最终确定更改之前查看不同版本之间的差异。这种机制极大地提高了数据更新的安全性和效率,特别是在...
在空间数据库原理实验指导书中,第一部分实验的目的是掌握创建两种地理数据库的方法:Personal Geodatabases 和 ArcSDE Geodatabases。创建 Personal Geodatabases 需要在 ArcCatalog 中右键点击目录树,选择 New,...
ArcSDE geodatabases支持版本管理和长事务处理。这使得Geodatabase能够在多用户环境中有效地处理数据更改,同时确保数据的一致性和准确性。通过支持复杂的GIS数据类型,如注记、拓扑、网络、地形和地址定位器等,...
2. 库文件:静态库(.a)或动态库(.so)文件,它们包含了实际的API实现,供编译链接时使用。 3. 示例代码:可能包含了一些示例程序,演示了如何使用API的基本功能,帮助开发人员快速上手。 4. 文档:API文档通常以...