Product:
IBM DB2 Data Studio
Microsoft Windows 2022 server

Issue:

Error when starting DS4.1.2 client

An error has occurred, See the log file d:\program files\ibm\ds4.1.2\configuration\1747225616665.log

org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity=”org.eclipse.core.runtime”

Solution:

Before starting the DB2 studio client program

  1. Go to your eclipse directory and open configuration directory. (can be D:\Program Files\IBM\DS4.1.2\configuration\org.eclipse.osgi\.manager )
  2. open org.eclipse.osgi directory.
  3. open .manager folder.
  4. Delete .fileTableLock file.
  5. Restart your DB2 data studio program.

Then start the program as “administrator”, right click on icon and select “run as administrator”.

and select the path to the folder to be something like d:\IBM\rationalsdp\workspace

Then you should be inside DB2 Data Studio, and see the list of database on the side.

 

 

More Information:

DB2 9.5 and IBM Data Studio: Building an SQL Statement

https://www.eclipse.org/forums/index.php/t/823236/

https://www.ibm.com/docs/en/db2/11.5.x?topic=objects-retrieving-data-from-tables-views 

https://www.raghu-on-tech.com/2020/02/29/db2-finding-top-10-most-active-tables/

Db2 Basics: Getting Data Out of Db2

Product:

Microsoft Windows 2022 server
DB2 driver

Issue:

Can not connect to DB2 server with ODBC, the dbalias is not found.

Solution:

Inside the ODBC program, you need to setup a alias.

This is controlled by the db2cli.ini file.

If you run a bat file to catalog the sql db2 settings this file will end up in your profile folder, e.g. c:\users\yourname

Copy the file to the common folder c:\programdata\ibm\db2\db2copy1\cfg

Search for db2cli.ini to find the folders to use. The db2cli.ini have lines like below:

[db2instance]
DBALIAS=db2instance
UID=donald
DESCRIPTION=db2instance - PROD

But first, you need to install the db2 drivers from IBM Data Server Client Packages (12.1, All platforms)

Run the setup.exe from inside folder \wib_data_server_client_winx64_v11.1\client\image.

Create a catalog.sql file with the content you need; (you must adjust to your environment)

UNCATALOG NODE db2instance;
CATALOG TCPIP NODE db2instance
REMOTE db2servername.domain.com
SERVER 50000
REMOTE_INSTANCE db2instance
OSTYPE LINUX;

The run a command like this from a bat file:

db2cmd db2setcp ” db2 -tvf C:\install\catalog.sql ”

This will give you the User DSN setup.

You can find the values in the registry, download to a reg file, and edit it to be HKLM as below;

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\db2instance]
"Driver"="C:\\PROGRA~1\\IBM\\SQLLIB\\BIN\\DB2CLIO.DLL"
"Description"="db2instance"

Load this file, and you will get it in System DNS.

Then you need to update the db2cli.ini in the folder c:\programdata\ibm\db2\db2copy1\cfg to get the dbalias.

If it does not work, check the links below.

 

More information:

https://www.ibm.com/docs/en/db2-warehouse?topic=installing-windows

https://www.ibm.com/support/pages/db2-odbc-cli-driver-download-and-installation-information

Installing and configuring an DB2 ODBC CLI-driver on Windows

https://www.ibm.com/docs/en/db2/11.5.x?topic=commands-catalog-database

https://help.hcl-software.com/bigfix/9.2/platform/Platform/Config/c_creating_db2_dsn.html

https://www.ibm.com/docs/en/db2/11.5.x?topic=odbc-cliodbc-configuration-keywords

https://www.columbia.edu/sec/acis/db2/db2iy/db2iy47.htm

https://www.ninjaone.com/blog/registry-editor/

https://www.techtarget.com/searchwindowsserver/tip/Command-line-options-for-Regeditexe

Product:

Microsoft Excel 365 32 bit version

Microsoft Windows 11

