Oracle 安装与配置

发送反馈


软件环境

操作系统

Oracle 数据库可运行在 Linux、Windows 平台,默认端口为 1521。

软件版本

SuperMap GIS 服务器支持 Oracle Database 11g 及以上版本。

Oracle 安装与配置

本文以 Oracle Database 11g R2 为例,介绍 Oracle 的安装与配置方法:

进入 Oracle 官网下载对应您的操作系统的 Oracle Database 11g R2 压缩包,并将两个压缩包解压至同一目录下。

安装 Oracle

根据您所使用的操作系统类型,Oracle 的安装过程也会有所差异,具体流程可参考 Oracle 官方安装指南(https://docs.oracle.com/cd/E11882_01/nav/portal_11.htm)。安装时,请谨记设置的全局数据库名(若不做配置,Oracle 默认为 orcl)。

登录 Oracle

通过如下命令,以管理员身份登录 Oracle:

sqlplus / as sysdba

注意:如果您是在 Linux 系统中安装的 Oracle 数据库,需要使用 Oracle 用户登录 Linux。

创建表空间

通过如下命令创建表空间:

create tablespace [表空间名] datafile '[存储路径]' size [表空间大小] autoextend on next [自动扩展大小] maxsize [表空间最大大小] extent management local;

例如:

create tablespace supermap datafile 'D:\dataBase\Oracle\supermap.dbf' size 128m autoextend on next 32m maxsize 1024m extent management local;

通过如下命令创建临时表空间:

create temporary tablespace [表空间名] tempfile '[存储路径]' size [表空间大小] autoextend on next [自动扩展大小] maxsize [表空间最大大小] extent management local;

例如:

create temporary tablespace supermap_temp tempfile 'D:\dataBase\Oracle\supermap_temp.dbf' size 128m autoextend on next 32m maxsize 1024m extent management local;

创建用户

创建完表空间后,通过如下命令创建与表空间关联的用户:

create user [用户名] identified by [密码] default tablespace [表空间名] temporary tablespace [临时表空间名];

例如:

create user root identified by root default tablespace supermap temporary tablespace supermap_temp;

授权用户

创建的用户关联表空间后,通过如下命令授予该用户权限:

grant connect,resource,dba to [用户名];

例如:

grant connect,resource,dba to root;

加入驱动包

依照上述步骤配置完成后,您就可以在 iServer/iPortal/iEdge 中使用 Oracle 数据库存储安全信息了。具体配置方法请参考:安全信息存储。此外,您还可以使用 Oracle 在 iPortal 中存储门户数据,具体配置方法请参考:门户数据存储配置。