Changes between Initial Version and Version 1 of i2b2 HowTo Create a Project


Ignore:
Timestamp:
07/16/13 08:36:07 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Create a Project

    v1 v1  
     1= i2b2 - Create Project
     2
     3This is the procedure to create a new project in i2b2.  Most of the process is carried out by Jeff's create project scripts, but there is some preparation work that could perhaps be incorporated into the scripts at some point.
     4
     5== Procesdure
     6
     7=== 1. Create Databases
     8
     9Run the following SQL script.  Change [!ProjectName] to be the actual project name:
     10
     11  {{{
     12  #!sql
     13CREATE DATABASE [ProjectName]_MetaData
     14GO
     15CREATE DATABASE [ProjectName]_Data
     16GO
     17CREATE DATABASE [ProjectName]_WorkData
     18GO
     19
     20CREATE LOGIN [ProjectName]_MetaData WITH PASSWORD = '[ProjectName]_MetaData';
     21GO
     22CREATE LOGIN [ProjectName]_Data WITH PASSWORD = '[ProjectName]_Data';
     23GO
     24CREATE LOGIN [ProjectName]_WorkData WITH PASSWORD = '[ProjectName]_WorkData';
     25GO
     26
     27USE [ProjectName]_MetaData
     28CREATE USER [ProjectName]_MetaData FOR LOGIN [ProjectName]_MetaData
     29GO
     30EXEC sp_addrolemember N'db_owner', N'[ProjectName]_MetaData'
     31GO
     32
     33USE [ProjectName]_Data
     34CREATE USER [ProjectName]_Data FOR LOGIN [ProjectName]_Data
     35GO
     36EXEC sp_addrolemember N'db_owner', N'[ProjectName]_Data'
     37GO
     38
     39USE [ProjectName]_WorkData
     40CREATE USER [ProjectName]_WorkData FOR LOGIN [ProjectName]_WorkData
     41GO
     42EXEC sp_addrolemember N'db_owner', N'[ProjectName]_WorkData'
     43GO
     44
     45  }}}
     46
     47
     48=== 2. Run Project Creation scripts
     49
     50i. As the scripts have some hard coded elements it is necessary to take a copy of the procedures directory and change the hard coded values.  Therefore, copy the /usr/local/i2b2-procedures-1.1-production directory.
     51i. In the new procedures directory, amend the file config/config.properties.  The following values need amending.
     52
     53  * project.name
     54  * crc.ds.jndi.name
     55  * ont.ds.jndi.name
     56  * work.ds.jndi.name
     57  * db.project.data.databasename
     58  * db.project.data.username
     59  * db.project.data.password
     60  * db.project.meta.databasename
     61  * db.project.meta.username
     62  * db.project.meta.password
     63  * db.project.work.databasename
     64  * db.project.work.username
     65  * db.project.work.password
     66  * import.user
     67  * import.password
     68  * import.pmURL
     69  * import.domainID
     70  * import.projectID
     71
     72iii. In the same directory, edit the file defaults.sh.