Commit d688472e authored by CED SA's avatar CED SA

adding ambiente_svil_prod

parent ba413dfa
This diff is collapsed.
-- SCRIPT CREAZIONE DB SICRAWEB per PostgreSQL
-- CREAZIONE TABLESPACES
--
-- Per creare i database all'interno di un tablespace separato procedere come segue
-- NOTA. Sotto Windows si consiglia di utilizzare i tablespace solo se strettamente necessario (per evitare problemi legati alle "junction")
--
-- 1) creare la directory del tablespace ed assegnarla all'utente 'postgres'
--
-- 2) creare il tablespace eseguendo il seguente statement:
--
-- Linux -- PostgreSQL 9.6:
mkdir -p /var/lib/pgsql/9.3/data/tablespaces/sicraweb
CREATE TABLESPACE sicraweb LOCATION '/opt/PostgreSQL/9.6/data/pg_tblspc/sicraweb';
mkdir -p /var/lib/pgsql/9.3/data/tablespaces/sicraweb_test
CREATE TABLESPACE sicraweb_test LOCATION '/opt/PostgreSQL/9.6/data/pg_tblspc/sicraweb_test';
-- CREAZIONE UTENTI WINDOWS - LINUX
--
CREATE ROLE sicraweb LOGIN PASSWORD '' SUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
CREATE ROLE sicraweb_test LOGIN PASSWORD '' SUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
PostgreSQL 9.3:
-- CREAZIONE DB WINDOWS
--
CREATE DATABASE sicraweb WITH ENCODING='UTF8' OWNER=sicraweb TEMPLATE template0 LC_COLLATE='C' LC_CTYPE='C';
CREATE DATABASE sicraweb_test WITH ENCODING='UTF8' OWNER=sicraweb_test TEMPLATE template0 LC_COLLATE='C' LC_CTYPE='C';
-- CREAZIONE DB LINUX
--
CREATE DATABASE sicraweb WITH ENCODING='UTF8' OWNER=sicraweb TABLESPACE=sicraweb TEMPLATE template0 LC_COLLATE='C' LC_CTYPE='C';
CREATE DATABASE sicraweb_test WITH ENCODING='UTF8' OWNER=sicraweb_test TABLESPACE=sicraweb_test TEMPLATE template0 LC_COLLATE='C' LC_CTYPE='C';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment