hana

SAP S/4 HANA - 记录初体验

匿名 (未验证) 提交于 2019-12-03 00:40:02
这些天,我在构思一门培训课程,需要用到 SAP S/4 HANA 的环境,于是就琢磨着搭建一套自己的环境。现在毕竟是云的时代,SAP 为了推广自己的产品,也给出了看起来挺不错的试用产品。我抱着试试看的心理,开启了一个尝试。 SAP 的试用组合: SAP CAL 服务:30天免费 SAP S/4 许可:90天 支持的部署环境:AWS 或者 AZure 登录 CAL,方案一览: 在 CAL 中配置和 AWS 或者 AZure 的账号连接,可以直接将 SAP 的各种解决方案直接部署在云端。中间的过程十分的简单方便直接,看起来一切都是那么的完美,在这点上要给 SAP 点赞,基本不需要任何额外的知识。 那么我们是不是可以好好的玩耍呢? 作者使用了 AWS,部署了 SAP S/4HANA 1709 FPS01, Fully-Activated Appliance 这套解决方案,真正让这套方案跑了几个小时,搁置不到一个星期,让我们来看看花费: 是的,你没有看错,是将近25美刀!让我们来看看我们真正的让虚拟机运行的时间: 6月7日到6月13日: 具体开支: 也就是即使没有启动服务,每天也需要2.5刀左右的花费,于是我坚持不住,果断停止了服务,浪费了 SAP CAL给的30天免费的资格,感觉十分对不住 SAP。 注意,30天免费试用之后,如果想继续,请奉上 908 刀每月的订阅费。如果用的爽了

SAP HANA ODBC驱动配置

匿名 (未验证) 提交于 2019-12-02 23:52:01
1. 官网下载SAP_HANA_CLIENT_32或者SAP_HANA_CLIENT_64,先解压,双击hdbsetup.exe进行安装(先安装32位进行测试,不可用的话安装64位) 2.打开电脑的搜索,输入odbc,选择32位odbc数据源 这里需要注意一下,有的电脑默认是只显示一个odbc数据源,需要自行查看这个odbc数据源是32位的还是64位的。 32位与64位odbc数据源 目录 C:\Windows\System32\odbcad32.exe C:\Windows\SysWOW64\odbcad32.exe 打开odbc数据源,点击添加 选择安装的驱动 输入数据源名称,服务地址及端口;ip:端口;然后点击Connect按钮进入下一步; 输入HANA账套的用户名及密码,点击OK按钮 看到弹出如下提示,则配置成功。 配置数据库连接字符串,DSN是你刚配置的数据源名称,uid与pwd则是HANA账套的账户及密码。 <add name="SBOConnectionString" connectionString="dsn=HANA;uid=SYSTEM;pwd=!QAZ2wsx" providerName="System.Data.Odbc" /> 直接在代码里写sql语句查询hana数据库表,需要在表名前面加上数据库名。

C#连接SAP HANA数据库读取数据

匿名 (未验证) 提交于 2019-12-02 23:37:01
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ot512csdn/article/details/90751158 SAP PO中间件系统,使用的SAP HANA数据库,平台上数据交换日志都写到BC_MSG_LOG这张表里, 但PO的管理界面提供的功能很弱,无法基于这张表的数据做多维度的统计和展示。 如果我们想做一些指标的展示,例如下面,我们需要在HANA数据库中自己读出这张表的数据。 C#对数据库的操作当然应该是用微软的EF框架,效率超高。 可惜HANA才推出不久,配套的微软EF框架还没出来。 那就先用ODBC试试: 一、在SAP官网下载HANA的client安装包(其中包含C#开发类库) HDB_CLIENT_WINDOWS_X86_64_20190112.zip 安装完成后要重启动WIN10系统,然后ODBC里面才能看到HANA的驱动。 二、在系统ODBC里面,配一个连接出来。 三、打开VS2017,建一个WINFORM桌面程序,全部代码如下: (注意项目用64位程序编译才能通过) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Odbc;

import array type into hana?

