0% found this document useful (0 votes)
66 views4 pages

Basic DBA Tasks

The document discusses basic DBA tasks in SAP HANA including administering the database using the Control utility. It describes how to use Control to monitor database size, enlarge the database size by adding a new DEVSPACE, and perform a full backup of all data in the TESTDB database.

Uploaded by

oakcha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views4 pages

Basic DBA Tasks

The document discusses basic DBA tasks in SAP HANA including administering the database using the Control utility. It describes how to use Control to monitor database size, enlarge the database size by adding a new DEVSPACE, and perform a full backup of all data in the TESTDB database.

Uploaded by

oakcha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Basic DBA Tasks

Basic DBA Tasks

Basic DBA Tasks


This chapter covers the following topics: Administering the Database with Control

Administering the Database with Control


In this section you will use the Control utility to monitor and increase the size of the database as well as perform a full backup of the data in the demonstration database, TESTDB. Upon completion of these exercises you will be able to perform database backup functions as well as change database parameters. Monitoring the Database Size Remote Control Enlarging the Size of the Database in Control Remote Control Perform a Full Backup of the Data in TESTDB Remote Control

Monitoring the Database Size


Control has a main operation screen that monitors the usage levels. The graph shows the amount of data that is taking up the allocated space on the disk, as well as log space and the number of users in session on the database. Control can be called from the operating system level (Unix, Linux, Windows) using the following command: xcontrol -d <serverdb name> -u <controluser name>,<password> If a non-existent SERVERDB is specified for the call of Control, the Installation Screen appears. Installing a serverdb is described further in Section 2. If no parameters have been specified, the Connect Screen appears. In the Connect Screen, the Control user identification, the Control user password, and the name of the SERVERDB must be entered. To enter the program, type the user ID and password for the Control user of the demonstration database, TESTDB, control; press the TAB key. In the PASSWORD field, type the Control users password: control, and press the TAB key. Specify the database in the SERVERDB field by typing the name of the database: TESTDB. Press the Enter key. If the database is not started, the database State field will read OFFLINE. Start the database by selecting Restart on the Operating menu bar; click Warm . The database will restart and this will take some time. When the database is restarted, the bottom of the screen will read Restart successfully finished.

Basic DBA Tasks

Remote Control

A screen similar to the following will appear:

Figure: Control Main Screen with a WARM Database The top bar on the graph above shows the current utilization of the database as a percentage of the whole space allocated to it on physical data disks. In this example, the actual data is using 54% of the memory designated for data. The other bars on the graph refer to the space allocated for the transaction log and the number of sessions. The DBA needs to monitor the log usage and start a manual backup of the log or of a log segment, when this becomes necessary. After a save of a log segment, the utilization level of the log will decrease accordingly.

Remote Control
To use the GUI tool for the same procedure, call adcontrol In the left hand partial window, you are provided with a list of all databases already installed. By mouse click on the icon of the desired database, you can display the operating menu. Then clicking on the "InfoSheet" item displays the connect screen for that database. If you have entered the name and password of the controluser, you obtain the same information about the running database as described above. For a short introductory description of the workings of Remote Control, take a look at the last paragraph of Section 2.

Enlarging the Size of the Database in Control


DEVSPACE is the term used to describe a space on the physical disk allocated to a database. For a basic description of DEVSPACEs see Section 2. In this exercise, you will add 16MB of physical disk space to the database by creating a new DEVSPACE (a file, in this case) of that size. Actually altering the size of an existing devspace is possible in principle but definitely not something for the beginner to attempt.

Remote Control

Basic DBA Tasks

Instruct the Control Program to increase the database size by selecting Alter Configuration on the Configuration menu bar; click Add Devspace : Set the number of 4 KB pages to be added by typing: 4000 in the Size in pages field; press the Enter key. Specify a file name for the memory increase. In the Name field, type: NEWDATA and press the Enter key. You will be prompted twice to verify that you want to extend the size of your SERVERDB with the space defined as NEWDATA. After confirmation of this increase, Control will allocate this space on your physical disk for the database TESTDB. You will be returned to the Control main menu screen.

Remote Control
Using Remote Control you will find this function in the following way: Expand the tree belonging to the database you want to work with. Then click on the directory icon "Configuration", then on the icon "Devices". The main window then displays a screen where you can modify the devspaces or define new ones.

Perform a Full Backup of the Data in TESTDB


The Control Backup menu function allows you to save and restore the complete database contents and log contents, or only the modifications made since the last database log backup medium used for the backup can be a tape, but you can also write the backup to a file. Each backup is done to a backup medium that can be selected from the Media Manager. After selecting the corresponding type of backup in the menu, the Media Manager appears to select or define the backup medium (see section Backup / Media Manager in the Control manual). We recommend, however, to define the backup media in the Media Manager in advance. To begin a full backup of the database, select Save on the Backup menu bar; and choose Data. A screen appears with the selection of predefined backup media; in this example FULLSAVE is defined . Use the cursor keys to go to the medium you want and then click Select to choose this medium for your backup.

Basic DBA Tasks

Remote Control

Figure: A backup media definition for a full SAVE DATA in Control The program prompts you to verify this medium, FULLSAVE. Click Ok to confirm. The Insert Label window appears. The medium label uniquely identifies the tape and must be written to the sticker of the tape, if a tape is used. (see Section, Medium Label in the Control manual). To instruct the program to proceed with the backup, Click Ok. The Control program will perform a full backup save of all the data in the database. When finished, the screen will read, Data Save successfully finished. The backup save is complete. Click End to exit the backup program

Remote Control
Using Remote Control, you will find this function in the following way: After having activated the operating menu of the desired database, click on the icon "SaveOperations". For defining a medium, there is a separate "Media Manager" icon. The further required menu items will be displayed.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy