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 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均可的更多相关文章
- 在linux oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本
在linux.oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本 背景描写叙述: goldengate安装于/u01/ggs文件夹下 rhel5.5 ...
- Horizontal Toolbar With Navigational Buttons Form Sample For Oracle Forms 10g/11g
Sharing an Oracle Form Htoolbar.fmb for Oracle Forms 10g/11g containing Horizontal Toolbar canvas an ...
- Calling / Running a report in Oracle forms 10g / 11g
Calling / Running a report in Oracle forms 10g / 11g Below is the procedure to call a report in Orac ...
- oracle 10g 11g 12c区别
oracle 10g 11g 12c区别
- oracle 10g/11g 命令对照,日志文件夹对照
oracle 10g/11g 命令对照,日志文件夹对照 oracle 11g 中不再建议使用的命令 Deprecated Command Replacement Commands crs_st ...
- [Oracle]Oracle数据库任何用户密码都能以sysdba角色登入
* 本文相关环境:Windows 10,64位操作系统:Oracle 11gR2:toad for Oracle12.1 最近在学习Oracle数据库,使用Toad for Oracle来查看数据库的 ...
- oracle数据库之用户管理
转载 Oracle创建用户.角色.授权.建表 一.oracle数据库的权限系统分为系统权限与对象权限: 系统权限( database system privilege )可以让用户执行特定的命令集 ...
- 【Oracle】新建用户,删除用户,授权
一.创建用户 oracle内部有两个建好的用户:system和sys.用户可直接登录到system用户以创建其他用户,因为system具有创建别 的用户的 权限. 在安装oracle时,用户或系统管理 ...
- Oracle数据库任何用户密码都能以sysdba角色登入
* 本文相关环境:Windows 10,64位操作系统:Oracle 11gR2:toad for Oracle12.1 最近在学习Oracle数据库,使用Toad for Oracle来查看数据库的 ...
随机推荐
- lucene LZ4 会将doc存储在一个chunk里进行Lz4压缩 ES的_source便如此
默认情况下,Elasticsearch 用 JSON 字符串来表示文档主体保存在 _source 字段中.像其他保存的字段一样,_source 字段也会在写入硬盘前压缩.The _source is ...
- Laravel-自定全局函数
Laravel-自定全局函数 标签(空格分隔): php 习惯了 使用 ThinkPHP 框架,有一个公共方法类在代码编写上会快捷很多,所以有必要在此进行配置一番. 实现 在 app 创建文件夹 He ...
- 35.自己实现vector模板库myvector
myvector.h #pragma once //自己写的vector模板库 template <class T> class myvector { public: //构造 myvec ...
- 虚拟主机TOMCAT配置
在tomcat中添加虚拟主机: 编辑"tomcat\conf\server.xml",在"<Engine></Engine>"元素中新加 ...
- PostgreSQL Replication之第八章 与pgbouncer一起工作(4)
8.4 提升性能 从一开始考虑pgbouncer的时候,性能就是一个关键的因素.为了确保高性能,有些问题必须认真对待.首先,确保参与您设置的所有节点相互之间的距离较近.这对于降低网络往返时间有很多的帮 ...
- <Sicily>Threecolor problem
一.题目描述 有红黄蓝3种颜色的n个珠子,师傅希望悟空把它们排成红色珠子在左,黄色珠子居中,蓝色珠子在右的一行,然后告诉师傅,从左数起,第m个珠子是什么颜色.众所周知,悟空是只猴子,他没有这个耐心,你 ...
- 走进ReactiveCocoa的世界
在学习ReactiveCocoa之前,先学习一下概念 ReactiveCocoa 是一套开源的基于Cocoa的FRP框架 .FRP的全称是Functional Reactive Programming ...
- opencv数据结构与基本绘图
#include <opencv2\core\core.hpp>//核心组件 #include <opencv2\opencv.hpp>//GUI,包含媒体输入输出,视频捕捉. ...
- [ZJOI2012]旅游 对偶图 树的直径
Code: // luogu-judger-enable-o2 #include<cstdio> #include<iostream> #include<algorith ...
- mongodb 的查询深入剖析
db.表名.find({goods_id:3}); //查询出 goods_id 为 3 的数据 db.表名.find({cat_i ...