Issue:

Inside a excel report, you have a power query that get data from a other excel file on sharepoint.

When you do refresh to update you get a error.

 

 

Possible cause:

The Excel file have to many rows.

When using Excel, it’s important to note which file format you’re using. The .xls file format has a limit of 65,536 rows in each sheet, while the .xlsx file format has a limit of 1,048,576 rows per sheet. For more info, see File formats that are supported in Excel and Excel specifications and limits.

If you load a csv file, you may only get a part of the rows of data. And the sum result may not be what you expect, if you reach a limit in excel program.

 

More Information:

The Excel Row Limit is 1,048,576 Rows | Row Zero

Loading CSV/text files with more than a million rows into Excel – Jose Barreto’s Blog

https://flatfile.com/blog/top-6-csv-import-errors-and-how-to-fix-them/ 

https://flatfile.com/blog/why-isnt-my-csv-file-importing/

Product:
Cognos Controller CONTRL_UPDATE_version=CCR-AW64-ML-RTM-11.1.1003.31-0

Microsoft Windows 2022 server

Issue:

On a new installation, when run the FAP IP, you get a error.
If you check in the log folder for the TM1 application, you find this error:

Error: MetaData procedure line (0): Error executing SQL query: “select parent, child, parentname, childname from nrtr_extdim_temp_1”

Solution:

Check that the FAP ODBC connection is connected to the correct Controller FAP database.

Check that the ODBC connection is 64 bit.

  1. Logon to the TM1 server as an administrator
  2. Launch the following file: C:\Windows\SysWOW64\odbcad32.exe  (to open the 32 bit version)
  3. Click on tab “System DSN
  4. As a precaution, open the ODBC connection “FAP” and note down all the settings
  5. Afterwards, highlight the ODBC connection “FAP” and click “Remove
  6. Click “Yes” to confirm”
  7. Click OK
  8. From the Start Menu, click “All Programs – Administrative Tools – Data Sources (ODBC) (64 bit)
  9. Click on tab “System DSN
  10. Create an ODBC connection called “FAP” which connects to your FAP database (which should be separate from your “Controller database”.)

Also check that the tm1api.dll from bin64 folder are in the path on the windows server where you run the FAP service, and TM1 instance.

  1. On the Controller FAP application server, go to control panel, system
  2. Click on Advanced system settings at the bottom of the dialog
  3. Click Environment Variables
  4. Under System Variables, select Path, and click Edit
  5. Append this with an extra entry at the end, for the path to the TM1\bin directory, for example: ;D:\Program Files\IBM\tm1_64\bin64
  6. Click OK to all dialog boxes that follow
  7. If you have changed your PATH, then you to restart the FAP service.

The TM1 client includes the .dll files that are required for the Financial Analytics Publisher server and the client to communicate with the TM1 server. Therefore it is necessary to install the TM1 client on the server where the Financial Analytics Publisher (FAP) service is installed.
In addition, the PATH variable must include the folder where these DLL files are located.
Controller 10.2 onwards is a 64-bit server, so requires 64-bit TM1 DLL files
Controller 10.1.1 and earlier is a 32-bit server, so requires 32-bit TM1 DLL files

Above can also give the error : Could not login to TM1. Could not load tm1api.dll due to: The specified module could not be found’ when starting FAP Initial Publish.

Please also check that the password entered in IBM Controller Financial Analytics Publisher client, for the datamart – edit – client (domain\username) have the correct password. Test by login to the TM1 instance from TM1 architect, with that user and password.

You find more information in the FAP log file at D:\Program Files\IBM\cognos\ccr_64\Server\FAP folder.

More information:

https://www.ibm.com/support/pages/node/198183

https://www.ibm.com/support/pages/node/435443

 

Product:
Planning Analytics 2.0.9.19
Microsoft Windows 2019 server

Issue:

What version match each other between the line of PAL 2.0 and PAL 2.1?

