Using 4.8.1 Datalink Arno Rouschen Blaise Team IBUC 2009 - Riga, Latvia.

Slides:



Advertisements
Similar presentations
Implementing Tableau Server in an Enterprise Environment
Advertisements

Chapter 1: The Database Environment
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Little Used, but Powerful Features with GP Cathy Fregelette, CPA, PMP Practice Manager BroadPoint Technologies September 20, 2012.
Moving to a Centralized Database for Surveys in Blaise at NASS Roger Schou National Agricultural Statistics Service IBUC XII Riga, Latvia.
Chapter 20 Oracle Secure Backup.
Database System Concepts and Architecture
Chapter 9: The Client/Server Database Environment
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Enhancing Spotfire with the Power of R
© Tally Solutions Pvt. Ltd. All Rights Reserved 1 Shoper 7.2 Interface with Tally.ERP 9 January 2010.
Reporting Services – Data Driven Subscriptions
WSUS Presented by: Nada Abdullah Ahmed.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
Active Directory: Final Solution to Enterprise System Integration
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Overview Distributed vs. decentralized Why distributed databases
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Maintaining and Updating Windows Server 2008
1 Client/Server Database Tutorial. SQL Server Connection through MS Access FACBUSAD1 SQL server MS Access MGD B106 Computer or your own PC Remote SQL.
DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
The Client/Server Database Environment
MiVoice Office v MiVoice Office v6.0 is mainly a service enhancement release, rather than a user feature rich enhancement release.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Overview of SQL Server Alka Arora.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Database Design for DNN Developers Sebastian Leupold.
Database Design - Lecture 1
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
8-1 3 Oracle Data Integrator Topology: Connecting to the World.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Module 7: Fundamentals of Administering Windows Server 2008.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
Siebel 8.0 Module 2: Overview of EIM Processing Integrating Siebel Applications.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Michele Caselle INFN - BariITS Meeting 4 Jun 2002 LabVIEW&Windows – MySQL interface  SPD database general architecture  LabVIEW – MySQL interface. 
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
Linux Operations and Administration
ViaSQL Transfer. Viaserv, Inc. Transfer – 2 The ViaSQL Transfer n Available only with ViaSQL Integrator n Move data between OS/390 and a LAN database.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
Maintaining and Updating Windows Server 2008 Lesson 8.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
ASP.NET Programming with C# and SQL Server First Edition
Data Virtualization Demoette… ODBC Clients
Managing, Storing, and Executing DTS Packages
Y.-H. Chen International College Ming-Chuan University Fall, 2004
DBMS & TPS Barbara Russell MBA 624.
The Client/Server Database Environment
The Client/Server Database Environment
Introduction to SQL Server 2000 Security
ICT Database Lesson 1 What is a Database?.
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

Using Datalink Arno Rouschen Blaise Team IBUC Riga, Latvia

Overview Datalink Concepts Generic BOI files Using Data Centre Playing with data; Exploring features BOI Data Storage Stream versus table data BOI files and Data Servers Pitfalls and recommendations Versioning and migration

Blaise Datalink Concepts Based on Microsoft OLE DB technology Blaise OLE DB Interface file Data file within Blaise Defines link to data that is stored elsewhere Oracle, SQL Server, MySQL, MS Access... Can be used with all Blaise tools, like DEP, Blaise Internet, Manipula, Data Viewer

Blaise Datalink History Blaise 4.5 / BCP 1 (2001) Existing table Blaise 4.6 / BCP 2 (2003) Existing table / based on Blaise data model Blaise 4.7 Enterprise (2005) Customizable BOI files, select statements, referencing other data files Blaise 4.8 Enterprise (2007): JOINKEY support, Data Server (2008): Generic storage, versioning (2009): Bulk insert, synchronization

Data file type available in Blaise Extension.BOI Contains logical definitions; no data Connection information Database tables to be accessed Field mappings to be used Runtime settings and more Has an associated Blaise meta file (.bmi) Blaise OLE DB Interface File

Blaise OLE DB Tools Blaise OLE DB Toolbox (since 4.6) Blaise OLE DB Mapping Wizard Blaise OLE DB Interface Create Wizard Blaise OLE DB Tables Create Wizard Blaise OLE DB Command Builder (4.6) Blaise OLE DB Workshop (4.7) Blaise Data Centre (4.8.1)

BOI file types Simple (data only) BOI file Contains just one table definition Can be used for lookups or exports Full BOI file Created based on Blaise data model BDB equivalent; stores all data, including status, remarks, error information, etc. Used to store questionnaire data in external db BOI referencing another data file Links to BDB, another BOI or an ASCII file Used within Blaise Internet for security reasons Demo 1: Creating a BOI file for an existing database table

Data Partition Types Determines structure how Blaise data will be stored in the OLE DB data source Flat, no blocks Flat, blocks; table for each block type In depth; field, status, value In depth text; field; status; value as text Stream; stream of data per record Demo 2: Creating a BOI file for a Blaise data model

Goals Store questionnaire data of multiple surveys in a centralized input data store Share database tables as much as possible between surveys Less tables in database; reduce administration burden Generic table structures; uniform data access Provide an easy interface to existing in house systems 9 Generic BOI files (4.8.1)

Non-generic Tailor made for data model Each data model has own set of tables Database tables are not reusable Optimized table and column structure Primary key of data model Generic Reuse database tables as much as possible Have fixed predefined tables and columns Common primary key Support for meta and data versioning 10 Generic BOI files – Non-generic vs Generic

Generic BOI files – Table Access Non-generic Generic BMI file ABOI file A BOI file BBMI file B BMI file ABOI file A BOI file BBMI file B 11

