Skip to main content

2. Secondary Database Connections (HANA)-DBACOCKPIT/DBCON

Each Application Server ABAP is connected to a Database Management System (DBMS) that contains the ABAP Repository and the database tables and views defined in this system’s ABAP Dictionary. This DBMS is referred to as its Primary Database. Besides this primary database connection it is possible to establish connections to additional database management systems, so called Secondary Database Connections. In the scenario SAP HANA as Accelerator, where SAP HANA is used as a secondary DBMS, it is necessary to establish such a secondary database connection to SAP HANA.

Maintain DB connection using below steps.

Transaction : DBACOCKPIT
 Use : Maintain. Monitor and test secondary db connections.

Tables : DBCON



















Secondary database connections, among other things, are created and maintained via transaction DBACOCKPIT. Each database connection is identified by name that has to be unique within the application server.

Inside the connection, the DBMS is identified by a hostname and an instance number, which relates to an SQL port. Furthermore a database user (with password) has to be maintained. Any access to the database via this secondary database connection is equivalent to a log on to the database with this user



Access to a Secondary Database with Open SQL:
Once the secondary database connection is established, it is easy to use it in ABAP programs: Open SQL offers an addition CONNECTION which has to be followed by the name of the secondary database connection.


Select ........ from <table>  connection <connection>.

But some restrictions apply, when using Open SQL to access a secondary database.

Restrictions:















Comments

Popular posts from this blog

ABAP7.40 New features

ABAP Language News for Release 7.40 For iteration expression ABAP 7.40 Quick Reference   Content 1. Inline Declarations 2. Table Expressions 3. Conversion Operator CONV      I.  Definition      II. Example 4. Value Operator VALUE      I.   Definition      II.  Example for structures      III. Examples  for  internal tables 5. FOR operator      I.   Definition      II.  Explanation      III. Example 1      IV. Example 2      V. FOR with THEN and UNTIL|WHILE 6.  Reduction  operator REDUCE      I.   Definition      II.  Note      III. Example 1      IV. Example 2     ...

1. ABAP Programming on SAP HANA Syllabus

Introduction and Technical Concepts INTRODUCTION. HANA TECHNICAL CONCEPTS. INTRODUCTION TO HANA STUDIO. Taking ABAP to HANA Optimize Conventional Code   Access the SAP HANA data base using Open SQL and Secondary connection. Tables in HANA studio. Performance Rules and guidelines for SAP HANA. Implementing ABAP report on HANA using ADBC. Why we use native SQL? ABAP database connectivity ( ADBC) Native SQL syntax. Consuming HANA views and Procedures in ABAP Working with views in HANA studio Overview of different types of views in HANA. Consuming SAP HANA views in ABAP Calling SAP HANA procedures in ABAP