When upgrading from Planning Analytics Local 2.0 to Planning Analytics Local 2.1, each component should be upgraded to the corresponding version or greater.

Solution:

https://www.ibm.com/docs/en/planning-analytics/2.1.0?topic=21-understanding-planning-analytics-local-component-versions 

A version of PAL 2.0, should have a corresponding version in PAL 2.1 with the same functions.

Hopefully all “bugs” corrected are the same in the matching versions.

Planning Analytics 2.0 Planning Analytics 2.1 TM1 Build
TM1 Server  

Planning Analytics Workspace
Spreadsheet Services/TM1 Web
Planning Analytics for Excel

 

 

Planning Analytics Workspace
Spreadsheet Services/TM1 Web
Planning Analytics for Excel
TM1 Server

 

2.0.9.19 IF3 2.0.94 2.1.1 11.8.02300.10
2.0.9.19 IF5 2.0.95 2.1.2 11.8.02400.7
2.0.19 IF8 2.0.96 2.1.3 11.8.02500.3
2.0.9.20 2.0.97 2.1.4 11.8.02700.4
2.0.9.20 2.0.98 2.1.5 11.8.02700.4
2.0.9.20 2.0.99 2.1.6 11.8.02800.9
2.0.9.20 2.0.100 2.1.7 11.8.02800.9
2.0.9.21 2.0.101 2.1.8 11.8.02900.8
2.09.21 2.0.102 2.1.9 11.8.02900.8
2.09.21 2.0.103 2.1.10 11.8.02900.8

 

Planning Analytics Local 2.1 is a direct upgrade from Planning Analytics Local 2.0. The upgrade to version 2.1 does not require changes to the TM1 databases, Planning Analytics Workspace content, Planning Analytics for Excel reports, or Websheets.

Planning Analytics Local 2.1 does not include TM1 Architect, TM1 Perspectives, TM1 Applications, Performance Modeler, or Cognos Insight. These components are not supported in Planning Analytics Local 2.1.

IBM plans for introducing a non-containerized V12 Planning Analytics Local server called version 3.1, expected around late 2025. This version will be more similar to the Planning Analytics version found on AMZ and AZURE.

 

More Information:

https://www.ibm.com/docs/en/planning-analytics/2.1.0?topic=21-understanding-planning-analytics-local-component-versions

https://www.ibm.com/support/pages/ibm-planning-analytics-21-fix-lists 

https://www.ibm.com/support/pages/ibm-planning-analytics-20-fix-lists 

https://www.ibm.com/docs/en/planning-analytics/2.0.0?topic=features-whats-new-in-planning-analytics 

https://www.ibm.com/docs/en/planning-analytics/2.1.0?topic=features-whats-new-in-planning-analytics

https://www.ibm.com/docs/en/planning-analytics/2.1.0?topic=configuration-upgrading-planning-analytics-local-21 

https://lodestarsolutions.com/moving-from-perspectives-to-pafe-in-planning-analytics/ 

https://www.linkedin.com/pulse/ibm-ama-planning-analytics-march-2024-denis-barchukov-ypylc 

https://www.linkedin.com/pulse/ibm-ama-planning-analytics-april-2024-denis-barchukov-3qtvc 

https://www.linkedin.com/pulse/ibm-ama-planning-analytics-june-2024-denis-barchukov-r2kfc

https://www.ibm.com/new/announcements/ibm-planning-analytics-now-on-azure-the-only-solution-in-the-market-with-unmatched-deployment-flexibility 

https://aws.amazon.com/marketplace/pp/prodview-pzt5r2kg6mmmg 

Product:
Cognos Controller  (client version 11.1.1003.12)
Microsoft Windows 2022 server

Issue:

When testing a new database, the cognos controller configuration can not connect to the database.

Error like this:

Server was unable to process request. Login timeout expired. A network-related or instance-specific error has occurred while establishing a connection to SQL server.

