Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Feb 15, 2018
1 parent b0e7e8c commit ccd52c4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sigla-backend/README.md
@@ -0,0 +1,16 @@
# Liquibase configuration
==
#### _Per avviare una istanza di oracle_
```
sudo docker run -d --name oracle-xe -p 1521:1521 -v $PWD/initdb:/etc/entrypoint-initdb.d alexeiled/docker-oracle-xe-11g
```
#### _Cambiare la variabile di ambiente_
```
export SIGLA_CONNECTION_URL=jdbc:oracle:thin:@localhost:1521:xe
```
#### _Dalla directory sigla-ear lanciare il comando_
```
mvn wildfly:run
```
##**Esempi liquibase**
http://www.liquibase.org/quickstart.html
19 changes: 19 additions & 0 deletions sigla-backend/initdb/int-db.sql
@@ -0,0 +1,19 @@
-- CREATE TABLESPACE
CREATE TABLESPACE tbs_01 DATAFILE 'tbs_f2.dbf' SIZE 500M ONLINE;

-- USER SQL
CREATE USER "PCIR009" identified by dbform
DEFAULT TABLESPACE "TBS_01"
TEMPORARY TABLESPACE "TEMP"
ACCOUNT UNLOCK;

-- QUOTAS
ALTER USER "PCIR009" QUOTA UNLIMITED ON TBS_01;

-- ROLES
GRANT CONNECT, RESOURCE TO "PCIR009";

-- SYSTEM PRIVILEGES
GRANT CREATE ANY VIEW TO "PCIR009" WITH ADMIN OPTION;
GRANT SELECT ANY DICTIONARY TO "PCIR009";
GRANT EXECUTE ON DBMS_PIPE TO "PCIR009";

0 comments on commit ccd52c4

Please sign in to comment.