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

Alter Table Error

$
0
0

When I try to run the following alter command

 

ALTER TABLE ITEM_LOCATION ADD CONSTRAINT IL_LOC_TO_LOCATION_FK FOREIGN KEY (LOCATION_KEY) REFERENCES LOCATION (LOCATION_KEY) ;

 

 

I get this error?

 

Cause: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [7]: feature not supported: more than 32 triggers for single table is not yet supported: line 1 col 78 (at pos 77)

 

Can someone help me?

 

Thanks,

Geetha


Creating a Sequence with Mixed Case Name vs UPPER CASE name Problem

$
0
0

I have noticed with HANA, that it appears to be lenient with the case of Column and table names (ie, lower, UPPER, MiXeD cases); however, there does seem to be an issue when creating a sequence with Mixed case.

 

If I do

 

create sequence "acl_sid_KEY_SEQ" increment by 1 start with 1 no cycle ;

SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY;

SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY;

 

Both selects will fail:

 

Could not execute 'SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY' in 21 ms 897 µs . SAP DBTech JDBC: [313] (at 7): invalid sequence: ACL_SID_KEY_SEQ: line 1 col 8 (at pos 7)

Could not execute 'SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY' in 21 ms 903 µs . SAP DBTech JDBC: [313] (at 7): invalid sequence: ACL_SID_KEY_SEQ: line 1 col 8 (at pos 7)

 

However, if I keep the case of the sequence all upper case, I can do:

 

create sequence "ACL_SID_KEY_SEQ" increment by 1 start with 1 no cycle ;

 

SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY;

SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY;

 

Both selects return with 1, then 2 respectively.

 

Is this a bug?

Hierarchy in HANA - How to use it

$
0
0

We have calculation view for account balance. The account has a hierarchy which is a typical account hierarchy with multiple levels and hierarchy nodes.

 

I can create a parent/child hierarchy for the account in attribute view, but how to use the hierarchy when I run reports on the account balance calculation view?

 

- I first look at BOBJ IDT, which does not work, it couldn't see the hierarchy.

- I then look at OLAP analysis, it could see the hierarchy in attribute view, but how to make it avaiable when I check the account balance?

- I look at the option to create hierarchy in calculation view, I wonder it doesn't work either. As it need an attribute for the parent, first the hierarchy node is not in the view, even I add one field for it, the grandparent of an account will definitely has no record in the view.

 

It seems once we move to HANA, the only possible hierarchy we can use is the simple hierarchy like country/state/city, or year/month/day.

 

Am I right? Anyone use HANA for financial reporting? If so, how to deal with the account hierarchy?

 

Thanks a million.

 

Eric

Error saving object: Repository: More than one inactive version exists;there exist already

$
0
0

When I try to import a calc view I get following error message. Source system rev 41 (SP04) and target system on rev51 (SP05). I checked the calc view is not under this package yet, somewhere there are some entries with that name and which is preventing me in creating this view. Any one ran into this issue? If so how did u fix it?

 

Message :

    Error saving object: Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsls, name: P_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ), : Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsales, name: PVA_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ),

java.io.IOException: Repository: More than one inactive version exists;there exist already 2 inactive versions for object {tenant: , package: zsls, name: P_CALC, suffix: calculationview}, for following (user, workspace) :  ( usr1,  ),  ( usr2,  ),

    at com.sap.ndb.studio.sdk.resource.repository.core.impl.AbstractResourceController.save(AbstractResourceController.java:1020)

    at com.sap.ndb.studio.sdk.resource.repository.core.impl.ResourceManager.importModels(ResourceManager.java:2334)

    at com.sap.ndb.studio.modeler.job.type.importexport.ImportModelsJob.importObjects(ImportModelsJob.java:74)

    at com.sap.ndb.studio.modeler.job.type.importexport.ImportModelsJob.run(ImportModelsJob.java:59)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

