There is requirement that if backend database is HANA DB the system trigger a update operation. otherwise the db is non-HANA db the system raises an error.
How to determine whether backend database is HANA DB in ABAP codes?
Thanks & Regards
Check CL_DB_SYS=>DBSYS_TYPE - if it is HDB, you're on a HANA system. Be sure to read the documentation of that attribute.
Related
How do I know who logged, when logged, how long HANA being used by user, to what schema user accessed in My SAP HANA SPS 11?
Did you check "SYS"."AUDIT_LOG" and "SYS"."AUDIT_ACTIONS" system views?
I need to replicate data from a source HANA DB to other HANA DB on real time basis(on trigger event like update/delete/insert). I have searched for the solution and found one i.e. SAP LT Replication Server. But I need custom implementation like taking data from source HANA DB and putting in a queue. Is it possible? And need some suggetions regarding SAP LT Replication Server.
Your question is pretty broad, so I recommend to familiarize yourself more with the use case and the available technology.
Besides SAP LT replication, you could potentially use the Smart Streaming option to facilitate real-time data transfer.
However, database level real-time replication is a rather specific requirement and can easily be confused with more general integration requirements. Be very careful about the application level you integrate your applications on.
You can use SAP HANA EIM Smart Data Integration. The HANA adapter is trigger based, supports real time scenarios including DDL propagation.
Within the target HANA DB you would create a reptask or a realtime flow-graph.
You can find the details in the Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data Quality.
My application relies on data that is stored in a SAP Database. In addition to that, I need to persist data that references the SAP data but cannot be stored in the SAP database. So there is another (MySQL) database.
What would be the cleanest way to connect those 2 datasources?
I think it would be better/safer to constantly get the data I need from SAP and also store it in the MySQL database, since I can reference them with FKs. But I do not want to always check for changes in the SAP database and then copy all the data to MySQL since queries to SAP are usually very expensive.
Oracle and SQL server have a database change notification feature that notifies table/row level changes in a database to registered clients. The feature is mostly used for synchronization of data with other data sources.
I've been looking for this feature in DB2 but so far, no luck. Does DB2 not provide this feature at all or am I missing something?
There is no such feature out of the box, not in the LUW version anyway (since you reference Oracle and MS SQL Server, I guess that's what you're interested in). You can easily roll your own using Q Replication event publishing, InfoSphere Change Data Capture, or plain old triggers and MQ functions.
We are using SQL data sync tool to syncronize on premise DB with cloud. But while provisioning, the data sync throws up the error message that it requires ALTER DATABASE.permission for the SQL id on SQL Server on-premise Database. We did lot of digging to find out the reason and it looks like it uses ALTER DATABASE command to change the <change_tracking_option>. Does this mean if <change_tracking_option> is enabled, it will not create the change tracking triggers for each tables? But if it does create it , then why it requires ALTER DATABASE permission?
SQL Azure Data Sync is based on the Sync Framework and I think this is happening because the Sync Framework is trying to enable snapshot isolation on your database.