1
1
# Oracle Database Sample Schemas
2
2
3
- Copyright (c) 2016 Oracle
3
+ Copyright (c) 2019 Oracle
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining
6
6
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.
24
24
## 1. Introduction
25
25
26
26
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
28
28
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) .
31
31
32
32
The schemas are:
33
33
@@ -41,22 +41,24 @@ The schemas are:
41
41
* Due to widespread dependence on these scripts in their current form,
42
42
no pull requests for changes can be accepted.*
43
43
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
+
44
49
## 2. Installing the Samples
45
50
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.
48
55
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.
52
58
53
59
The instructions below work on Linux and similar operating systems.
54
60
Adjust them for other platforms.
55
61
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
-
60
62
### 2.1. Clone this repository
61
63
62
64
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
94
96
95
97
### 2.4. Set the Oracle environment
96
98
99
+ Skip this step when running on a client machine (one without an Oracle
100
+ Database installed).
101
+
97
102
``` shell
98
103
source /usr/local/bin/oraenv
99
104
```
@@ -122,6 +127,9 @@ default and temporary tablespace names. The passwords for the new
122
127
HR, OE, PM, IX, SH and BI users will be set to the values you
123
128
specify.
124
129
130
+ * Reminder* : currently the CO schema will not be installed as part of this
131
+ process.
132
+
125
133
Using a connect string permits connections to non-container databases and
126
134
pluggable database using the same syntax.
127
135
@@ -141,6 +149,9 @@ Review output in your log directory for errors.
141
149
142
150
### 3.1. Set the Oracle environment
143
151
152
+ Skip this step when running on a client machine (one without an Oracle
153
+ Database installed).
154
+
144
155
``` shell
145
156
source /usr/local/bin/oraenv
146
157
```
@@ -153,3 +164,12 @@ sqlplus system/systempw@connect_string
153
164
```
154
165
155
166
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