Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all 4343 articles
Browse latest View live

sap.hana* roles all missing

$
0
0

Hello,

 

We are running HANA SP11.02.

We could not access the HANA Admin Cockpit, after analysis, it turns out that not only the required roles sap.hana.admin.roles::Administrator role,but also all the sap.hana* roles are all missing.

 

I executed the SAP minichecks scripts related to security and SAP HANA Role Overview :

2016-06-22 15-43-41.png

 

As you could see the _SYS_REPO roles are not displayed

I checked the roles assigned to the user _SYS_REPO :

No 'sap.hana*', could be found here

2016-06-22 15-50-33.png

 

 

 

So obviously the two follwoing commands would return the same error :

call GRANT_ACTIVATED_ROLE('sap.hana.admin.roles::Administrator','SYSTEM')

CALL _SYS_REPO.GRANT_ACTIVATED_ROLE('sap.hana.admin.roles::Administrator','SYSTEM')

 

 

Could not execute 'call GRANT_ACTIVATED_ROLE('sap.hana.admin.roles::Administrator','SYSTEM')' in 16 ms 27µs .

SAP DBTech JDBC: [258]: insufficient privilege: Can only grant activated roles, not sap.hana.admin.roles::Administrator

 

By "activated", I guess it means "existing" role, anyone has any idea of what is going one and how do i get back the missing roles ?

And yes, the system is running fine and all services are actives :

2016-06-22 16-05-20.png

 

Thanks and Regards


HANA REPLICATION Registration error

$
0
0

Dear Experts

 

I have successfully REPLICATE SAP HANA between two HANA databases HANA1 and HANA2.

when i fail back to original SAP HANA database and register as a secondary system i got following error.

 

a2:/hana/shared/HDB/HDB01/exe> ./hdbnsutil

Crash at /sapmnt/ld7272/a/HDB/jenkins_prod/workspace/FA_CO_LIN64GCC47_rel_fa~newdb100_maint_rel/sys/src/Basis/System/impl/SharedMemorySegment.cpp : 360 Reason: File /var/tmp/.SHM_SAP_IPMM_Mutex_0024_no-sid could not be opened / created. Ensure existing, writable directory /var/lib/hdb. RC:13 Permission denied

Aborted

Used memory by a Model in HANA

$
0
0

Hi Team,

 

We want to track the amount of memory that is consumed by a model. Is this possible.

 

We already enabled enable tracking and resource tracking to ON and it is helpful to get the expensive statements, We want to get the details like ,

 

how much memory a model takes, which HANA metadata table stores this  information.

 

Can any body guide us on this?

 

Thanks and Regards,

Mathan

CalcView Unfolding

$
0
0

Hi,

 

Could you explain please what is CalcView Unfolding and how detect if my view use the unfolding or not.

 

I have read the sap note 2291812 but it stills not clear for me.

 

Thanks

Input parameter using a scalar UDF

$
0
0

I am trying to use a scalar UDF in an input parameter.  I can use a stored procedure but when I try to find the function, it doesn't come up.  As you see below, the function is available and I can use it in a normal Select statement.  But when I try to find the function in the Input Parameter definition, it comes up 'No results found'.  Is there anything I need to specifically to make it available?  I copied the function code below.

 

function.PNG

input_param.PNG

CREATE FUNCTION ZFCC.Z_FISCAL_MONTH (ip_yyyymm_from nvarchar(6))
RETURNS ip_yyyymmm_from nvarchar(7)
LANGUAGE SQLSCRIPT 
SQL SECURITY INVOKER AS
BEGIN
ip_yyyymmm_from := left(:ip_yyyymm_from,4) || '0' || right(:ip_yyyymm_from,2);
END;

Looking for SAP HANA SDI developer guide

$
0
0

Hi,

 

i am looking for SAP HANA SDI developer guide where all SDI functions, Expression or other development related topics are covered in PDF.

 

Please share links.

SAP HANA Used Memory Not released after a bad query

$
0
0

Hi,

 

We are running HANA database (102.05) with almost half TB RAM and around 29GB of column store tables and 19MB of Row Store tables in our dev environment.

 

