Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all 6412 articles
Browse latest View live

Different engines in SAP HANA

$
0
0

Can anyone please tell me where can I find a proper document on different engines in SAP HANA like join engine, calculation engine etc.???


Inactive Testing (SPS7) on AWS Developer Edition

$
0
0

Hi everybody,

Recently, I saw the video Development Perspective: Inactive Testing (SPS7) at the SAP HANA Acadamy. First thought: Yeah, what an amazing feature! So, I tried to get it running on our AWS HANA Dev Edition (Version 1.00.70), but failed.

While adding the cookie nothing was loaded, because of some errors like: failed to preload 'sap.ui.commons.library-preload': NetworkError: A network error occurred. - sap.ui.ModuleSystem

 

A few questions about this feature:

  1. Where can I find the Repository-Name to identify my own inactive workspace. Is it really just the simple String I see in my HANA Repository View?
  2. Does the AWS HANA Dev Edition support this new feature?
  3. Is there something else I missed?

 

Any help to get inactive testing working is highly appreciated. Many thanks in advance!

 

Best,

Mathias

 

PS: I already asked this question on http://www.saphana.com but there was no response.

Timeout settings with Hana JDBC driver

$
0
0

Hello

 

You are developing a Java client to connect to one or several Hana DB instances ?

(with ngdbc.jar driver)

 

Then i strongly advise to set the proper connection timeout. Otherwise a hanging connection to one instance will make the DriverManager.getConnection(...) to block forever, in running state. (Thread.interrupt() inefficient) The "timeout" property passed to the driver will be completely useless.

 

The proper property to set is "communicationtimeout" (in milliseconds).

 

My case was a hanging connection to the DB : The socket succeeded to connect, but the DB did not give any answer to the few chunk of data posted by the connector. In that case, the socket remains open forever, blocking the thread and all subsequent connection attempts (because of synchronized methods).

 

I took the time to post this, because I think this topic is poorly documented and covered in the various forums.

 

Hope that helps

 

Ronan

SAP HANA CERTIFICATION

$
0
0

Hi,

 

I am currently in UAE and I want to appear for SAP HANA certification exam.Could anyone can advise procedure to appear in test.Also any specific book related to SAP HANA certification.

 

Thanks

MS

SDA hdbsdautil does not exist in /usr/sap//home

$
0
0

I am looking to test ODBC connections for SDA per this document:

 

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/706d9725-7087-3110-6d9e-91be8ad377d6?QuickLink=index&overridelayout=true&59064390315971

 

 

But hdbsdautil does not exist in my home folder.

 

I am able to see that program under exe:

 

/sapmnt/<SID>/exe/linuxx86_64/HDB_1.00.70.00.386119_1342680

 

But when I execute there I see the following error:

 

error while loading shared libraries: libhdbrskernel.so: cannot open shared object file: No such file or directory

 

Any thoughts?

Index strategies for column tables

$
0
0


I've been working on a project to convert a OLTP like SQL Server application to SAP HANA and I'm not getting the results that I expected. When using SAP HANA row tables with traditional indexes, I'm getting a 15% performance increase over SAP HANA column tables. I know that the use of row based tables is not sustainable because of the memory restrictions. I did run with the same indexes on the column tables. My suspicion is that I should probably remove all the indexes on my column tables and re-run the tests based on what I read in the ACM paper at http://www.sigmod09.org/images/sigmod1ktp-plattner.pdf.

 

What I'm really looking for is guidance on what to look for in an execution plan and what strategies can I use based on what I see in the plan. Is there any guidance out there on tuning column tables?

 

Regards,

Bill

Substring function not working in Analytical view

$
0
0

Dear All,

 

I am trying to use substring function in my analytical view .It says valid expression during syntax check but getting activation error.

 

thanks

Sourav

Problem with CE_CONVERSION

$
0
0

Hello,

 

I'm having troubles with the column engine function CE_CONVERSION for currency conversion.

The conversion seems to ignore the factors (FFACT, TFACT) in the table TCURF, so that e.g. JPY to EUR is a factor of 100 to big.

 

T = CE_CONVERSION(:V, [

  family = 'currency',

                     method = 'ERP',

                     error_handling  = 'set to null',

                     client = '100',

                     conversion_type = 'M',

                     target_unit = 'EUR',

                     source_unit_column = "WAERS",

                     schema = "ABC",

                     reference_date_column = "DAT"]);

 

Is there a flag to tell the conversion to use the factors?


Many thanks for any help in advance.

Thomas Gräbel


debug server side JavaScript -- socket connection problem

$
0
0

Hi all,

 

I am try to debug server side JavaScript,  but I hit an issue that says

"launching myDebugSession has encountered a problem, unable to connect to SAP HANA XS Server".

 

This issue has trouble me for a long time. Could someone help me have a look?

Your help is highly appreciate.

 

My steps:

1, open a port for server side JavaScript debuging. In configuration tab,  add xsengine.ini -> add debugger.

     enable = true.

     listenport = 47112

