Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all 5653 articles
Browse latest View live

HANA calculation view, temporal tables and processing data by rows

$
0
0

Hi,

I have a question about using HANA sql script in calculation view for BW.

I'm trying to move the logic from application server to HANA DB. And I'm trying to find some objects to process data row-by-row like LOOP in internal tables in ABAP.

The task is to realize some complex logic - to read data from 3 DSO, to calculate some fields, check some conditions and delete some strings in the result and so on.

 

I've read most of the topics founded by search on "temporal tables in calculation view", "loop in calculation view" and so on. And i've made several experiments.

From them i understood that:

  1. I can't use temporal tables in calculation view because calculation view is always read-only.
  2. I can't make another procedure, use temporal tables and call it from my calculation vew because read-write procedure can not be called from read-only procedure. So I can't use  temporal tables at all.
  3. I can use cursors but it is impossible to insert or delete some data in cursor.
  4. I've found a blog Using SQLSCRIPT ARRAY as "Internal Table" to deal with complex logic about using separate array for every field of "internal table" which i need. But as for me, this variant is too difficult in debugging, understanding, supporting and so on.

 

I understand that using joins and unions is preferable variant, but I think that my task really could not be solved by joins and unions.

Before HANA on classic BW I used a "virtual cube" technology for such tasks. I can return to processing data in ABAP in virtual cube for current task.

But before doing this, I'd like to ask: have I understood correctly that the variant with arrays from that blog is the only one possible variant of realizing "internal tables" in calculation views? If there are other variants, I'd be very glad to get some links to read, keywords, ideas and so on. Thanks.


hana on docker container

$
0
0

Hi,

 

I have installed an hana server on a docker container and it's worked.

But when I stop docker container, I am not able to restart hana server.

it seems hdbdaemon doesn't start..

Any idea ? Has someone encounter the same issue ?

 

Regards

Sandrine

upgrade to SPS11

$
0
0

Hi

I want to upgrade HANA to SPS11 and one of the Prerequisites is to upgrade to GCC 4.8

2228351 - Linux: SAP HANA Database SPS 11 revision 110 (or higher) on RHEL 6 or SLES 11

When I tryinstallthe RPM I get the error:

 

sap*****:/tmp/gcc48-runtime # zypper install /tmp/gcc48-runtime/lib*.rpm

Loading repository data...

Reading installed packages...

Resolving package dependencies...

 

 

The following NEW package is going to be installed:

  libgcc46

 

 

The following packages are going to be upgraded:

  libgcc_s1 libstdc++6

 

 

The following packages are not supported by their vendor:

  libgcc46 libgcc_s1 libstdc++6

 

 

2 packages to upgrade, 1 new.

Overall download size: 355.0 KiB. After the operation, additional 99.0 KiB will be used.

Continue? [y/n/?] (y): y

Retrieving package libgcc46-4.6.1_20110701-0.13.9.x86_64 (1/3), 43.0 KiB (87.0 KiB unpacked)

Failed to mountcd:///?devices=/dev/disk/by-id/usb-IMM_Virtual_CD_DVD_20070221-15-0:0,/dev/sr0,/dev/sr1,/dev/sr2 on /var/adm/mount/AP_0x00000001: Mounting media failed (mount: no medium found on /dev/sr0)

 

 

Please insert medium [SLES-for-SAP-Applications 11.2.2-1.5] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n

Failed to provide Package libgcc46-4.6.1_20110701-0.13.9. Do you want to retry retrieval?

 

 

