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

Table creation and deletion date, user ID in HANA

$
0
0

Hi Experts,

 

I have a small question, probably, it might be a very simple system view, but have sifted through a lot of different guides, I just cannot seem to find a table/view that will tell me the information about table creation in HANA and also if it was deleted when it was deleted and by which user ID?

 

The purpose for asking this question is that it seems one of the crucial tables in our environment got deleted and possibly re-created and we are trying to figure out when and how that occured.

 

All help appreciated.

 

Thanks.

 

MD


Regarding HANA DB Driver

$
0
0

Hi

 

Working on HANA1.0 SPS2

Trying to create a new data store for hana in SAP BO data servcice. and fetch data from DS to HANA system.

i cant find HANA DB driver to input as below.

 

In local object library -> New

Create new data store

Data store name:

Data store type :database

Database type :hana

Database version:1.x

datasource : ??????    <-  <ODBC Admin>

 

i tried adding in ODBC setting  <system dsn> tab, but cant find any driver related to HANA?

 

i could not find any driver related to HANA, should i have to install any HANA DB driver in Dataservice driver?

 

Where should i have to install the driver? how to find which driver?

should Install in HANA system or Studio system or Dataservice server>

 

Pls suggest me.

 

regards

Chandra

Can anyone guide on GRC on AWS and then migrate to HANA

$
0
0

Hi All, My client is still to migrate to HANA. As we are going ahead with SAP GRC implementation, the option avaialble is to do on AWS and then migrate later to HANA.

The questions that I have are :

- What are the major risks in this approach

- Is there major effort involved in later migration to HANA. Any ready document for that

- Is there any better way to manage this .

 

anjali

Text search duplicate entries in INA Tool Kit

$
0
0

Hi experts,

I am using INA Tool kit for creating a dashboard for HANA Text search. Text analysys returns multiple entries while analyzing. Hence my Attribute view has duplicate entries w.r.t each message when joined with Text Search Index tables. How do i avoid these duplicate entries in my INA Tool kit result list?

regards,
Deepthi lakshmi.A

how find hana tenant jdbc port

$
0
0

Hi experts,

 

How can I found a jdbc port for hana tenant for exemple when I lunch this query, my jdbc port is 30040 for the first tenant , 30043 for the second...

 

 

ports2.png

Thanks

HANA dynamic sql

$
0
0

Hi,

 

I'm trying to create a dynamic SQL script to create and fill a table. We need this to create a pivot table in Hana because Hana doen't have a pivot function.

We can create a dynamic string and when we manually execute what's in the string everything works. But we need this to work without manual copy/past of course

 

This is the current script

 

DROP PROCEDURE "stock";

CREATE PROCEDURE "stock"() LANGUAGE SQLSCRIPT AS

 

BEGIN

Declare SqlString NVARCHAR(3500);

Declare sLengte NVARCHAR(200);

Declare dLengte DOUBLE;

Declare CURSOR packet for SELECT DISTINCT "U_Lengte" FROM OIBT WHERE TO_INTEGER("Quantity") > 0 order by "U_Lengte" ASC;

call pr_drop_table (UPPER('pakket'));

SqlString:='create table pakket(itemcode nvarchar(20),itemname nvarchar(100),maat nvarchar(20),fsc nvarchar(20),M3 float default 0 ';

    FOR c_row as packet DO

    dLengte:= c_row."U_Lengte";

    SqlString:= SqlString ||',"'|| TO_NVARCHAR(dLengte)||'" int default 0';

    END FOR;

SqlString:= SqlString ||');';