2, debug configuration in HANA Studio.

    create a new XS JavaScript configuration "myDebugSession". and input the connection properties,

    host:  IP

    Port: 80+instance number

    username : system

    password:  ********

3, Then I add some breakpoints in the JavaScript code, and click the debug button, error occurs. Please see the details in the attached picture.


 

I find my issue is quite the same with the below link, but I still do not have any idea to fix it.

http://www.saphana.com/message/5688#5688

 

SAP HANA Studio

Version: 1.0.62

Build id: 201308041203 380773

 

HDB version info:

  version:             1.50.00.381990

  branch:              orange_COR

  git hash:            not set

  git merge time:      not set

  weekstone:           0000.00.0

  compile date:        2013-09-02 10:19:48

  compile host:        ldm062.server

  compile type:        opt

 

 

Does anyone meet this issue before? Is there something I missing?

 

Thanks in advance.

 

 

Regards,

Kai

statisticsserver cannot start

$
0
0

Hello,

 

I´ve a problem with service statisticsserver because it cannot start. I've lot of trace files under /trace folder but I can't find a reason for this problem.

 

statisticserver.JPG

I've followed the note 1862506, and added more memory resources but I't the same behaviour

 

memory.JPG

 

Default schema

$
0
0

Hi folks,

 

My calculation views have a property that I can change for DB SCHEMA which is great because we have had many different schema names due to our early proof of concept experiments when first getting HANA.  This option is great.  Now for other view types I'm not finding this nice feature;

 

1) ANALYTIC VIEW:

I see a dropdown in the view for DEFAULT SCHEMA however it is blank.  Nothing to pick from the list.  Is this normal?

 

2) ATTRIBUTE VIEW:

I do not even see an option for schema at all.  In a very simple attribute view I have a single table.  At the very top of the table inside the table definition of the view it shows the schema name such as ABCSchema.BSEG.  This is the latest schema we are using.  However if you look at the PROPERTIES of the table you see a different schema name such as XYZSchema.  We have been avoiding this problem by using SCHEMA MAPPING in Quick Launch. ie:  XYZSchema = ABCSChema. 

 

Is there any way of changing the original 'authoring schema' of these types of views without having to do schema mapping?  Would love to clean up and get rid of all these references to old test schemas that no longer exist.

 

Thanks,

-Patrick

How to create check constraint in HANA ?

$
0
0

Hi ,

 

I have the business validation to be placed with the table.

When the user inserts a row in table we need to have validation that if the Client Id it passes through proc and Client Id ( Session Variable ) both are same then user is allowed to insert are same then only insertion is allowed.


SAP HANA Live slow query times

$
0
0

Hi, we have implemented HANA Live, which the SAP's Best Practice and standard Business Content on a lot of Lines of Business: FI, CO, SD, MM...etc...

but when we run reports , the average response time is between 12 and 16 seconds. We used all possible SAP tools. Lumira, BO Crystal Reports, Webi, SAP Design Studio, OLAP Analysis ad BO Explorer, but the response times are everywhere quite slow.

 

The HANA Live Calculation Views supposed to be already optimized for execution, but when we run them directly on SAP Studio, it gives us 12 seconds on the first run. On the consecutive runs the times improves drastically. I'm thinking that maybe we missing some Server config? It supposed to be already in-memory, so why is it so slow?

 

Thanks for your ideas.

Access Advanced Analytic Capabilities by pairing MySQL with SAP HANA

User is not authorized to use destination (package: ..., name: ...)

$
0
0

Hi All,

 

Perhaps someone has already tried to call a Web Service from HANA via .xshttpdest.

 

Here is the destination file: name = sapmmcS74.xshttpdest

 

host = "10.66.176.252";

port = 50013;

description = "sapmmc on S74";

useSSL = false;

pathPrefix = "/SAPControl.cgi";

authType = none;

useProxy = false;

proxyHost = "";

proxyPort = 0;

timeout = 0;

 

and the corresponding server-side javascript is:

//<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:SAPControl">

//<soapenv:Header/>

//<soapenv:Body>

// <urn:GetSystemInstanceList>

//    <timeout>0</timeout>

// </urn:GetSystemInstanceList>

//</soapenv:Body>

//</soapenv:Envelope>

 

 

try{

 

var soapenv = "";

soapenv = soapenv.concat("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:SAPControl\">");

soapenv = soapenv.concat("<soapenv:Header/>");

soapenv = soapenv.concat("<soapenv:Body>");

soapenv = soapenv.concat("<urn:GetSystemInstanceList>");

soapenv = soapenv.concat("<timeout>0</timeout>");

soapenv = soapenv.concat("</urn:GetSystemInstanceList>");

soapenv = soapenv.concat("</soapenv:Body>");

soapenv = soapenv.concat("</soapenv:Envelope>");

 

 

var dest = $.net.http.readDestination("services", "sapmmcS74");

 

 

var client = new $.net.http.Client();

var req = new $.web.WebRequest($.net.http.POST, soapenv);

client.request(req, dest);

 

var response = client.getResponse();

 

 

if(response.body){

  $.response.setBody(response.body.asString());

}

else {

  $.response.setBody( "error" );

}

 

$.response.status = response.status;

$.response.contentType = "text/xml; charset=utf-8";

 

 

}

