SAP HANA database installation

SAP HANA database installation

Category: Sybase

2013-01-16 17:38:14

 

     SAP HANA is a newly designed in-memory database system that supports both traditional row-based storage and column-based storage. HANA database has high performance, concurrency and scalability. HANA can support both OLTP applications and OLAP systems.

     We all know that the key bottleneck restricting the performance improvement of database systems is I/O. To solve this problem, Oracle Corporation launched Exadata, which optimizes I/O processing and transmission between the database layer and the storage layer by building intelligent storage software in the storage layer. The SAP HANA database, on the other hand, takes full advantage of the multi-core processor architecture and the trend of reducing the cost of computer main memory to store data in memory, while the traditional disk storage system only acts as a "persistence layer" to prevent data loss in memory due to failures . For HANA, related data is located in memory, so there is no need for physical disk I/O operations when accessing data, so there is no bottleneck problem of disk "I/O". I will not and do not want to discuss the advantages and disadvantages of SAP HANA and Oracle Exadata here. I think these two technologies represent two directions, and ultimately need to be judged by the market and customers.

     Due to the limited public information of SAP HANA at present, I personally feel that it is very unfavorable for the promotion and use of the product. A product can only be developed if more people understand and use it and a good "ecosystem" is established. This is especially true for basic platform software such as databases. Technicians who know and learn a product like to put it on first and then use it. This article will show beginners of SAP HANA how to install it.

 

1. Environmental Requirements

  For the convenience of installation, it is assumed here that HAN is installed in a virtual machine environment. The virtual machine needs to allocate at least 6G memory, 2 logical CPUs, and at least 30G disk space. Install the Suse Linux Enterprise Server 11 SP1 operating system on the virtual machine.

 

2. Install the SAP HANA database software

   To illustrate the installation steps, it is assumed that the HANA installation software is decompressed to the /root/hana_media directory.

   When installing HANA, you need to use the operating system root account to execute the corresponding installation program:

/root/hana_media/database1.0.26.linux/SAP_HANA_DATABASE/ hd bins t     is the command line installer
/root/hana_media/database1.0.26.linux/SAP_HANA_DATABASE/ hdbse tup   is the graphical installer

    The following will introduce the installation method using hdbinst:

   (1) Rename the HanaHwCheck.py file in the hana installation media directory /root/hana_media/database1.0.26.linux/SAP_HANA_DATABASE/server directory:

        mv HanaHwCheck.py HanaHwCheck.py.bak         

        否则在执行安装程序时(hdbinst)会报如下错误:
SAP-DB-01:~/hana_media/database1.0.26.linux/SAP_HANA_DATABASE # ./hdbinst
SAP HANA Database kit detected.
ERR: Installation failed
ERR:   Checking system requirements failed
ERR:     Performing HANA platform check script failed
INFO:       Starting external program /usr/bin/python
INFO:         Command line is: /usr/bin/python /root/hana_media/database1.0.26.linux/SAP_HANA_DATABASE/server/HanaHwCheck.py
INFO:         Output line 1:
INFO:         Output line 2: performing Hardware check......
INFO:         Output line 3:
INFO:         Output line 4: System Manufacturer            VMware, Inc.              not supported
INFO:         Output line 5: System Product Name            VMware Virtual Platform   not supported
INFO:         Output line 6: CPU Model                      CPU                       not supported
INFO:         Output line 7: OS                             SLES 11 SP 1              OK       
INFO:         Output line 8: Memory Total                   4096 MB                   OK       
INFO:         Output line 9: Core count                     0                         OK       
INFO:         Output line 10: Hyper-threading                Activated                 OK       
INFO:         Output line 11: Numa functionality             Activated                 OK       
INFO:         Output line 12:
INFO:         Output line 13: Hardware check failed!!
INFO:         Output line 14:
INFO:         Program terminated with exit code 255

 

    (2) Execute ./hdbinst as root, and enter the following information as prompted:

SAP HANA Database Installation Manager - Database Installation 1.00.26.360533
*****************************************************************************

Enter System Id: HDB
Enter Instance Number [00]: 01
Enter Installation Path [/usr/sap]:
Enter System Administrator (hdbadm) Password:  yourpassword
Confirm System Administrator (hdbadm) Password:  yourpassword
Enter System Administrator Home Directory [/usr/sap/HDB/home]:
Enter System Administrator Login Shell [/bin/sh]:
Enter System Administrator User Id [1000]:
Enter Group Id (sapsys) [79]:
Enter Location of Data Volumes [/usr/sap/HDB/global/hdb/data]:
Enter Location of Log Volumes [/usr/sap/HDB/global/hdb/log]:
Enter Password of Database User SYSTEM: Lion12345
Confirm Password of Database User SYSTEM: Lion12
Restart instance after machine reboot [yN]: y

Checking installation...
Preparing package "Python Support"...
Preparing package "Python Runtime"...
Preparing package "Product Manifest"...
Preparing package "Binaries"...
Preparing package "Lexicon"...
Preparing package "Languages"...
Preparing package "Installer"...
Preparing package "Ini Files"...
Preparing package "Documentation"...
Preparing package "DAT Languages"...
Creating System...
Extracting software...
Installing package 'Python Support' ...
Installing package 'Python Runtime' ...
Installing package 'Product Manifest' ...
Installing package 'Binaries' ...
Installing package 'Lexicon' ...
Installing package 'Languages' ...
Installing package 'Installer' ...
Installing package 'Ini Files' for Installation Type SAP HANA...
Installing package 'Documentation' ...
Installing package 'DAT Languages' ...
Creating System...
Starting SAP HANA Database system...

 

     We can see that installing the hana database is relatively simple, just follow the prompts. In addition, if you are building a learning environment, just accept the default values.

 

3. Use HDB to manage the start and stop of HANA database

    After successful installation using hdbinst, an operating system account hdbadm and a group sapsys will be created. This account is required to manage the HANA database.

    (1) Stop the HANA database

     a. If you are root user, execute su - hdbadm  

     b.  cd $DIR_INSTANCE

        Note that if you execute su - hdbadm, you will automatically enter this directory, but if you enter other directories for other reasons, you can use this method to enter this directory.

     c. Execute ./HDB stop to stop the database

        After executing the above command, the following information will be output:

SAP-DB-01:/usr/sap/HDB/HDB00> ./HDB stop
hdbdaemon will wait maximal 300 seconds for NewDB services finishing.
Stopping instance using: /usr/sap/HDB/SYS/exe/hdb/stopsap HDB00 sap-db-01


Stopping the SAP instance HDB00
----------------------------------
 Shutdown-Log is written to /usr/sap/HDB/home/stopsap_HDB00.log
 Instance on host SAP-DB-01 stopped
 Waiting for cleanup of resources.............
hdbdaemon is stopped.

 

     (2) Start the HANA database

     a. If you are root user, execute su - hdbadm  

     b.  cd $DIR_INSTANCE

        Note that if you execute su - hdbadm, you will automatically enter this directory, but if you enter other directories for other reasons, you can use this method to enter this directory.

     c. Execute ./HDB start to start the HANA database

        After executing the above command, the following information will be output:

SAP-DB-01:/usr/sap/HDB/HDB00> ./HDB start
Starting instance using: /usr/sap/HDB/SYS/exe/hdb/startsap HDB00 sap-db-01


Starting SAP Instance HDB00
------------------------------
 Startup-Log is written to /usr/sap/HDB/home/startsap_HDB00.log
 Instance Service on host SAP-DB-01 started
 Instance on host SAP-DB-01 started

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325079735&siteId=291194637