# How to setup Oracle DB for GRAVITY
## Create DB user for GRAVITY
```
CREATE USER gravity_test IDENTIFIED BY gravity_psw;
GRANT CONNECT TO gravity_test;
GRANT CREATE SESSION TO gravity_test;
GRANT UNLIMITED TABLESPACE TO gravity_test;
GRANT CREATE SEQUENCE TO gravity_test;
GRANT CREATE TABLE TO gravity_test;
```
## Configure DB access for the application
```
spring.datasource.url=jdbc:oracle:thin:@HOST:1521:SID
spring.datasource.username=gravity_test
spring.datasource.password=gravity_psw
```
## JAR execution example
```
java -jar gravity-server-1.9.2.jar --spring.datasource.url=jdbc:oracle:thin:@dbserver:1521:gravitydb --spring.datasource.username=gravity_test --spring.datasource.password=gravity_psw
```