SqlString:=SqlString || ' insert into pakket (itemcode,itemname,maat,fsc) select distinct "ItemCode","ItemName",TO_NVARCHAR(TO_INT("U_Dikte"))||'' x ''||TO_NVARCHAR(TO_INT("U_Breedte")),COALESCE("U_Kenmerk_1",'''') from OIBT where "Quantity">0;';

select SqlString from dummy;

--EXECUTE IMMEDIATE (:SqlString);

END;

 

 

When we enable the EXECUTE line the script doesn't run anymore (sql error incorrect syntax near ";")

 

Please assist.

 

Paul

Row count

$
0
0

Hello, I need to provide the list of all tables ,no of measures , dimensions and the rowcount in tables. Is there any audit table available? Ben

SQL Analytic Privilege - Insufficient privilege

$
0
0

Hi Folks,

 

Need your help on the issue we are facing.

 

We have created a calculation view on just one table, activated and able to see the data preview successfully.

 

Now we have changed the Analytic Privilege property in semantics to 'SQL Analytic Privilege' and successfully activated the object. Surprisingly data preview gives 'Insufficient privilege' for the same user.

 

We have even tried with SYSTEM user however we are still getting 'insufficient privilege' error.

 

Regards,

Venkat N.


DB refresh in Tenant DB

$
0
0

Dear Experts ,

 

We would like to refresh our database from Production to Quality ,both are running in tenant DB in HANA.

 

Concerns is production appliance running with two tenant DBs and Non Production appliance is running with three tenant DBs.

 

I would like to refresh only ECC production tenant DB with ECC quality tenant DB .

 

Is it possible to recover only tenant DB ?

 

If so could you please share me some documents .

 

Thanks

Bala

Merge Operation

Analyze data as HANA developer

$
0
0

Hi Folks,

 

Let me introduce first, I'm Ashok, currently working as a software engineer and I'm in the dawn of my career. I'm pretty much interested to learn DATA analytics and equally interested in SAP too. Recently I have joined SAP HANA training.

 

As a part of learning process, I have been provided with a finance data for analyzing, really a big one, consists of Sales tables, Finance tables etc...... I do know that, first I need to separate Transaction tables and Master tables from the data given. But what I need to know is, what I am suppose to do after the analysis. Since it is big data, I'm really stuck, and I don't know what to do after the analysis.

 

Earlier I have worked with small sales data and I have done the modelling reporting all these things. But for data which contains lot of tables, I don't know where to start.

 

Can anyone guide me in this part?

 

Thanks and Regards,

Ashok

How to reset the counter for expensive SQL statements in the Monitoring Dashboard

$
0
0

Hi experts,

For some unknown reason, my team mate has left the Expensive SQL Trace 'on' in our production system a few months ago. By the time I noticed this and turned off the trace, there are already some 2582 detected SQL statements that we see whenever we open the monitoring dashboard.

 

My questions is, is there anyway we can reset this counter? Please see screenshot below for reference.

expensive_statements.jpg

 

We have a chance to restart the system just a few weeks ago but this did not reset the counter. I know these statements can also be viewed via the "Data Preview" option of the view M_EXPENSIVE_STATEMENTS from SYS. Can the entries of this view be safely deleted and will this reset the counter?

 

Please advise. Thank you.

 

Regards,

ANG

When to Use Inverted Keys

$
0
0

We had some tables that were really large and using a lot of space. (The tables were already partitioned btw)

 

On a deeper dive we see that the tables internal object sizes were larger than the tables themselves. The tables had multiple keys and we saw those keys were large.

 

We changed those tables to inverted hashes ( I believe we did 4 tables ) and the size of those internal objects decreased. We didn't see any noticeable degradation of sql performance..

 

So ... we are looking to establish criteria for when we want to use inverted hashes.

 

I ran this qry:

 

select distinct a.schema_name,a.table_name, a.columns, a.internal, a.internalPK, b.record_count
from
(
select schema_name, table_name,
sum(case when my_type = 'columns' then memory end) as columns,
sum(case when my_type = 'internal' then memory end) as internal,
sum(case when my_type = 'internalPK' then memory end) as internalPK
from
(
--M_CS_COLUMNS - Runtime information of columns of column tables
select schema_name, table_name, 'columns' as my_type, memory
from
(
select schema_name, table_name,  sum(memory_size_in_total) as memory
from sys.m_cs_columns
group by schema_name, table_name
)
union
--M_CS_ALL_COLUMNS - Runtime information from all columns of column tables, including internal ones
select schema_name, table_name, 'internal' as my_type, memory
from
(
select schema_name, table_name, sum(memory_size_in_total) memory
from sys.m_cs_all_columns
group by schema_name,table_name
)
union
select schema_name, table_name, 'internalPK' as my_type, memory
from
(
select schema_name, table_name, sum(memory_size_in_total) memory
from sys.m_cs_all_columns
where column_name='$trexexternalkey$'
group by schema_name, table_name
)
)
where memory > 0
group by schema_name, table_name
) as a left join sys.m_cs_tables as b on a.schema_name=b.schema_name and a.table_name=b.table_name
where a.internalPK > a.columns
order by 1

 

and it produced the following:

inverted_key.jpg

So you can see that when the internalPK is greater than the size of the columns then it *could* be a candidate.

 

Anyone have some other criteria? 2,951,038,304 is about 3 Gb.

 

So maybe we shouldn't get concerned until the size is over 20 GB? Comments?

 

Mike

HANA Replication Error - source system and target system have overlapping logical hostnames

$
0
0

Dear Experts,

 

We have done HANA DB failover and failback. After the failback to primary host, the replication is not working. When we tried to register secondary, we are getting the below error.

 

Could you please let us know how to resolve this ?

 

Main Error:

 

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.623129 e sr_nameserver    TNSClient.cpp(06963) : source system and target system have overlapping logical hostnames; each site mu

st have a unique set of logical hostnames. hdbrename can be used to change names

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.623159 e sr_nameserver    TopologyUtil.cpp(02403) : source system and target system have overlapping logical hostnames; each site

must have a unique set of logical hostnames. hdbrename can be used to change names;

 

Trace File:

 

 

  1. 4.7.2 20130108 [gcc-4_7-branch revision 195014]

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768200 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768218 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768240 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768244 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768246 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768247 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768249 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.768252 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.773583 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_register --name=PD1_secondary --mode=sync --remoteHos

t=<primary_host> --remoteInstance=00 --force_full_replica

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.779545 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.838826 w Environment      Environment.cpp(00356) : Changing environment set LINES=44

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.838842 w Environment      Environment.cpp(00356) : Changing environment set COLUMNS=168

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.867164 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.878997 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.881711 e sr_nameserver    TNSClient.cpp(06963) : source system and target system have overlapping logical hostnames; each site m

ust have a unique set of logical hostnames. hdbrename can be used to change names

[144680]{-1}[-1/-1] 2015-09-21 13:03:44.881747 e sr_nameserver    TopologyUtil.cpp(02403) : source system and target system have overlapping logical hostnames; each sit

e must have a unique set of logical hostnames. hdbrename can be used to change names;

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505752 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505881 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505899 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505916 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505917 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505919 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505921 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505923 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.505925 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.511128 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_register --name=PD1_secondary --mode=sync --remoteHost

=<primary_host> --remoteInstance=00 --force_full_replica

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.517053 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.576784 w Environment      Environment.cpp(00356) : Changing environment set LINES=44

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.576800 w Environment      Environment.cpp(00356) : Changing environment set COLUMNS=168

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.604526 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.618653 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.623129 e sr_nameserver    TNSClient.cpp(06963) : source system and target system have overlapping logical hostnames; each site mu

st have a unique set of logical hostnames. hdbrename can be used to change names

[12501]{-1}[-1/-1] 2015-09-21 13:13:43.623159 e sr_nameserver    TopologyUtil.cpp(02403) : source system and target system have overlapping logical hostnames; each site

must have a unique set of logical hostnames. hdbrename can be used to change names;

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920400 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920528 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920548 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920571 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920572 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920574 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920576 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920578 e Configuration    ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.920580 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.925789 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_hint --sapcontrol=1

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.931711 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.977311 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.983437 e TNS              TNSClient.cpp(00669) : sendRequest getvalue to <secondary_host>:30001 failed with NetException. data=(S)path=

/datacenters/isSource/0|

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.985934 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.988242 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.990558 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.990991 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/mappings/0/*|

[17225]{-1}[-1/-1] 2015-09-21 13:16:25.993297 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709089 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709216 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709236 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709252 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709254 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709256 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709258 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709260 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.709262 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.714514 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_state --sapcontrol=1

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.720488 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.764431 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[17310]{-1}[-1/-1] 2015-09-21 13:16:28.772068 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985113 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985243 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985263 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985279 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985281 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985283 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985284 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985287 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.985289 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.990518 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_hint --sapcontrol=1

[17403]{-1}[-1/-1] 2015-09-21 13:16:32.996545 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.040392 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.046175 e TNS              TNSClient.cpp(00669) : sendRequest getvalue to <secondary_host>:30001 failed with NetException. data=(S)path=

/datacenters/isSource/0|

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.048649 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.050959 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.053293 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.053730 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/mappings/0/*|

[17403]{-1}[-1/-1] 2015-09-21 13:16:33.056008 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751265 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751389 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751409 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751427 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751428 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751430 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751432 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751434 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.751436 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.756654 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_state --sapcontrol=1

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.762582 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.806080 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[17486]{-1}[-1/-1] 2015-09-21 13:16:35.813532 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434270 i Basis            TraceStream.cpp(00467) : ==== Starting hdbnsutil, version 1.00.095.00.1429086950 (fa/newdb100_rel), bui

ld linuxx86_64 9a90dc475042e305cd4edc5c078f34b708ffce42 2015-04-15 10:44:35 ld7337.wdf.sap.corp gcc (SAP release 20140516, based on SUSE gcc47-4.7.2_20130108-0.15.45) 4

.7.2 20130108 [gcc-4_7-branch revision 195014]

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434392 i Basis            TraceStream.cpp(00469) : MaxOpenFiles: 1048576

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434412 i Basis            TraceStream.cpp(00472) : Server Mode: L2 Delta

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434429 i Basis            ProcessorInfo.cpp(00713) : Using GDT segment limit to determine current CPU ID

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434430 i Basis            Timer.cpp(00650) : Using RDTSC for HR timer

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434432 i Memory           AllocatorImpl.cpp(01334) : Allocators activated

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434434 i Memory           AllocatorImpl.cpp(01350) : Using big block segment size 67108864

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434436 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.434438 e Configuration ConfigStoreManager.cpp(00693) : Configuration directory does not exist.

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.439665 i Basis            TopologyUtil.cpp(03973) : command: hdbnsutil -sr_state

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.445678 w Environment      Environment.cpp(00383) : Changing environment set SSL_WITH_OPENSSL=0

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.489976 e ipc              TrexIpc.cpp(00462) : SHM_ATTACH failed: 3,2,No such file or directory

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.530859 w Environment      Environment.cpp(00356) : Changing environment set LINES=44

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.530876 w Environment      Environment.cpp(00356) : Changing environment set COLUMNS=168

[35911]{-1}[-1/-1] 2015-09-21 13:26:01.540699 e TNS              TNSClient.cpp(00669) : sendRequest querytree to <secondary_host>:30001 failed with NetException. data=(I)mode

=0|(N)query=/datacenters/takeover/*|logpos=*|

 

Thanks and regards,

Pradeep

Streaming algorithms in HANA?

$
0
0

Dear all,

 

I would like to know, if HANA can use streaming algorithms to determine results of top-N queries.

 

suppose table_a and table_b:

 

create column table table_a (

   id bigint not null primary key generated by default as identity,

   val_a numeric

);

 

create column table table_b (

  id bigint not null primary key generated by default as identity,

  val_b numeric

);

 

My query goes like this:

 

select top 10 * from (

  select a.id, b.id, val_a*val_b as similarity

    from table_a a

          , table_b b

  order by val_a * val_b desc

)

 

where table_a and table_b are large tables, so that the cartesian join will not fit in the memory at hand (that means, a couple of millions each). .

 

This query works for small numbers of rows, but seems to materialize the complete result set, although this can be achieved with constant memory using a streaming algorithm.

 

Does HANA have streaming algorithms for this problem available?

Is there a way to tell HANA to use these streaming algorithms?

 

Can one use this to find the top-N matching elements in b for each element in a? For example by using rank() over (partition by a.id order by val_a*val_b desc)

 

Thanks in advance,

 

Jens


Procedure syntax passing variables

$
0
0

Hello,

 

The procedure below is not working and I don't understand why.

Can someone help me please ?

 

when I call the procedure I'll get the message     transaction rolled back by an internal error: wrong number of arguments

The problem is in using the parameter in the where part of the query.

 

 

DROP PROCEDURE customer_dashboard;

CREATE PROCEDURE customer_dashboard(IN CardCode NVARCHAR(20)) LANGUAGE SQLSCRIPT AS

 

BEGIN

Declare jaar1 NVARCHAR(4);

Declare jaar2 NVARCHAR(4);

Declare jaar3 NVARCHAR(4);

Declare jaar4 NVARCHAR(4);

Declare sqlstring NVARCHAR(2500);

 

 

jaar1 := YEAR(NOW());

jaar2 := YEAR(NOW()) - 1;

jaar3 := YEAR(NOW()) - 2;

jaar4 := YEAR(NOW()) - 3;

 

 

CALL pr_drop_table (UPPER('temptbl'));

 

 

CREATE COLUMN TABLE temptbl AS (SELECT t0."DocNum", t0."CardCode", t3."ItmsGrpNam", YEAR(t0."DocDate") AS "Jaar", CAST((t1."LineTotal" * ((100 - t0."DiscPrcnt") / 100)) AS real)

AS "LineTotal" FROM ORDR t0 INNER JOIN RDR1 t1 ON t0."DocEntry" = t1."DocEntry" INNER JOIN OITM t2 ON t2."ItemCode" = t1."ItemCode"

LEFT OUTER JOIN OITB t3 ON t3."ItmsGrpCod" = t2."ItmsGrpCod" WHERE t0."CardCode" = :CardCode );

SELECT * FROM temptbl;

--select :sCardCode from dummy;

END

 

 

DROP PROCEDURE customer_dashboard;

CREATE PROCEDURE customer_dashboard(IN CardCode NVARCHAR(20)) LANGUAGE SQLSCRIPT AS

 

BEGIN

Declare jaar1 NVARCHAR(4);

Declare jaar2 NVARCHAR(4);

Declare jaar3 NVARCHAR(4);

Declare jaar4 NVARCHAR(4);

Declare sqlstring NVARCHAR(2500);

 

 

jaar1 := YEAR(NOW());

jaar2 := YEAR(NOW()) - 1;

jaar3 := YEAR(NOW()) - 2;

jaar4 := YEAR(NOW()) - 3;

 

 

CALL pr_drop_table (UPPER('temptbl'));

 

 

CREATE COLUMN TABLE temptbl AS (SELECT t0."DocNum", t0."CardCode", t3."ItmsGrpNam", YEAR(t0."DocDate") AS "Jaar", CAST((t1."LineTotal" * ((100 - t0."DiscPrcnt") / 100)) AS real)

AS "LineTotal" FROM ORDR t0 INNER JOIN RDR1 t1 ON t0."DocEntry" = t1."DocEntry" INNER JOIN OITM t2 ON t2."ItemCode" = t1."ItemCode"

LEFT OUTER JOIN OITB t3 ON t3."ItmsGrpCod" = t2."ItmsGrpCod" WHERE t0."CardCode" = :CardCode );

SELECT * FROM temptbl;

END

com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [339]: invalid number: [6930] attribute value is not a number

$
0
0

At this I'm looking for a general idea about what kinds of things can cause this error - com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [339]: invalid number:  [6930] attribute value is not a number?

 

I've got a query in my application that currently causes this problem.  If I run the same query in HANA Studio or write a simple JDBC program that executes this same query again the HANA data source I get no error.

 

Thanks

Known issues in each revision for SAP HANA

$
0
0

Hi Team,

 

Do we have any SAP note or something which gives information about what are the know issues in each revision of SAP HANA. Recently we have upgraded to revision 97 and joins in calculation views are taking too much time and use to execute fine in earlier versions.

 

I am looking for a document which points to issues and which version provides fix.

 

Regards,

Venkat N.

Connect SAP HANA via ODBC

$
0
0

Hi,

 

I installed HANA client on a windows 7(32 bit) OS and I am able to create a DSN via HANA driver and successfully connect to a HANA database located in another Suse Linux server.  But the problem is I need enter the database username and password every time when I want to create the connection. Could you help advise how should I have either database or DSN to remember my username and password?

 

Thanks

 

-Jack

 

Message was edited by: Tom Flanagan

Restrict HANA Schema Size

$
0
0

Hello everyone,

 

Does anyone know of a way to restrict the size (memory allocation) of a specific schema within SAP HANA?

 

We are granting a set of users the rights to create within a schema, but need to limit the overall size of their tables.

 

Thanks a lot,

- Matt

Viewing all 5653 articles
Browse latest View live


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