0% found this document useful (0 votes)
189 views11 pages

SAP BW4HANA-DataSource Connection (MS SQL DB) Source System Via SDA

Uploaded by

ariewm8598
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
189 views11 pages

SAP BW4HANA-DataSource Connection (MS SQL DB) Source System Via SDA

Uploaded by

ariewm8598
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
Aska Question Write a Blog Post Topics Groups Answers Blogs Events. Programs ~—Resour Technical Articles wf Like Ry RSS Feed Anikesh Jyotishi May 20, 2022 | 5 minute read SAP BW4HANA DS connation (MS SQL DB) Source system via SDA 0 b2 @372 Introduction: As you are all aware now, you cannot connect DS directly to the SAP BW4HANA system, Hance needs to connect DS DB with the HANA database via SDA and create a source system. Based on customer requirements set up HANA DB connection with MS SQL DB and set up source system. Contributor Abhishek Sinha DISCLAIMER The content of this blog post is provided "AS IS’. This information could contain technical inaccuracies, typographical errors, and out-of-date information. This document may be updated or changed without notice at any time. Use of the information is therefore at your own risk. In no event shall SAP be liable for special, indirect, incidental, or consequential damages resulting from or related to the use of this document. Overview:- Basic Any DB connection architecture with Hana. aan Hana Server i Hana ODBC connection file:- Under sidadm home Hana Driver:~ unixODBC.ini Connection via Linux ODBC driver HANA DB(SDA) non) Preparation + Check source and target compatibility by PAM + Check with the functional team and increase compute based on future growth + Check odbc LINUX Driver compatibility:- in my case its red hat enterprise Linux 7 (Check OS version from os-release ) to 179 178 W776 7S 7A 173-72 7A 170 13 fed Hat Yer estes Yes Yes er Ves Yer Wer Yes Were eerie Microsoft link for compatibility check:- System Requirements (ODBC Driver for SQL Server) - ODBC Driver for SQL Server | Microsoft Docs + As my target db is MS SQL DB 2016, as per the document need to install the. 13,0 MySQL driver + Check installed old installed ODBS drivers. + Required root access for setup Installation 1. Download files from OS 2. Update yum update 3. take config backup and remove old unixODBC to avoid conflicts 4, install MS SQL driver and MySQL tools 5. install unixODBC-utfl6-devel this step is optional but recommended (Based ‘on MS documentation) 6. Create symlinks for tools Note:- Use the below link and check your OS commands https://docs.microsoft.com/en-us/sql/connect/odbe/linux-mac/installing-the- microsoft-odbe-driver-for-sql-server?view=sql-server-2016 Download files from OS Download the required OS package by the below command (root @ Aammmaiammiiag “|i curl https://packages.microsoft.com/config/thel/7/prod.repo > Jetc/yum.repos.d/mssql-release.repo %Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left speed 100 193 100 193 0 0 322 0 me 322 Update yum update Update OS yup tool by below command sudo yum update (root@eeenepmeinr sudo yum update Loaded plugins: angpacks, product, ps, search-dsabled-repos,subscripton-manager This system isnot registered with an entitlement server. You can use subscripion-managerto register. packages-microsoft-com-prod 13.0k8_ 00:00:00 packages-microsoft-com-prod/primary_d& 1 115 kB 00:00:00 = Resolving Dependencies ~> Running transaction check —> Package datadog-agent.x86_64 1:7.34.0-1 will be updated —> Package datadog-agent.x86_64 1:7.35.2-1 will bean update > Finished Dependency Resolution Dependencies Resolved Package arch Version Repository Take config backup and remove old unixODBC to avoid conflicts:- ‘Take a backup of all odbe contig files you can find all locations by the below command, Run the below command to uninstall the old driver version sudo yum remove unixODBC* (If you use * it will uninstall all old versions) Perr eee tet search-disabled-repos, subscription-manager eee eee You can use subscription-manager to| Soren Er er ieee Install MS SQL driver and MySQL tools:- Install MS SQL Linux driver and ms tool by the below command sudo ACCEPT_EULA=Y yum install msodbesql-13.0.1.0-1 mssq]-tools-14.0,2.0-1 — lo ACCEPT_EULA=Y yum install msodbesql-13.0.1.0-1 mssql-tools 14.0.2.0-1 Loaded plugins: langpacks, product-id, ps, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager t register Resolving Dependencies > Running transaction check Package msodbesql.x86_64 0:13.0.1.0-1 will be installed > Processing Dependency: unixODBC-utf16 for package: msodbcsql-13.0.1.0-1.x86_64 -> Processing Dependency: libodbcinst:so.2()(64bit) for package: msodbcsql-13.0.1.0-1.x85_ Package mssql-tools.x86_64 0:14,0.2.0-1 will be installed > Running transaction check Package unixODBC-utf16.x86_64 0:2.3.1-1 will be installed > Finished Dependency Resolution Dependencies Resolved after installation check binaries in the below locations Install unixODBC-utf16-devel this step is optional but recommended:- Use below command for unixODBC-utf16-devel install sudo yum install unixODBC-utf16-devel seecasanstaudds/ust/sap diel home unixODBC> sudo yum install unixODBC-uth16-devel Loaded plugins: langpacks, product-d, ps, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Resolving Dependencies > Running transaction check -> Package unixODBC-utf16-devel x86_64 0:2.3.1-1 willbe installed > Finished Dependency Resolution Dependencies Resolved Create symlinks for tools : Create a soft link for MS SQL Linux tools, So that it can be available from everywhere. In -sfn /opt/mssql-tools/bin/sqlemd-13.0.1.0 /ust/bin/sqlemd In -sfn /ont/mssal-tools/bin/bep-13.0.1.0 /usr/bin/bco Verify link Check installed driver: Configuration + Update sidadm environment + Check target DB host and port is accessible for Hana Server + Create ODBC env file and update target MS db details in odbc driver file + Create SDA in HANA DB and Test SDA connection + BW source system creation + Check consistency and execute Update sidadm environment :- Update sidadm LD_LIBRARY_PATH by MySQL driver location, Created customer.sh file in sidadm home location, and update the below details. Hana DB default home path is /usr/sap/SID/home Check target DB host and port is accessible for Hana Server:- ‘open SQL server configuration Manager and check DB port under properties Bi 5 Serve Configuration Manager Fle fection View Hel #9/a/53/8 $3 SOL Server Configuration Manager (Loca) | Protocol Name G) SCL Sever Services a small TSA Memoy sat sever Netwoik Configuration 258] FN reags Drab 'B SOL Netive Chent 110 Configuration 2 wv T.sat sever etwerk configuration |) BEE [Be Protocole for MSSOLSERVER B SCL Native Chere 110 Conrguration TCP/IP Properties 2 x Protocal IP Addresses TeP Dynamic Ports A TeP Port 1433 IB ie Acive wee Enablee No IpAdaress 4 TcP Dynamic Ports TP Port 1433 IB ies Adive ves Enablee No IP Address 7004 TcP Dynamic Ports TeP Port 1433 IE an Active ] Indicates whether the selected IP Addrece i actve OK] | Corea! Aaiy Heb Create ODBC environment variable fil under Hana sidadm home path create the odbc ini file and update target db details. Check below the MS link for odbc config file syntax. Connect to SAP HANA via ODBC | SAP Help Portal odbc.ini file location :- /usr/sap/SID/home [Nama for Hana SDA Data source name] tmssot) Driver=/opt ‘microsoft /msodbcsql/1ib64/Libmsodbesql-11.0.s0.2 Deseriptii TPTION> , port number Port /ORT> Database=< Create SDA in HANA DB and Test SDA connectio! Login into Hana tenant db by the system user, Go to Provisioning -> Remote source right click and create new Remote source Source Name: Adapter Name: — MSSOL (GENERIC ODBC) Type fier Property name Vakie ¥ Connection Proper Adapter Version SO Serve ee eel Configuration file> property.mssini Data Source Name> MSSQL DML Mode readonly Y Credentials Credentials Mode* Technical user User Name e aaa comer use same odbc ini header name for Data Source Name, provide target MS db user id and password Expand Remote Source and check configured targeted MS DB details Expend DBO user and right click on the table you would like to access and select add as Virtual Table and give schema name. se virtual table and create view based on your requirement. ¥ & Remote Sources hain + ORS > 2 cobamali: > & dbo einai > & sys BW source system creation: ~ Create a logical name for SDA remote DB and go to RSA1 -> SAP Hana Smart data access Right-click and create a new connection and select the above SDA connection. Check consistency and execute Right-click on the new data source and check the connectivity a ee Reference Documents: https://docs. microsoft. com/en-us/sql/connect/odbe/linux-mac/system- requirements?view=sql-server-ver15 https://docs. microsoft. com/en-us/sql/connect/odbc/linux-mac/installing-the- microsoft-odbe-driver-for-sql-server?view=sql-server-2016 https://help.sap.com/docs/SAP_BPC_VERSION_BW4HANA/dd104a87ab92499 68e6279e613781166/47e03114c6744b24848d294a3999893c htmi?version=11.0 https://help.sap.com/docs/SAP_HANA_PLATFORM/OeecOd68141541d1b07893 39944924e/66a4169b84b2466892e1af9781049836.htmI?version=2.0.02 1868209 ~ SAP HANA Smart Data Access: Central Note | hope this document will help you to understand the remote DB connection via SDA. Cheers! Anikesh Jyotishi Assigned Tags Alert Moderator SAP BW/4HANA SAP HANA #sap hana sap bw4hana sap ds Similar Blog Posts External HANA view configuration in BW4HANA. By Anikesh Jyotishi Jan 24, 2022 Posting Data from IBP to SAP BWAHANA. By Pratibha Singh Jun 23, 2020 #BW4HANA 2.0 Has Been Released By Thomas Zurek Feb 25, 2019 Related Questions How to make connection from BW4HANA system to BODS system? By Ameya Gupte Apr 25, 2017 Extract Data from (NON-SAP) MSSQL to SAP BW4HANA 2.0 SPSO7 By Buganu Bogdan Apr 07,2021 SDI integration to BW4HANA: not possible to specify filter By Dzianis Anishchanka Jan 11, 2019 Be the first to leave a comment You must be Logged on to comment or reply to a post. Find us on Privacy Terms of Use Legal Disclosure Copyright ‘Trademark Cookie Preferences Newsletter Support

You might also like