Could not open a connection to SQL server [53].

Solution:

When enter a database server name that use a different port than the default 1433, you need to enter it with comma in Controller Configuration.

dbservername,5000

if you enter with period – the name will be dbservername.5000 and that server will not DNS find for you.

You can double-click on the UDL file to test, often found in folder D:\Program Files\ibm\cognos\ccr_64\Data

Note, in Cognos Configuration ( for CA11 ) the SQL port number is preceded with a colon, like this: dbservername:5000.

 

 

More information:

https://www.ibm.com/docs/en/controller/11.0.0?topic=computer-set-database-connection-properties-controller-data-source

https://www.ibm.com/docs/en/controller/11.0.1?topic=computer-verifying-connectivity-controller-database

https://www.ibm.com/docs/en/cognos-planning/10.2.1?topic=sdcpcs-setting-database-connection-properties-microsoft-sql-server-oracle-informix-sybase-content-store 

https://www.ibm.com/docs/en/spectrum-control/5.4.12?topic=analytics-creating-content-store-starting-cognos-windows 

Database Connection – Step By Step

https://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/10.2.1/qrc_ctrl_inst.pdf 

https://jotelulu.com/en-gb/support/tutorials/managing-sql-ports-on-your-windows-server/ 

Product:
Microsoft SQL Azure

Issue:

How remove all rows of data from table when the date column is INT and contain both year and date?

Suggested solution:

In SQL SSMS write like this (to erase all rows with year 2024) :

DELETE FROM [DM].[dbtablename]
where 1=1
and SUBSTRING (( CAST ( [key_dimdate] AS varchar) ), 1 , 4 ) = '2024'

if the key_dimdate format is ‘20240112’ as a INT

 

More Information:

https://www.w3schools.com/sql/func_sqlserver_cast.asp 

https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-ver16 

https://learn.microsoft.com/en-us/sql/t-sql/functions/substring-transact-sql?view=sql-server-ver16

Product:
Cognos Analytics 12.0.4
Microsoft Windows 2022 server

kit_version=12.0.4-2501300500
Manifest=casrv-manifest-12.0.4-2501300500-winx64h.json
Installer=analytics-installer-3.7.38-win.exe

Issue:

How setup CA12 only for CAM authenticate to be used with Cognos Controller?

Solution:

(This doc describe partly the steps you need to do – please read the IBM documentation for more information)

Install IIS with roles like, Web Server, Application Development, NET extensibility, ASP.NET 4.8 etc

Download and install URL Rewrite Module 2.1 https://www.iis.net/downloads/microsoft/url-rewrite

Download and install ARR 3.0 manually https://www.iis.net/downloads/microsoft/application-request-routing

Create a SQL server database for the content store, with a SQL login as DB-owner; if you are not upgrading a old CA database.

Download the CA12 from https://www.ibm.com/support/pages/downloading-ibm-cognos-analytics-1204

Whats new in CA12 is: https://lodestarsolutions.com/tag/ibm-cognos/

Setup CA on a single server: https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=analytics-single-server-installation

If you do a upgrade, add this lines to the file preserve.txt in folder install_location/configuration/preserve.

#TM1 files
templates/ps/portal/variables_TM1.xml
templates/ps/portal/variables_plan.xml
templates/ps/portal/icon_active_application.gif
webcontent/planning.html
webcontent/PMHub.html
webcontent/tm1/web/tm1web.html

#CA files
templates/ps/system.xml
templates/ps/portal/system.xml
templates/ps/portal/variables_CCRWeb.xml

Run the analytics-installer-3.7.38-win.exe to install CA 12.0.4

Select language and click next

Click next

Mark “i accept the terms.. ” and click next

Ensure you install to correct drive and click next

Click Yes

Leave the 3 selected and click next

Click install

Click done

Copy the SQL driver sqljdbc42.jar to folder C:\Program Files\ibm\cognos\analytics\drivers

