In this article:
Before setting up the list of repositories, see constraints when working with BI Server on Linux.
The list of repositories generated using the repository setup wizard in the web application or in the Parameter dialog box in the desktop application is saved in the operating system registry. The operating system user, who works with the list of repositories, must have permissions to make changes in the registry. Depending on operating system bitness and the platform in use, the repository settings path may differ:
[HKEY_CURRENT_USER\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Metabases] - repository settings for the current user, regardless of operating system bitness.
[HKEY_LOCAL_MACHINE\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Metabases] - repository settings when bitness of Foresight Analytics Platform matches with that of the operating system. For all users.
To set up a specific repository, use the registry section:
[HKEY_CURRENT_USER\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Metabases\<repository identifier>] - specific repository settings for the current user, regardless of the system bitness.
[HKEY_LOCAL_MACHINE\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\Metabases\<repository identifier>] - specific repository settings when bitness of Foresight Analytics Platform matches with that of the operating system. For all users.
Available parameters of this section are identical to the attributes available to create the Metabases.xml file.
For details about creating a list of repositories in the Linux OS registry, see the Configuration and Setup section.
To set up repository connection in Linux OS, create the Metabases.xml file in the folder /opt/foresight/fp10.x-biserver/etc.
To set up the list of repositories on several workstations in Windows OS, use the Metabases.xml file located at a network or a local resource. The path to file must be written in the system registry of workstations. To do this, create the Path string parameter with the value of path to the folder with the Metabases.xml file, in the registry key[HKEY_LOCAL_MACHINE\Software\Foresight\Foresight Analytics Platform\10.0\Metabases]. Changed repository connection settings in the Metabases.xml file are applied automatically on the workstations that are set up to this file.
Repositories that are set via the Metabases.xml file are unavailable for editing by means of the repository setup wizard in the web application or the Parameters dialog box in the desktop application.
NOTE. When repository names specified in the Metabases.xml file and in the repository setup wizard or the Parameters dialog box match, the list displays both repositories.
The Metabases.xml file should include the <PP> section including the <Metabases> section. The <Metabases> section is a list of repositories. Each repository settings are set in the section, which name corresponds to repository identifier. The <LogonData> and <Credentials> sections are created for each repository.
The example of the Metabases.xml file with settings of the REPOSITORY_ID and WAREHOUSE repositories:
<PP>
<Metabases>
<REPOSITORY_ID Name="REPOSITORY_ID" Authentication="1" Driver="POSTGRES" Package="STANDARDSECURITYPACKAGE" DebugMode="1">
<LogonData DATABASE="DATABASE_NAME" SERVER="SERVER_DATABASE"/>
<Credentials Authentication="1"/>
</REPOSITORY_ID>
<WAREHOUSE Name="WAREHOUSE" Authentication="1" Driver="MSSQL2012" Package="STANDARDSECURITYPACKAGE" DebugMode="1">
<LogonData DATABASE="DATABASE_NAME_MSSQL" SERVER="SERVER_DATABASE_MSSQL"/>
<Credentials Authentication="1"/>
</WAREHOUSE>
</Metabases>
</PP>
Below is a list of available repository settings:
Attributes | Description |
Name | Repository name. |
Authentication | Authentication type:
NOTE. The role authentication type is outdated. It is kept for compatibility with previous versions.
To use this authentication type, see the Setting Up Login via External Services section. If this authentication type is used, also set the OAuthService attribute. NOTE. When executing authorization in the web application, authentication type is determined with BI server settings. If a default repository is set using the id attribute and an authentication type is set using the authentication attribute in the PP.xml file in the <metabase> section, the specified authentication type is applied for this repository regardless of BI server settings. |
OAuthService | Parameters of authorization via the OAuth/OpenID Connect protocol if the Authentication attribute is set to 7:
If the service that is not contained in the Providers parameter is used as a parameter value, automatic redirection is not executed.
NOTE. When the user logs in to the system user name obtained from the external service is checked taking into account the format specified in the PPUserNameFormat parameter. If the user with the specified name is not found in the security manager, a temporary user is created in the Users group. The temporary user has privileges of the Users group and is deleted after the current session is timed-out. In this case DBMS connection is established using a common technological account.
Optional parameter. |
Driver | DBMS identifier. |
Package | Security package type:
|
DebugMode | Assembly caching type:
|
DL | Lazy loading of descriptors:
For details about lazy loading of descriptors see the Setting Up Repository Connection section. |
CompileAssemblyOnly | Indicates whether forms and units can be compiled outside assemblies:
|
VcsLocalPath and VcsStoredPath | The path to the local folder with object files if the repository is added to the GIT version control system. Equal values are specified for attributes. |
VcsName | Version control system type. It is relevant if a repository is added to the Git version control system. Specify Git as attribute value. |
The section contains repository connection parameters:
Attributes | Description |
DATABASE and DATABASE_ONLY | Identifier of the database, to which the default connection is executed. Database identifier should match with repository identifier. |
SCHEMA_ONLY | Default schema identifier. The default schema for Microsoft SQL Server is "dbo" and for PostgreSQL is "public". If a custom schema used as a default schema was created during DBMS back end preparation, specify it. Custom schema identifier can also be inserted after a point after database identifier in the DATABASE and DATABASE_ONLY attribute, for example, REPOSITORY_ID.myschema. |
SERVER | IP address or DNS name, with which the server with connected database (repository) is registered. The parameter is available if the driver type is selected: Oracle, Microsoft SQL Server 2008, 2012\2014\2016, ODBC, Teradata, PostgreSQL. |
CASESENSITIVE | Indicates whether case is taken into account when working with DBMS:
The parameter is available if the driver type is selected: Microsoft SQL Server 2008, 2012\2014\2016, ODBC or PostgreSQL. NOTE. When preparing PostgreSQL DBMS back end, parameters should be set in upper case. To connect to DBMS correctly, use the parameter with the true value. |
PQGSSAPI | Indicates whether PostgreSQL DBMS server authentication is used based on GSS API:
GSS API is used together with the Kerberos service specified in the PQKRBSRVNAME attriute. GSS API enables the user to use various Kerberos implementations without changing application code. |
PQKRBSRVNAME | Kerberos server name that is set in PostgreSQL DBMS server settings. To use the Kerberos service, the PQGSSAPI attribute should be set to True. |
SUPPORTBINARYPROTOCOL | Indicates whether binary queries are used for working with PostgreSQL DBMS server:
|
USEUPN | Indicates whether domain is taken into account during domain user connection:
The parameter is available if the PostgreSQL driver type is selected. |
The section contains user credentials saving parameters used during database connection:
Attributes | Description |
Authentication | Authentication type specified in the Authentication attribute for repository. |
Below is a list of identifiers of the drivers that can be used to set up various repository objects. Identifiers are used by various properties on setting up objects by means of Fore macros and also on creating a list of repositories in the Metabases.xml file:
Identifier | DBMS driver |
ORCL8 |
Oracle |
MSSQL2008 |
Microsoft SQL Server 2008 |
MSSQL2012 |
Microsoft SQL Server 2012\2014\2016\2017 |
MSSQL2012ODBC |
Microsoft SQL Server (ODBC) |
OLEDB(ODBC HIVE) |
OLE DB (ODBC HIVE) |
OLEDB(DB2) |
OLE DB (DB2) |
OLEDB(ODBC) |
OLE DB (ODBC) |
OLEDB(VISTADB) |
OLE DB (VISTADB) |
OLEDB |
OLE DB provider |
DB2 |
Relational DB2 database |
TRDT |
Teradata |
POSTGRES |
PostgreSQL/Postgres Pro |
POSTGRES(NO_LO) |
Greenplum/Pivotal HD Hawq |
VERTICA |
HP Vertica |
ODBC |
Generic ODBC |
ODBC(CLICKHOUSE) |
ClickHouse (ODBC) |
NOTE. The number of available drivers may differ for different repository objects.
See also:
Setting Up Repository Access | Setting Up Repository Connection