just do it
分类: Oracle
2016-07-06 14:52:47
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;