on 2013 Aug 16 2:14 AM
DBMS is ASA 9.0.2.3951 on SuSe Linux 10.1 32-bit host. I'm using a master in Sybase Central for create proxy table of Oracle 10g database table. I've got an error with SQLCODE -667 "Could not access column information for the table '%1'". Documentation says that prabable couse may by "Column information for the table could not be accessed. Check privileges for the table". I can't understand what does it mean. I have SELECT privilege on this table(view) in Oracle database. What i must to do to avoid this error?
Update:
I'm using an Oracle WP Driver.
There is a part from odbc.ini
[ODBC Data Sources] OraSRC=iAnywhere Solutions 9 - Oracle Wire Protocol Driver [OraSRC] Driver=/opt/sybase/SYBSsa9/drivers/lib/wqora19.so Description=iAnywhere Solutions 9 - Oracle Wire Protocol ApplicationUsingThreads=1 ArraySize=60000 CachedCursorLimit=32 CachedDescriptionLimit=0 CatalogIncludesSynonyms=1 CatalogOptions=1 DefaultLongDataBuffLen=1024 DescribeAtPrepare=1 EnableDescribeParam=1 EnableNcharSupport=0 EnableScrollableCursors=1 EnableStaticCursorsForLongData=1 EnableTimestampWithTimeZone=0 HostName= here the fqdn of the oracle db host LocalTimeZoneOffset= LockTimeOut=5 LogonID= here the username of oracle user Password= user password PortNumber=1521 ProcedureRetResults=1 SID=B UseCurrentSchema=0
I put the OraSRC to connection parameters when creating the remote server in Sybase Central. Remote server was sucessfully created. Then i tried to create a proxy table, peek the db name and choose table name from list and go on.
Request clarification before answering.
Sybase Central is probably calling dbo.sp_remote_columns
() which is failing for some strange reason. Try issuing the CREATE EXISTING TABLE statement directly in DBISQL and see if that works or gives you more details as to why the column information is not coming back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the following work when issued via DBISQL (assumption: SRV_ORA is the server name as specified in the CREATE SERVER statement):
FORWARD TO SRV_ORA; SELECT * FROM <your native Oracle table schema and name>; FORWARD TO;
(That's just a test whether the ASA user can access the remote table when the select is sent as a native command to the remote server.)
User | Count |
---|---|
62 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.