RSS feed for blog Linkin Skype Mail Me Twitter

Stickfight

Connections Db Tip1: getting the Connections db Schema version

One of the many little bundles of joy when dealing with back end SQL code on ‘living’* application such as IBM Connections, is that SQL that may have worked for one version or service pack might not work for another

To cater for this you might have to write for or at least be able to handle the diferent versions of a database, when doing this you tend not to use the actual product version ie “Connections 4.5.0.0.” but the db schema number for each database, thankfully IBM store the db schema for each database in Connections (though not with a great deal of consistency), the following is the SQL to get this for each of the databases that make up connections.

Connections App: Files

BD: FILES
Table: PRODUCT
Connection v4.5 Base Schema Number: 82

SQL to get Schema

SELECT SCHEMA_VERSION FROM "FILES"."PRODUCT";



Connections App: Activities

BD: OPNACT
Table: OA_SCHEMA
Connection v4.5 Base Schema Number: 56

SQL to get Schema

SELECT DBSCHEMAVER FROM "ACTIVITIES"."OA_SCHEMA";

Connections App: Blogs

BD: BLOGS
Table: ROLLER_PROPERTIES
Connection v4.5 Base Schema Number: 51

SQL to get Schema

SELECT DBMS_LOB.substr(VALUE, 3000) FROM "BLOGS"."ROLLER_PROPERTIES" where NAME = 'database.schema.version';

Notes: The rotten sods have stored it as a “Clob” data format (basically Binary) so the SQL is a bit more complex.


Connections App: Communities

BD: SNCOMM
Table: SNCOMM_SCHEMA
Connection v4.5 Base Schema Number: 77

SQL to get Schema

SELECT DBSCHEMAVER FROM "SNCOMM"."SNCOMM_SCHEMA";

Connections App: Community Events

BD: SNCOMM
Table: CA_SCHEMA
Connection v4.5 Base Schema Number: 15

SQL to get Schema

SELECT DBSCHEMAVER FROM "CALENDAR"."CA_SCHEMA";

Connections App: BookMarks

BD: DOGEAR
Table: DOGEAR_SCHEMA
Connection v4.5 Base Schema Number: 15

SQL to get Schema

SELECT DBSCHEMAVER FROM "DOGEAR"."DOGEAR_SCHEMA";

Connections App: Forums

BD: FORUM
Table: DF_SCHEMA
Connection v4.5 Base Schema Number: 27

SQL to get Schema

SELECT DBSCHEMAVER FROM "FORUM"."DF_SCHEMA";

Connections App: HomePage , News, Search

BD: HOMEPAGE
Table: HOMEPAGE_SCHEMA
Connection v4.5 Base Schema Number: 210

SQL to get Schema

SELECT DBSCHEMAVER FROM "HOMEPAGE"."HOMEPAGE_SCHEMA";

Connections App: Metrics

BD: METRICS
Table: PRODUCT
Connection v4.5 Base Schema Number: 34

SQL to get Schema

SELECT SCHEMA_VERSION FROM "METRICS"."PRODUCT";

Connections App: Mobile

BD: MOBILE
Table: ROLLER_PROPERTIES
Connection v4.5 Base Schema Number: 1

SQL to get Schema

SELECT VALUE FROM "MOBILE"."ROLLER_PROPERTIES" where NAME = 'database.schema.version';

Connections App: Profiles

BD: PEOPLEDB
Table: SNPROF_SCHEMA
Connection v4.5 Base Schema Number: 36

SQL to get Schema

SELECT DBSCHEMAVER FROM "EMPINST"."SNPROF_SCHEMA";

Connections App: Wiki

BD: WIKIS
Table: PRODUCT
Connection v4.5 Base Schema Number: 82

SQL to get Schema

SELECT SCHEMA_VERSION FROM "WIKIS"."PRODUCT";


*By living I mean ‘the feckers keep changing them’

NOTE: All these tips are not officaliy sanctioned by IBM as they do not release DB schema info to the public, so you use them at your own risk, Also if IBM are reading this and I either have somthing wrong or you have documented this for the public, then please tell me and I will correct :-)

NOTE: I’m not a proper Connections / Web Sphere admin, If you want proper Web Sphere and Connections admin you want the Turtle Partnership

Leave Your Comments

blog comments powered by Disqus

Related Entries

MWLug 2016 Round-Up

To Find The Perfect Office

A Little Thing Done Right

SalesForce for Domino Dogs 3: Web Query Save Agents

Presenting at MWLUG

SalesForce for Domino Dogs 2: Scheduled Agents

SalesForce for Domino Dogs 1: Profile Documents

Editable salesforce templates

New Platform Type New Client Type

Engage 2016

LDCVia Webinar

Current Android Software 2015

Salesforce read mode hide-when hack

Classic Domino and multi country dates with Bootstrap

C3 charts on Saleforce Winter16

Updating Statamic on AWS

Icon UK 2015

Quiet Isnt it

Engage 2015

Conditional Checking in AngularJs using Restangular

IBM ConnectED2015 All work and no play

Learning A Lesson About Security from other People

2014 A Year In Review

IBM Connections Dev Update to V5

W.T.F. they made me an IBM Champion and a C-API tip

Bloody Android Kit-Kat and SD Cards

LDC Via Cross Post: Why oh why oh why (Part One)

Applet security: a blast from the past

UK ICON 2014

jQuery UK 2014 Day 2

jQuery UK 2014 Day 1

London Node.js User Group April 2014

Listen while you work

SQuirrel SQL For IBM Connections

Living Document: Connections Db Schema Versions

Connections Db Schema Tip2: Finding the UserID

Working from anywhere

CSC Event No.1

Engage 2014

IBM Connections Dev Links

Collaboration Stack Community Agenda and Stuff

Connections aide memoire 02: Backing Up Websphere Config

Inserting HTML into word documents

Connections aide memoire 01: Changing XML config

IBM Connect 2014 Slide Decks

IBM Connect 2014 Round up

Finding Me at IBM Connect 2014

Collaboration Stack Event

Commuting tip for Developers

My IBM Connect 2014 Sessions

IBM Connect 2014 session

Best USB Cable

The Perfect Consultant

First Tuesday Club November 2013

Adding a member to IBM Connections communities programmatically

Getting The User ID From IBM Connections - Addendum 1

Getting The User ID From IBM Connections

Latest Blogs