I frequently observed that the HANA Used Memory is not being released after completion of the query whenever any bad query/statement/Calculation view is executed. To further analyze the issue I have ran many reports and looked at different sources and that investigation led me into lot many other questions.

 

On the HANA Studio overview screen I can see that the used memory is at around 127 GB and the other report showed the memory usage breakup with the component "Statement Execution & Intermediate Results" taking the top spot with around 70 GB memory consumption and then the Column Store Tables at 53GB (But the actual Column store is only 29GB).

 

Image1: Screenshot from Studio - HANA Used Memory is 127 GB approx

 

 

Image2: Result screenshot of the Component wise memory usage for Index Server (Port 30003)

 

 

Image3: Column Store table size

 

 

Image4: Row Store table size

 

 

On the other hand the below query shows me that the total Memory consumption by HANA is at 134 GB but the studio overview shows only 127 GB (Imange1)

 

Image5: Total HANA Memory usage

 

 

Image6: Memory usage by individual Services

 

After looking at all these sources with different results, I have got below questions/doubts

 

1) Is the component "Statement Execution & Intermediate Results" (Image) the culprit for HANA Used memory not being released? Is this a bug or do I have to tune any parameter or run query to release the Used Memory?

 

2) Why is there difference between the Column Store (Image3) and Row Store (Image4) tables sizes shown with the individual queries and the result shown in the Component wise memory usage report ( Image2)

 

3) Why is there a difference between the HANA Used memory shown on studio (Image1) and the result obtained from the query (Image5)

 

4) Image 6 shows few services have Used Memory higher than Resident Memory. Is this possible? My understanding was that the Used memory and Resident memory could be equal or Resident memory could be higher than the Used Memory but looks like I am missing something.

 

5) In ABAP stack systems we have a parameter to let the work process to restart after it consumes certain amount of heap memory but I am not sure if any such parameter available in HANA to release the memory after memory usage reaches certain limit per query/statement or the whole database. I am sure HANA has its own memory management mechanism without the need for such parameters but just asking..

 

Regards,

Ashok Oleti

Side car implementation from SAP ECC to HEC

$
0
0

Hi Experts,

 

I am really new to side car implementation to SAP HANA.(and even to SAP HANA :-) )

Here is the requirement :

 

We have a source ECC system on our datacenter and we are required to do a sidecar implementation to HEC and see the performance of reports when running under Hana.

 