how to switch off auto commit mode with SQL statment or hana studio.

$
0
0

Hi expert:

 

Could you please tell me on how to switch off auto commit mode of hana db Rev50 in hana studio?

 

Thanks and Regards.

 

Jian Wu

Can fresher directly start learning SAP HANA ?

$
0
0

Hi Friends

 

Can fresher start learning SAP HANA ?

 

Please share your suggestions.

Migration Solution Manager 7.1 to HANA

$
0
0

Hi ,

 

is it now possible to migrate SolMan 7.1 from ORACLE to HANA ?

 

Regards

 

Werner Schubert

Generate "Column Tables" from JPA Entities

$
0
0

Hi Everybody


I am working on JPA, and Hana DB,

and I want to know is it possible to generate "Column Tables", from JPA Entities using Eclipselink

 

if yes, how to do,

and if not is there any other way rather than Eclipselink

 

Thanks
Nadia METOUI


SAP HANA query

$
0
0

I have been trying to learn hana these past few days and have been getting some problems. So As i see SAP HANA is used for de-normalization of data(as per some tutorials that i have seen). So i make the analytic views and I have my data denormalized after making the analytical views. What next?. How do I harness/use these views to create reports for business analysis. I need to generate several reports based on this de-normalized data(which i intend to ultimately use for a website based product). Do i need to create different Anaytical views for different reports?

hdbstudio linux stall

$
0
0

Hi all,

 

This is my first post to the forum, so if I breach any protocols, please let me know.

 

My problem is also one which as a newbie to HANA and HDBSTUDIO, I know may not be answerable given that I am trying to use non-supported software, however, hopefully it will lead to some positive discussions.

 

My problem is that when I install and use HDBSTUDIO on linux, it works fine the first one or two times, and then when started again stalls.  This happens on UBUNTU 12.10, Fedora 18 and OPENSUSE 12.02.  The latter is on VirtualBox under Fedora 18.  Please understand that while, I am nor a Linux zealot and do in fact have HDBSTUDIO working under Windows7 (also in VirtualBox under Fedora 18) that I would really like to use the product under UBUNTU as that is my laptop OS of choice. 

 

As I mentioned, it stalls on startup and in the terminal window, the following is displayed:

 

Exception in thread "Thread-0" java.lang.NullPointerException

    at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin$2.run(IDEWorkbenchPlugin.java:366)

    at org.eclipse.swt.widgets.Display.timerProc(Display.java:4121)

    at org.eclipse.equinox.launcher.JNIBridge._takedown_splash(Native Method)

    at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:167)

    at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:2078)

    at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:112)

 

I then use CTRL-C to stop the process.

 

Just a point, and that is that I have installed vanilla Eclipse on the Fedora box and it runs OK.

 

i will continue to poke, but any help is appreciated.

 

Regards

Out of Memory trouble

$
0
0

Hi there,

 

Our HANA has a trouble caused by "Out of Memory".

Could this trouble aboid any settings in administration.

 

Does anyone have any information?

 

Thanks and Regards,

TOmoko

XS Engine Session Timeout?

$
0
0

Hi,

 

Anyone know if it is possible to set the XS Engine Session Timeout at the server side (say I want my sessions to last no more then 2 minutes before the user has to login again). I do not seem to find a global setting for that, or should I just do that in the code?

 

thx.

S.

SQLScript procedure: Strange problem when declaring a cursor

$
0
0

Hello,

 

I have a very strange problem when creating a SQLScript procedure in HANA that declares a cursor.

The following procedure creation statement:

CREATE PROCEDURE example_proc( IN input_name VARCHAR,                                                                         OUT output_table tt_links)
LANGUAGE SQLSCRIPT READS SQL DATA AS
BEGIN          texta = SELECT TEXT FROM SEARCH.TABLE_A WHERE GENE = :input_name;          DECLARE Cursor C FOR SELECT * FROM SEARCH.TABLE_B;          OPEN C;          CLOSE C;            output_table = SELECT 123456 AS id, 'Title' AS title FROM SEARCH.TABLE_A ;
END;

 

fails with:

Could not execute 'CREATE PROCEDURE example_proc( IN input_name VARCHAR, OUT output_table tt_links) LANGUAGE SQLSCRIPT ...' in 5 ms 162 µs . SAP DBTech JDBC: [257] (at 204): sql syntax error: incorrect syntax near "DECLARE": line 6 col 2 (at pos 204)

 

The strange thing is that if I exclude the Cursor lines like that:

CREATE PROCEDURE example_proc( IN input_name VARCHAR,                                                                         OUT output_table tt_links)
LANGUAGE SQLSCRIPT READS SQL DATA AS
BEGIN          texta = SELECT TEXT FROM SEARCH.TABLE_A WHERE GENE = :input_name;            output_table = SELECT 123456 AS id, 'Title' AS title FROM SEARCH.TABLE_A ;
END;

all runs well.

 

And if I exclude the first line like that:

CREATE PROCEDURE example_proc( IN input_name VARCHAR,                                                                         OUT output_table tt_links)
LANGUAGE SQLSCRIPT READS SQL DATA AS
BEGIN          DECLARE Cursor C FOR SELECT * FROM SEARCH.TABLE_B;          OPEN C;          CLOSE C;            output_table = SELECT 123456 AS id, 'Title' AS title FROM SEARCH.TABLE_A ;
END;

all runs perfectly as well.

 

Both parts are completely independent and run well alone. Why don't they work together? I would very much appreciate if somebody had a hint or an answer.

 

Thank you very much in advance!

David Heller

What privilege is required to view the data in Webi report

$
0
0

Hi,

 

I have created an information model in HANA and designed an Universe in IDT. When I run a webi report on the Universe I am getting the follwoing error.

 

What privilege I should have to view the data on the report.

 

FYI, My HANA and Webi User ids are not same.

 

SAP DBTech JDBC: [2048]: column store error: search table error:  [2950] user is not authorized. (IES 10901) (WIS 10901)

 

Thanks.

FAIL: process hdbdaemon HDB Daemon not Running

$
0
0

I'm installing SAP Hana Platform Edition 1.0 on SUSE Linux Enterprise for SAP Applications 11 SP2.

 

Installation Manager is getting the following error on "Staring System" phase

 

 

ERR: Cannot start system

ERR:   Start of SAP HANA Database instance failed

INFO:     Starting external program /bin/su

INFO:       Command line is: /bin/su - hanadm -c "/usr/sap/HAN/HDB00/HDB start hana"

INFO:       Output line 1:

INFO:       Output line 2:

INFO:       Output line 3: StartService

INFO:       Output line 4: OK

INFO:       Output line 5: OK

INFO:       Output line 6: Starting instance using: /usr/sap/HAN/SYS/exe/hdb/sapcontrol -prot NI_HTTP -nr 00 -function StartWait 2700 2

INFO:       Output line 7:

INFO:       Output line 8:

INFO:       Output line 9: 14.03.2013 16:54:47

INFO:       Output line 10: Start

INFO:       Output line 11: OK

INFO:       Output line 12:

INFO:       Output line 13: 14.03.2013 16:55:17

INFO:       Output line 14: StartWait

INFO:       Output line 15: FAIL: process hdbdaemon HDB Daemon not running

INFO:       Program terminated with exit code 2

 

Anybody know how to bypass this error?

 

Many thanks

Sebastian


FAIL: process hdbdaemon HDB Daemon not Running

$
0
0

I'm installing SAP Hana Platform Edition 1.0 on SUSE Linux Enterprise for SAP Applications 11 SP2.

 

Installation Manager is getting the following error on "Staring System" phase

 

 

ERR: Cannot start system

ERR:   Start of SAP HANA Database instance failed

INFO:     Starting external program /bin/su

