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

How to fix "FAIL: process hdbdaemon HDB Daemon not running" ?

$
0
0

I got an error: "FAIL: process hdbdaemon HDB Daemon not running" when run command "HDB start" in my Hana db instance as shown in the attached file, any idea how to fix this?

Screenshot 2014-07-28 16.12.52.png

 

I also tried to find and kill the hdbdaemon process of other hdb instance that may be running by run command "ps -ef | grep daemon" , the result is

Screenshot 2014-07-28 18.15.50.png

there's no hdbdaemon process.


Error while creating decision tables using analytical view

$
0
0

Hi All ,

 

while creating the decision table using analytical view , it is failing at valiadation with error message as

 

"Repository: Internal error during statement execution, please see the database error traces for additional details;

error in generated procedure - SqlScript: Could not derive table type for variable "RETURNED_TT"

(SQL error: feature not supported: not allowed over OLAP VIEW : search without aggregation, grouping by expression other

than view column or user defined function with string type)"

 

 

which means it couldnt create table type for the output variable ( as per my understanding)

when I tried to create decision table over  calculation view using the same analytical view  , I can create it without any issues sucessfully .

 

so my question is can we create decision tables using Analytical views ?

 

Regards,

Madhu

copying tables, procedures from one schema to other

$
0
0

Hello,

 

I have a schema that holds around 400 tables and 100s of stored procedure. I need to replicate all these tables and procedures from 1 schema to other schema .

 

I understand that we can use package and delivery units for export & import options. However, wondering about tables ?

 

Can someone help with a quick way to replicate same metadata & data from one schema to other . Please help with some process other than running create table scripts !

 

Thanks,

Vicky

ASCS on SAP HANA Appliance

$
0
0

Hi All,

 

I am planningto installtheASCS of SAP BW 7.4in the same  SapHANA Database Appliance .

I readsome notes, including thecentralnoteandfound nothingrelated to theCentralServiceson the appliance.

 

This scenariois supportedby SAP?

 

 

Regards,

 

Fabio Nassar

SAP HANA Max Transactions Parameter

$
0
0

Dear Experts,

 

 

Does anyone know which SAP Hana DB Parameter controls the maximum number of transactions?

 

I'm currently facing this issue with our BW application server on HANA .

 

Connect to database failed, rc=1, rcSQL=128 (transaction error: exceed maximum number of transactions) (work process trace)

 

error.jpg (HANA Studio)

Relaease info:

HANA :  Multinode  V.1.0.35

BW App Server 731 SP4 ,Kernel Release: 720/313

 


Thanks&Best Regards,

Bogdan

Error while creating Decision table using analytical view in HANA

$
0
0

Hi,

 

I am trying to create a decision table using analtical view. I am getting below error at the time of activation

 

Repository: Internal error during statement execution, please see the database error traces for additional details; error in generated procedure - SqlScript: Could not derive table type for variable "RETURNED_TT" (SQL error: feature not supported: not allowed over OLAP VIEW : search without aggregation, grouping by expression other than view column or user defined function with string type) at ptime/query/sqlscript2/so_error.cc:27line: 4294967295 column: 4294967295

 

I have added one column as decision column and one action column through parameter.

 

Please help to find reason behind this error.

 

Thanks,

Shriniwas

HANA modeling results superseed

$
0
0

Hi,

 

I need an help in order to find a smarter solution in order to fulfill my requirement.

I'm modeling this in SQL Script into a Procedure in HANA, no possibility to use ABAP.

 

Currently I have to table

 

Table A

 

Afield1 -> key

Afield2 -> joins with Bfield1

Afield3 -> joins with Bfield2

Afield4 -> joins with Bfield3

 

Table B

 

Bfield1 - key

Bfield2 - key

Bfield3 - key

Bfield4 - value

 

Final expected output is:

Afield1

Afield2

Afield3

Afield4

Bfield4

 

 

Table B define a value based on the different matching of the three keys. My requirement is to match records from TableA with records of TableB following this rule:

 

try with the full Bkey if no results try with the partial key Bfield2, Bfield3, if still no results go with Bfield1.


