My Oracle Support Banner

Using ODBC Driver Executing Select Statement With Comment section in it fails with ORA-24374 error (Doc ID 2752395.1)

Last updated on FEBRUARY 21, 2021

Applies to:

Oracle ODBC Driver - Version 19.1.0.0.0 to 19.1.0.0.0 [Release 12.1]
Information in this document applies to any platform.

Goal

Using ODBC driver Executing Select statement with comment section in it fails with ORA-24374 error

Ex:

cmd.ActiveConnection = con
cmd.CommandText = " /* Use GDM login. Is granted read-only access to the LDM schema. No accessible directly as LDM users are controlled by the system " & _
                  " so the rights are not directly configurable */ " & _
                  " " & _
                  " /* Select the RT6000 records */ " & _
                  " select * from " & _
                  " dual "

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.