Generic BOI files – Tables and Data Partition Types BOI Table TypeFlatIn DepthStream Dictionary Information Case Information Form Information Key Information ID Information Remarks Open questions Flat data (Non-Generic) 12

Generic BOI files – Concepts Common primary key in all tables JOINKEY DMKEY BEGINSTAMP Fixed predefined table structures Column widths are set to maximum Tables contain all available columns 13

Generic BOI files – Versioning Meta and data versioning Data versioning occurs on the record level Versioning columns BEGINSTAMP ENDSTAMP Date time column type in database Fixed string in Blaise YYYYMMDD HH:MM:SS 14

Generic BOI files – Record states Actual record ENDSTAMP filled with :00:00 Updateable Historical record ENDSTAMP filled with real timestamp Not updateable

Blaise Data Centre Provides uniform access to Blaise Data Files.BDB,.BOI and ASCII referenced by BOI View survey progress View, extract and analyze data Administration (Admin mode) Registration of Dictionaries Simple Case Management Distribution and deployment of cases Synchronization of cases Demo 3: Using Blaise Data Centre

Blaise Storage BOI Data is stored redundantlyredundantly 1. In the regular data tables 2. As a stream per record in Form table Advantages Optimal integration with Blaise system Record streams can be delivered directly to the Blaise system without any translation

Blaise Storage Disadvantages Changes directly made to the data tables, outside Blaise, are not visible... As a result data in record stream and table data may become inconsistent Recommendation Dont apply changes, outside Blaise, to the data tables directly But, for those who cant resist the temptation...

Blaise Storage... we have invented the Fast-Reading BOI runtime setting If True: record data is retrieved via record streams If False: record data is retrieved the regular way; i.e. from the data in the tables Works only for record oriented clients like DEP, Manipula (and not for Data Viewer) Demo 4: Using the Fast-Reading setting

Blaise Storage How to make data consistent again? Run a Manipula setup with a boi updatefile Set Fast-Reading in the boi to true if you want to make the table data consistent with the streams Set Fast-Reading in the boi to false if you want to make the streams consistent with the current table data will have synchronize options

Blaise Data Server - Intro Computer that runs the Blaise 4.8 API service Clients communicate with the API service through XML messages over TCP/IP Developed for Blaise Internet, but can be used without Blaise Internet also API service has exclusive access to data files Enables CATI with BOI files Possibility to create a secure environment

Blaise Data Server – Connecting Location of BDB/BOI file determines who is going to connect to a database What you probably expect: Connection to the database is made by a Blaise application directly What you might not expect: If the BDB/BOI is on a computer which is running the Blaise API service, then the Blaise API service on that machine will try to connect to the database

Blaise Data Server – Connecting without Service MyData.BOI is stored on MyAppServer BOI contains a connection to MySQLServer Blaise API service is not running on MyAppServer MyComputer Blaise Developer Installation MySQLServer MyAppServer MyData.boi No API service Is the API service running on MyAppServer? BOI file is opened by Blaise application on MyComputer directly No

Blaise Data Server – Connecting through the Service MyData.BOI is stored on MyAppServer BOI contains a connection to MySQLServer Blaise API service is running on MyAppServer MyComputer Blaise Developer Installation MySQLServer MyAppServer MyData.boi API service Is the API service running on MyAppServer? BOI file is opened by Blaise API service on MyAppServer Yes Blaise application communicates via XML messages over TCP/IP with API service on MyAppServer

Blaise Data Server – Pitfall 1: Using Windows Authentication MyData.BOI is stored on MyAppServer BOI connects MySQLServer using Windows AuthenticationWindows Authentication Yes MyComputer Blaise Developer Installation MySQLServer MyAppServer MyData.boi API service Is the API service running on MyAppServer? BOI file is opened by Blaise API service on MyAppServer using the Local System Accounts credentials Blaise application communicates via XML messages over TCP/IP with API service on MyAppServer Connection fails MySQLServer Local System Account of MyAppServer has no connect privileges

Solutions Pitfall 1 Use database user account instead of Windows authentication in BOI connection string (preferable)database user account Change the account of the API service to an account which has enough rights to access the database

Blaise Data Server – Pitfall 2 : Missing drivers / settings MyData.BOI is stored on MyAppServer BOI connects to MySQLServer by using an ODBC connection string MyComputer Blaise Developer Installation MySQLServer MyAppServer MyData.boi API service Is the API service running on MyAppServer? BOI file is opened by Blaise API service on MyAppServer. ODBC driver is not installed or the ODBC DSN is not available on MyAppServer Yes Blaise application communicates via XML over TCP/IP with API service on MyAppServer Connection fails MySQLServer

Solution Pitfall 2 Install all necessary drivers / OLE DB providers / Database client software on the Blaise Data Server Be sure that all the needed settings, connection parameters, ODBC DSN can be resolved from the Data Server Connection string in BOI file has to be valid in the eyes of computer that runs the Blaise API service (and not from your computer)

Versioning and migration - Migration to a newer version of a data model 1. Always create a new BOI file based on the new data model. There is no check during the boi generation process whether tables already exist If the BOI contains already existing table names then rename those tables in order to avoid conflicts 2. If all conflicts have been solved, then create the tables and perform an old BOI to new BOI copy with help from Manipula

Versioning and migration - Meta versioning in Generic BOI files Datalink looks up the DMKey whenever a generic BOI file is opened If the data model checksum has been changed then a new DMKey is generated. Data collected with the new model is stored with this new key. Data collected with the previous version of the model remains untouched

Versioning and migration – Using generic BOI files No need to recreate any table in case of in depth and stream data partition types Data will automatically be stored under another DMKey Only flat data tables must be recreated. Rename flat table names in new boi file to non-existing table names. Demo 5: Migrating to a newer version of a data model