Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Native SQL error: 'Ora 911 error'

Former Member
0 Likes
922

Hi,

I have written the below native SQL, but getting an error as 'An SQL error has occurred: ORA-00911: invalid character'.

If anyone knows what is wrong written here, please revert back.

EXEC SQL.

select Alias_type_id

from ALIAS@DBL_TEST.YY.XXX.COM

into :l_type_id

where ALIAS_TYPE_ID = 'XXXS'

and NAME = 'XXXS17267965-ADB';

ENDEXEC.

When the query was ended with '.' instead of ';', then I was getting ORA-00933 error.

Thanks,

Ipsita

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

Try:

EXEC SQL.
  select Alias_type_id
    from ALIAS@DBL_TEST.YY.XXX.COM
    into :l_type_id
    where ALIAS_TYPE_ID = 'XXXS'
      and NAME = 'XXXS17267965-ADB'
ENDEXEC.

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
793

Try:

EXEC SQL.
  select Alias_type_id
    from ALIAS@DBL_TEST.YY.XXX.COM
    into :l_type_id
    where ALIAS_TYPE_ID = 'XXXS'
      and NAME = 'XXXS17267965-ADB'
ENDEXEC.

Rob

Read only

Former Member
0 Likes
792

Rob,

I have also tried this option, but it also gives error ORA-00933

Read only

Former Member
0 Likes
792

Check this SAP note : 157907 , 723149

From Note 723149 :

Errors such as ORA-00903, ORA-00911 and ORA-00953 may be triggered when objects that contain special characters are not enclosed in double quotation marks, for example:

Read only

Former Member
0 Likes
792

Thanks all for taking me in the right way