Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Datetime Column Type of Sybase

Rob RivermarkAug 30 2016 — edited Aug 30 2016

Hi guys,

I have a database link to Sybase ASE database using dg4odbc.

But when trying to create a procedure to insert into table in Sybase, I have an error, ORA-00904: "alarmTS": invalid identifier.

Table UAlarm created in Sybase.

Column IDColumn NameData TypeLength
1entity_idsmallint2
2obj_idvarchar20
3alarmTSdatetime8
4alarmClasstinyint1
5alarmNoint4
6alarmTextvarchar255

SQL> desc "dbo"."UAlarm"@sybasedb;

Name                                      Null?    Type

----------------------------------------- -------- ----------------------------

entity_id                                 NOT NULL NUMBER(5)

obj_id                                    NOT NULL VARCHAR2(60)

alarmClass                                NOT NULL NUMBER(3)

alarmNo                                   NOT NULL NUMBER(10)

alarmText                                 NOT NULL VARCHAR2(765)

I can't find "alarmTS" column, and for your information, that column can't be null.

My environments:

  • Oracle Database 11g R2 (11.2.0.4)
  • Oracle Database Gateway for ODBC 11g R2 (11.2.0.1)
  • SAP Sybase ASE 15.7

Please help.

This post has been answered by mxallen-Oracle on Aug 30 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2016
Added on Aug 30 2016
3 comments
763 views