I tried with union [distict], but if the join has different correspondences those are considered as different (Bfield4 has different values), I would love something like UNION DISTINCT WITH KEY.

I also tried to apply a score to the 3 queries in the union so I will have multiple records in the final output, but the problem is how I can delete the lower score records.

 

I hope my requirement is explained properly, I would appreciate any suggestion.

 

Does anyone have any idea?

 

Thank you

Ivan

How to select only visible columns from a view?

$
0
0

Hi all!

 

  I need to select only the fields not marked as hidden from a view, but when I execute the select all the columns are returned. Help please I'm in a desperate timeframe.

 

The table:

 

FieldTypeVisible
NameVarcharTrue
AdressVarcharTrue
Credit Card NumberNumberFalse
PhoneVarcharTrue
Last UpdateDateTrue

 

The select:

 

SELECT * FROM "TEST"."test/TestView" WHERE "LAST_UPDATE" BETWEEN '1900-01-01 00:00:00' and '2015-07-06 23:59:59' LIMIT 1000 OFFSET 0

 

Problem is that in the result set the column Credit Card Number is present, and I don't want that column to be returned in the result set.

 

Thanks in advance!!!!


Need help to figure out simple date filter in calculation view

$
0
0

Guys and Gals,

 

I have a simple issue that I can't wrap my little brain around.

 

I need a simple date filter where I get data for only yesterday. For example ERDAT = yesterday.

 

This has to be done in the expression editor in the first projection node, I want to force this filter on the attribute view so the performance will be great. Putting a filter in the first projection node where you consume the Attribute view is equivalent to putting that filter directly in the Attribute view (please correct me if I'm wrong but I'm 99% sure and tested it).

 

So my basic filter in the expression editor will be:

 

ERDAT = now() -1

 

Sounds simple enough but doesn't it? Can someone please tell me the syntax where I only get yesterday's date?

 

Note: If the answer is create a calculated column, etc., then I am not enforcing the filter on the attribute view right away.

 

Thanks alot experts.

SAP HANA Model Validation and DataPreview Error

$
0
0

Dear Expert,

 

 

We get some trouble when Data Preview the build HANA Model on HANA rev 91.

Here is a sample CA view, quite simple, only 2 tables join together. And it works fine on the same HANA db with rev91 several weeks ago.

ModelDefinition.jpg

 

 

 

When clicking the data preview button, hana studio now did not generate the expected data preview window. When using the SQL editor to data preview the Calculation View, it automatically generate below ERROR and trying to find the BIMC_DIMENSION_VIEW under SYSTEM schema.
This is quite different than before!
Since my understanding when data preview HANA model, it should go to query the column view under _SYS_BIC.
And I try to manually query the column view _SYS_BIC.TRAINING.02_TextJoin/ZCA_TEXT_JOIN  it still work.

data preview error.jpg

 

 

Then I try to copy the HANA model to another CA named ZCA_TEXT_JOIN_001, make NO change, and activate the model again. The activation failed with below ERROR. ..

Repository: Encountered an error in repository runtime extension; Index $IDX$ out of range[$BEG$,$END$)

ActivationFailed.jpg

 

 

I also attached the related information in indexserver trace. BTW, this data preview error and activation error not only happened in this model.
All the other HANA model on this system, all have this  issue. Seems like a system wide problem.

Let me known if you have any idea about this! Thanks a million.

Adding a view to analytic privilege using SQL

$
0
0

Hello Gurus,

 

I have a newly created attribute view. Could you please let me know if there is a way I can add that view to an analytic privilege using SQL code instead of editing the analytic privilege graphically.

 

Something like an ALTER command.

 

Thanks,

Raviteja

Irregular aggregation of measures in calculation view

$
0
0

Hello All,

 

We are having a table in SAP HANA, whose structure is as below. Above that, we have built a calculation view, in which the measure "Quantity in TNE" have been added twice in the output, one with aggregation type "SUM" and other with "MAX", defined at the Semantics Layer.

 

Loading DatePlant Code MaterialQuantity in TNE
2012-12-081251014221.77
2012-12-121251014222.36
2012-12-121251014222.37
2012-12-171251014222.28

 

So, we get the output for the calculation view as below:

1.png

 

From this output, when we remove "LoadingDate", we still expect "Quantity in TNE" to display the MAX value, i.e 2.37, but it is making the SUM of the quantities, i.e. 7.01

2.png


Kindly explain the same.

 

 

Best Regards,

 

Ram

Call a webservice or XSJS from SQLScript?

$
0
0

Hi.

 

Is it possible to call a webservice or a XSJS job from a SQLScript stored procedure in SAP HANA?

I've been looking for some information, but haven't found anything.

How to make an ODS View good for join in Composite Provider

$
0
0

Hi to all,

i have a problem, no matter how try but in every ODS view that i create, it never shows "CalcScenario Used" "Yes" and, for this reason, i cannot do the join in my composite provider involving the ODS View.

 

That's the screenshot:

Cattura.PNG

Cattura2.PNG

 

I have done a calculation view and used a remote source to create a Virtual Table to upload it in the ODS View.

It seems to me that i have satisfied all the requirements.

 

 

I am using this guideline:

 

Solution

As of BW 7.40 SP8, the Open ODS View supports HANA Optimized Query Execution using the SAP HANA Calculation Engine. Depending on the BW query mode, certain OLAP calculations can be pushed down to HANA to optimize the query runtime.

As a prerequisite, a column view of type Calculation Scenario is required. The Open ODS Views of semantic "Facts" now have a new property called "CalcScenario used". The property describes if such a Calculation Scenario has been created. No user interaction is required, since the property is automatically determined during InfoProvider Activation.

Prerequisites for Calcuation Scenarios of Open ODS Views

  1. Semantics:
    A Calculation Scenario is only created for Semantics 'Facts'. Associated Master Data (InfoObjects, ODS Views) are contained in the Calculation Scenario.
  2. Source Types:
    Supported Source Types are 'Virtual Table using SAP HANA Smart Data Access', 'Database Table or View' and Advanced DataStore Object.
  3. Source Object:
    Only Column Store Table and Virtual Tables are currently supported. Rowstore Tables or Database Views are currently not supported. This prerequisite also applies to all associated ODS Views.
  4. Field Data Types of Source Object: Certain Data Types can not be supported yet as view fields in the Calculation Scenario:
    - Binary types (VARBINARY, BLOB) are in general not supported in the ODS View.
    - LOB Data Types: CLOB, NCLOB, TEXT, BINTEXT
    - Fixed-point decimals (e.g. DECIMAL(p,s)), which have an association to a BW Keyfigure with floating point number
    - Fields with associations to BW Keyfigures with datatype decimal float 34

 

 

 

If you need further information, please ask.

 

Sorry in advance if my question is not elaborated well enough but i am still a newbie with Hana Studio.

Multiple schedules for a job?

$
0
0

Hi all,

 

  Is that possible to have multiple schedules with different parameters for a single job? I'm trying to create a job like this:

 

{

    "description": "Integration Schedule",

    "action": "integration:scheduleIntegration.xsjs::schedule",

    "schedules": [

       {

          "description": "Daily integration",

          "xscron": "* * * * 0 0 0",

          "parameter": {

             "tipoDelta": "D"

         }

       },

       {

          "description": "Fortnightly integration",

          "xscron": "* * */15 * 0 0 0",

          "parameter": {

             "tipoDelta": "Q"

         }

       },

       {

          "description": "Monthly integration",

          "xscron": "* * 1 * 0 0 0",

          "parameter": {

             "tipoDelta": "M"

         }

       }

    ]

}

 

Besides, are my crons correct? I think the cron is 'year month day weekday hour minute second' right? Thanks in advance!


Error While activating Attribute view in HANA

$
0
0

Hi Experts,

 

While Activating attribute view in HANA i am getting issue like below,

 

HANA.JPG

 

 

Please suggestion me for this issue.

 

Thanks in Advance.

Jana

SAP HANA SPS 09 - Charset encoding issue

$
0
0

