SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43761: Bulkloading DATE or DATETIME data types into Oracle might fail with error ORA-26041

DetailsHotfixAboutRate It
The following error might occur when you use the BULKLOAD option with the SAS/ACCESS® Interface to Oracle:
ERROR: ORA-26041: DATETIME/INTERVAL datatype conversion error.

The problem can occur when you are running Oracle with a non-English locale and bulk loading a SAS data set that contains DATE or DATETIME data types.

To circumvent the issue, set the Oracle date locale environment (NLS_DATE_LANGUAGE) to English or American.

On UNIX platforms, a shell-script can be used as a wrapper, to set the environment before calling Oracle BULKLOAD:

  1. Create a file /path/to/sas/sqlldr with the following contents (/path/to/sas designates the SAS installation directory):
          #!/bin/ksh 
          NLS_DATE_LANGUAGE=AMERICAN
          export NLS_DATE_LANGUAGE
          $ORACLE_HOME/bin/sqlldr $*
    
  2. Set execute attributes:
          $ chmod 755 /path/to/sas/sqlldr
    
  3. Ensure that the directory /path/to/sas is inserted first into the UNIX PATH environment variable. Edit /path/to/sas/bin/sasenv_local and add the following:
        PATH=/path/to/sas:$PATH 
        export PATH
    

This problem might present itself in SAS® Digital Marketing if the response table is held in Oracle in a non-English locale. The update to the response history table in the SAS® Marketing Automation Common Data library fails. The following error message appears in the sascustintelreporting log file:

INFO [00000208] 4:sastrust@saspw - Record 1: Rejected - Error on table CI_INTABLE152701, column RESPONSE_DTTM. INFO [00000208] 4:sastrust@saspw - ORA-26041: DATETIME/INTERVAL datatype conversion error

Click the Hot Fix tab in this note to access the hot fix for this issue.

Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to OracleMicrosoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft Windows XP 64-bit Edition9.2 TS2M39.2 TS2M3
Microsoft® Windows® for x649.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.2 TS2M39.2 TS2M3
Microsoft Windows Server 2003 for x649.2 TS2M39.2 TS2M3
Microsoft Windows Server 20089.2 TS2M39.2 TS2M3
Microsoft Windows Server 2008 for x649.2 TS2M39.2 TS2M3
Microsoft Windows XP Professional9.2 TS2M39.2 TS2M3
Windows 7 Enterprise 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Enterprise x649.2 TS2M39.2 TS2M3
Windows 7 Home Premium 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Home Premium x649.2 TS2M39.2 TS2M3
Windows 7 Professional 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Professional x649.2 TS2M39.2 TS2M3
Windows 7 Ultimate 32 bit9.2 TS2M39.2 TS2M3
Windows 7 Ultimate x649.2 TS2M39.2 TS2M3
Windows Vista9.2 TS2M39.2 TS2M3
Windows Vista for x649.2 TS2M39.2 TS2M3
64-bit Enabled AIX9.2 TS2M39.2 TS2M3
64-bit Enabled HP-UX9.2 TS2M39.2 TS2M3
64-bit Enabled Solaris9.2 TS2M39.2 TS2M3
HP-UX IPF9.2 TS2M39.2 TS2M3
Linux9.2 TS2M39.2 TS2M3
Linux for x649.2 TS2M39.2 TS2M3
OpenVMS on HP Integrity9.2 TS2M39.2 TS2M3
Solaris for x649.2 TS2M39.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.