千家信息网

1Z0-051-Oracle的 HR 样例用户的建立

发表于:2024-10-02 作者:千家信息网编辑
千家信息网最后更新 2024年10月02日,Oracle的 HR 样例用户的建立1、oracle 11g 中hr用户需要单独安装,比较麻烦,书本上学习例子很多都是HR用户的案例 ,下载后释放到 $ORACLE_HOME/demo/schema/
千家信息网最后更新 2024年10月02日1Z0-051-Oracle的 HR 样例用户的建立

Oracle的 HR 样例用户的建立

1、oracle 11g 中hr用户需要单独安装,比较麻烦,书本上学习例子很多都是HR用户的案例 ,下载后释放到 $ORACLE_HOME/demo/schema/human_resources/目录下。

Script Name


Description

hr_analz.sql

Collects statistics on the tables in the schema.

hr_code.sql

Creates procedural objects in the schema.

hr_comnt.sql

Creates comments for each object in the schema.

hr_cre.sql

Creates the HR objects.

hr_dn_c.sql

Adds the distinguished name column used by Oracle Internet Directory to the employees and departments tables.

hr_dn_d.sql

Drops the Oracle Internet Directory distinguished name column from employees and departments .

hr_drop.sql

Drops the HR schema and all its objects.

hr_idx.sql

Creates indexes on the HR tables.

hr_main.sql

Main script for the HR schema; calls other scripts.

hr_popul.sql

Populates the objects.

2、[oracle@OCM]$sqlplus / as sysdba;

3、执行$ORACLE_HOME/demo/schema/human_resources/下的hr_main.sql

SQL>@?/demo/schema/human_resources/hr_main.sql

注:

1、安装前需要使用root用户对human_resources下的文件执行:chmod 777 *。

2、安装前需要确定5个参数。分别是:

HR用户的密码:dbbocom;

默认用户空间:users。(必须是已经存在的用户空间)

临时用户空间:temp。(必须是已经存在的用户空间)

SYS用户的密码:dbbocom

日志文件存放的目录:$ORACLE_HOME/RDBMS/log

HR人事管理数据库下载地址:

http://down.51cto.com/data/1037205

或者:

http://download.csdn.net/detail/johnlxj/6689713

SQL> @?/demo/schema/human_resources/hr_main.sql

specify password for HR as parameter 1:

Enter value for 1: dbbocom

specify default tablespeace for HR as parameter 2:

Enter value for 2: users

specify temporary tablespace for HR as parameter 3:

Enter value for 3: temp

specify password for SYS as parameter 4:

Enter value for 4: dbbocom

specify log path as parameter 5:

Enter value for 5: /home/oracle/app/oracle/

DROP USER hr CASCADE

*

ERROR at line 1:

ORA-01918: user 'HR' does not exist

old 1: CREATE USER hr IDENTIFIED BY &pass

new 1: CREATE USER hr IDENTIFIED BY dbbocom

User created.

old 1: ALTER USER hr DEFAULT TABLESPACE &tbs

new 1: ALTER USER hr DEFAULT TABLESPACE users

old 2: QUOTA UNLIMITED ON &tbs

new 2: QUOTA UNLIMITED ON users

User altered.

old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbs

new 1: ALTER USER hr TEMPORARY TABLESPACE temp

PL/SQL procedure successfully completed.

...

PL/SQL procedure successfully completed.

检查是否正确安装完毕

SQL> show user

USER is "HR"


用户 空间 密码 文件 目录 书本 人事 人事管理 例子 参数 地址 数据 数据库 日志 案例 麻烦 学习 检查 管理 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 ps5nba2k连接不了服务器 百家乐分析软件开发 湖南淘法网络技术有限公司怎么样 使命召唤5服务器上任务集合 峰迢电机驱动软件开发 南京大学图书馆数据库王园 做好信息网络安全计划 嘉定区品质数据库服务有哪些 uuid在数据库是什么类型 部门网络安全使用承诺书 上海悦易网络技术有限公司中标 网络安全专业课程的 网络安全课程设计钓鱼网站 免费计算机网络技术专业论文 36号文网络安全 2020网络安全法处罚案例 李汉南 网络安全宣传周 手机请求服务器超时是什么意思 网站后台都有数据库吗 招聘软件开发乌鲁木齐 网络安全周年庆文案 电脑排版软件开发 桥心网络技术 包头网络安全等级保护 深圳自主可控软件开发价目表 上市公司软件开发排行 怎么解决csol无法连接服务器 重庆城口网上生鲜软件开发 互联网科技公司 图片 东莞商城软件开发编程
0