iq-to-hdl-migration
A set of Python utilities for migrating an on-premise SAP IQ database's schema and data into SAP HANA CloudSAP HANA CloudThe managed database under most of this: CAP's default target, the store Datasphere and Analytics Cloud sit on, and a service with plans and components.sap official, btp, data lake Relational Engine.
A premigration utility scans the source SAP IQ database for features, artefacts, server options and users the data lake Relational Engine does not support. Three migration scripts then do the move: migration.py extracts the SAP IQ schema and data to a local location, copy_hdlfs.py copies the extracted files to the data lake file store over its REST APIs, and load_schema_and_data.py loads schema and data into the target. It needs Python 3.11 or later, pyodbc and Paramiko, and SAP IQ 16.1_SP01 as the lowest supported server version; SAP states the utilities are verified for migration through data lake Files only.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerBrian BernardContributes to this
In the atlas: contributes to 64@btbernardhemshukContributes to this
In the atlas: contributes to 1@hemshuksuhanigargContributes to this
In the atlas: contributes to 1@suhanigarg3 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
- Use as
- A reference
As a sample
- Form
- does not say
Connections
Moving an application, integration or database to another platform
Managed SAP HANA database service on BTP
Download
README
quoted from SAP-samples/iq-to-hdl-migration under Apache-2.0, readSAP IQ to SAP HANA Cloud, Data Lake Relational Engine Migration Utility
Description
This is a utility for SAP IQ to SAP HANA Cloud, Data Lake migration. These sample utilities can be used to migrate existing schema and data of SAP IQ to SAP HANA Cloud data lake Relational Engine. These utilities have been verified for migration to SAP HANA Cloud data lake Relational Engine via data lake Files only. It has 3 different utilities.
-
Premigration utility - The premigration utility identifies incompatible features, artifacts, server options, users etc. in your existing on-premise SAP IQ database before migrating it to SAP HANA Cloud data lake Relational Engine.
-
Migration Utility - The migration utility has three scripts:
- migration.py: Extracts SAP IQ schema and data to a specified local location.
- copy_hdlfs.py: Copies the extracted data files from local disk to the target SAP HANA Cloud, Data Lake File Store (HDLFS).
- load_schema_and_data.py: Loads the schema and copied data into SAP HANA Cloud data lake Relational Engine.
For more information on these utilities, please refer to README files within the respective Premigration and Migration folders.
- Common Folder :
It will have following files:
-
DB_Artifacts.list: Used by the migration utility to identify different artifacts that are not supported in data lake Relational Engine.
-
common.py: This file contains common functionalities used by the premigration, migration, and load utilities.
-
dbopts_noncustomer.csv: Used by the premigration utility to identify any SQLAnywhere server options that are not supported in data lake Relational Engine.
-
hosparams_noncustomer.csv: Used by the premigration utility to identify different SAP IQ server options that are not supported in data lake Relational Engine.
-
load_config.json: Configuration options file to provide the options required to run the load utility.
-
login_policy.csv: This file is used by the migration utility to identify different login policy-related options which are not supported in data lake.
-
migration_config.json: Configuration options file to provide the options required to run the migration utility.
-
premigration_config.json: Configuration options file to provide the options required to run the premigration utility.
- Pre_Migration Folder
It will have following files:
-
PreMigration_README.md: README file for the premigration utility. Please refer to the SAP HANA Cloud, Data Lake Migration Guide of assistance on running the utility.
-
pre_migration.py: Used by the premigration utility to identify different login policy-related options that are not supported in data lake Relational Engine.
- Migration Folder
It will have following files:
-
Load_README.md: Readme file for Load utility. Please refer to this README file to run load utility.
-
Migration_README.md: README file for the Migration utility. Please refer to the SAP HANA Cloud, Data Lake Migration Guide of assistance on running the utility.
-
copy_hdlfs.py: Python utility to recursively copy extracted data files from local storage to HDLFS using REST APIs.
-
load_schema.sh: Shell script used by the load_schema_and_data.py utility to load the database schema into data lake Relational Engine.
-
load_schema_and_data.py: Python utility to load the SAP IQ extracted schema and data into the data lake Relational Engine.
-
load_table.sh: Shell script used by the load_schema_and_data.py utility to load table data into data lake Relational Engine.
-
migration.py: Python utility to extract schema and data from SAP IQ.
Requirements
- Python 3 (3.11.x or higher version)
- Pyodbc
- Minimum Supported IQ Server version - 16.1_SP01
- Paramiko(Python module)
Download and Installation
Install python 3.11.x or higher version and pyodbc. Clone this repo You can then run Premigration and Migration utilities.
Known Issues
Limitations
How to obtain support
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
Contributing
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
License
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-iq-to-hdl-migration- JSON
- /artifacts/sap-samples-iq-to-hdl-migration.json
- MCP
- Connecting an agent