So here are my doubts (please excuse if they are very silly :-( )

 

1. HEC means i will get a hana DB available on cloud or will it be a BW on Hana or some reporting tool on Hana to display my reports ?

 

2. What will be the difference in configuration if Hana is on Premise and if it is Hana enterprise cloud

 

3. What are post steps required once replication is setup using SLT to display the reports.

 

4. How many teams should be involved in this scenario (I mean Basis,DBA's ,developers etc....? )

 

It would be very greatful if someone can provide a blog or document which explains about SLT implementation with HEC.

 

 

Regards,

Srujay


Hana hour and minutes calculation

$
0
0


Hi All,

 

I have a requirement to calculate time deduction calculation between 2 time fields defined as HH24:MIN format,

 

for example this is the calculation that should happen;

 

A-B = C

 

10:30 -02:30 = 08:30

 

What the formula for this? Should I use ADD_SECOND formula somehow

 

Thanks

SAP HANA geotransformation - Internal library error

$
0
0

Hi,

 

I want to use Smart Data Quality for address cleanse and transformation. For set up we used this guide: SAP Hana EIM (SDI/SDQ) setup  and the videos from hana academy.

Adress directory set up: SAP HANA Academy - Smart Data Quality: Loading Address / Geocode Directories [SPS09] - YouTube

Use Adress cleanse: SAP HANA Academy - Smart Data Quality: Address Cleanse Transformation Basics [SPS09] - YouTube

Geo transform: SAP HANA Academy - Smart Data Quality/Integration: Geocode Transformation Basics [SPS09] - YouTube

 

Available address directories: USA, CANADA and All-World

 

We managed to get the given address cleansed, but only in the hana web ide. After that we want to enrich the data with longitude and latitude, but unfortunately we get always the same error in sap hana studio as well as hana web ide.

 

Error message:

Could not execute 'START TASK "<SCHEMANAME>"."SDI_SDQ::geo_transform"' in 4.882 seconds .

SAP DBTech JDBC: [2048]: column store error: task framework:  [2620] executor: plan operation failed;Execution of Adapter operation within node GEOCODESDI_SDQ::geo_transform_TEMPLATE_ failed: exception 141035: Internal library error: <GEO1003>: GEO1003No Country Enabled: No directory was initialized.

 

DP_Agent shows that log:

 

 

Did somebody has a solution for that issue?

Creating Virtual Table for Twitter Remote Source

$
0
0

Hi,

 

I have installed the DP Agent, connected it to HANA and got my Twitter adapter up and running. The connection to my Twitter account works.

I followed Bob's youtube videos.

SAP HANA Academy - Smart Data Integration/Quality: Twitter Replication Pt 1 of 3 [SPS09] - YouTube

SAP HANA Academy - Smart Data Integration/Quality: Twitter Replication Pt 2 of 3 [SPS09] - YouTube

SAP HANA Academy - Smart Data Integration/Quality: Twitter Replication Pt 3 of 3 [SPS09] - YouTube

 

When getting to the bit (second video, near the beginning) where I create a virtual table for my Twitter Remote Source things don't look like Bob's video anymore.

Screenshot from Bob's video.

According to the video, I create a virtual table for "Status".

 

Screenshot from my Twitter Remote Source.

 

The folder above "Status" reads "Deprecated"! And what does "Use other api instead" mean?

 

Any help will be appreciated.

 

Regards,

Martin

How to add counter to Hana View

$
0
0

I am new to HANA Modeling and I am not sure how to add a Rank column. 

Here is my data

Employee     Date            Seq Value     

E001            6/21/2016        01            

E001            6/21/2016        02             

E001            6/22/2016        02            

 

The data will be sorted by Employee, Date, Seq Value

I want to add a Rank column for each unique Employee + Date combination

Employee     Date            Seq Value      Rank

E001            6/21/2016        01                1

E001            6/21/2016        02                2

E001            6/22/2016        02                1

 

Can I do in a Calculation View or do I need to write an SQL Script?

 

Thanks.

Sandy

SAP HANA Update from SPS11 to SPS12 [Mandatory parameter 'root_password'] is missing.

$
0
0

Hi All,

 

I'm updating my HANA System from SPS 11 to SPS12.

I hit this error when I;m running ./hdblcmgui via root user.

 

Capture.PNG

Can it be related to .Xauthority?

Any suggestions to fix this error?

 

Regards,

Arman.

SAP DB Control Center dbccuser.xssqlcc via SQL

$
0
0

Hi,

 

is there a possibility to set the SQL connection automatically via script?

Normally we use the XS-Engine WebPage (XS Artifact Administration).

But as we want to spread the config of each HANA without user-interaction, how can I script it ?

Best Regards

 

Jan

IBM Data Protection for SAP HANA - no recovery possible

$
0
0

Hello experts,

 

we are encountering problems when trying to recover our SAP HANA Database via hdbbackint. We can backup the system not only via HANA Studio over backint, but also over transaction DB13. It is a single container database and the DB host is not the same as the SAP application server (Distributed System). We can also ping the Tivoli Storage Manager and telnet to port 1500.

 

However, when we are trying to recovery the database it doesn't work. on HANA Studio (doesn't matter if as user SYSTEM or as Schema User SAP<SAPSID>), I am selecting Backup and Recovery -> Recover System -> confirm prompt that system must be offline -> specific data backup -> select backup from catalog using backint only. in /hana/shared/<DBSID>/global/hdb/backint, there is a named pipe created called log_backup_0_0_0_0, which according to command lsof is occupied by both hdbbackint and hdbnameserver with OS-user <dbsid>adm, so the HANA Studio seems to be calling the TSM for a list of backups, but it just never shows them. If I am monitoring traffic over the network via command "iftop", it is shown that the HANA Server and the TSM are communicating with only 5,86 Kb/s witch each other, so there is not much going around. So basically, we never get a list of available backups in hANA Studio which should be the case

 

As a workaround I tried to restore the database using hdbbackint from command line. At first I am issuing as User root:

 

OS>cd /hana/shared/<DBSID>/global/opt/

OS>./hdbbackint -p hdbconfig/init<DBSID>.utl -u <DBSID> -f inquire

then at the prompt i am stating

#NULL

and pressing Ctrl+D

and voila - I am actually getting a list of backups. So the backint basically works. But when i try to restore via

OS>./hdbbackint -p hdbconfig/init<DBSID>.utl -u <DBSID> -f restore

and at the prompt i am either stating

<Backup ID> /hana/shared/global/backint/log_backup_0_0_0_0

or

<Backup ID> /hana/shared/global/backint/COMPLETE_DATA_BACKUP_0_0_0

<Backup ID> /hana/shared/global/backint/COMPLETE_DATA_BACKUP_0_0_1

<Backup ID> /hana/shared/global/backint/COMPLETE_DATA_BACKUP_0_0_2

<Backup ID> /hana/shared/global/backint/COMPLETE_DATA_BACKUP_0_0_3

and pressing Ctrl+D

 

The system just tells me that it cannot read the file (error code 2). And this is basically the case because there are not named pipes created under /hana/shared/<DBSID>/global/backint and I am assuming that as long as the named pipes don't appear the backups can't be retrieved by hdbbackint

 

So as a 3rd option, i wanted to try restoring via command line. So what I wanted to do was stating these 3 commands

ALTER SYSTEM STOP DATABASE SAP<SAPSID>

BACKUP COMPLETE LIST DATA USING CATALOG BACKInT LIMIT 10

RECOVER DATA USING BACKINT ('/usr/sap/HP7/SYS/global/hdb/backint/COMPLETE_DATA_BACKUP') CLEAR LOG

 

But - of course - I cannot do ALTER SYSTEM STOP DATABASE because my database is single container.

 

So what can I do to make this work? Please help.

 

Best regards,

 

Anreas Loibl


How the Sap Hana going to allocate the data if the data exceeds the in memory Limit?

$
0
0

Let's suppose the InMemory = 2TB and Data are more than 2TB, then on what basis the excess data is moved to Hard disk?

Whether it is with the fewer usage data or recent data will be moved to hard disk.

integer vs varchar joins

$
0
0

Hi

 

I have come across a project where they have used a lot of ETL and done the datawarehousing the old classical way i.e generating integer Surrogate Keys. I believe they have done for performance as integer joins performs better that varchar joins . The dev system has 57 million fact table rows and dim tables have anywhere from 100 K to 1 m rows . So prod tables would be even horrendously larger.

 

so leaving aside modelling optimization techniques like partition pruning/ query pruning / etc etc . what is the best join strategy for just large tables .

The join fields are 10 characters , one option could be converting the alpha numeric characters to ascii or unicode but 10 characters would be blown to a 20 byte integers , so a join on just a big field would be worse .

 

any idea's on join optimization .

 

PS : we will be using SDI , so we can do complex transformation on real time .

transporting hdbroles

$
0
0

Hi,

 

I have created hdbroles using templates and then released and transported them across downstream systems.

However the roles seem to go in with some kind of a lock placed on them like in the picture attached ( the little red exclamations marks)Lockonrole.PNG

Please can someone help with what these are and how they may be resolved ?

I have tried generating new changes in the hope that they will overwrite these, but that does not help.

 

The source system has no such issues ..( the picture below is from a source development system)

 

Lockonrole2.PNG

Please help.

 

Anamika

Transport Mechanism HANA - 3 System landscape

$
0
0

How to transport objects in HANA in 3 system landscape.

 

I am able transport the change from Dev to QA. How can i transport same change from QA to Prod ?

 

 

We are using Native HANA transport mechanism.

Can BOBJ replace BW when ECC moves on HANA

$
0
0

Hi

 

I plan to move my company's ECC server on SAP Hana database and use BIP/BOBJ 4.2 for reporting.

By using this strategy can i get rid of BW system and use BIP/BOBJ 4.2 system replace BW for reporting purpose.

 

Regards

Tushar

Viewing all 4343 articles
Browse latest View live


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