c oracle fillschema,Oracle 19c create Sample Schemas
Oracle Database Sample Schemas
Copyright © 2016 Oracle
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1. Introduction
This repository contains a copy of the Oracle Database sample schemas
that are installed with Oracle Database Enterprise Edition 12c. These
schemas are used in Oracle documentation to show SQL language
concepts. The schemas themselves are documented in
Oracle Database Sample Schemas, 12c Release 1 (12.1).
The schemas are:
HR: Human Resources
OE: Order Entry
PM: Product Media
IX: Information Exchange
SH: Sales History
BI: Business Intelligence
Due to widespread dependence on these scripts in their current form,
no pull requests for changes can be accepted.
2. Installing the Samples
CAUTION: Do not install the samples if you already have user
accounts named HR, OE, PM, IX, SH or BI.
The installation scripts are designed to run on a database host with
Oracle Database 12.1. Privileged database access is required
during installation.
The instructions below work on Linux and similar operating systems.
Adjust them for other platforms.
An alternative to using this repository is to download and install the
Oracle Database 12c Release 1 Examples
package for your platform.
2.1. Clone this repository
Login as the Oracle Database software owner and clone the repository, for example
cd $HOME
git clone https://github.com/oracle/db-sample-schemas.git
or download and extract the ZIP file:
unzip db-sample-schemas.zip
The schema directory should be owned by the Oracle Database software owner.
2.2. Change directory
cd $HOME/db-sample-schemas
2.3. Change all embedded paths to match your working directory
The installation scripts need your current directory embedded in
various locations. Use a text editor or the following Perl script to
make the changes, replacing occurrences of the token __SUB__CWD__
with your current working directory, for example
/home/oracle/db-sample-schemas
perl -p -i.bak -e 's#/oracle/app/db/orcl20c/demo/sample/db-sample-schemas-19c#'$(pwd)'#g' *.sql */*.sql */*.dat
2.4. Set the Oracle environment
source /usr/local/bin/oraenv
Note: Oracle’s sqlldr utility needs to be in $PATH for correct
loading of the Product Media (PM) and Sales History (SH) schemas.
2.5. Run the installation script
Review the README.txt for information on passwords and
pre-requirements. In particular, verify your default and temporary
tablespace names, and choose a password for each schema.
Start SQL*Plus and run the top level installation script as
discussed in README.txt:
sqlplus system/systempw@connect_string
@mksample systempw syspw hrpw oepw pmpw ixpw shpw bipw users temp /your/path/to/log/ connect_string
Note: Use an absolute path and also append a trailing slash to the log directory name.
Use your current SYSTEM and SYS passwords, and also your actual
default and temporary tablespace names. The passwords for the new
HR, OE, PM, IX, SH and BI users will be set to the values you
specify.
Using a connect string permits connections to non-container databases and
pluggable database using the same syntax.
An example of connect strings for databases with services noncdb and pdb:
localhost:1521/noncdb
localhost:1521/pdb
2.6. Review the installation logs
Review output in your log directory for errors.
3. Removing the Samples
CAUTION: This will drop user accounts named HR, OE, PM, IX, SH and BI.
3.1. Set the Oracle environment
source /usr/local/bin/oraenv
3.2. Run the schema removal script
sqlplus system/systempw@connect_string
@drop_sch.sql
When prompted, enter the SYSTEM password, a log file name, and connect string.
c oracle fillschema,Oracle 19c create Sample Schemas相关推荐
- oracle用什么用户安装,Oracle 12cR2 安装示例用户(Sample Schemas)
1背景说明 Oracle 11gR2中示例用户的安装说明参考如下链接: Oracle 11gR2 中 示例用户 安装说明 Oracle 12cR2的示例用户说明可以参考官方手册: Introducti ...
- oracle19c配置scott创建,oracle 19c创建sample schema-HR,OE,SH等等
本文有两个目的: 1.数据库里面只安装HR用户, 19C也提供安装脚本: 2.一键安装HR.OE.SH等所有其他的用户,19C不在提供安装脚本,需要从GITHUB上下载,我已经下载完了,可以直接从本文 ...
- oracle 19c创建sample schema-HR,OE,SH等等
本文有两个目的: 1.数据库里面只安装HR用户, 19C也提供安装脚本: 2.一键安装HR.OE.SH等所有其他的用户,19C不在提供安装脚本,需要从GITHUB上下载,我已经下载完了,可以直接从本文 ...
- Oracle 12CR2 Install the Sample Schemas
在Oracle 12CR2中在创建数据库时不能安装sample schemas,Oracle将sample schemas的安装脚本存储在GitHub上了,可以通过以下链接地址进行下载 https:/ ...
- Oracle中,使 CREATE TABLE AS SELECT 支持ORDER BY
Oracle中,使 CREATE TABLE AS SELECT 支持ORDER BY 文章发表:kehui 发表日期:2002-01-21 阅读次数:1103 大家都知道,"CREA ...
- Oracle创建表语句(Create table)语法详解及示例
Oracle创建表语句(Create table)语法详解及示例 创建表(Create table)语法详解 1. ORACLE常用的字段类型ORACLE常用的字段类型有 VARCHAR2 (si ...
- c oracle 多条语句,Oracle 实践:如何编写一条 sql 语句获取数据表的全部索引信息(兼容 Oracle 19c、Oracle 11g)...
一.引言 部门使用 Oracle 已经有一些时日,最近在工作中遇到了这么一个需求: 我们希望拿到某些数据表的全部索引信息,对索引信息进行检查,检查是否有漏掉没有创建的索引 这个需求,核心的点在于,我需 ...
- Navicat 连接Oracle数据库提示cannot create oci handles问题解决方法
Navicat 连接Oracle数据库提示cannot create oci handles问题解决方法 早起登陆本地连接Oracle 数据库发现报错连接不上 显示如下图所示 解决办法 更新oci.d ...
- 从生命周期的角度谈谈 Oracle 12c, 18c, 19c 和 20c
转载: 原文链接:从生命周期的角度谈谈 Oracle 12c, 18c, 19c 和 20c 看到的博客链接:从生命周期的角度谈谈 Oracle 12c, 18c, 19c 和 20c 之前的博客我们 ...
最新文章
- CSDN与易观联合发布《2017-2018中国人工智能产业路线图》
- ThinkPHP的访问模式分为四种模式
- python微信聊天机器人_python实战项目,使用itchat模块制作微信聊天机器人
- 使用apache的HttpClient进行http通讯,隐藏的HTTP请求头部字段是如何自动被添加的
- Java基础——深入理解Java线程池
- XML约束——Schema约束
- 和菜鸟一起学linux总线驱动之初识spi驱动数据传输流程【转】
- 【HDOJ】1261 字串数【组合数学--排列+代数】
- 面向对象之软件需求中的体系构造
- 二阶微分方程降阶求法一阶技巧求法
- [高通MSM8953_64][Android10]移除开机进入充电界面
- CSDN 社区内容创作规范
- qq空间把android改成iphone,qq空间改iPhone6 Plus的教程
- android面试宝典!Android高级工程师面试实战,通用流行框架大全
- 图像处理:实现图片镜像(基于python)
- 大数据技术之数据采集篇
- Python爬虫之猫眼APP电影数据(十八)
- AOSP 8.0 系统启动之四ART虚拟机启动(一)
- 如何对网站排名进行优化?带你深入理解SEO
- 使用Bing转换器翻译IE 8中的语言
热门文章
- 疫情下的各国众生相-写于美股第五次熔断后
- 使用原生 Canvas 播放视频
- buu web:[极客大挑战 2019]LoveSQL
- mongodb生成自签名证书以及配置SSL以及mongo集群搭建(亲测有效)版本-5.0.6
- EasyTouch5插件
- QT应用编程:基于VLC开发音视频播放器(回调方式)
- Kobe- python数据类型的学习
- mysql out of memory 解决_mysqld-nt: Out of memory (Needed 1677720 bytes)解决方法
- python 矩量法_《电磁场与波-电磁材料及MATLAB计算》【价格 目录 书评 正版】_中国图书网...
- 实例:用C#.NET手把手教你做微信公众号开发(2)--普通消息处理之文本