Problem Note 67588: A segmentation violation occurs in SAS/ACCESS® Interface to Oracle when you use PROC SQL with the PRESERVE_COMMENTS option
You receive a segmentation violation in SAS/ACCESS Interface to Oracle in the following set of circumstances:
- You use the PRESERVE_COMMENTS option in a LIBNAME statement for an Oracle library.
- You use the SQL procedure and a CREATE TABLE statement.
- The output table uses the libref.
- The input table uses the libref.
- A PUT function is in a SELECT clause.
The SAS log might display information similar to the following as well as the segmentation violation:
1 LIBNAME Oracle-library ORACLE PRESERVE_COMMENTS PATH=path USER=user-name PASSWORD=XXXXX
1 ! SCHEMA="schema" ;
NOTE: Option PRESERVE_COMMENTS is a CONNECT only option. Its value will be conveyed to any CONNECT USING connections based on this LIBNAME statement.
NOTE: Libref Oracle-library was successfully assigned as follows:
Engine: ORACLE Physical
Name: path
2 PROC SQL ;
3 CREATE TABLE Oracle-library.Oracle-table2 as
4 SELECT column-1,
5 PUT(column-2,$30.) AS newVar
6 FROM Oracle-library.Oracle-table1
7 ;
ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:The SAS task name is [SQL ]
Segmentation Violation
Traceback of the Exception:
/sasgen/dev/mva-v940m6f/SAS/laxdo/sas(+0x16844e) [0x7fd1bc05044e]
/sasgen/dev/mva-v940m6f/SAS/laxdo/sas(+0x4ee1f) [0x7fd1bbf36e1f]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/tkmk.so(bkt_signal_handler+0x144) [0x7fd1ba32caa4]
/lib64/libpthread.so.0(+0x381620f520) [0x7fd1bb89a520]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogUTKCreateOpt+0x1ab) [0x7fd18f70598b]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogUTKCreateAllOpts+0x4e) [0x7fd18f705bee]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasioora(orxogInitLNOpts+0x56) [0x7fd18f997176]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sasxdbi(xogInitLNOpts+0xc1) [0x7fd18f705d11]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogConLib+0x5d2) [0x7fd17bdda442]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogConFid+0x5e) [0x7fd17bdd9e4e]
/sasgen/wky/mva-v940m6/sasdvd/com/laxdo/sasxog(yogAllocConnectionWithFid+0x46) [0x7fd17bdd7e26]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x4002c) [0x7fd18018d02c]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x3b86c) [0x7fd18018886c]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x32042) [0x7fd18017f042]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39b2a) [0x7fd180186b2a]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x2bec0) [0x7fd180178ec0]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39932) [0x7fd180186932]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x19559) [0x7fd180166559]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x3ba80) [0x7fd180188a80]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x24374) [0x7fd180171374]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x23142) [0x7fd180170142]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x385c9) [0x7fd1801855c9]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x30458) [0x7fd18017d458]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(+0x39932) [0x7fd180186932]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlu(sqltxt2+0x51e) [0x7fd18016211e]
/sasgen/dev/mva-v940m6f/sasdvd/com/laxdo/sassqlp(+0x50c85) [0x7fd180623c85]
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.13 seconds
cpu time 0.06 seconds
The following workarounds exist:
- Remove the PRESERVE_COMMENTS option from the Oracle LIBNAME statement.
- Remove or replace the PUT function with an alternative. The STRIP function might work instead.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
z/OS 64-bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft® Windows® for x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise 32-bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Pro 32-bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Pro x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro 32-bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 10 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2008 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2008 R2 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2008 for x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 Datacenter | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Std | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 Std | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Enterprise 32 bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Enterprise x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Home Premium 32 bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Home Premium x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Professional 32 bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Professional x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Ultimate 32 bit | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Ultimate x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
64-bit Enabled AIX | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
64-bit Enabled Solaris | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
HP-UX IPF | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Linux for x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
Solaris for x64 | 9.4_M4 | 9.4_M7 | 9.4 TS1M4 | 9.4 TS1M7 |
*
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.
The PRESERVE_COMMENTS option is specific to an explicit SQL query, but it can also be used in a LIBNAME statement. This particular use might trigger a segmentation violation.
Type: | Problem Note |
Priority: | high |
Topic: | Data Management ==> Data Sources ==> External Databases ==> Oracle
|
Date Modified: | 2021-03-17 16:35:33 |
Date Created: | 2021-03-11 13:10:38 |