INFO:       Command line is: /bin/su - hanadm -c "/usr/sap/HAN/HDB00/HDB start hana"

INFO:       Output line 1:

INFO:       Output line 2:

INFO:       Output line 3: StartService

INFO:       Output line 4: OK

INFO:       Output line 5: OK

INFO:       Output line 6: Starting instance using: /usr/sap/HAN/SYS/exe/hdb/sapcontrol -prot NI_HTTP -nr 00 -function StartWait 2700 2

INFO:       Output line 7:

INFO:       Output line 8:

INFO:       Output line 9: 14.03.2013 16:54:47

INFO:       Output line 10: Start

INFO:       Output line 11: OK

INFO:       Output line 12:

INFO:       Output line 13: 14.03.2013 16:55:17

INFO:       Output line 14: StartWait

INFO:       Output line 15: FAIL: process hdbdaemon HDB Daemon not running

INFO:       Program terminated with exit code 2

 

Anybody know how to bypass this error?

 

Many thanks

Sebastian

Differences between CRM 7.0 (SAP Business Suite on SAP Hana) and CRM 360 on SAP HANA.

$
0
0

Hi Gurus,

I would like to know what are the differences between CRM 7.0 (including in SAPBusiness Suite on SAP HANA)and CRM 360 on SAP HANA.

I know that they have a different license pricing.

I really appreciate any help you can provide.


Best Regards,

Manuel

Table partitioning in SAP-HANA

$
0
0

Hi All,

 

I am new to SAP-HANA and exploring it. I would like to know how can I get the table partition information from metadata ?

And using this partition information how should I query or select data from particular partition ?

 

Thanks,

  Shailesh

Creating a Sequence with Mixed Case Name vs UPPER CASE name Problem

$
0
0

I have noticed with HANA, that it appears to be lenient with the case of Column and table names (ie, lower, UPPER, MiXeD cases); however, there does seem to be an issue when creating a sequence with Mixed case.

 

If I do

 

create sequence "acl_sid_KEY_SEQ" increment by 1 start with 1 no cycle ;

SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY;

SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY;

 

Both selects will fail:

 

Could not execute 'SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY' in 21 ms 897 µs . SAP DBTech JDBC: [313] (at 7): invalid sequence: ACL_SID_KEY_SEQ: line 1 col 8 (at pos 7)

Could not execute 'SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY' in 21 ms 903 µs . SAP DBTech JDBC: [313] (at 7): invalid sequence: ACL_SID_KEY_SEQ: line 1 col 8 (at pos 7)

 

However, if I keep the case of the sequence all upper case, I can do:

 

create sequence "ACL_SID_KEY_SEQ" increment by 1 start with 1 no cycle ;

 

SELECT ACL_SID_KEY_SEQ.NEXTVAL from DUMMY;

SELECT acl_sid_KEY_SEQ.NEXTVAL from DUMMY;

 

Both selects return with 1, then 2 respectively.

 

Is this a bug?

Issues while implementing a formula in scripted calculation view

$
0
0

Dear Experts,

We are using a scripted calculation view and have used a formula

 

POWER

(((( "COL1" / Db ) - WDBT ) / ( 4 - WDBT )) , 1 ) AS "COL3"

 

 

 

 

The issue here is that when i calculate it manually it differed from the result in calc. view. When i explored further by dissseminating the formula i was surprised to see that the numerator was giving me the problem

 

the numerator's ("COL1" / Db) is working fine  but when i subtract WDBT it causes me issues ("COL1" / Db) - WDBT should have been 1.1522.... but rather it shows as 1.252..... which means that the value of WDBT is read as 1 incorreclty or is this because of something else(like datatype conversion).

 

Because if  in the denominator value is read correctly why it isnt read correctly in the numerator.

 

Please help me here.

 

 

Thanks,

Rajesh.

Viewing all 5653 articles
Browse latest View live


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