Oracle HR 样例用户的建立 10g,11g均可

先将附件(见文章尾部)上的 10 个 .sql 文件放入这个路径中 :

$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.

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

a)  SQL>@?/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:runner

j)  Specify log path as parameter 5:

k)  Enter value for 5: C:/oracle/product/10.1.0/db_1/RDBMS/log  (如果是Linux下的话就$ORACLE_HOME/rdbms/log)

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

desc dba_users;

Select username, account_status from dba_users;

附件地址:

http://download.csdn.net/detail/fuzhangpeng/7712823

Oracle HR 样例用户的建立 10g,11g均可

时间: 2024-07-31 11:54:37

Oracle HR 样例用户的建立 10g,11g均可的相关文章

Oracle HR 例子用户的建立 10g,11g均可

先将附件(见文章尾部)上的 10 个 .sql 文件放入这个路径中 : $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 comme

C#调用 Oracle 存储过程样例代码

-- 建表CREATE TABLE sale_report (     sale_date DATE NOT NULL ,     sale_item VARCHAR(2) NOT NULL ,      sale_money DECIMAL(10,2) NOT NULL,      PRIMARY KEY(sale_date, sale_item)); -- 測试数据DECLAREv_begin_day DATE;v_end_day DATE;BEGIN v_begin_day := TO_D

一则简单演示样例看Oracle的“无私”健壮性

Oracle的强大之处就在于他能总帮助让你选择正确的运行计划,即使你给了它错误的指示. 实验: 1. 创建測试表: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmlzYWw=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" > 收集统计信息: 创建B树索引: 2. 运行select id from tbl_plan;查看它的运行计划: 由于创建了

[转]Oracle 10g/11g 密码策略 用户口令 大小写敏感

一. Oracle 10g 1.1 说明 在Oracle 10g下,默认情况下,密码是不区分大小写的.这个是由于密码文件的默认参数有关. C:\Users\Administrator.DavidDai>orapwd Usage: orapwd file=<fname>entries=<users> force=<y/n> ignorecase=<y/n>nosysdba=<y/n> where file - name of password

《oracle 9i 升级 10g 后续 - 建立 10g oracle enterprise manager》

摘要:<oracle 9i 升级 10g 后续 - 建立 10g oracle enterprise manager> 2009/6/21 直接安装 oracle 10g,默认会建立与9i不同的管理界面 今天想试用一下,却不知如何下手,请教google大神后,重建 oem. --------------------------------------------------------------------------------- 参考文章: http://hi.baidu.com/ter

Oracle 表空间和用户权限管理

一. 表空间 Oracle数据库包含逻辑结构和物理结构. 数据库的物理结构指的是构成数据库的一组操作系统文件. 数据库的逻辑结构是指描述数据组织方式的一组逻辑概念以及它们之间的关系. 表空间是数据库逻辑结构的一个重要组件. 表空间可以存放各种应用对象,如表.索引等. 而每一个表空间由一个或多个数据文件组成. 1. 表空间的分类 表空间可分为3类: 永久性表空间:一般保存表.上天.过程和索引等数据.system.sysaux.users.example表空间是默认安装的. 临时性表空间:只用于保存

Oracle 表空间和用户权限管理【转】

一. 表空间 Oracle数据库包含逻辑结构和物理结构. 数据库的物理结构指的是构成数据库的一组操作系统文件. 数据库的逻辑结构是指描述数据组织方式的一组逻辑概念以及它们之间的关系. 表空间是数据库逻辑结构的一个重要组件. 表空间可以存放各种应用对象,如表.索引等. 而每一个表空间由一个或多个数据文件组成. 1. 表空间的分类 表空间可分为3类: 永久性表空间:一般保存表.上天.过程和索引等数据.system.sysaux.users.example表空间是默认安装的. 临时性表空间:只用于保存

转:LR性能测试结果样例分析 测试结果分析

LoadRunner性能测试结果分析是个复杂的过程,通常可以从结果摘要.并发数.平均事务响应时间.每秒点击数.业务成功率.系统资源.网页细分图.Web服务器资源.数据库服务器资源等几个方面分析,如图1- 1所示.性能测试结果分析的一个重要的原则是以性能测试的需求指标为导向.我们回顾一下本次性能测试的目的,正如 所列的指标,本次测试的要求是验证在30分钟内完成2000次用户登录系统,然后进行考勤业务,最后退出,在业务操作过程中页面的响应时间不超过3秒,并且服务器的CPU使用率.内存使用率分别不超过

javaEE mvc样例具体解释

一个不错的样例值得细细品味: 以下依照包顺序将代码贴出来供大家參考: IEmpDAO package org.lzch.dao; import java.util.List; import org.lzch.vo.Emp; public interface IEmpDAO { public boolean doCreate(Emp emp)throws Exception; public boolean doUpdate(Emp emp)throws Exception; public bool