橙三吉。 提交于 2019-12-02 18:13:34
问题 I am importing data into SAP HANA using the CSV files. When I try to import a column which has an array type then it results in the following error ARRAY type is not compatible with PARAMETER TYPE For example CREATE COLUMN TABLE "SCHEMA"."TABLE" ( 'ID' INT, 'SUBJECTS' INT ARRAY) The above query creates the table and when I run INSERT INTO "SCHEMA"."TABLE" VALUES (1,ARRAY(1,2,3)) It inserts successfully into the HANA database. But when I try INSERT INTO "SCHEMA"."TABLE" VALUES (1,"{1,2,3}") It

Subtract value to multiple rows - SQL

断了今生、忘了曾经 提交于 2019-12-02 14:11:47
问题 Well I am stuck at a point where I need to distribute a value across multiple rows. Since I do not know the specific term, I would put it in the form of example below for better understanding: Assuming the value of x to be 20, I need to distribute/subtract it to rows in descending order. TABLE: ID Value1 1 6 2 5 3 4 4 3 5 9 Result should look like: (x=20) ID Value1 Answer 1 6 14 2 5 9 3 4 5 4 3 2 5 9 0 Can anyone just give me an idea how I could go with this? I hope my question is clear

SAP HANA Vora 1.2 : Cannot load as virtual table in HANA Studio

a 夏天 提交于 2019-12-02 13:14:46
问题 In SAP HANA Vora 1.2 Dev Edition: I've configured the Spark Controller and started server. Then I run the spark-shell and created a new table. In SAP HANA Studio i can see now folder "spark_velocity" and "table001" in it, which I created. When I try to add this table my HANA folder with "Add as Virtual Table" option I receive an error: SAP DBTech JDBC: [476]: invalid remote object name: Unable to retrieve remote metadata for SparkSQL.spark_velocity.SparkSQL.spark_velocity.table001: line 0 col

Upload an array in HANA

安稳与你 提交于 2019-12-02 12:29:42
问题 I am new to SAP HANA and was recently migrating some of our databases to it and found it very good in performance. The problem I am facing is that I am unable to upload an array column in HANA. But I found there is a way to INSERT an ARRAY in HANA using the method INSERT INTO T1 VALUES ( 1, ARRAY ( 1, 2, 3, 4 ) ) Since I have a .CSV file where the first two columns are integers and the third one is a bigint array from postgres and the it looks like: input.csv 1,2,"{1545645,2652656,3545645}" 3

import array type into hana?

折月煮酒 提交于 2019-12-02 09:57:37
I am importing data into SAP HANA using the CSV files. When I try to import a column which has an array type then it results in the following error ARRAY type is not compatible with PARAMETER TYPE For example CREATE COLUMN TABLE "SCHEMA"."TABLE" ( 'ID' INT, 'SUBJECTS' INT ARRAY) The above query creates the table and when I run INSERT INTO "SCHEMA"."TABLE" VALUES (1,ARRAY(1,2,3)) It inserts successfully into the HANA database. But when I try INSERT INTO "SCHEMA"."TABLE" VALUES (1,"{1,2,3}") It does not work.So how can I import the array values in the CSV file to the column in HANA database. You

How to split multiple values from a row into separate rows?

孤街醉人 提交于 2019-12-02 06:59:17
I want to split multiple values from a row into a separate row in sap hana sql. table : id name 1 kabil,arasan but I want an output like this: id name 1 kabil 1 arasan Christoph G try to avoid csv-like data in columns, e.g. normalize during ETL process you can use a procedure, see [ HANA: Split string? without a procedure you can use the following SQL (restriction: it assumes a maximum number of values in your csv-field). I would use it only for adhoc purposes. CREATE COLUMN TABLE "TEST_SPLIT"( "SOME_KEY" VARCHAR(10), "CSV_STR" VARCHAR(1000) ); INSERT INTO "TEST_SPLIT" ("SOME_KEY", "CSV_STR")

SAP HANA Vora 1.2 : Cannot load as virtual table in HANA Studio

穿精又带淫゛_ 提交于 2019-12-02 04:22:33
In SAP HANA Vora 1.2 Dev Edition: I've configured the Spark Controller and started server. Then I run the spark-shell and created a new table. In SAP HANA Studio i can see now folder "spark_velocity" and "table001" in it, which I created. When I try to add this table my HANA folder with "Add as Virtual Table" option I receive an error: SAP DBTech JDBC: [476]: invalid remote object name: Unable to retrieve remote metadata for SparkSQL.spark_velocity.SparkSQL.spark_velocity.table001: line 0 col 0 (at pos 0) And here is full Exception: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech