ในการกำหนดค่าฐานข้อมูล ONEWEB คุณต้องทำตามขั้นตอนด้านล่าง
ขั้นตอนที่ 1 สร้างสคีมาและให้สิทธิ์ ใช้รายละเอียดต่อไปนี้เพื่อสร้างสคีมาฐานข้อมูลบนเซิร์ฟเวอร์ postgresql
สร้าง schema สำหรับ ONEWEB Application โดยใช้สคริปต์ SQL Execute: create_schema.sql
สร้างการให้สิทธิ์ตามบทบาทสำหรับ ONEWEB Application โดยใช้สคริปต์ SQL Execute: create_role.sql
เปลี่ยนรหัสผ่านเป็นบทบาทของผู้ใช้โดยใช้สคริปต์ SQL Execute: alter_password.sql
ขั้นตอนที่ 2 การจำกัดสิทธิ์ของผู้ใช้ฐานข้อมูล แก้ไขสิทธิ์ของผู้ดูแลระบบและ search_path บนสคีมาสำหรับผู้ใช้แต่ละราย แก้ไขสิทธิ์สำหรับ ONEWEB Application โดยใช้สคริปต์ SQL Execute: alter_priviledge.sql
ขั้นตอนที่ 3 สร้างตารางและข้อมูลเริ่มต้น
Schema
Create table, initial data
eaf_master
create table structure and insert initial data.
ONEWEB.AR.4.0.19.12.base.postgres.sql
iam2
create table structure and insert initial data
ONEWEB.IAM.4.0.19.12.base.postgres.sql
pd
create table structure and insert initial data
ONEWEB.PD.4.0.0.19_12.base.postgres.sql
bpm
create table structure and insert initial data
ONEWEB.PR.4.0.0.19.12.base.postgres.sql
asp
create table structure and insert initial data
ONEWEB.ASP.4.0.19.12.base.postgres.sql
page
create table structure and insert initial data
ONEWEB.PGD.4.0.19.12.base.postgres.sql
dashboard
create table structure and insert initial data
ONEWEB.DSHB.4.0.19.12.base.postgres.sql
อ้างอิง: https://www.postgresql.org/docs/9.3/tutorial-install.html