catch(x){

  $.response.status = 500;

  $.response.setBody( x.message );

}

 

Both are in the same package/folder "services".

 

When I test the .xsjs I receive always the error: User is not authorized to use destination (package: services, name: sapmmcS74).

 

I assigned all possible authorities in HANA to my user: sap.hana.xs.admin.roles::HTTPDestAdministrator as well as package privileges etc. but the error is not resolved.

Any ideas?

 

Thanks,

Hristina


empty Analytical View on SAP HANA Revision 70

$
0
0

Hi there,

 

I have just migrated an demo project from AWS SAP HANA Rev. 52 to AWS SAP HANA Rev. 70.

 

For some reason an Analytical View gives us empty results on Rev.70, but on Rev. 52 with the same table contents, the view is working.

 

For testing I've created a new Analytical View, inserted only one table, and the view is empty nevertheless the table which is used in the data foundation contains data.

I've tried this with about 5 tables, and only on one table I got this issue.

 

Any ideas what could be wrong?

Thanks a lot,

ben

Variable/Input Parametrs BETWEEN

$
0
0

Hi,

 

 

In the proposed operations Equal and IsNull  only.

How do BETWEEN and other operators?

,

Put the query result of "EXECUTE IMMEDIATE" command in a local table

$
0
0

Hi all.

 

Is it possible to put the output of the "EXECUTE IMMEDIATE" command in a local table so that the ouput can be accessed through other procedures.

 

 

Regards,

Andila

Cannot Connect HANA Studio to AWS Instance

$
0
0

I signed up and installed an Instance of AWS HANA server a few days ago.  I was bale to login using HANA Studio and created tables loaded data and created views.  This morning I went to access my HANA Studio and it will not connect to the HANA DB. The AWS HANA Instance is up and running.  Nothing has changed on either side.  Any help would be appreciated. 


The HANA Studio Error log is attached

Calling an SP takes over 200% more time over the select statement

$
0
0

As part of my POC converting a SQL Server application over to SAP HANA, I'm find that CALL is taking over 200% more time than calling the SELECT statement directly. The result is that the application that uses ODBC against HANA with CALL statements is taking much more time than SQL Server. I'm finding this for all stored procedure calls in the application. Here is an example:

CREATE PROCEDURE dbo.usp_GetOrdersByCustomerID

(IN C_ID bigint)

LANGUAGE SQLSCRIPT DEFAULT SCHEMA "DBO" READS SQL DATA

AS BEGIN

SELECT  TOP 20

   C_F_NAME,

            C_L_NAME,

            C_EMAIL,

            O_ID,

            O_TOTAL,

            O_DTS,

            O_FM_DTS

FROM    dbo.Customer JOIN dbo.Orders ON C_ID = O_C_ID

WHERE   C_ID = :C_ID

    ORDER   BY O_ID DESC;

END;

 

When using the following CALL statement in SAP HANA Studio

CALL dbo.usp_GetOrdersByCustomerID(3429);

 

 

I get execution times that look like this:

 

Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 9 ms 663 µs  (server processing time: 8 ms 115 µs)

Fetched 5 row(s) in 0 ms 69 µs (server processing time: 0 ms 0 µs)

  


Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 11 ms 851 µs (server processing time: 8 ms 238 µs)

Fetched 5 row(s) in 0 ms 62 µs (server processing time: 0 ms 0 µs)

 

Statement 'CALL dbo.usp_GetOrdersByCustomerID(3429)'

successfully executed in 8 ms 522 µs  (server processing time: 6 ms 892 µs)

Fetched 5 row(s) in 0 ms 93 µs (server processing time: 0 ms 0 µs)

 

 

 

When I execute the select statement with the hard coded parameter value, I get much faster results:

 

Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 430 µs  (server processing time: 2 ms 424 µs)

Fetched 5 row(s) in 0 ms 73 µs (server processing time: 0 ms 0 µs)

  


Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 105 µs  (server processing time: 2 ms 210 µs)

Fetched 5 row(s) in 0 ms 69 µs (server processing time: 0 ms 0 µs)

 

Statement 'SELECT TOP 20 C_F_NAME, C_L_NAME, C_EMAIL, O_ID, O_TOTAL, O_DTS, O_FM_DTS FROM dbo.Customer JOIN ...'

successfully executed in 4 ms 694 µs  (server processing time: 2 ms 810 µs)

Fetched 5 row(s) in 0 ms 60 µs (server processing time: 0 ms 0 µs)

 

 

 

I have 500,000 rows in the Customers table and 2,500,000 rows in the Orders table. The tables are COLUMN tables.

 

Is there an optimization that I'm missing?

Regards,

Bill

Viewing all 6412 articles
Browse latest View live


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