Register Login

How to access an external database from ABAP via DBLINK (ORACLE)

Updated May 18, 2018

Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external database, make sure that the type and lengths of the fields are identical.

Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE

Using SVRMGRL>

create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
drop table ZTABLE; (table dropped)

create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)

Using transaction SE16, type in ZTABLE_VIEW and hit RETURN

Enter value in key fields and hit execute. (displays rows from the remote table


Comments

  • 19 Aug 2008 10:04 am Guest
    Hello,

    about the line "Using SVRMGRL>" : what transaction code do we use ?
  • 17 Sep 2008 1:42 pm Guest
    it's not a transaction.. it's a Oracle Utility
  • 23 Oct 2008 12:01 pm Guest
    Do I need to create a program using the transaction SE38 for populating the ZTABLE before droped its or after?
  • 09 Jul 2013 6:01 am irin
    I want to see only database connection those are made by external programs.

    We are using birt for report development and viewing.

    How can I measure how many connections has been made to SAP Database in backend?

    Is ther any licensing issue with Oracle if we keep using it?

×