Usage Note 16843: "ORA-00942: table or view does not exist" Accessing Oracle Table from
Oracle Client
Use SAS/ACCESS Interface to Oracle Libname with Preserve_Tab_Names=Yes and create a new Oracle table with a data step. The Oracle table name contains mixed case characters, e.g.
libname myora oracle user=scott orapw=tiger path=alien
preserve_tab_names=yes;
data myora.New_Table_Created_jan06;
set sashelp.class;
run;
When the table is queried using SQL*Plus, the following error is returned:
SQL> select count(*) from New_Table_Created_jan06;
select count(*) from New_Table_Created_jan06
*
ERROR at line 1:
ORA-00942: table or view does not exist
The tablename must be enclosed in quotes, e.g.
SQL> select count(*) from 'New_Table_Created_jna06';
To avoid having to quote the tablename in SQL*Plus, do not use the preserve_Tab_Names=yes on the libname statement when creating the Oracle tables from SAS.
libname myora oracle user=scott orapw=tiger path=alien;
data myora.New_Table_Created_jan06;
set sashelp.class;
run;
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Oracle | Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows XP Professional | 9.1 TS1M3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
*
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.
Type: | Usage Note |
Priority: | low |
Topic: | Data Management ==> Data Sources ==> External Databases ==> Oracle SAS Reference ==> LIBNAME Engines
|
Date Modified: | 2008-03-04 14:59:43 |
Date Created: | 2006-01-12 11:18:39 |