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

Can't import a schema from different HANA-Systems

$
0
0

Hello there.

 

I've a problem with HANA. I want to import a schema in our HANA. I can export it without problems, but import is impossible.

(SYSTEM A)

We've exportet with this command:

EXPORT "TEST_DB"."*" AS BINARY INTO '/usr/sap/NDB/HDB00/work/'

 

I tried:

(SYSTEM B)

- create a new schema with grant options before I tried to import:

create schema TEST_DB

grant select on schema TEST_DB to _SYS_REPO with grant option

 

- import with SQL-Command

IMPORT "TEST_DB"."*" AS BINARY FROM '/usr/sap/NDB/HDB00/work/' WITH REPLACE


I get following error message:

“Could not execute 'IMPORT "TEST_DB"."*" AS BINARY FROM '/usr/sap/NDB/HDB00/work/' WITH REPLACE'

SAP DBTech JDBC: [2]: general error: TEST_DB.TnbPsra_Los_An_Cd_Grp_Y not found in the import directory. Folder names could be modified by WinSCP transfer.“

 

After I created the schema with grant options I tried to import.

Do you know what I am doing wrong?

 

I have tried this several times, with zip/unzip too.

 

Hope you can help me.

 

Kindly

 

Patrick


Switch between Row Store and Column Store

$
0
0

Hi Gurus,

 

It is said that HANA provides this flexibility of switching from Row Store to Column store as a table property anytime an user wants. But what I have noticed is that this feature is disabled whenever I open a table definition in HANA studio.

Is this feature disabled due to some missing privileges or something else.

 

Navigation: Select a HANA system in studio --> Select a schema containing some tables --> select a table and choose the option "open table definition" from the context menu. Top right corner there is a field which is disabled and reads Column store. No option to switch it back to Row Store.

 

Best Regards,

Chandan

Securing data in Analytic view

$
0
0

Hi folks,

 

I have been successfully securing data in my 'Calculation views' using the following method but it's not working for 'Analytic Views'.

 

THIS IS MY SETUP FOR A USER THAT WORKS TO SECURE CALC VIEW:

 

1) _SYS_BI and _SYS_BIC sql privileges with SELECT

2) REPOSITORYREST sql privilege with EXECUTE

3) Package access to single specific package where the VIEW exists (ie: SALES)

4) Analytic privilege that restricts the data within the view (ie: Only one Sales Region allowed)

 

This is working great for calculation views however when I setup identical for a user to access an Analytic View they can see the view, get prompts to enter selections, but when they execute they get the error 'Not Authorized'.

 

My guess is this setup is working for Calculation views because the user is running the PROCEDURE that is automatically generated in SYS_BIC?  But analytic views do not have a corresponding procedure so it's failing?  What am I missing to get this to work for Analytic view?

 

Thanks!

-Patrick

HANA Project Editor vs Studio SQL Editor

$
0
0

Hi,

 

I'm trying to create a procedure within a HANA Project however it seems that the syntax required for some bits of code is different when compared to creating the procedure in the Studio SQL Editor. I have found two specific cases

 

1) CE_PROJECTION filter

 

In Studio SQL Editor this works fine:

    

     t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER"], ' "TASER" = ''SER03''');

 

However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "'SER03'" is incorrect or misplaced."

If I change the code to the following then it works:

 

    

t_objk_proj = CE_PROJECTION(:t_objk_sn, ["OBKNR","EQUNR", "TASER", CE_CALC(':ser03', NVARCHAR(5)) AS"SER03"], ' "TASER" = "SER03" ');

 

Is this by design or is it a bug?

 

 

2) ROW_NUMBER()

 

In Studio SQL Editor this works fine (Note: goods_movement_out is a table variable ):

 

SELECT *, ROW_NUMBER() over (partition by equnr order by cpudt desc, cputm desc) as row_num

FROM :goods_movement_out

 