Start Cognos Configuration and change to FQDN (full qualified domain names) in this places for the server:

 

  • Environment
    • Gateway URI
    • External dispatcher URI
    • Internal dispatcher URI
    • Dispatcher URI for external applications
    • Content Manager URIs
  • Environment > Configuration Group
    • Group contact host
    • Member coordination host
  • Security > Cryptography > Cognos
    • Server common name
    • Subject Alternative Name > DNS names
    • Subject Alternative Name > IP addresses

 

 

Setup the SQL server database connection for Content Store:
Right Click Content Manager and select Delete. Confirm deletion.
Right Click Content Manager > New Resource > Database.
Set the Name; Content store.
Set the Type (Group); Microsoft SQL server database
Set the Database Server and Port number (1433).
Set the User ID and Password for the database.
Set the Database name.

Save the configuration and start IBM Cognos service from Cognos Configuration.

Browse to  http://yourservername:9300/p2pd/servlet  to see if it is up.

If it is a new installation, use the CA_IIS_Config script to create the needed values in IIS.

Open the C:\Program Files\ibm\cognos\analytics\cgi-bin\templates\IIS\CA_IIS_Config.bat in Notepad++

Edit the servername to FQDN

Change SSO to True, and save the file.

Run the CA_IIS_Config.bat script from a DOS prompt as administrator.

https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=services-configuring-iis-in-cognos-analytics

Press Y, then check that the URL rewrite looks like they should.

(*) Always use FQDN (not NetBIOS name or IP address) values when configuring the relevant server name.
(*) Always use lowercase characters for all of your URLs (website addresses), for example Rewrite URLs.

Browse to http://yourservername/ibmcognos/  to check that it works.

 

Configure the Authentication Provider.
Right click Authentication Source > New Resource > Namespace.
Set the name. Name should be the same as the domain name.
Set the Type (Group), Active Directory is Default.
Set the Type, leave as blank, the default.

https://www.ibm.com/docs/en/cognos-analytics/12.0.x?topic=server-configuring-active-directory-namespace

In the Explorer window, under Security > Authentication, and select the Active Directory namespace.
Click in the Value column for Advanced properties and then click the edit icon.
In the Value – Advanced properties dialog box, click Add.
In the Name column, type singleSignonOption
In the Value column, type IdentityMapping.
Click OK.

Before you get SSO to work, you need to change “allow anonymous access” to False, inside Cognos Configuration at Security – Authentication – Cognos.

Before you do more adjustments to CA, install the latest Cognos Analytics Fix Pack.

Get the latest fix pack https://www.ibm.com/support/pages/ibm%C2%AE-cognos-analytics-fix-lists

Entitled Bundled Customers use this link Cognos Analytics 12.0.4 IF2 to get access to download Cognos Analytics 12.0.4 Interim Fix 2.

Cognos Analytics Customers use the Fix Central link below.

Setup of Cognos Fix Pack, should be similar to this steps:

Stop Internet Information Services (IIS) Manager (the Default Website).
Stop all IBM Cognos services through the Services Manager if they are active.
Set all IBM Cognos windows service to manual.
Reboot Windows server.
Back up the content store database.
If your IBM Cognos environment is customized, back up the entire IBM Cognos location.
Go to the location where you downloaded the files.
Run the analytics-installer-3.7.38-win.exe file, to start install of fix pack.
Follow the directions in the installation wizard, installing in the same location as your existing IBM Cognos server components if already present.
Open IBM Cognos Configuration, save the configuration.
Set all IBM Cognos service to automatic. Except below service if they exist on the server:
IBM Cognos Controller Consolidation
IBM Cognos Controller Java Proxy
IBM Cognos Controller User Manager
IBM Cognos FAP Service
Start the Internet Information Services (IIS) Manager (the Default Website).
Reboot the server.
Check that the IBM Cognos service is running, before you try to browse to: http://yourservername/ibmcognos/

 

