This page describes how to connect SAP High-performance ANalytic Appliance (HANA) to Agentspace Enterprise.
Capabilities
- Logging and monitoring is handled from the framework end.
- Performance and scalability.
Limitations
While SAP HANA provides many advantages, it also has the following limitations:
- Bulk data insertion cannot be performed into HANA DB.
- SSL option is not yet validated for this connector; hence, SSL connections are not supported
Sync data from SAP HANA
Use the following procedure to sync data from SAP HANA to Agentspace Enterprise .
After you set up your data source and import data the first time, the data store syncs data from that source at a frequency that you select during setup.
Before you begin
Before setting up your connection, do the following:
Service attachment (required for private destination type only): Use the following steps to generate a service attachment for secure data transfer.
Decide endpoint type: Select Public or Private endpoint.
For Public endpoint: If the HANA DB-hosted VM Destination type is Public, you are not required to create the setup for service attachment. Instead, you can use your public URL in the Domain URL field of the Google Cloud console when creating your connector.
For Private endpoint:
- Use Private Service Connect (PSC) to enable connections from private instances to Google Cloud.
- Create a Virtual Private Cloud network and required subnets.
- Create a VM instance and install the backend service.
- Optional: Set up a health check probe to monitor backend health.
- Add a load balancer to route traffic to the VM or backend.
- Define firewall rules to allow traffic between the PSC endpoint and the backend.
- Publish the endpoint by creating a PSC service attachment.
Username and password: Obtain valid credentials for authentication from your SAP HANA administrator.
Schema name should be appended with the table name as an input to fetch the
aclinfo
.Connection to HANA DB: Check if the connection uses the SQL username/password, and this user must have the necessary read-only permissions to the given table.
Create a SAP HANA user and set up permissions
To enable Agentspace Enterprise to obtain data from SAP HANA, you need to create a new user with the minimum permissions necessary. Follow these steps to create the user and set up the required permissions.
Use HANA studio as the client tool. Create a user through SAP HANA studio or HANA cockpit.
CREATE USER TESTUSER1 PASSWORD "UserWelcome@123" NO FORCE_FIRST_PASSWORD_CHANGE;
Assign catalog roles and repository roles to users accessing the database.
CREATE ROLE my_custom_role; GRANT SELECT, INSERT, UPDATE ON my_schema.my_table TO my_custom_role; GRANT my_custom_role TO my_user;
Configure the application access
Set up SAP HANA user authentication:
- Define users and roles in SAP HANA studio or HANA cockpit.
- Assign the appropriate privileges (for example, System Privileges, Object Privileges, Analytic Privileges).
- Use LDAP, SAML, or Kerberos if external authentication is required.
Configure network and firewall settings:
- Ensure the required ports (default: 30015 and 30013) are open for SAP HANA communication.
- Set up firewall rules to allow access from specific application servers.
- Use SAP HANA web dispatcher for load balancing and secure access.
Define application user roles and privileges:
- Assign catalog roles and repository roles to users accessing the database.
- Use the
GRANT
statement to provide SELECT, INSERT, UPDATE, DELETE privileges to applications. - Create analytic privileges for restricting access to specific data sets.
Configure application connectivity:
- Use ODBC, JDBC, or OData to connect applications to SAP HANA.
- Configure connection settings in SAP HANA Studio, SAP HANA Cockpit, or in the application itself.
- Set up secure connections with SSL/TLS for encrypted communication.
Secure application access:
- Enable SSL encryption for database connections.
- Implement Single Sign-On (SSO) if required.
- Regularly review and update access control lists (ACLs).
Monitor and optimize application access:
- Use SAP HANA Cockpit or SQL queries to monitor active sessions.
- Track failed login attempts using
SYS.M_CONNECTIONS
orSYS.M_FAILED_AUTHENTICATIONS
. - Optimize query performance and adjust privileges as necessary.
Handle unique identifiers in SAP HANA views
To understand how the system structures and logs data during synchronization and handles unique identifiers, see the following:
SAP HANA views does not support primary keys. The connector ensures uniqueness by generating a unique ID within the
aclinfo
JSON file. It derives this ID from a UUID and appends it to entity or struct data.The
Id
field inside the struct data matches theId
value retrieved from the CData driver. However, theId
field outside the struct data is dynamically generated and encodes a different value for each execution in theaclinfo
logs.
Create a SAP HANA connector
Console
To use the Google Cloud console to sync data from SAP HANA to Agentspace Enterprise , follow these steps:
In the Google Cloud console, go to the Agentspace page.
In the navigation menu, click Data stores.
Click
Create data store.On the Select a data source page, scroll or search for SAP HANA to connect your third-party source.
Enter your SAP HANA authentication information.
Select which entities to sync and click Continue.
Select a region for your data connector.
Enter a name for your data connector.
Select a synchronization frequency.
Click Create. Agentspace Enterprise creates your data store and displays your data stores on the Data stores page.
To check the status of your ingestion, go to the Data stores page and click your data connector name to see details about it on its Data page. The Connector state changes from Creating to Running when it starts synchronizing data. When ingestion is complete, the state changes to Active to indicate that the connection to your data source is set up and awaiting the next scheduled synchronization.
Depending on the size of your data, ingestion can take several minutes or several hours.
Next steps
To attach your data store to an app, create an app and select your data store following the steps in Create an app.
To preview how your search results appear after your app and data store are set up, see Preview search results. If you used third-party access control, see Preview results for apps with third-party access control.
To enable alerts for the data store, see Configure alerts for third-party data stores.