Sap hana

1,464 views

Published on

SAP HANA PRACTICE QUESTIONS....

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,464
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
105
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Sap hana

  1. 1. [Pick the date]SRINIVASULUREDDY SRINIVAS.HANA@GMAIL.COM Srinivasulureddy Page 1
  2. 2. 1. How to add system to HANA Studio?Answer:  Choose Start > Studio.  Choose Window > Open Perspective > Other.  Choose Modeler .  Choose OK.  Navigate to the Navigator pan  From the context menu, choose Add SystemSrinivasulureddy Page 2
  3. 3.  Enter the host name, instance number, and a description for the system you want to add.  Choose Next.Srinivasulureddy Page 3
  4. 4.  Choose Next.  Select the required options.  Choose Finish.Srinivasulureddy Page 4
  5. 5.  Check the system is the system is added or not2. Understand the components under server Answer:  See the content and catalog files  Check Under Catalog we have  UsersSrinivasulureddy Page 5
  6. 6.  For example check for system user check  Granted roles  SQL privileges  Analytic privileges  System privileges  Package privileges  RolesSrinivasulureddy Page 6
  7. 7.  Granted roles  Part of roles  SQL privileges  Analytic privileges  System privileges  Package privileges  Public synonyms  SchemasSrinivasulureddy Page 7
  8. 8.  under schema we have  Column views  Procedures  Tables  Views...Etc...  Under catalog we have packagesSrinivasulureddy Page 8
  9. 9.  Under the package we have  Attribute views  Analytic views  Calculation views  Analytic privileges  Procedures...etc.  3. Switch to one perspective to other perspective  Open perspective  Select otherSrinivasulureddy Page 9
  10. 10.  Under perspective you have the following  Administration control  Debug  Graphiti  Life cycle management  RCP perspective  Resources.  Team synchronizing4. Check all Standard Schemas 1. SYSTEMSrinivasulureddy Page 10
  11. 11. 2. SYS 3. SAP_IC 4. IC_TABLES 5. _SYS_REPO 6. _SYS_STATISTICS 7. _SYS_BI_SYS_BIC 8. _SYS_REPL5. Create custom schema  From the Quick Launch tab page, choose SQL Editor.  In the SQL editor, write the script, create schema <schema name>.Srinivasulureddy Page 11
  12. 12.  Execute the script.Srinivasulureddy Page 12
  13. 13.  Write grant statement  Execute.6. Create Row Based Table in SQL Editor  Go to modeler  Click on SQL editorSrinivasulureddy Page 13
  14. 14.  Write the ROW table query  Execute  REFRESH AND CHECKSrinivasulureddy Page 14
  15. 15. 7. Create Column Based Table in SQL Editor  Go to modeler  Click on SQL editor  Write the ROW table query  ExecuteSrinivasulureddy Page 15
  16. 16.  Refresh and Check8. Create New Column/Row Based Table from already Existed Row Based TableSrinivasulureddy Page 16
  17. 17. I.)Creation of row table from already created column table  Select any COLUMN table  right click & select generate  Use Table as Template  PROVIDE Name schema name & type of storeSrinivasulureddy Page 17
  18. 18.  ExecuteII.)Creation of row table from already created column table  Select any ROW tableSrinivasulureddy Page 18
  19. 19.  right click & select generate  Use Table as Template  PROVIDE Name schema name & type of store 9. Export SQL Statement(Creation of table) from TableSrinivasulureddy Page 19
  20. 20.  Select any table  Double click on the table  Click on export SQL .Srinivasulureddy Page 20
  21. 21.  Check the SQL table 10. Insert data into Tables ManuallySrinivasulureddy Page 21
  22. 22.  Select any table  right click & select generate  Insert Statement  We will get SQL Statement  Insert the valuesSrinivasulureddy Page 22
  23. 23.  After inserting the values , execute  Check the tableSrinivasulureddy Page 23
  24. 24. 11. Select Data from Tables  Select any table  Right click & select generate  Select Statement  We will get SQL Statement & click on Execute.Srinivasulureddy Page 24
  25. 25.  Check the tableSrinivasulureddy Page 25
  26. 26. DATA PROVISIONING 12. Execute .DDL File to create Schemas & tables under studio levelSrinivasulureddy Page 26
  27. 27.  Select .DDL file  open it & copy code  Log on to StudioSrinivasulureddy Page 27
  28. 28.  click on SQL Editor  paste the copied DDL data file on SQL editor  click on execute  Check the Schema and TablesSrinivasulureddy Page 28
  29. 29. 13. Keep our .DDL file in HANA Data Base PATH: “usr/sap/HAN/HDB(XX)”Srinivasulureddy Page 29
  30. 30.  Go to programs  WINSCP  Give the credentials  Click on Log on  We use WIN SCP to execute “DDL scripts” from a customer schema in HANA databaseSrinivasulureddy Page 30
  31. 31.  Select the DDL file in source pane  Copy the DDL file  Paste in target location (PATH: “usr/sap/HAN/HDB(XX)”)Srinivasulureddy Page 31
  32. 32.  Go to programs  Extra putty  Give the host name or IP address & port  Select the SSH  Select load  Click on load  Click on openSrinivasulureddy Page 32
  33. 33.  Give the credentials  Login as :  Password  Switch user to HANA user  Su – username Ex: su – hanadmSrinivasulureddy Page 33
  34. 34.  To check is ddl file is copied or not by using ls -1 cmd  To execute the SQL file  write the following cmdSrinivasulureddy Page 34
  35. 35. hdbsql –i52 –uSYSTEM –pNine1234Srinivasulureddy Page 35
  36. 36.  Check the schema in HANA studioSrinivasulureddy Page 36
  37. 37. 14. Export Efashion_Tutorial Schema & It’s tables to Client Location & It’s tables to one sever to other server(DevTestProd)Answer:  Go to modeler  Click on file  Choose export  Open as below  Select export destination file format Srinivasulureddy Page 37
  38. 38. Srinivasulureddy Page 38
  39. 39. Srinivasulureddy Page 39
  40. 40. Srinivasulureddy Page 40
  41. 41. Srinivasulureddy Page 41
  42. 42. Srinivasulureddy Page 42
  43. 43. Srinivasulureddy Page 43

×