However if I try to create the procedure in a Project and Commit and Check to the Repository I get an error "Syntax error, "(" is incorrect or misplaced."

I haven't been able to fnd a workaround or correct syntax for this in the Project Editor.

 

I'm on version 51.

 

Please advise.

Thanks

Peter

Urgent! I'm not able to connect to my HANA instance anymore

$
0
0

Hi,

 

I noticed week ago that my license was expired. I asked for new license following steps from this link (http://www.happyhana.nl/viewtopic.php?t=29&p=49). Now, I want to add new license in HANA studio. But when I open HANA Studio, it's red and error msg: Error when connecting to system. I need to make it work as soon as possible. Please help me to resolve this issue.

 

Also, starting month ago I have not been able to connect to HANA instance from EC2 managment Cosole - SSH client anymore. I was able to do it 3 months ago but suddenly I started to get "Athentication Failed, Permission Denied". I've also used PuTTy but didnt work. The path to .perm file is the same and nothing changed.

 

Here are some info about instance,

 

Elastic IP:

54.235.173.149

 

Instance:

i-783de508

 

Thanks,

Niaz

Which HANA certification will support Developer Role

$
0
0

Hi Guys,

 

I'm a web developer (PHP).

 

I'm interested in HANA Developer. But when I checked certification path, I couldn't find any specific certification for HANA Developer.

 

Should I get certified as HANA Technical Associate?

 

Please help me to suggest suitable certification (Application Associate or Technical associate) to continue my career as HANA Developer (Native application)

 

I hate JAVA , so I don't want to become HANA Cloud application developer.

 

I'm really confused about choosing the right certification and career with HANA?

 

 

Hope some one understands what I'm trying to say and give me suggestions

 

Regards,

 

Kavashagr M

Could not check credentials provided for user on host

$
0
0

Hello Experts,

 

I want to update my HANA with the Help of SUM.sh.

I've configured the HANA Studio as described in the automated update guide, on a prior installation it was working without any errors.

Now, on a new instance, I am getting the error:

 

 

 

Error occurred !

Error:
        Could not check credentials provided for user <sidadm> on host hana5.mydomain.org.   

 

Error Details:

 

Could not check credentials provided for user <sidadm> on host hana5.mydomain.org.
HTTP transport error: java.io.IOException: HTTPS hostname wrong:  should be
HTTPS hostname wrong:  should be

 

 

In the Logfile I get long java-exceptions, but all are saying nearly the same:

Caused by: com.sap.lm.services.hostcontrol.SAPHostControlException: Could not check credentials provided for user txtadm on host hana5.mydomain.org.

        at com.sap.lm.services.hostcontrol.SAPHostControlService.wrapHostControlException(SAPHostControlService.java:213)

        at com.sap.lm.services.hostcontrol.SAPHostControlService.checkUserCredentials(SAPHostControlService.java:399)

        at com.sap.lm.hana.validation.UpdateDataValidatorImpl.checkSidAdmCredentials(UpdateDataValidatorImpl.java:97)

        ... 73 more

Caused by: com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.io.IOException: HTTPS hostname wrong:  should be <hana5.mydomain.org>

        at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:121)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:142)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)

        at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)

        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)

        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)

        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)

        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)

        at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)

        at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)

        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)

        at $Proxy35.acosPrepare(Unknown Source)

        at com.sap.lm.services.hostcontrol.SAPHostControlService.checkUserCredentials(SAPHostControlService.java:354)

        ... 74 more

Caused by: java.io.IOException: HTTPS hostname wrong:  should be <hana5.mydomain.org>

        at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:524)

        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:448)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)

        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)

        at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:109)

 

 

 

It seems to me that the hostname is empty as there are two <space> in the java-Exceptions... But how can I specify a hostname for the sum?

 

 

Thanks in advance

Chris

SAP HANA DB INSTALLATION ?

$
0
0

image.png

 

 

CAN any one suggest on this error ?


can hana be installed in Laptop ?

OpenSAP - "Introduction to Software Development on SAP HANA" free course

$
0
0

Hi guys,

 

In collaboration with Hasso Plattner Institute, SAP has just released its MOOC (Massive Open Online Courses) platform: OpenSAP.

In one week - to be precise, the 27th of May - the course "Introduction to Software Development on SAP HANA" starts.

 

If you are interested open.sap.com.

 

Bye,

Riccardo.

Upgrade of HANA Dev edition on Cloudshare

$
0
0

Hi

 

Is it possible to upgrade HANA server running on Cloudshare? We are running revision 39 and tried to upgrade to 55 but the update failed during hardware check phase, I have attached the log below,

 

Is there a way I can upgrade the server.

 

Thanks

Naresh

 

*******************************************************************************

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 7: OS                             SLES 11 SP 1              OK

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 8: Memory Total                   32768 MB                  not enough memory or wrong memory configuration!

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 9: Memory Total                   32768 MB                  OK

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 10: Core count                     5                         OK

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 11: Hyper-threading                Not active

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 12:

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 13: ### WARNING: Hyper-threading not activated or determinable!! ###

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 14:

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 15: Numa functionality             Activated                 OK

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 16:

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 17: Hardware check failed!!

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Output line 18:

 

 

INFO 2013-05-02 21:17:52 com.sap.lm.hana.updatecontroller.impl.ProcessProgressObserverAdapter

Item message:             Program terminated with exit code 255

 

*****************************************************************

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

Is it possible to catch SQL exceptions?

$
0
0

Hi all,

I would like to catch SQL exceptions 301 - unique constraint violated when inserting data into a table. I've got a largish table to which I'm adding data from CSV files from time to time. Some of the new rows are duplicates of already present ones, this cannot be helped. I've tried to declare a trigger for the INSERT statement, however this does not seem to help. That is, a TRIGGER AFTER INSERT does not prevent the exception to be raised and a TRIGGER BEFORE cannot, at least so says the docs, access the table, so it cannot check if the insert will produce a 301. So is this possible in Hana at all?

 

Cheers,

 

-- Micha

HANA db connectivity - odbc vs jdbc

$
0
0

Hi HANA experts

 

