官方帮助
写道
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 输入必要地参数
下面是我自己个人的一些设置:
hr用户密码:hr
表空间:users
临时表空间:temp
sys密码:dwh
日志生成目录:D:\oracle\product\10.2.0\oradata\dwh(其实随便指定即可)
5 完成创建,可以连接到HR模式了。
分享到:
相关推荐
oracle自动存档模式
oracle hr schema样例数据库 将文件上传到@?/demo/schema/human_resources下,然后 运行@?/demo/schema/human_resources/hr_main.sql,根据提示输入相关信息
oracle hr用户创建脚本 采用rar压缩,希望能帮到大家,谢谢
Oracle HR模块操作手册 同事给的资料感觉还可以 适合初步入门的人
oracle 归档模式oracle 归档模式oracle 归档模式oracle 归档模式oracle 归档模式oracle 归档模式oracle 归档模式
Oracle创建hr用户的脚本
oracle HR用户的脚本,内含DDL脚本,以及插入数据脚本。
oracle人力资源_Hr oracle人力资源_Hr
在建立Oracle数据库的时候,应该会在数据库建立助手向导上面看到这么一个选项,就是数据库的连接模式采用什么方式。在Oracle9i或者10g中,可以看到有2种连接模式,一种叫做专用服务器连接(dedicated server) ,...
大连理工数据库上机作业答案 oracle的HR用户登录,操作相关表
oracle自带HR用户下的所有测试表以及表数据脚本,单独拿出来,有需要自行下载.
oracle示例数据库 用于学习oracle
oracle_hr解锁和加密
oracle建立数据库步骤
Oracle建立DBLINK的详细步骤记录
关于Oracle 11.2.0 HR用户所需的sql文件 ,在安装Oracle目录下,例如D:\Oracle\product\11.2.0\dbhome_1\demo\schema\human_resources
在企业中开发用到的……Oracle数据库有联机重做日志,这个日志是记录对数据库所做的修改,比如插入,删除,更新数据等,对这些操作都会记录在联机重做日志里。一般数据库至少要有2个联机重做日志组。当一个联机重做...
oracle 10 g 中hr用户需要单独安装,很麻烦,上传资料是HR用户的所有创建语句 ,下载后释放到$ORACLE_HOME/demo/schema/human_resources/目录下,在SYS用户下运行$ORACLE_HOME/demo/schema/human_resources/hr_main....
ORACLE归档模式的设置 ORACLE归档模式的设置 ORACLE归档模式的设置