2011年5月31日星期二

OER_001:图解安装 Oracle Enterprise Repository 11.1.1.5.0

1. 检查数据库Character Set
sqlplus system/welcome1
select * from nls_database_parameters where Parameter='NLS_CHARACTERSET';
返回值为 UTF-8 Encoding: AL32UTF8 (International support),表明支持UTF-8。
返回值为 ISO-8859-1 Encoding: WE8ISO8859P1 (U.S. English Encoding)。

2. 安装数据库 OER_* Schema

(1)创建 Tablespace
CREATE TABLESPACE OER_DATA
DATAFILE 'C:/Oracle/Database/oradata/XE/OER/oer_data.dbf' SIZE 300M
AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
LOGGING
ONLINE
SEGMENT SPACE MANAGEMENT AUTO;

CREATE TABLESPACE OER_LOB
DATAFILE 'C:/Oracle/Database/oradata/XE/OER/oer_lob.dbf' SIZE 300M
AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
LOGGING
ONLINE
SEGMENT SPACE MANAGEMENT AUTO;

CREATE TABLESPACE OER_INDEX
DATAFILE 'C:/Oracle/Database/oradata/XE/OER/oer_index.dbf' SIZE 300M
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
LOGGING
ONLINE
SEGMENT SPACE MANAGEMENT AUTO;

(2)创建 User
CREATE USER OER IDENTIFIED BY OER DEFAULT TABLESPACE OER_DATA TEMPORARY TABLESPACE TEMP;
GRANT CREATE MATERIALIZED VIEW TO OER;
GRANT CREATE SEQUENCE TO OER;
GRANT CREATE SESSION TO OER;
GRANT CREATE SYNONYM TO OER;
GRANT CREATE TABLE TO OER;
GRANT CREATE TRIGGER TO OER;
GRANT CREATE VIEW TO OER;
GRANT UNLIMITED TABLESPACE TO OER;

3. 重要步骤截图

(1)


(2)


(3)


(4)


(5)


(6)


4. 卸载
(1)Uninstall Binary




(2)移除发布的应用
如果OER是独占一个Domain的话,删除user_projects/domains/[oer_domain_name]和user_projects/applications/[oer_domain_name]即可。
如果OER是扩展Domain而增加进来的,按照以下步骤操作:
启动Administration Server,访问Console。
在发布的应用中,选择Oracle Enterprise Repository application,选择Delete。
在Servers中,选择oer_server1 managed server, 选择Delete。

(3)移除Database Schema
sqlplus system/welcome1
drop user OER cascade;
DROP TABLESPACE OER_DATA;
DROP TABLESPACE OER_LOB;
DROP TABLESPACE OER_INDEX;

(4)移除DBF 文件
删除三个DBF文件:
C:/Oracle/Database/oradata/XE/OER/oer_data.dbf
C:/Oracle/Database/oradata/XE/OER/oer_lob.dbf
C:/Oracle/Database/oradata/XE/OER/oer_index.dbf

(5)移除[middleware_home]\repository111目录

没有评论: