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

Resetting a sequence

$
0
0

Hi,

 

Is there any simple way to reset a HDBSEQUENCE?

 

Suppose I have a sequence whose range is 1-100.

 

In a procedure  I need to reset the sequence and use it but for other procedures I need to just use NEXTVAL.

 

I have seen the syntax of create sequence with RESET BY option, but I want to just reset the sequence to its initial value .

 

 

Regards

S.Srivatsan


Cannot get Data Provider outline

$
0
0

Hi,

 

I created an Analytic view with three tables. The middle table is an association table which connects the two tables with ID's. I activate it fine and then when I go to do the data preview I get:

 

SAP DBTech JDBC: [2048]: column store error: search table error:  [6941] Error executing physical plan: AttributeEngine: this operation is not implemented for this attribute type;index=NIEM_CORE:FACILITYPERSONASSOCIATIONTYPEen,attribute='PERSONNAMETYPEID' (203),BwPopJoin2Inwards pop10(NIEM_CORE:FACILITYPERSONASSOCIATIONTYPEen.PERSONNAMETYPEID, .PERSONNAMETYPEID to .FACILITYTYPEID),in executor::Executor in cube: _SYS_BIC:UNICEF/AN_FACILITY_NEEDS

 

No idea why I am getting this. When I have it as an attribute view it works fine.

Screenshot of analytic view attached.

 

Thanks,

Connor

SLT Configuration Error Occured when selecting from database

$
0
0

LTR configuration creates the user SLT in hana but doesn't seem to create schema-specific roles
SLT_DATA_PROV;
SLT_POWER_USER;
SLT_USER_ADMIN,
SLT_DATASELECT

 

Also getting this error in LTR Configuration

Error Occured when selecting from database

 

slt_error.JPG

IN ODATA, How to pass Timestamp data using POST method

$
0
0

Dear all

 

I am trying to insert a record into a HANA column store table using ODATA service.

 

POST URL

http://hanadrp.sial.com:8000/sial/sapnext/generic/odata/uidatetime.xsodata/UIDateTime

 

 

Message one

{

  "IDTXT" : "1",

  "IDDATETIME" : "2014-09-19 10:20:10"

}

 

Message Two

{

  "IDTXT" : "1",

  "IDDATETIME" : "/TO_TIMESTAMP(CURRENT_TIMESTAMP)/"

}

 

 

Both give me this message

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<error

    xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

    <code/>

    <message xml:lang="en-US">Syntax error at position 0.</message>

</error>

 

 

The table here has only two columns and the IDDATETIME is a column of time TIMESTAMP

 

Please advice

How to disable auto commit on data preview?

$
0
0

Hello everybody

 

I'm working with temporal tables and I need to disable the autocommit option on my SQL Console.

 

This is easy to be done as was explained with details in another discussion. http://scn.sap.com/thread/3323829

My problem is that I'm modeling  a calculation view using SQLScript to retrieve data from a history table.

 

When I try to view the data from Data Preview in the Calculation view I recieve a message that the Autocommit must be off.

So my question is: is there a way to switch off the autocommit in the Data Preview?

 

Thanks and Regards.

Huge difference in Execution time in same Query with different Parameter

$
0
0

Hi Experts,

 

We are facing an unique problem once we are executing the query in HANA SQL prompt. This Query was generated from BObj and executing in HANA system. Once this query running with following condition, it is taking almost 7-00 minute to execute and returning around 924 rows.

 