Just a quick question that bugs me while reading the HA100 course material. When connection to Hana for reporting what type is better in terms of performance: jdbc or odbc? More broadly speaking what is the difference when used in conjunction with Hana?

 

Thanks everyone!

Sven

DATA PREVIEW in SAP HANA

$
0
0

Hi All,

     I am not able to view the data from analytic view. I am able to view the attribute view data.


HANA Recent Support Package

$
0
0

Hi Guys,

 

May I know what could be the new Support package released by SAP on HANA

 

thanks in advance

DEFAULT USER NAME SAP HANA ?

$
0
0

Our company has new HANA SYSTEM provided by vendor IBM ,

we don't have any user credential yet

so is there any by default credential or any common user name and

passwords we could try to log in to server ( SLES ) ?

Configuring SAP HANA on AWS (HANA One) with available Replication Tools

$
0
0

Dear Experts,

 

Can anyone please explain step by step how to configure and SAP Replication services with SAP HANA One on AWS ? Kind Request to please explain all the replication methods as how to connect and Replicate data to SAP HANA on AWS (HANA one).

 

Awaiting for positive feedback

 

Regards

Kumar Mayuresh.

Odata services for stored procedure

$
0
0

Hi All,

 

I am trying to use OData Services for stored procedures. Could anyone tell me how to create odata file for stored procedure and how to pass input parameters for the same? Is there any documentation available for this?

 

Thanks.

Problem Processing R Script in HANA Stored Procedure

$
0
0

Hello Community,

I have a stored procedure with very simple R code and output to a table with two columns.  The stored procedure is created successfully, and the R commands run fine in R separate from HANA, but there seems to be some problem with how the script is being processed.  Various errors are returned like END not found, "variable name" not found (see log excerpts below) depending on changes made to the very simple R script.

 

Can you help me shed some light on why this is happening?

 

System Details

  • SAP HANA running on AWS instance
  • RServe running on separate AWS instance
  • R version 2.15.3
  • Rserve version 0.6-8.1

 

Stored Procedure Code

 

CREATE PROCEDURE "SCHEMANAME"."STORED_PROCEDURE_TEST" (OUT results "SCHEMANAME"."RTEST")

LANGUAGE RLANG AS

 

/********* Begin Procedure Script ************/

BEGIN

 

v <- c(2,3,5,7,2,3)

w <- c(2,3,5,7,2,3)

results <- as.data.frame(cbind(w, v))

 

END;

/********* End Procedure Script ************/

 

Stored Procedure Call

 

CALL "SCHEMANAME"."STORED_PROCEDURE_TEST" ("SCHEMANAME"."RTEST") WITH OVERVIEW;

 

Errors

 

pop = executorPy.ceRPop() # pop1

pop.setNodeName('$$RESULTS$$_SYS_SS_CE_182588_TMP_CALL')

pop.setUseInternalTable()

pop.addViewAttribute('IP', datatype=73, intDigits=5, sqlType=3, sqlLength=5)

pop.addViewAttribute('IPNUMBER', datatype=73, intDigits=5, sqlType=3, sqlLength=5)

pop.setUserSchema('SYSTEM')

pop.addPlanDebugOpDataInfo(originalNodeName = '$$RESULTS$$', scenarioName = 'DATA_OVERLAY:_SYS_SS_CE_182588_TMP')

pop.setRScript('c(2,3,5,7,2,3)\nw <- c(2,3,5,7,2,3)\nresults <- as.data.frame(cbind(w, v))\n\n\nEND;')

pop.setROperationExecutionType(3)

pop.setRNodeEngineType(0)

pop.setRTimeout(3600)

pop.setRPid(0)

pop.setMaxSendSize(0)

pop.addRServerAddress(172.31.6.167:30020)

pop.setOrgNodeName('$$RESULTS$$')

[4943]{300040}[-151040] 2013-05-25 22:53:15.629844 e cePlanExec   cePlanExecutor.cpp(06157) : Error during Plan execution of model DATA_OVERLAY:_SYS_SS_CE_182588_INS (-1), reason: Execution of R script failed.;Error in cbind(w, v) : object 'v' not found

stack trace:

2: cbind(w, v)

1: as.data.frame(cbind(w, v))

 

[5359]{300056}[-146705] 2013-05-25 16:36:06.584072 e RClient      RserveConnection.cpp(00055) : Error: error message from Rserve is Error in  <text>:1:71: unexpected symbol

1: s <- as.data.frame(cbind(c(2,3,5.5,7.1,2.1,3), c(2,3,5.5,7.1,2.1,3))) END

                                                                         ^

[5243]{300056}[-146708] 2013-05-25 16:36:30.359566 e RClient      RserveConnection.cpp(00055) : Error: error message from Rserve is Error: object 'END' not found

 

[5240]{300056}[-146733] 2013-05-25 16:40:47.562231 e RClient      RserveConnection.cpp(00478) : RserveConnection::parseRScript:parseRscript errror

 

regards,

Kence Anderson

Viewing all 6412 articles
Browse latest View live


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