oracle hr建立语句,Oracle建立HR形式

Oracle建立HR模式

官方帮助

写道

Installing the HR Schema

All scripts necessary to create Human Resource (HR) schema reside in $ORACLE_HOME/demo/schema/human_resources.

You need to call only one script, hr_main.sql, to create all the objects and load the data. Running hr_main.sql accomplishes the following tasks:

1.Prompts for passwords and tablespace names used within the scripts

2.Removes any previously installed HR schema

3.Creates the user HR and grants the necessary privileges

4.Connects as HR

5.Calls the scripts that create and populate the schema objects

For a complete listing of the scripts and their functions, refer to Table 4-1.

A pair of optional scripts, hr_dn_c.sql and hr_dn_d.sql, is provided as a schema extension. To prepare the HR schema for use with the directory capabilities of Oracle Internet Directory, run the hr_dn_c.sql script. If you want to return to the initial setup of the HR schema, then use the hr_dn_d.sql script to undo the effects of the hr_dn_c.sql script.

The hr_drop.sql script is used to drop the HR schema.

翻译

$ORACLE_HOME/demo/schema/human_resources下面的所有sql脚本对于创建HR模式都是必须的。

你只需要调用hr_mian.sql就可以建立所有的对象并且添加数据,运行hr_main.sql脚本完成下面的任务:

1 填写脚本中需要的密码和表空间

2 移除以前安装的HR模式

3 创建HR用户并赋予相应权限

4 连接到HR

5 调用创建和移植模式对象的脚本

完整的脚本和函数列表,可以参考Table4-1

hr_drop.sql脚本用来移除HR模式。

简单的创建方式

1 下载human_resources.zip

2 解压到%ORACLE_HOME%/demo/schema/human_resources/目录下

3 在sys或system用户下运行hr_main.sql脚本,在PL/SQL Developer工具下即用导入sql文件方式:tools菜单-->import tables菜单项-->sql inserts选项卡-->import file选中hr_main.sql-->import

4 输入必要地参数

1402393300.png

下面是我自己个人的一些设置:

hr用户密码:hr

表空间:users

临时表空间:temp

sys密码:dwh

日志生成目录:D:\oracle\product\10.2.0\oradata\dwh(其实随便指定即可)

5 完成创建,可以连接到HR模式了。

1 楼

ming270004540

2012-03-08

icon_idea.gif 好啊

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值