Add ReadMe with install instructions
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
This commit is contained in:
parent
3271b0073e
commit
ea7124de77
45
jOOQ-examples/Sakila/oracle-sakila-db/README.md
Normal file
45
jOOQ-examples/Sakila/oracle-sakila-db/README.md
Normal 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;
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user