Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588686
  • 博文数量: 78
  • 博客积分: 2196
  • 博客等级: 大尉
  • 技术积分: 826
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-29 12:46
文章分类

全部博文(78)

文章存档

2012年(7)

2011年(42)

2010年(29)

我的朋友

分类: Oracle

2011-06-30 18:12:15

如何安装Sample Schema in 10gR2

在创建数据库的时候没有选择Sample Schema,如何安装?

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.5 - Release: 10.2 to 10.2
Information in this document applies to any platform.

Goal

This document describes the steps to install and generate the Sample Schemas Scripts on Oracle 10gR2 (10.2).

Solution

1) Please mount the Oracle Server 10gR2 Companion CD-ROM.

2) Please run the Oracle Universal Installer from the Companion CD-ROM installation.

3) On the [Select a Product to Install] screen, please select the next option:

=)> Oracle Database 10g Products 10.2.0.1.0.

4) Then press the [Next] button.

5) On the [Specify Home Details] screen, please select the existing Oracle Home 10gR2 name and path.

6) Then press the [Next] button.

7) On the [Product-Specific Prerequisite Checks] screen, make sure the environment meets are valid and then press the [Next] button.

8) And finally press the [Next] button.

9) The Sample Schemas Scripts will be installed in the following location:

On Windows:


%ORACLE_HOME%\demo\schema

Directory of D:\oracle\product\10.2.0\db_1\demo\schema

06/05/2006 10:36 AM 
 .
06/05/2006 10:36 AM 
 ..
06/05/2006 10:35 AM 
 bus_intelligence
06/05/2006 10:35 AM 
 human_resources
06/05/2006 10:35 AM 
 info_exchange
06/05/2006 10:35 AM 
 order_entry
06/05/2006 10:36 AM 
 product_media
06/05/2006 10:35 AM 
 sales_history
06/05/2006 10:35 AM  shipping
04/30/2006 03:14 PM  log
05/10/2005 10:09 PM 27,997 mkplug.sql
06/05/2006 10:36 AM 5,436 mksample.sql
04/03/2003 09:54 AM 5,254 mksample.sql.sbs
05/10/2005 10:09 PM 5,258 mkunplug.sql
09/23/2004 01:54 PM 4,990 mkverify.sql
06/05/2006 10:36 AM 1,642 mk_dir.sql
04/30/2006 03:15 PM 1,642 mk_dir.sql.ouibak
04/30/2006 03:15 PM 1,642 mk_dir.sql.ouibak.1
04/30/2006 03:45 PM 1,642 mk_dir.sql.ouibak.2
12/08/2003 03:49 PM 4,502 README.txt
05/10/2005 10:09 PM 15,784 sted_mkplug.sql.dbl
11 File(s) 75,789 bytes
10 Dir(s) 43,926,360,064 bytes free 



On Unix:
$ORACLE_HOME/demo/schema


$> ls -l
total 188
drwxr-x--- 2 oracle dba 512 Jun 5 12:48 bus_intelligence
drwxr-x--- 2 oracle dba 512 Jun 5 12:48 human_resources
drwxr-xr-x 2 oracle dba 512 Jun 5 10:35 info_exchange
drwxr-x--- 3 oracle dba 2048 Jun 5 12:48 order_entry
drwxr-xr-x 2 oracle dba 2560 Jun 5 10:36 product_media
drwxr-x--- 2 oracle dba 1536 Jun 5 12:49 sales_history
drwxr-xr-x 2 oracle dba 512 Jun 5 10:35 shipping
drwxr-x--- 2 oracle dba 512 Apr 30 15:38 log
-rw-r--r-- 1 oracle dba 1642 Jun 5 10:36 mk_dir.sql
-rw-r--r-- 1 oracle dba 1642 Apr 30 15:15 mk_dir.sql.ouibak
-rw-r--r-- 1 oracle dba 1642 Apr 30 15:15 mk_dir.sql.ouibak.1
-rw-r--r-- 1 oracle dba 1642 Apr 30 15:45 mk_dir.sql.ouibak.2
-rw-r----- 1 oracle dba 1469 Jun 7 2004 mk_dir.sql.sbs
-rw-r--r-- 1 oracle dba 27997 May 10 2005 mkplug.sql
-rw-r--r-- 1 oracle dba 5436 Jun 5 10:36 mksample.sql
-rw-r--r-- 1 oracle dba 5254 Apr 3 2003 mksample.sql.sbs
-rw-r--r-- 1 oracle dba 5258 May 10 2005 mkunplug.sql
-rw-r--r-- 1 oracle dba 4990 Sep 23 2004 mkverify.sql
-rw-r--r-- 1 oracle dba 4502 Dec 8 2003 README.txt
-rw-r--r-- 1 oracle dba 15784 May 10 2005 sted_mkplug.sql.dbl

=============

1. 需要下载
10g Companion CD

2.  运行的
Companion CD 中的runInstaller 
[oracle@ken companion]$ ls
doc  install  response  runInstaller  stage  welcome.html
[oracle@ken companion]$ pwd
/u01/companion

3. 安装完成以后如下目录有相应的sql脚本
[oracle@ken schema]$ pwd
/u01/oracle/product/10.2.0/db_1/demo/schema

4. 运行SQL 脚本
/u01/oracle/product/10.2.0/db_1/demo/schema/human_resources/hr_main.sql
[oracle@ken human_resources]$ pwd
/u01/oracle/product/10.2.0/db_1/demo/schema/human_resources
[oracle@ken human_resources]$ ls
hr_analz.sql  hr_comnt.sql  hr_dn_c.sql  hr_drop.sql  hr_main.sql
hr_code.sql   hr_cre.sql    hr_dn_d.sql  hr_idx.sql   hr_popul.sql


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