Usage Note 44103: An Oracle error occurs when appending to an Oracle table with a virtual column
The following error might occur when you append/insert into an Oracle table that contains a virtual column.
ERROR: ORACLE connection error: ORA-12560: TNS:protocol adapter error.
ERROR: Connection to the oracle DBMS does not exist.
Oracle 11g has introduced a new concept of a virtual field, which is essentially a view of a field. Technically, the field is not physically stored in the data, but you can query it.
Oracle documentation about this error is as follows:
ORA-54013: INSERT operation disallowed on virtual columns
Cause: Attempted to insert values into a virtual column
Action: Reissue the statment without providing values for a virtual column
To avoid the error and append/insert into the Oracle table, use the DROP= data set option on the virtual column name. Here is an example:
proc append base=test.dept_virtual(drop=acct_chrgoff_ind_test) data=temp;
run;
/* acct_chrgoff_ind_test is the Oracle virtual column */
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to Oracle | Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | |
| Microsoft® Windows® for x64 | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | |
| Microsoft Windows XP Professional | 9.2 TS2M3 | |
| Windows 7 Enterprise 32 bit | 9.2 TS2M3 | |
| Windows 7 Enterprise x64 | 9.2 TS2M3 | |
| Windows 7 Home Premium 32 bit | 9.2 TS2M3 | |
| Windows 7 Home Premium x64 | 9.2 TS2M3 | |
| Windows 7 Professional 32 bit | 9.2 TS2M3 | |
| Windows 7 Professional x64 | 9.2 TS2M3 | |
| Windows 7 Ultimate 32 bit | 9.2 TS2M3 | |
| Windows 7 Ultimate x64 | 9.2 TS2M3 | |
| Windows Vista | 9.2 TS2M3 | |
| Windows Vista for x64 | 9.2 TS2M3 | |
| 64-bit Enabled AIX | 9.2 TS2M3 | |
| 64-bit Enabled HP-UX | 9.2 TS2M3 | |
| 64-bit Enabled Solaris | 9.2 TS2M3 | |
| HP-UX IPF | 9.2 TS2M3 | |
| Linux | 9.2 TS2M3 | |
| Linux for x64 | 9.2 TS2M3 | |
| OpenVMS on HP Integrity | 9.2 TS2M3 | |
| Solaris for x64 | 9.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.
| Date Modified: | 2011-12-08 13:40:51 |
| Date Created: | 2011-08-25 13:58:40 |