If you start with server hostnames and later change to FQDN in Cognos Configuration you get error like this:

ERROR com.ibm.bi.rest.RESTClient [Default Executor-thread-12] NA Certificate for <WIN2022PAL> doesn’t match any of the subject alternative names: [192.168.1.106, win2022pal.pacman.local]
javax.net.ssl.SSLPeerUnverifiedException:

You must use FQDN names from the beginning in the Cognos Configuration.

You must in CA create the two user roles, and add the users that should run Cognos Controller to them.

Go to Manage – People – Accounts, select Cognos namespace, and click on new role.

Enter the name Controller Administrators, and create one more role called Controller Users.

For Controller Users click on dots and select properties. Under Members add the users that should be running the Cognos Controller program.

 

Cognos Controller need two roles called ‘Controller Users’ and ‘Controller Administrators’ in CA. It is considered best practice to ensure that all users in Controller are attached to the ‘Controller Users’ role and those defined within Controller as ‘Controller Administrators’ being to the role of the same name. Additionally add the ‘Controller Administrators’ role to the list of members in the ‘Controller Users’ role to ensure that you don’t have to add the administrative users to the ‘Controller Users’ role.

If you still do not get the Roles in CA for Cognos Controller to work (to give you SSO into cognos controller client), try to restore a old Cognos Content store that already contain this roles, so you get the correct role setup.

To add the Cognos Controller parts to IIS, after you have installed CA11.

  1. In the Internet Information Services (IIS) Manager, expand the node with your server name, and select Application Pools.
  2. Select DefaultAppPool and then from the Actions pane, select Advanced Settings.
  3. Set the .Net CLR Version to v.4.0.
  4. Set Enable 32-Bit Applications to False.
  5. Set Identity to LocalSystem.
  6. Set Idle Time-Out to 600 minutes.
  7. Click OK.
  8. Expand Sites and under your web site, create the following virtual directories as shown in the table, if they not already exist.
    Alias
    Location
    IBMCognos controller_install_location\webcontent or C:\Program Files\ibm\cognos\analytics\webcontent
    IBMCognos/controller controller_install_location\ccrvdir  (e.g. C:\Program Files\ibm\cognos\ccr_64\ccrvdir )
    IBMCognos/controllerbin controller_install_location\webcontent\ccr ( C:\Program Files\ibm\cognos\ccr_64\webcontent\ccr )
  9. Select the controller virtual directory.
  10. Double click on HTTP redirect. 
  11. Select Redirect Requests to this destination and enter the following path:
    /controllerbin/app.publish/CCR.application

  12. Click Apply.
  13. Right-click your parent virtual directory (ibmcognos) and click Add Application.
    1. Set Alias to ControllerServer.
    2. Set Application pool to DefaultAppPool.
    3. In the PhysicalPath field, enter controller_install_location/ControllerProxyServer. (C:\Program Files\ibm\cognos\ccr_64\ControllerProxyServer)
    4. Click OK.
  14. Click Apply and click OK.

To make cognos controller talk to CA, you need to change in Cognos Controller configuration;

  • Start IBM Cognos® Controller Configuration using the Run as administrator option.
  • Under Web Services Server > Report Server point the URI to the addresses.

    Configure the following addresses:

    Server
    Value
    Report server URI for Cognos Analytics http://CA_server/bi/v1/disp
    Dispatcher URI for Cognos Analytics http://CA_Server:9300/p2pd/servlet/dispatch

Save and go to Server Authentication and change to CAM Authentication.

Save and go to Client Distribution Server Configuration – this need to be updated, the WSSurl is used by the client program.

Enter the FQDN to the controller server and save.