<< WHERE

  (

Table__1."LOGSYS"  IN  ('RKGCLNT102')

AND

Table__1."CompanyCode"  IN  ('7240','7245')

AND

Table__1."Plant"  IN ……………… >

 

 

However if we run the same query with some different plant, It is taking only 2 second. Please find the Query here.

 

<< WHERE

  (

Table__1."LOGSYS"  IN  ('RKGCLNT102')

AND

Table__1."CompanyCode"  IN  ('7245','7600')

AND

Table__1."Plant"  IN ……………… >

 

This is really an unexpected behavior and we are not able to get the actual reason why it is behaving like this.

Could anyone please help to analyze this issue to fine the root cause.

 

Thanks in Advance.

 

Regards

Satrajit.

SAP HANA Performance Overview Report

$
0
0

I am working with one of my client on OLTP scenario as a part of POC. As of now they are using DB2 + JAVA(JDBC),

we are trying to prove that with SAP HANA + ODATA will be at least 10 time faster  which we have proved it at individual call level by using various reports available under Administration --> Performance tab.


Client has given DB2 performance report for their application which is prepared with InfoSphere Optim Performance Manager V5.2 (Performance Overview report) which run in 30 page long report.


Please guide/suggest me how to get SAP HANA performance report which will be useful to compare with DB2 performance in OLTP scenario.

which linux OS version (freely available) should be used with harwdare configuration use for SAP HANA application development?

$
0
0

I want to start development from windows to linux OS now.  I have linux mint17 version . Is this perfect with java7 /SAP HANA application development or other linux os required. Please provide me link for freely available linux for SAP hana application development.


Expose a collection from a xsodata service

$
0
0

Hi

 

I have created a xsodata service "preferences" which exposes the table columns .

service {

"SCHEMA_NAME"."package_path::TABLE_NAME" as "preferences";

}

 

The table columns are

 

KEY      VALUE      ITEM_TYPE

 

a            1               apple

b            2               apple         

x            8               apple

c            3               orange    

d            4               orange

e            9               orange

 

 

Is it possible to expose a certain set of collection from the xsodata service "preferences", as lets say, preferences.xsodata/apple and preferences.xsodata/orange. How do you define such a service in the xsodata file?

 

I have referred the developer guide. The OSDL syntax doesnt give any clue about exposing a certain set of items/rows from the table.

 

Appreciate your help.

 

 

Thanks,

Ponraj

Missing privilege - DELETE statement in procedure

$
0
0

Hello experts,

 

I am facing a problem for my procedure. I am not able to active the procedure if I use DELETE statement in the produce. When I use only selects, it is working fine. The SYSTEM user has access to the schema with full rights, including DELETE.

 

PROCEDURE "SYSTEM"."DEV_COL.procedures::FI" ( )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA UXX790

  AS

BEGIN

/*****************************

  Write your procedure logic

*****************************/

 

-- SELECT vbeln

--count(*)

  DELETE

  from vbapold

  where erdat < ADD_days(now(), -1700);

 

END;

 

Did anybody had the same issue? I run HANA rev70.

 

BR
Tamas

Able to view the analytic (couldn't display) view under _SYS_BIC but with a different symbol

$
0
0

Hii.

 

I created an analytic view named AN_SALES_OVERVIEW IN Eclipse IDE systems using my HANA cloud trial instance. I've completed all the steps of creating an analytic view and activated it, but once I try to open the _SYS_BIC schema i'm getting the view with a different image beside it which is taking way too much time to preview.

 

i've tried all the SQL commands for granting options to _SYS_REPO either.

 

 

This is the image that I'm getting while I was activating the view.

 

 

Please help me resolve this issue. Awaiting for your response. Thank You..

Getting the familiar error - Cannot get the data provider outline

$
0
0


Hi all,

 

I am getting this familiar error "Cannot get the data provider outline" upon trying to preview data for **Analytical view** only. So I don't get this error for the attribute views that have been created for the same schema but only for the Analytical views. Note: I am using the HANA Trial Cloud platform.

 

I have tried using these below statements to fix it but the issue persists.

 

- GRANTSELECTONSCHEMA"<schema name>"TO _SYS_REPO WITHGRANTOPTION

- call "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS"

 

Thanks for offering your help!

 

Note: I am using the HANA Trial Cloud platform.

how to consume view data (temporary data) as a permanent data ?

$
0
0

Hi,

Views are not holding any data.

How to consume view data as a permantent data into a hana table...

Manual query execution will be in Sql console or by calling a stored procedure

SELECT * FROM "_SYS_BIC"."PACKAGE/VIEW_NAME" INTO TABLE_NAME_XXXX;

because each time new data will append for a tables, & those data will be used for the views.

so the resultant view data should be stored in a table(permantely).

how to build dynamically this..

please can any one suggest how to reslove this issue..

 

Thanks,

Thara

Transport : Schema names changes

$
0
0

Hi,


We are transporting HANA view Dev system to Qty sytem.

 

View failed for with red error

 

Dev system : SCHEMA_1.VBAK -> QTY showing SCHEMA_2.VBAK .

 

How the schema changes from 1 to 2...

 

VBAK is available in QTY SCHEMA_1

 

Please suggest..

 

Regards,
Kamruz

Is JRE 1.7 supported for HANA Studio?

$
0
0

Hi,

In SAP HANA Studio Installation and Update Guide for SPS08,  the JRE version is mentioned as 1.6 only.

 

The exact line is:

"Java JRE 1.6 must be installed to run the SAP HANA studio."

 

However, in SAP HANA Database - Studio Installation and Update Guide SPS06 it is mentioned as

 

"Java JRE 1.6 or 1.7 must be installed to run the SAP HANA studio."

 

 

Is it that JRE 1.7 is not officially supported for HANA Studio SPS08 (Although it does not make any sense for me), or It is just a typo in SPS08 guide.

 

 

One of our customer is using HANA Studio 1.82 and they are facing a problem with JRE 1.7, but for JRE 1.6 it is working fine.

 

Regards,

Raja


Avoid Host authentication in SAP UI5 Application

$
0
0

Hi,

 

I want to suppress Host Authentication in my SAP UI5 Application . My application is deployed on SAP HANA DB but when I run the application it ask me user credential which I don't want.

 

Thanks,

Nikhil .

What is the best ETL solution for being a uniform part of HANA DB?

$
0
0

I am currently developing a data analysis basis onto HANA DB. The intention is to fetch all transactional data from MySQL DB to HANA DB and do analytical jobs over there. However, as I observed from the tutorials and the documentations HANA does not provide the tool to transform MySQL tables to HANA DB regularly and it suggests third party applications such as Pentaho. From the roots of my problem, what would be the best solution? Do you really suggest to use Pentaho or is there any other ETL tool (possibly with not additional fee )? Or Am I totally wrong to solve that problem any you suggest a better  solution?

 

Any suggestion is very welcome. Best

Learn programming for SAP Hana

$
0
0

Dear experts,

 

What are the different programming languages to gain expertise in SAP Hana ? I can only think of SQL Scripting to perform CRUD operations. Please suggest the different languages and suggest in which scenario this will be used. And would be helpful if getting started guides are added.

 

Thanks in advance

HANA Smart Data Access to BW on Oracle

$
0
0

Is it possible to use smart data access in HANA to virtualize tables that are present in BW on Oracle? I know that officially only oracle 12c is supported but it seems that there should be some generic connection to make this happen.

Hana Backup Error

$
0
0

Dear Hana Gurus,

 

I were backing up for a while, now it is giving error like this in Hana Studio and DB13 cocpit.

 

 

backup could not be completed, Allocation failed ; $size$=536870912; $name$=ChannelUtils::copy; $type$=pool; $inuse_count$=1; $allocated_size$=536870912

 

screen shot maintained below ;

hana.png

 

also job log ;

 

 

 

23.09.201423:00:57Job started
23.09.201423:00:57Step 001 started (program RSDBAJOB, variant &0000000000001, user ID)
23.09.201423:00:58Execution of the Command:
23.09.201423:00:58backup data all using file (
23.09.201423:00:58On host:
23.09.201423:00:59Command failed
23.09.201423:00:59general error: Backup error: Allocation failed ; $size$=16777216; $name$=PersistentSpace(0); $type$=
23.09.201423:00:59pool; $inuse_count$=14; $allocated_size$=6912
23.09.201423:00:59:Exception CX_DBA_ADBC in class CL_HDB_ADBC methodEXEC_DDL line 23
23.09.201423:00:59:  Kernel Error ID:
23.09.201423:00:59:  WP ID: 30
23.09.201423:00:59:  WP PID: 5924
23.09.201423:00:59:  Application Server:
23.09.201423:00:59:  SYSID: DEFAULT
23.09.201423:00:59:  SY-SUBRC: 0
23.09.201423:00:59:  SQL statement: backup data all using file
23.09.201423:00:59:  data/TUESDAY')
23.09.201423:00:59:  Database: DEFAULT
23.09.201423:00:59:caused by
23.09.201423:00:59:Exception CX_SQL_EXCEPTION in class CL_SQL_STATEMENT
23.09.201423:00:59:  Kernel Error ID:
23.09.201423:00:59:  DB Error: Yes
23.09.201423:00:59:  SQL Code: 2
23.09.201423:00:59:  SQL Message: general error: Backup error: Allocation failed ; $size
23.09.201423:00:59:  $=16777216; $name$=PersistentSpace(0); $type$=pool; $inuse_count$=14;
23.09.201423:00:59:  $allocated_size$=6912
23.09.201423:00:59:  DB Object Exists: No
23.09.201423:00:59:  Duplicated Key: No
23.09.201423:00:59:  Internal Error: 1
23.09.201423:00:59:  Invalid Cursor: No
23.09.201423:00:59:  Unknown Connection: No
23.09.201423:00:59:  Connection Closed: No
23.09.201423:00:59Exception CX_DBA_ADBC in class CL_HDB_ADBC method  line 30
23.09.201423:00:59Job finished
Viewing all 6412 articles
Browse latest View live


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