[SLES-for-SAP-Applications 11.2.2-1.5|cd:///?devices=/dev/disk/by-id/usb-IMM_Virtual_CD_DVD_20070221-15-0:0,/dev/sr0,/dev/sr1,/dev/sr2] Can't provide file './suse/x86_64/libgcc46-4.6.1_20110701-0.13.9.x86_64.rpm' from repository 'SLES-for-SAP-Applications 11.2.2-1.5'

History:

- Failed to mountcd:///?devices=/dev/disk/by-id/usb-IMM_Virtual_CD_DVD_20070221-15-0:0,/dev/sr0,/dev/sr1,/dev/sr2 on /var/adm/mount/AP_0x00000001: Mounting media failed (mount: no medium found on /dev/sr0)

 

 

- Can't provide./suse/x86_64/libgcc46-4.6.1_20110701-0.13.9.x86_64.rpm

 

 

Abort, retry, ignore? [a/r/i] (a): a

Problemoccuredduring or after installation or removal of packages:

Installation aborted by user

 

 

Please see the above error message for a hint.

 

HANA Error RPM.png

 

My HANA Version is SPS09

Please help

Naor

SAP DBTech JDBC: [2] (range 3): general error: temp index not exists: [0] No error

$
0
0

Hi,

 

In my CV code, I have written

 

deals = SELECT quote_key,

                       deal_id,

                       deal_date AS "DEAL_DATE"

                  FROM "BASE_TABLE";

 

SELECT COUNT (1)

INTO x

FROM :deals;

 

Earlier it was running fine, but suddenly I have started to face the below error:

SAP DBTech JDBC: [2]: general error:  [2] "_SYS_BIC"."ABC/proc": line 332 col 3 (at pos 12649): [2] (range 3): general error:  [2] "_SYS_BIC"."XYZ/proc": line 87 col 3 (at pos 3631): [2] (range 3): general error: temp index not exists:  [0] No error (please check lines: 332)

 

After commenting out the below section, it runs fine.

SELECT COUNT (1)

INTO x

FROM :deals;

 

Not sure what what the issue is.

 

Any pointers on this would be appreciated.

 

Thanks,

Pradeep

HANA SQL Script Variables - Wildcard?

$
0
0

I have created a SQL script calculation view that utilizes variables. When trying to test this CV (using data preview), it prompts me to input the values for the variables, however it forces me to input a value for every variable. There are test cases where I would want to leave one or more variable blank or use a wildcard, however neither * or % work for wildcard.

 

Is there any way to set the variable to optional or use a wildcard? They are all set as VARCHAR, selection type Single Value, and marking as Input Parameter.

 

Thanks,

 

Cote Adams

How to filter data in a Cal View Dynamically? (without using i/p parameters or variables)

$
0
0

Hi All,

 

I have a requirement wherein I have to slice the data set into 3 separate data sets i.e Current Year Data, Current Year -1Data and Current Year -2Data based on Current Year but then the user will not be providing any i/p parameter or variable from the query and there is no current year in the table on which I have created this cal view.

 

I have only a fiscal year.

 

Below is what I have tried and think:

 

1. In normal BW system you can always get your current year/date from sys-datum using an ABAP routine or code so is there any such field in HANA?

 

2. I have used a filter expression in my cal view on the fiscyear column of my cal view i.e addyears(FISCYEAR,-1) and addyears(FISCYEAR,-2) but this is not working

 

3. will it help if I join a time dimension table to my table in the cal view to get the current year? if yes, how will I filter this year dynamically.

 

 

appreciate if you can provider any thoughts..

 

 

PS : My source is BW

 

 

Kind Regards,

Ashwin.

Querying a dim's column in star join HANA view why result in entire view execution (PlanViz))

$
0
0

We are at HANA SP11 and BO 4.1 SP3 patch 2 with webi connecting to relational universe (Hana biz layer) to HANA star join calc. views. View under questions has star join with fact surrounded by left join with dimension calc views.

 

I am just trying to get LOVs for a dimension column without reference to any other column like
select DISTINCT DimColumn1 from view


and this column is not calculated column (anyway why it should matter unless it refers fact or any other view)


Also note, this behavior happens irrespective of whether I query directly on HANA studio or through BO IDT


Query takes very long time for result and our report prompt screen becomes slow. When I see plan viz, it shows query is going to entire fact table etc which confuses me why its doing so ?? I have just queried one column from dimension in star join.

 

As a temporary mitigation, we are bringing dim calc. view in universe and creating LOVs. When we started using star join , we thought this will have benefit of star schema. However, we are  seeing none.

SAP support says  "oh we see your plan viz it's doing what it's supposed to do". and our discussion still going on.

 

So two questions :

1) Why do you think its behaving that way ? Is there anything we could be doing wrong - given its star join, left outer join fact and dim, querying only one non-calculated column from dim

2) From your experience, how do you guys achieve same i.e. creating LOVs from similar setup of BO-HANA through relational universe so that only dim column view gets invoked

 

Further Info:-

-- There is left outer join b/w Fact and Dim

-- Non of join column are calculated column

-- There is no design time filter on Dim view

Memeory Overview in HANA studio

$
0
0

Hi All,

 

We are in HANA 1.0 Revision 97. When I am trying to check the memory overview in HANA studio, I don't such option while right click the system.

 

Can you someone help me to enable it?

 

I have installed HANA studio (Version: 2.1.19) in my local machine.

 

Regards,

Priyanga G


Conversion character to integer

