1Z0-051-Oracle的 HR 样例用户的建立
2016-06-29 19:02
489 查看
Oracle的 HR 样例用户的建立
1、oracle 11g
中hr用户需要单独安装,比较麻烦,书本上学习例子很多都是HR用户的案例 ,下载后释放到
$ORACLE_HOME/demo/schema/human_resources/目录下。 Script Name
2、[oracle@OCM]$sqlplus
/ as sysdba; 3、执行$ORACLE_HOME/demo/schema/human_resources/下的hr_main.sqlSQL>@?/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 &passnew 1: CREATE USER hr IDENTIFIED BY dbbocom User created. old 1: ALTER USER hr DEFAULT TABLESPACE &tbsnew 1: ALTER USER hr DEFAULT TABLESPACE usersold 2: QUOTA UNLIMITED ON &tbsnew 2: QUOTA UNLIMITED ON users User altered. old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbsnew 1: ALTER USER hr TEMPORARY TABLESPACE temp…PL/SQL procedure
successfully completed....PL/SQL procedure
successfully completed. 检查是否正确安装完毕SQL> show userUSER is
"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. |
/ as sysdba; 3、执行$ORACLE_HOME/demo/schema/human_resources/下的hr_main.sqlSQL>@?/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 &passnew 1: CREATE USER hr IDENTIFIED BY dbbocom User created. old 1: ALTER USER hr DEFAULT TABLESPACE &tbsnew 1: ALTER USER hr DEFAULT TABLESPACE usersold 2: QUOTA UNLIMITED ON &tbsnew 2: QUOTA UNLIMITED ON users User altered. old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbsnew 1: ALTER USER hr TEMPORARY TABLESPACE temp…PL/SQL procedure
successfully completed....PL/SQL procedure
successfully completed. 检查是否正确安装完毕SQL> show userUSER is
"HR"
相关文章推荐
- 阿里资深HR教你一分钟叩开阿里巴巴大门
- Oracle 11.2 安装Oracle 11.1的HR schoma
- HR人事管理系统对企业有何好处
- 中服人事合同管理加强企业合同管理意识
- 中服软件2014年终总结大会圆满落幕
- 【招聘】招聘专员【北京】
- 【招聘】招聘专员【北京朝阳】
- 利用HTML5技术通过百度地图实现网页定位签到考勤(原创)
- SAP HR ABAP 选择屏幕常用操作
- 【享手册】SAP初级学习者一句话入门7- HR【完结篇】
- Oracle创建HR示例模式
- 招人感受
- 招人感受2
- ABAP HR 通过信息类型修改人员信息
- 每个程序员都应该知道的福利
- HR人员信息、分配信息和地址信息sql
- HR 模式
- 我对“生产管理”的理解
- 天数的计算
- 迅雷HR面