LoginSignup
4
3

More than 5 years have passed since last update.

Oracle Database 12cのサンプルスキーマ(HR, SH, OE...)をインストール

Last updated at Posted at 2016-05-17

ちょっとした機能検証や動作確認をしようと思った時にサンプルスキーマがあると何かと便利。

DBCAでデータベースを作成する際に「サンプルスキーマの作成」にチェックを入れれば作成することができます。
WS0002.png

しかし作成済みのデータベースに後からサンプルスキーマを追加しようとすると、作成スクリプト(hr_main.sql)が見つからない・・・

[oracle@host1 ~]$ cd $ORACLE_HOME/demo/schema/human_resources
[oracle@host1 human_resources]$ ls
hr_code.sql

作成スクリプトを入手するためにはOracle Database Examplesをダウンロードします
WS0001.png

あとはrunInstallerを実行して進むだけ
WS0003.png

スクリプトが展開されました

[oracle@psc01 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

マニュアルはこちら
http://docs.oracle.com/cd/E57425_01/121/COMSC/installation.htm#COMSC00002

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3