$
0
0

Hi all,

 

I'm building a Calculation View based on SQL Scripting. Within this Calculation View I try to use the CE-functions as much as possble.

One of the challenges is the conversion of a character field (containing numbers) to something like an integer.

 

So, is there a way of doing that within a Calculation View?

 

Using conversion functions the validation is always okay, but running the view always leads to errors (mentioning that the data type for a specific function is wrong).

 

Any ideas?

 

Thanks!

Grz,

Stefan

SQL Error : insufficient privilege: Not authorized at ptime/query.... HTTP Connection to HANA Analysis Office

$
0
0

Hi,

 

We currently have two environments which I will summarize below.  After a HANA db upgrade from version 95 to version 102 all views which have descriptions added to an attribute now produce an error about authorizations.

 

Environment Overview:

Non Prod:

  • HANA DB version 102
  • SBOP 4.1 SP7
  • Office Analysis 2.2 Sp3.1
  • Lumira 1.30

Prod:

  • HANA DB version 95
  • SBOP 4.1 SP7
  • Office Analysis 1.4 SP7
  • Lumira 1.30

It is worth noting that when making the move to Analysis 2.x and upgrading your hana system, you no longer can use ODBC to connect to HANA.  We have our non prod environment configured to use HTTP connection with SAML SSO through SBOP.  This is working great with no problems. The issue we are facing is that any attribute in a view which has a description mapped to it fails with the error: Caught exception : exception 42111: SQL Error : insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:3389 (42014)

If I connect to our non prod hana database using the odbc connection method and analysis 1.4 SP7 not issues or errors are thrown and the descirptions are displayed as normal.  If I switch to Analysis 2.2 SP3.1 and use the HTTP connection I get the authorization error which I noted above. .

I have done further testing and found Lumira 1.30 connects to non prod hana ( direct connect not HTTP) and works fine producing the attributes and descriptions with out error. Has anyone else encountered this error?  I have not found any SAP notes or blogs with this problem.  I do have a case open with SAP but currently no traction.

How to set order(sequence) of Columns in HANA Calc. View with Star Join?

$
0
0

Dear All,

 

I have a HANA Calculation View(Graphical) and it has a Star Join in it, and here comes the problem.

 

Because of the Star Join, I get two part in Semantics -> Details, one part for Local Columns, another for Shared Columns(get from Join with other tables). Now I don't know how to set the sequence of all these columns, I can set in each part, but I can't set sequence for all columns when they are not seen to be belonged to divided parts.

 

Say I have Columns L1, L2, L3 in Local, and S1, S2, S3 in Shared, what if I want to get the sequence of this View as L1, S1, L2, S2, L3, S3 ?

 

 

Thanks!

 

Blangero

HANA smart data integration and smart data quality questions post there

$
0
0

SAP launched HANA smart data integration (SDI) and HANA smart data quality (SDQ) in HANA SPS09. The blog

Simplifying Sap HANA data integration-landscape states how these new tools simplifies the landscape.  Many customers have started using these tools to bring data into data for various use cases.

 

We from HANA EIM Product team like to use this widely used SCN to share knowledge in SDI and SDQ. If you have any questions about the capabilities, how to use, when to use or need information to troubleshoot your deployment, please feel free to post any questions here.

 

Please include SDI as prefix for HANA smart data integration and SDQ as prefix for HANA smart data integration questions. Please also tag your message accordingly (smart_data_integration, smart_data_quality, agile_data_preparation, SDI,SDQ).

 

If you not familiar with these tools, please start with this introduction video

 

Thank you,

Swapan Saha

Fuzzy search in HANA CDS

$
0
0

Hi,

 

we are new in using CDS and certainly directly on HANA.

 

Can anyone give us some help on how to make on to do a full text search (FUZZY)?

 

Up to now we use native SQL to do this, but we want to get rid of that.

 

So now we want: HANA-CDS to external view in ABAP and use this in Open SQL in ABAP.

I don't find any real hints in the documentation, that is why I ask it here.

 

Thanks for helping.

Kris

HANA Installation Status

$
0
0

Hello Colleague,

 

We are in the process of Installation of HANA DB on Suse Linux SP 12 Server , We have  Allocated 30 Gb of RAM to this machine.

 

We are installing HANA Database of version " HANA Platform Edition 1.0 SP10 " .

 

We have started installation yesterday using  "hdblcmgui" , Because VM is on remote server i used Tight VNC viewer to connect to that server and start installation , today my VNC session got expired so i created an new session and when i execute "hdblcmgui" i am getting below configuration error.

 

