Skip to content

Commit b594c53

Browse files
committed
Documentation updates
1 parent 9ce003d commit b594c53

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
- [Build Image](#build-image)
77
- [Run Container](#run-container)
88
- [Container Commands](#container-commands)
9-
- [Connecting](#connecting)
9+
- [Other](#other)
1010
- [SQL](#sql)
11+
- [APEX Install](#apex-install)
1112
- [SSH into Container](#ssh-into-container)
1213
- [OEM](#oem)
1314
- [Creating a PDB](#creating-a-pdb)
14-
- [Other](#other)
15+
- [`emp` and `dept` tables](#emp-and-dept-tables)
16+
- [Preserving `/opt/oracle/oradata` for Multiple Copies](#preserving-optoracleoradata-for-multiple-copies)
1517
- [Docker Developers](#docker-developers)
16-
- [Preserving `/opt/oracle/oradata` for Multiple Copies](#preserving-optoracleoradata-for-multiple-copies)
1718

1819
<!-- /TOC -->
1920

@@ -83,7 +84,7 @@ docker start oracle-xe
8384
docker stop -t 200 oracle-xe
8485
```
8586

86-
## Connecting
87+
## Other
8788

8889
### SQL
8990

@@ -96,9 +97,12 @@ sqlcl sys/Oracle18@localhost:32118/XE as sysdba
9697

9798
-- Connect to default PDB
9899
sqlcl sys/Oracle18@localhost:32118/XEPDB1 as sysdba
99-
100100
```
101101

102+
### APEX Install
103+
104+
An example to install APEX into the default container is available [here](docs/apex-install.md).
105+
102106
### SSH into Container
103107

104108
In some cases you may need to login to the server to modify or test something on the file system.
@@ -154,18 +158,14 @@ To connect to the new PDB :
154158
sqlcl sys/Oracle18@localhost:32118/XEPDB2 as sysdba
155159
```
156160

157-
## Other
161+
### `emp` and `dept` tables
158162

159163
Install `emp` and `dept` sample tables:</br>
160164

161165
`@https://raw.githubusercontent.com/OraOpenSource/OXAR/master/oracle/emp_dept.sql`
162166

163-
## Docker Developers
164-
165-
If you're interested in helping maintain this project check out [docker-dev](docs/docker-dev.md) document.
166-
167167

168-
## Preserving `/opt/oracle/oradata` for Multiple Copies
168+
### Preserving `/opt/oracle/oradata` for Multiple Copies
169169

170170
Each time you start a container that does has an empty `/opt/oracle/oradata` Oracle XE is configured and the data files are created for the CDB and one PDB (`XEPDB1`). If you plan to launch multiple separate containers for Oracle XE, it is unnecessary to spend this time waiting for the same base files to be created. The solution is fairly simple. It involves creating a sample/seed container, extracting the data files, then copying those data files each time you launch a new container for a new instance of Oracle XE. The following commands demonstrates how to do this:
171171

@@ -217,4 +217,8 @@ docker ps
217217
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
218218
69b52a37a1c6 oracle-xe:18c "/bin/sh -c 'exec ${…" 8 minutes ago Up 8 minutes (health: starting) 5500/tcp, 0.0.0.0:32182->1521/tcp oracle-xe02
219219
14eea4c699d3 oracle-xe:18c "/bin/sh -c 'exec ${…" 9 minutes ago Up 9 minutes (health: starting) 5500/tcp, 0.0.0.0:32181->1521/tcp oracle-xe01
220-
```
220+
```
221+
222+
## Docker Developers
223+
224+
If you're interested in helping maintain this project check out [docker-dev](docs/docker-dev.md) document.

docs/apex-install.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# How to Install APEX in PDB
22

3+
<!-- TOC -->
4+
5+
- [How to Install APEX in PDB](#how-to-install-apex-in-pdb)
6+
- [Assumptions](#assumptions)
7+
- [APEX Installation](#apex-installation)
8+
- [ORDS](#ords)
9+
10+
<!-- /TOC -->
11+
312
This documentation will walk through how to create a new PDB and install it. Please ensure that you have [downloaded](https://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html) the latest copy of APEX.
413

5-
Assumptions:
14+
## Assumptions
615

716
Item | Description
817
--- | ---
@@ -11,6 +20,9 @@ APEX Version | `18.2`. The zip file is located in:
1120
PDB | `XEPDB1` (_default PDB that comes with XE_)
1221
APEX Admin Password: `Oradoc_db1`
1322

23+
24+
## APEX Installation
25+
1426
```bash
1527
# Copy APEX zip file to container
1628
docker cp ~/docker/files/apex/apex_18.2_en.zip oracle-xe:/tmp
@@ -34,4 +46,8 @@ cd /tmp
3446
rm -rf apex*
3547

3648
exit
37-
```
49+
```
50+
51+
## ORDS
52+
53+
[docker-ords](https://github.com/martindsouza/docker-ords) contains instructions on how to setup a docker instance of ORDS

0 commit comments

Comments
 (0)