Add ReadMe with install instructions

Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
This commit is contained in:
Gerald Venzl 2020-03-10 21:08:10 -07:00
parent 3271b0073e
commit ea7124de77

View File

@ -0,0 +1,45 @@
# Installation instructions
## Create schema user
Connect as an admin user such as `SYSTEM` or `SYS` and create a new schema user:
```sql
SQL> CREATE USER SAKILA IDENTIFIED BY sakila;
SQL> GRANT CONNECT, RESOURCE, CREATE VIEW, UNLIMITED TABLESPACE TO SAKILA;
```
## Create data model
Connect as the `SAKILA` user and run:
```sql
SQL> @oracle-sakila-schema.sql
```
## Load data
Connect as the `SAKILA` user and run:
```sql
SQL> @oracle-sakila-insert-data.sql
```
## Delete data
Connect as the `SAKILA` user and run:
```sql
SQL> @oracle-sakila-delete-data.sql
```
## Drop all objects
Connect as the `SAKILA` user and run:
```sql
SQL> @oracle-sakila-drop-objects.sql
```
## Remove schema user
Connect as an admin user such as `SYSTEM` or `SYS` and drop the schema user:
```sql
SQL> DROP USER SAKILA CASCADE;
```