Then to get Cognos Controller web to use Active Directory from CA, you need to do:

  • In the Cognos BI installation folder, <BI_installation_folder>/templates/ps/portal/, create a file with the name variables_CCRWeb.xml.
  • The content of the file variables_CCRWeb.xml must be as follows:
    <CRNenv c_cmd="http://{host_name}:{port_number}/#!/CamLogin">
       <cookies> 
          <param name="cam_passport"/>
       </cookies>
    </CRNenv>
  • Locate the file com.ibm.cognos.fcm.web.properties in the C:\Program Files\IBM\cognos\ccr_64\fcmweb\wlp\usr\servers\fcm.web folder.
  • Open the file com.ibm.cognos.fcm.web.properties and set the following properties:
    1. biUrl: the URL that the user must go to when CAM authentication is needed. The default location is http://servername:80/ibmcognos/bi/v1/disp.
    2. biDispatchEndpoint: the endpoint to which Controller Web connects to validate CAM users and CAM passports. The default location is
      http://servername:9300/p2pd/servlet/dispatch
      .
    3. loginMode: the authentication type. Set it to CAM

Save and reboot the server, to ensure that all works as it should.

(You must also do all the other settings that is for Cognos Controller Web, to make it work, above is only to get the SSO to use CA.)

https://www.ibm.com/docs/en/controller/11.1.0?topic=only-configuring-controller-web

More information:

https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=gccs-suggested-settings-creating-content-store-in-microsoft-sql-server

https://www.ibm.com/support/pages/how-can-i-change-collation-controller-database

https://www.ibm.com/support/pages/node/559381

https://www.ibm.com/docs/en/controller/11.1.0?topic=web-cam-authentication

https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=essbadscc-enabling-single-signon-between-active-directory-server-cognos-components-use-remote-user

https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=gateway-configure-cognos-analytics-your-web-server

https://www.ibm.com/docs/en/cognos-analytics/12.0.x?topic=essbadscc-enabling-single-signon-between-active-directory-server-cognos-components-use-remote-user

https://www.ibm.com/support/pages/how-configure-sso-single-sign-controller-cognos-analytics

https://www.ibm.com/docs/en/controller/11.1.0?topic=web-cam-authentication

https://www.ibm.com/docs/en/controller/11.1.0?topic=only-configuring-controller-web

Product:
Microsoft Power BI service Dataflow

Issue:

How change on-prem gateway from prod to dev?

 

Solution:

You have to click on EDIT for the dataflow.

Then click on EDIT TABLE.

Then on the HOME ribbon find OPTIONS.

Scroll down to Data Load, and select the on-prem gateway you should use in this dataflow.

 

Changing the gateway

To showcase how to change the gateway in a dataflow project, this article uses a query that connects to a local folder as an example.

This query previously used a gateway named “Gateway A” to connect to the folder. But “Gateway A” no longer has access to the folder due to new company policies. A new gateway named “Gateway B” is registered and now has access to the folder that the query requires. The goal is to change the gateway used in this dataflow project so it uses the new “Gateway B.”

Screenshot of a query that has an error message related to the data gateway being unreachable or offline.

To change the gateway:

  1. From the Home tab in Power Query, select Options.

    Screenshot of Options icon and selection in Power Query Home tab.

  2. In the Options dialog box, select Data load, and then select the gateway to use for your project, in this case, Gateway B.

    Screenshot of Project options dialog box with the drop-down menu listing None, Gateway A, and Gateway B.

     Tip

    If there were recent changes to your gateways, select the small refresh icon to the right of the drop-down menu to update the list of available gateways.

  3. After selecting the correct gateway for the project, in this case, Gateway B, select OK to go back to the Power Query editor.

 

To change the dataflow to use a different SQL view for the table of data, go to the navigation icon in the right list, and select a different view from the SQL database, from the list of view in the databases.

 

More Information:

https://learn.microsoft.com/en-us/power-query/change-gateway-dataflow 

Product:

Microsoft SQL Azure

Issue:

What user have the db_owner role?

Solution:

Start SSMS and login to your SQL azure database, and run below script (found on internet)

 

