‎2011 Sep 30 10:18 AM
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
‎2011 Sep 30 10:38 AM
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.
‎2011 Sep 30 10:27 AM
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
‎2011 Sep 30 10:38 AM
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.