[freetds] ORA-00904: "D_TIME": invalid identifier

Зверев Виталий Борисови Зверев Виталий Борисови
Wed Jun 22 02:50:29 EDT 2005


Hello Wei Jiang,
1)By default oracle uses upper cased column name notation and it can be a cornerstone of your problem.
You should try to rewrite select in case-sensitive style:
select "Exact_CoLuMn_NaMe" from record at hscwa
If you doubt in translated HS case-sensitive column names, try this:

select column_name 
from dba_tab_columns at hscwa
where lower(table_name) like 'record'

2)set suitable db
The 'record' table should be accessible from database noted in ODBCINI / HS_FDS_CONNECT_INFO or you should assign it explicitly before select.
DECLARE 
   val  VARCHAR2(100); 
   c    INTEGER; 
begin
 c:= DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE at hscwa('use _bla_bla_bla_');
end; 

Sincerely yours. 

------------------------------------------------------------ 
 Vitaly Zverev, Oracle Applications DBA,
   Genesis Ltd., St.Petersburg, Russia 
>>>>>> Tel : +7(812) 329-5689  <<<<<<
>>>>>>>> http://www.gen.ru <<<<<<<<



-----Original Message-----
From: freetds-bounces at lists.ibiblio.org [mailto:freetds-bounces at lists.ibiblio.org] On Behalf Of Wei Jiang
Sent: Wednesday, June 22, 2005 5:12 AM
To: freetds at lists.ibiblio.org
Subject: [freetds] ORA-00904: "D_TIME": invalid identifier


I has configured oracle HS, unixODBC and freetds, I
can run isql and tsql to test the connection, I can
run "select * from record at hscwa;" to recive each line
in table record with sqlplus, and I know the field
contains "d_time", so I type "select d_time from record at hscwa;",  but I got this error messaes:
"ORA-00904: "D_TIME": invalid identifier". 
Could anyone help me?
Thanks 


	

	
		
___________________________________________________________ 
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071

_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org http://lists.ibiblio.org/mailman/listinfo/freetds



More information about the FreeTDS mailing list