Skip to content

Commit 5d236bf

Browse files
authored
Merge pull request #4 from ChrisSaxonOra/customer_orders
Updated README.md
2 parents d7cb931 + 17e6f3f commit 5d236bf

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

README.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Oracle Database Sample Schemas
22

3-
Copyright (c) 2016 Oracle
3+
Copyright (c) 2019 Oracle
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the
@@ -24,10 +24,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424
## 1. Introduction
2525

2626
This repository contains a copy of the Oracle Database sample schemas
27-
that are installed with Oracle Database Enterprise Edition 12c. These
27+
that are installed with Oracle Database Enterprise Edition. These
2828
schemas are used in Oracle documentation to show SQL language
29-
concepts. The schemas themselves are documented in
30-
[Oracle Database Sample Schemas, 12c Release 1 (12.1)](http://docs.oracle.com/database/121/COMSC/toc.htm).
29+
concepts and other database features. The schemas themselves are
30+
documented in [Oracle Database Sample Schemas](https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=COMSC).
3131

3232
The schemas are:
3333

@@ -41,22 +41,24 @@ The schemas are:
4141
*Due to widespread dependence on these scripts in their current form,
4242
no pull requests for changes can be accepted.*
4343

44+
In addition, a new schema CO: [Customer Orders](https://github.com/oracle/db-sample-schemas/tree/master/customer_orders), is now also
45+
included in this repository. It is not automatically installed along with
46+
the rest of the schemas at this time. Follow instructions in that schema's
47+
[README](https://github.com/oracle/db-sample-schemas/blob/master/README.md) to install the CO schema.
48+
4449
## 2. Installing the Samples
4550

46-
*CAUTION*: Do not install the samples if you already have user
47-
accounts named HR, OE, PM, IX, SH or BI.
51+
*CAUTION*: The first step in installing sample schemas is to drop
52+
user accounts with the following names: HR, OE, PM, IX, SH and BI.
53+
Do not proceed with the installation if you have schemas with any
54+
of these names that you wish to keep.
4855

49-
The installation scripts are designed to run on a database host with
50-
Oracle Database 12.1. Privileged database access is required
51-
during installation.
56+
The installation scripts are designed to run on an Oracle Database.
57+
Privileged database access is required during installation.
5258

5359
The instructions below work on Linux and similar operating systems.
5460
Adjust them for other platforms.
5561

56-
An alternative to using this repository is to download and install the
57-
[Oracle Database 12c Release 1 Examples](http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html)
58-
package for your platform.
59-
6062
### 2.1. Clone this repository
6163

6264
Login as the Oracle Database software owner and clone the repository, for example
@@ -94,6 +96,9 @@ perl -p -i.bak -e 's#__SUB__CWD__#'$(pwd)'#g' *.sql */*.sql */*.dat
9496

9597
### 2.4. Set the Oracle environment
9698

99+
Skip this step when running on a client machine (one without an Oracle
100+
Database installed).
101+
97102
```shell
98103
source /usr/local/bin/oraenv
99104
```
@@ -122,6 +127,9 @@ default and temporary tablespace names. The passwords for the new
122127
HR, OE, PM, IX, SH and BI users will be set to the values you
123128
specify.
124129

130+
*Reminder*: currently the CO schema will not be installed as part of this
131+
process.
132+
125133
Using a connect string permits connections to non-container databases and
126134
pluggable database using the same syntax.
127135

@@ -141,6 +149,9 @@ Review output in your log directory for errors.
141149

142150
### 3.1. Set the Oracle environment
143151

152+
Skip this step when running on a client machine (one without an Oracle
153+
Database installed).
154+
144155
```shell
145156
source /usr/local/bin/oraenv
146157
```
@@ -153,3 +164,12 @@ sqlplus system/systempw@connect_string
153164
```
154165

155166
When prompted, enter the SYSTEM password, a log file name, and connect string.
167+
168+
### 3.3 Run the CO schema removal script
169+
170+
If you have installed the CO schema, run the following script to remove it.
171+
172+
```shell
173+
sqlplus system/systempw@connect_string
174+
@co_drop_user.sql
175+
```

0 commit comments

Comments
 (0)