oracle 11g连接hr模式,Oracle 11gR2中HR用户安装说明

1.脚本下载: 链接:

1,脚本放在这个目录下

$ORACLE_HOME/demo/schema/human_resources

hr_analz.sql

hr_code.sql

hr_comnt.sql

hr_cre.sql

hr_dn_c.sql

hr_dn_d.sql

hr_drop.sql

hr_idx.sql

hr_main.sql

hr_popul.sql

各个脚本的用途:

87ece3cce3e48a02d09525192b5bcdf1.png

2,执行hr_main.sql主脚本,这个脚本会调用其他脚本

[[email protected]]$ sqlplus / as sysdba

SQL> select * from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE    11.2.0.1.0      Production

TNS for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

5 rows selected.

SQL> @hr_main.sql

specify password for HR as parameter 1:

Enter value for 1: hr

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: oracle

specify log path as parameter 5:

Enter value for 5: $ORACLE_HOME/demo/schema/log/

....................

3,安装完成后,检查hr用户及该用户下创建的表

SQL> conn hr/hr

Connected.

SQL> SELECT table_name FROM user_tables;

TABLE_NAME

------------------------------

COUNTRIES

JOB_HISTORY

EMPLOYEES

JOBS

DEPARTMENTS

LOCATIONS

REGIONS

7 rows selected.

原文:https://www.cnblogs.com/renzmin/p/12074925.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值