-
Notifications
You must be signed in to change notification settings - Fork 21
Home
Yuyi Guo edited this page Jan 16, 2020
·
8 revisions
Welcome to the DBS wiki!
- Create a set of db accounts, please see instructions https://cern.service-now.com/service-portal/article.do?n=KB0000829
- cms_x_y_owner
- cms_x_y_admin
- cms_x_y_writer
- cms_x_y_reader You may define x or y to whatever is meaningful to you. The important here is that you have four accounts: owner, admin, writer and reader.
- edit https://github.com/dmwm/DBS/blob/master/Schema/DDL/create-oracle-schema.sql You need to edit this file to create new roles and assign them the accounts you ask the DBA created for you. Note you have to modify the create-oracle-schema.sql to get unique roles for your database. Fail to do so, the script will not run.
- Logging to the cms_x_y_owner account and run create-oracle-schema.sql.
- Prepare the db secrets file DBSSecrets.py
dbs3_xy_db = {'connectUrl' : { 'reader' : 'oracle://cms_x_y_reader:pd1@db_server_name', 'writer' : 'oracle://cms_x_y_writer:pd2@db_server_name' }, 'databaseOwner' : 'cms_x_y_owner' }
-
save DBSSecrets.py in auth/dbs
-
in /config/dbs, modify DBS.py to use the proper accounts defined DBSSecrets.py