Chinaunix首页 | 论坛 | 博客
  • 博客访问: 648499
  • 博文数量: 128
  • 博客积分: 265
  • 博客等级: 二等列兵
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-27 20:44
个人简介

just do it

文章分类

全部博文(128)

文章存档

2023年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(17)

2015年(16)

2014年(39)

2013年(34)

2012年(10)

分类: Oracle

2016-07-06 14:52:47

操作系统:solaris10
数据库版本:oracle11gR2  11.2.0.4
问题:在使用OUI进行dbca建库时,总是进行到安装spatial组件时卡住,不再继续进行。
解决办法:终止并删除未建好的实例,重新进行dbca建库,在选择安装组件时,取消spatial组件的安装,待建库完成后在单独安装spatial组件。

建库完成后安装spatial组件的办法:

1、drop the user MDSYS:

drop user MDSYS cascade;
SQL> select comp_id,comp_name,status,version from dba_registry;
COMP_ID                        COMP_NAME                                STATUS                 VERSION
------------------------------ ---------------------------------------- ---------------------- ------------------------------
OWB                            OWB                                      VALID                  11.2.0.4.0
APEX                           Oracle Application Express               VALID                  3.2.1.00.12
EM                             Oracle Enterprise Manager                VALID                  11.2.0.4.0
AMD                            OLAP Catalog                             VALID                  11.2.0.4.0
ORDIM                          Oracle Multimedia                        VALID                  11.2.0.4.0
XDB                            Oracle XML Database                      VALID                  11.2.0.4.0
CONTEXT                        Oracle Text                              VALID                  11.2.0.4.0
EXF                            Oracle Expression Filter                 VALID                  11.2.0.4.0
RUL                            Oracle Rules Manager                     VALID                  11.2.0.4.0
OWM                            Oracle Workspace Manager                 VALID                  11.2.0.4.0
CATALOG                        Oracle Database Catalog Views            VALID                  11.2.0.4.0
                                                                                              
COMP_ID                        COMP_NAME                                STATUS                 VERSION
------------------------------ ---------------------------------------- ---------------------- ------------------------------
CATPROC                        Oracle Database Packages and Types       VALID                  11.2.0.4.0
JAVAVM                         JServer JAVA Virtual Machine             VALID                  11.2.0.4.0
XML                            Oracle XDK                               VALID                  11.2.0.4.0
CATJAVA                        Oracle Database Java Packages            VALID                  11.2.0.4.0
APS                            OLAP Analytic Workspace                  VALID                  11.2.0.4.0
XOQ                            Oracle OLAP API                          VALID                  11.2.0.4.0


2、create the user MDSYS by running following command:

    SQL> create user MDSYS identified by MDSYS default tablespace SYSAUX account lock;

   赋权 grant the required privileges to MDSYS by running:

    SQL> @?/md/admin/mdprivs.sql

3、Install Spatial by executing the steps shown below. Note you need to run this as a SYSDBA user!

    SQL> connect / as sysdba 
    SQL> spool spatial_installation.lst
    SQL> @?/md/admin/mdinst.sql 
    SQL> spool off

At the end of the installation some verification steps are automatically executed!

You can also manually run the the verification steps later on.
See the Spatial verification section further down this note.

It is strongly recommended that the MDSYS user account remains locked. The MDSYS user is
created with administrator privileges; therefore, it is important to protect this account from unauthorized
use.  To lock the MDSYS user, connect as SYS and enter the following command:

    SQL> alter user MDSYS account lock;

    SQL> select comp_id,comp_name,status,version from dba_registry;


SQL> select comp_name,status,version from dba_registry;


COMP_NAME                                STATUS                 VERSION
---------------------------------------- ---------------------- ------------------------------
Spatial                                  VALID                  11.2.0.4.0
OWB                                      VALID                  11.2.0.4.0
Oracle Application Express               VALID                  3.2.1.00.12
Oracle Enterprise Manager                VALID                  11.2.0.4.0
OLAP Catalog                             VALID                  11.2.0.4.0
Oracle Multimedia                        VALID                  11.2.0.4.0
Oracle XML Database                      VALID                  11.2.0.4.0
Oracle Text                              VALID                  11.2.0.4.0
Oracle Expression Filter                 VALID                  11.2.0.4.0
Oracle Rules Manager                     VALID                  11.2.0.4.0
Oracle Workspace Manager                 VALID                  11.2.0.4.0


COMP_NAME                                STATUS                 VERSION
---------------------------------------- ---------------------- ------------------------------
Oracle Database Catalog Views            VALID                  11.2.0.4.0
Oracle Database Packages and Types       VALID                  11.2.0.4.0
JServer JAVA Virtual Machine             VALID                  11.2.0.4.0
Oracle XDK                               VALID                  11.2.0.4.0
Oracle Database Java Packages            VALID                  11.2.0.4.0
OLAP Analytic Workspace                  VALID                  11.2.0.4.0
Oracle OLAP API                          VALID                  11.2.0.4.0


已选择18行。

阅读(1857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~