博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle HR 样例数据库用户的建立
阅读量:7210 次
发布时间:2019-06-29

本文共 1492 字,大约阅读时间需要 4 分钟。

转自:https://blog.csdn.net/ecjtuxuan/article/details/6365294

先将附件上的 10 个 .sql 文件放入这个路径中 :

下载地址为: 

链接: 密码:5cw7(永久有效)

E:/oracle/product/10.1.0/db_1/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.

 

然后在 SQL*PLUS 上执行 hr_main.sql 这个文件。

a)  SQL>@e:/oracle/product/10.1.0/db_1/demo/schema/human_resources/hr_main.sql

b)  Specify password for HR as parameter 1:

c)  Enter value for 1: hr

d)  Specify default tablespeace for HR as parameter 2:

e)  Enter value for 2: users

f)  Specify temporary tablespace for HR as parameter 3:

g)  Enter value for 3: temp

h)  Specify password for SYS as parameter 4:

i)  Enter value for 4: welcome1

j)  Specify log path as parameter 5:

k)  Enter value for 5: C:/oracle/product/10.1.0/db_1/RDBMS/log

 

可以通过此命令来查看 HR 用户是否已经建立成功。

desc dba_users;

Select username, account_status from dba_users;

转载于:https://www.cnblogs.com/changjy/p/9559860.html

你可能感兴趣的文章
树的子结构
查看>>
通过Camera进行拍照
查看>>
hdu1867之KMP
查看>>
Java中System.getProperty()的参数
查看>>
pthread_cond_wait() 函数的使用
查看>>
Crypto API
查看>>
读书笔记2013第10本:《学得少却考得好Learn More Study Less》
查看>>
【c++】指针参数是如何传递内存的
查看>>
装饰模式(Decorator Pattern)--------结构型模式
查看>>
微信公众平台消息接口PHP版
查看>>
[Cocos2d-x For WP8]矩形碰撞检测
查看>>
Java Bad version
查看>>
android的listview组件
查看>>
网页 内部转发和网址输入不同
查看>>
matlab中find函数的使用说明
查看>>
这是一张很有趣的图片, 通常女性会先看到月亮, 男性会先看到人脸. 如果相反, 表示你体内的异性荷尔蒙偏高哦!...
查看>>
SGU 403 Game with points
查看>>
2014中国软件开发者调查(一):Java最受欢迎 第二语言JS使用比例最高
查看>>
三级管的原理
查看>>
Java基础—ClassLoader的理解
查看>>