SYMPTOM
When Strategy Configuration Wizard 10.x is used to create Statistics tables and Enterprise Manager Warehouse in Chinese environments, values cannot be inserted into the DT_DAY table. The data is inserted into DT_DAY by Strategy Configuration wizard based on the locale of the Operating System. In the DSSError.log, the following error message is seen:
2017-01-19 10:44:11.638 [HOST:102WIN2012R2][PID:7872][THR:1256][Database Classes][Error] Execute Query failed.
Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [HY000:12899: on SQLHANDLE] [Strategy][ODBC Oracle Wire Protocol driver][Oracle]ORA-12899: value too large for column "TEST"."DT_DAY"."WEEKDAY_SDESC" (actual: 9, maximum: 5) Connection String: DSN=test;UID=LIM7JAN12U17;HOST=10.16.17.12;PORT=1522;SID=unicode112;. SQL Statement: INSERT INTO DT_DAY (DAY_DATE, DAY_ID, DAY_SDESC, DAY_LDESC, WEEKDAY_ID, WEEKDAY_LDESC, WEEKDAY_SDESC, MONTH_ID, QUARTER_ID, YEAR_ID, WEEKOFYEAR_ID, WEEK_ID) VALUES (to_date('2017/10/16 00:00:00','YYYY/MM/DD HH24:MI:SS'), 20171016, '10/16/2017 星期一', '10/16/2017 星期一', 1, '星期一', '星期一', 201710, 20174, 2017, 201742, 669) .
CREATE TABLE DT_DAY
( DAY_DATE GLOBALDAYDATE,
DAY_ID GLOBALINT,
DAY_SDESC GLOBALVARCHAR(20),
DAY_LDESC GLOBALVARCHAR(30),
WEEKDAY_ID GLOBALINT,
WEEKDAY_LDESC GLOBALVARCHAR(20),
WEEKDAY_SDESC GLOBALVARCHAR(10),
MONTH_ID GLOBALINT,
QUARTER_ID GLOBALINT,
YEAR_ID GLOBALINT,
WEEKOFYEAR_ID GLOBALINT,
WEEK_ID GLOBALINT);