Hello experts,

 

I have recently upgraded my hana database from SPS08 to SPS09. After the upgrade, the data that contains special characters such as ç, ã, õ are displayed incorrectly. This data is retrieved from the database using XS Services or ODataModel binding.

 

At first I thought I missed the content-type parameter during the service call and response return. But I double-checked my code and it seems fine. There is a simple solution when XS Services is used: instead of using the library $.db to connect to the database, use the new $.hdb.

 

But I could not find a solution for ODataModel binding. I tried to force the request header content-type with the following code:

 

oModel.oHeaders["Content-Type"] = "application/json;charset=UTF-8";

 

I checked in Chrome Developer tool that this information is sent in the request header as expected (Content-Type:application/json;charset=UTF-8),  but  the response header is always (content-type:application/json).


This problem didn't happen in SPS08. Any suggestion to fix this issue?


Regards,


Gustavo

objects are already locked by another change SAP HANA SP9

$
0
0

Hi,

 

 

When I tried to Import a package in DU to Hana Qual server, I have this message  :

 

 

" Repository: objects are already locked by another change;Repository::import(): some of the imported objects are already locked due to  following changes_entries: {changeID: (srcSystem: , changeNumber: 167, container: ), objectID: {tenant: , package: ATA_PACK_TEST_DU, name: ATA_AV_TEST, suffix: analyticview}}, "

 

How can I unlocked these objects and why they are locked ?

 

Any idea ?

Cyclic Dependency Error when calling a procedure from inside a procedure

$
0
0

I am working on a process that dynamically builds a list of sql statements, inserts them into a table, and then loops through that table executing the statements each of which inserts one or more records in another table.

 

Here is my 'inner' procedure, please pardon any typos/messiness, I can't cut and paste.

 

CREATE PROCEDURE BLD_TABLE

BEGIN

 

DECLARE CURSOR C_REC FOR

     SELECT statement FROM STMT_TBL;

 

DECLARE cmd varchar(511);

 

FOR cur_row as c_rec do

     cmd := cur_row.statement;

     exec cmd;

END FOR;

 

END;

 

If I call this procedure on its own, it works completely fine, however if I call it from within my other procedure I get a cyclic dependency error.

 

Another really interesting thing is that it doesn't say that the error is happening in my BLD_TABLE procedure, it says it's happening in the earlier BLD_STMT_TBL procedure.  But that part of the program works completely fine, as long as I don't call this BLD_TABLE procedure at the end.

 

Paraphrased for length etc, the error is something like this:

 

Could not execute call OUTER_PROCEDURE(params):transaction rolled back by an internal error:OUTER_PROCEDURE line 47 col 2:transaction rolled back by an internal error:transaction rolled back by an internal error: BLD_STMT_TBL line 36 col 1:transaction rolled back by an internal error: Cyclic dependency found in a runtime procedure:Not allowed to call/modify runtime procedure OUTER_PROCEDURE during it's execution.

 

As you can see from the above, I don't call or modify OUTER_PROCEDURE or BLD_STMT_TBL anywhere in this procedure.  Through process of elimination, it seems to be the cursor declaration statement that it doesn't like.

 

The only thing I can think of at all is that the STMT_TBL that is being used to make the cursor is being created and populated by the earlier BLD_STMT_TBL procedure.  But I don't see why it would see that as a cyclic dependency?

 

Does anyone have any idea what this error is actually trying to tell me?

Objects getting deleted in HANA automatically

$
0
0

Hi,

 

I ran into a strange problem yesterday. We are using HANA One instance on AWS with SPS 8. I had created a schema and populated it with several tables, procedures and functions since last 2 months. Yesterday all of a sudden in the evening the objects(procedures, tables,etc.) started disappearing in the schema. Every time I refreshed the schema the objects being listed were lesser in number. Luckily I had a back so restored it but can anyone help me out with some pointers in order to find the root cause of this issue.

Is there any system log file, etc. from which I can determine what lead to this kind of behavior in HANA

 

TIA

 

Nikhil

Viewing all 6412 articles
Browse latest View live


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