How to expand Dataprovider SQL Query column in 360Eyes database
Symptom
In your 360Eyes Webi and Crystal job logs you are seeing data being truncated in EYE_DATAPROVIDER.DATAPROVIDER_SQL_QUERY
Environment
- 360Eyes
- SAP BusinessObjects Enterprise XI 3.1
- SAP BusinessObjects Business Intelligence 4.0
- SAP BusinessObjects Business Intelligence 4.1
- SAP BusinessObjects Business Intelligence 4.2
- SAP BusinessObjects Business Intelligence 4.3
In the 360Eyes Webi job log you will see entries similar to this:
2018-10-02 11:51:32 -0400 INFO Value [SELECT ACTG_DIM.ACTG_...] has been truncated to 4000 characters but has 11526 characters in total (field EYE_DATAPROVIDER.DATAPROVIDER_SQL_QUERY)
Cause
Resolution
Follow the steps below, for your specific database type, to increase the column length.
SQL Server
ALTER TABLE EYE_DATAPROVIDER ALTER COLUMN DATAPROVIDER_SQL_QUERY VARCHAR(MAX)
Oracle
Option #1: For oracle 12c and higher, limited to 32k and some db parameters : http://www.oracletutorial.com/oracle-basics/oracle-varchar2/
ALTER TABLE EYE_DATAPROVIDER MODIFY (DATAPROVIDER_SQL_QUERY VARCHAR2(#####)); enter specific length for #####
ALTER TABLE EYE_DATAPROVIDER ADD (DATAPROVIDER_SQL_QUERY_BIS CLOB);
UPDATE EYE_DATAPROVIDER SET DATAPROVIDER_SQL_QUERY_BIS=DATAPROVIDER_SQL_QUERY;
ALTER TABLE EYE_DATAPROVIDER DROP COLUMN DATAPROVIDER_SQL_QUERY;
ALTER TABLE EYE_DATAPROVIDER RENAME COLUMN DATAPROVIDER_SQL_QUERY_BIS
TO DATAPROVIDER_SQL_QUERY;
Keywords
database, SQL Server, OracleProduct
Product or Product version
- 360Eyes
Languages
- English