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

ABAP native SQL

Former Member
0 Likes
467

Guys,

Did anyone know how Oracle synonym works with ABAP native SQL?

I have a database in oracle with a predefined synonym already used in ABAP code.

Now i want to change the current synonym to point towards a new database in oracle, my doubt is, are these synonyms point to the oracle table level or they point to the entire database?

Regards,

Sudeep

1 ACCEPTED SOLUTION
Read only

deepak_dhamat
Active Contributor
0 Likes
408

hi ,

If your are pointing to New database , Please check whether synonyms for those tables are there in the new Oracle database .

You need to maintain Entry of Database Connection in : DBCON table

There migth be OLD DB connection in DBCON table ,so need to create for new database connection or Change

Accordingly .

Synonyms are Generally Pointers which allow access for object which resides somewhere else .

TCode DBCO is used to create a DBCON connection.

Regards

Deepak.

2 REPLIES 2
Read only

Former Member
0 Likes
408

Hi ,

You can use native SQL as below

EXEC SQL.

INSERT INTO scarr

(MANDT, CARRID, CARRNAME, CURRCODE, URL)

VALUES ('000', 'FF', 'Funny Flyers', 'EUR',

'http://www.ff.com');

INSERT INTO scarr

(MANDT, CARRID, CARRNAME, CURRCODE, URL)

VALUES ('000', 'EF', 'Easy Flyers', 'EUR',

'http://www.ef.com');

ENDEXEC.

Regards,

Rahul

Read only

deepak_dhamat
Active Contributor
0 Likes
409

hi ,

If your are pointing to New database , Please check whether synonyms for those tables are there in the new Oracle database .

You need to maintain Entry of Database Connection in : DBCON table

There migth be OLD DB connection in DBCON table ,so need to create for new database connection or Change

Accordingly .

Synonyms are Generally Pointers which allow access for object which resides somewhere else .

TCode DBCO is used to create a DBCON connection.

Regards

Deepak.