SELECT CASE princ.[type]
WHEN 'S' THEN
princ.[name]
END AS [UserName],
CASE princ.[type]
WHEN 'S' THEN
'SQL User'
WHEN 'U' THEN
'Windows User'
END AS [UserType],
princ.[name] AS [DatabaseUserName],
NULL AS [Role],
perm.permission_name AS [PermissionType],
perm.state_desc AS [PermissionState],
obj.type_desc AS [ObjectType], --perm.[class_desc], 
OBJECT_NAME(perm.major_id) AS [ObjectName],
col.[name] AS [ColumnName]
FROM
--database user
sys.database_principals AS princ
LEFT JOIN
--Permissions
sys.database_permissions AS perm
ON perm.grantee_principal_id = princ.[principal_id]
LEFT JOIN
--Table columns
sys.columns AS col
ON col.[object_id] = perm.major_id
AND col.column_id = perm.minor_id
LEFT JOIN sys.objects AS obj
ON perm.major_id = obj.[object_id]
WHERE princ.[type] IN ( 'S', 'U' )
UNION
--List all access provisioned to a sql user or windows user/group through a database or application role
SELECT CASE memberprinc.[type]
WHEN 'S' THEN
memberprinc.[name]
END AS [UserName],
CASE memberprinc.[type]
WHEN 'S' THEN
'SQL User'
WHEN 'U' THEN
'Windows User'
END AS [UserType],
memberprinc.[name] AS [DatabaseUserName],
roleprinc.[name] AS [Role],
perm.permission_name AS [PermissionType],
perm.state_desc AS [PermissionState],
obj.type_desc AS [ObjectType], --perm.[class_desc], 
OBJECT_NAME(perm.major_id) AS [ObjectName],
col.[name] AS [ColumnName]
FROM
--Role/member associations
sys.database_role_members AS members
JOIN
--Roles
sys.database_principals AS roleprinc
ON roleprinc.[principal_id] = members.role_principal_id
JOIN
--Role members (database users)
sys.database_principals AS memberprinc
ON memberprinc.[principal_id] = members.member_principal_id
LEFT JOIN
--Permissions
sys.database_permissions AS perm
ON perm.grantee_principal_id = roleprinc.[principal_id]
LEFT JOIN
--Table columns
sys.columns AS col
ON col.[object_id] = perm.major_id
AND col.column_id = perm.minor_id
LEFT JOIN sys.objects AS obj
ON perm.major_id = obj.[object_id]
UNION
--List all access provisioned to the public role, which everyone gets by default
SELECT '{All Users}' AS [UserName],
'{All Users}' AS [UserType],
'{All Users}' AS [DatabaseUserName],
roleprinc.[name] AS [Role],
perm.permission_name AS [PermissionType],
perm.state_desc AS [PermissionState],
obj.type_desc AS [ObjectType], --perm.[class_desc], 
OBJECT_NAME(perm.major_id) AS [ObjectName],
col.[name] AS [ColumnName]
FROM
--Roles
sys.database_principals AS roleprinc
LEFT JOIN
--Role permissions
sys.database_permissions AS perm
ON perm.grantee_principal_id = roleprinc.[principal_id]
LEFT JOIN
--Table columns
sys.columns AS col
ON col.[object_id] = perm.major_id
AND col.column_id = perm.minor_id
JOIN
--All objects 
sys.objects AS obj
ON obj.[object_id] = perm.major_id
WHERE
--Only roles
roleprinc.[type] = 'R'
AND
--Only public role
roleprinc.[name] = 'public'
AND
--Only objects of ours, not the MS objects
obj.is_ms_shipped = 0
ORDER BY princ.[name],
OBJECT_NAME(perm.major_id),
col.[name],
perm.permission_name,
perm.state_desc,
obj.type_desc; --perm.[class_desc]



More information:

https://www.scarydba.com/