12345.png

 

Does the above message means the installation is under process , please help us in getting this done.

 

 

Could you please let me know how should i check my current installation Status , if there are any error where do i need to check those installation errors.

 

Here are the available service on my hana db ID

 

sgvm-s-dvhana:/tmp # ps -ef | grep hanadm

 

root     23932 26416  0 17:11 pts/5    00:00:00 su hanadm

 

hanadm   23933 23932  0 17:11 pts/5    00:00:00 sh

 

hanadm   25877     1  0 Oct08 ?        00:00:45 /usr/sap/HAN/HDB00/exe/sapstartsrv pf=/hana/shared/HAN/profile/HAN_HDB00_sgvm-s-dvhana -D -u hanadm

 

hanadm   25977     1  0 Oct08 ?        00:00:00 sapstart pf=/hana/shared/HAN/profile/HAN_HDB00_sgvm-s-dvhana

 

hanadm   25984 25977  0 Oct08 ?        00:00:01 /usr/sap/HAN/HDB00/sgvm-s-dvhana/trace/hdb.sapHAN_HDB00 -d -nw -f /usr/sap/HAN/HDB00/sgvm-s-dvhana/daemon.ini pf=/usr/sap/HAN/SYS/profile/HAN_HDB00_sgvm-s-dvhana

 

hanadm   29448 25984  0 17:43 ?        00:00:06 hdbnameserver

 

root     32374 25275  0 18:01 pts/7    00:00:00 grep hanadm

 

 

Please let me know if you need any further info on this.


Thanks in Advance.


Regards,

Vardhan.

cannot create a instance & Cannot Set password of data base user SYSTEM.

$
0
0

Hi

 

I am Trying To Install Sap Hana Server 1.0 SP12  But Following Error Coming Could You Please Me To Solve This Error

 

 

2016-06-10_10h34_28.png


Variable is missing in manage mapping

$
0
0

Hi All,

 

I have created a calculation view using three analytical views. In analytical view i have variable and input parameter. When doing manage mapping in calculation view i can't able to see variables of base view and calculation view but i can see input parameter. What should i do to see Variables in manage mapping.

 

Variable in Analytical view:

Capture1.PNG

 

Manage mapping of Calculation view:

Capture.PNG

 

Please help me in solving this issue

 

Thanks,

Rithika

SAP HANA XS SAML SSO error

$
0
0

Hi All,

 

I configured SAML SSO for our SAP HANA XS but I get the following error message:

 

Error in IE - StatusCode in ResponseMessage != OK; please refer to the database trace for more information

 

Error in XS Trace - Assertion authentication failed with reason: Subject of assertion has to be provided using NameID

 

I've followed the steps on this blog (http://scn.sap.com/community/developer-center/hana/blog/2015/03/14/use-saml-to-enable-sso-for-your-xs-app-on-sap-hana-sps-09-rev-92-or-later)

 

While talking to our ADFS admin, he says that he suspects that we need to add mapping rules in the ADFS Relying Party Trust for this to work correctly. Anyone familiar with the error and the mapping rules required? I can't find any in the SAP Marketplace nor here in the SCN site so any help would be more than appreciated.

 

Thanks a lot.

 

Robert

SAP HANA DISK ISSUE

$
0
0

Hi Team,

 

In our Hana System Disk used size is Showing 1.2 TB ,But when I retrieved row store and column table .It is coming around  650 GB .I have used the SAP Script which is provide in the SAP NOTE.I have attached the Script and DB02 Screen for evaluation. Is there any script where I can get all details about the data stored in Data to evaluate 1.2 TB.

 

Thanks,

Arunkumar

Search using regular expression over CLOB/NCLOB datatype

$
0
0

Hi Team,

 

As you guys know regular expression is available in hana now, which is very powerful feature for search. Is there a way to search using regular expression over CLOB or NCLOB datatype? i know in Hana documentation it is mentioned that regular expression doesn't support search over CLOB or NCLOB, but is there a way to cast it or some other format where i can use it?

 

Your help is highly appreciated.

 

Thanks,

Akshay

SAP HANA MDX Provider: Connectoin Error

$
0
0

Hi Experts,

 

This is first time I am trying to use HANA Provider to access my HANA in Excel. After passing the connection parameters I am getting 'host not known' error. Not sure, if some host file entry required.

 

 

MDX Error.PNG

 

Regards

Jitendra

Viewing all 5653 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>