Baan IV Tools Baan IV Database Administration (DBA) on Windows NT
A publication of: Baan Development B.V. P.O.Box 143 3770 AC Barneveld The Netherlands Printed in the Netherlands Baan Development B.V. 1999. All rights reserved. The information in this document is subject to change without notice. No part of this document may be reproduced, stored or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Baan Development B.V. Baan Development B.V. assumes no liability for any damages incurred, directly or indirectly, from any errors, omissions or discrepancies between the software and the information contained in this document. Document Information Code: U7247A US Group: User Documentation Edition: A Date: March, 1999
Table of contents 1 Introduction 1-1 2 The Database Administrator (DBA) module in BAAN IVb or later 2-1 To add a BAAN user 2-1 To add a database group 2-3 To add a database user 2-5 To Link a BAAN user to a database user 2-6 To move between the DBA module sessions 2-8 i
Table of contents ii
About this document NOTE This document describes the Database Administrator (DBA) module as used in BAAN IVb or later, and is intended for database administrators. The information in this manual is valid for all RDBMSs supported by BAAN IVb or later on a Windows NT platform. For information about database administration on UNIX databases, refer to the appropriate installation manual for your installation. The manual consists of the following chapters: Chapter 1 introduces the DBA module in BAAN IV. Chapter 2 describes where you can find the DBA module and the required steps in the procedure. iii
About this document iv
1 Introduction NOTE The DBA module is designed to help out the database administrator (DBA). The DBA module provides a graphical user interface that allows the DBA to: n Add database groups n Add database users n Link BAAN users to database users. The information in this manual is valid for all RDBMSs supported by BAAN IVb or later on a Windows NT platform. For information about database administration on UNIX databases, refer to the appropriate installation manual for your installation. BAAN users are added in a session outside the DBA module. However, because you must have BAAN users before you can create database users, this manual contains a brief description of that session. This manual provides an overview of the DBA module in BAAN IVb or later. For more information, consult the BAAN online Help. This manual describes how you can: n n n n n Add a BAAN user Add a database group Add a database user Link a BAAN user to a database user Move between the DBA module sessions 1-1
Introduction 1-2
2 The Database Administrator (DBA) module in BAAN IVb or later The DBA module is part of BAAN IV s database management. The module is located in the RDBMS Admin module. Figure 1 shows the location of the RDBMS Admin module in the BAAN IV Tools package. Figure 1. The location of the DBA module in BAAN IV You can start the DBA sessions from the menu browser, or from the File menu. To add a BAAN user Anyone who uses BAAN IV must be a BAAN user. A BAAN can only access a database if there is link with adatabase user. This section explains how you can add a BAAN user. For more information, refer to the online Help. 2-1
The Database Administrator (DBA) module in BAAN IVb or later To create a new BAAN user do the following: 1 From the BAAN IV Menu Browser window, click Run Program on the File menu. The Run Program dialog box appears. 2 In the Program/Session field, type ttaad2100m000. Click OK. The Maintain User Data (ttaad2100m000) session appears. Figure 2. The Maintain User Data (ttaad2100m000) session NOTE 3 Click the Insert button on the toolbar, and then enter the necessary data for the BAAN user. 4 Click Save and then on the Application menu, click Convert to Runtime Data Dictionary. Quit the session. To activate the new or changed user files, you must restart BAAN. 2-2
The Database Administrator (DBA) module in BAAN IVb or later To add a database group All database users belong to at least one database group. A database group allows the DBA to assign a specific set of privileges to multiple users. All members of a group have the same privileges. Before you can create a database user, the database group that the user will be assigned to must already exist. To create a database group, do the following: 1 From the BAAN IV Menu Browser window, click Run Program on the File menu. The Run Program dialog box appears. 2 In the Program/Session field, type ttdba0120m000 and click OK. The Maintain Database Groups (ttaba0120m000) session appears. Figure 3. The Maintain Database Groups (ttdba0120m000) session 3 Use the Group buttons on the toolbar to select the database for which you must create a database group. 2-3
The Database Administrator (DBA) module in BAAN IVb or later 4 Click the Maintain DB Group tab, and then click the Insert button on the toolbar. 5 Enter the necessary data for the database group. Make sure to select By BAAN in the Create Group field if you want BAAN to create the database group. If you want to create the database group with an external application, select Externally. 6 The Enter Password dialog box appears. Enter and reenter a password for the database group, and then click OK. 7 Click the Database Groups tab, click Create and Dump to create the database group and dump the group to the runtime data dictionary. 8 The Enter Database Administrator Password dialog box appears. Type the database administrator name and password and click OK. 9 Click Save and quit the session. 2-4
The Database Administrator (DBA) module in BAAN IVb or later To add a database user A database user is a user who has access privileges to specified databases stored in the database server. The access privileges are determined by the group that the user belongs to. Before you can add a database user, the database group that the user will be assigned to must have been created. For more information, refer to the previous section, To add a database group. To add a new database user, do the following: 1 From the BAAN IV Menu Browser window, click Run Program on the File menu. The Run Program dialog box appears. 2 In the Program/Session field, type ttdba0115m000 and click OK. The Maintain Database Users (ttdba0115m000) session appears. Figure 4. The Maintain Database Users (ttdba0115m000) session 3 Click the Database User Data tab, and then click the Insert button on the toolbar. 4 In the Database field, type or select the database for which you must create a database user. 2-5
The Database Administrator (DBA) module in BAAN IVb or later 5 Enter the necessary data for the database user. Make sure to select By BAAN in the Create User field if you want BAAN to create the database user. If you want to create the database group with an external application, select Externally. 6 The Enter DBA Password dialog box appears. Enter and reenter the database administrator name and password and click OK. 7 The Enter Password dialog box appears. Enter and reenter a password for the database user, and then click OK. 8 Click Save and then click the Database Users tab. 9 Select the database user, and then click Convert Users to create and dump the new database user to the runtime data dictionary. 10 The Enter Database Administrator Password screen is displayed. Type the database administrator name and password and click OK. 11 Click Save and quit the session. In addition to allowing you to create new database users, the Maintain Database Users (ttdba0115m000) session also allows you to change an existing database user s password. If you want to change the database users password, you must select the Database Administrator checkbox. To Link a BAAN user to a database user A BAAN user is a user who has access to BAAN IV. A BAAN user cannot access the database until that user is converted to a database user. To create a BAAN user, you can use the BAAN User Data (ttaad2100m000) session as described earlier. To create a link between a BAAN user and a database user, or to maintain the links between existing BAAN users and database users, use the BAAN session Links Between BAAN Users and Database Users (ttdba0110m000). If the BAAN user has not yet been created, first use the Maintain User Data (ttaad2100m000) session to create the user. If the database user has not yet been created, use the Maintain Database Users (ttdba0115m000) session. 2-6
The Database Administrator (DBA) module in BAAN IVb or later To link an existing BAAN user to an existing database user, do the following: 1 From the BAAN IV Menu Browser window, click Run Program on the File menu. The Run Program dialog box appears. 2 In the Program/Session field, type ttdba0110m000 and click OK. The Links Between BAAN Users and Database Users (ttdba0110m000) session appears. Figure 5. The Maintain Links Between BAAN user and Database users (ttdba0110m000) session 3 Click the Maintain User Link tab, and then click the Insert button on the toolbar. 4 In the Database field, type or select the database for which you must create a database user. 5 In the BAAN User field, type or select the BAAN user. 6 In the Database User field, type or select the database that you want to link to the BAAN. 2-7
The Database Administrator (DBA) module in BAAN IVb or later NOTE 7 Click Dump Users to dump the link between the BAAN user and the database user to the runtime data dictionary. 8 Click Save and quit the session. In addition to allowing you to link a single BAAN user to a single database user of the same name, the Links Between BAAN Users and Database Users (ttdba0110m000) session allows for additional flexibility. For example, you can use this session to link many BAAN users to a single database user, or to link a BAAN user with a database user of a different name. To move between the DBA module sessions Many of the DBA module sessions include links to other sessions in the DBA module. These links are designed to help the DBA work more efficiently. This section describes how you can use these links. For a detailed description of the sessions discussed below, refer to the previous sections of this manual. If you are creating a new BAAN user who will need to be linked to a database user, you can use the following steps to create a database user and to link the BAAN user to the database user. 1 Create the BAAN user with the Maintain User Data (ttaad2100m000) session. 2 Start the Maintain Links between BAAN Users and Database Users (ttdba0110m000) session. 3 Zoom from the BAAN User field to the Maintain User Data (ttaad2100m000) session. 4 Select a BAAN user, and then click OK to return to the Maintain Links between BAAN Users and Database Users (ttdba0110m000) session. 5 Zoom from the Database User field to the Maintain Database Users (ttdba0115m000) session. 6 The Database User field is filled in with the BAAN user name. Accept this name or type a new name. Enter the database user password and database group. Click Convert Users, then click Save. 7 If the database user does not exist, you will get an error message. At this point you can zoom to the Maintain Database Users (ttdba0115m000) session where you can create a new database user. 8 When you have created the database user, you are returned to the Maintain Database Users (ttdba0115m000) session. Click Convert Users. 2-8
The Database Administrator (DBA) module in BAAN IVb or later 9 The Maintain Links Between BAAN Users and Database Users (ttdba0110m000) session is displayed with the new user information inserted in the user fields. Click Save. 10 You are returned to the Maintain Links between BAAN users and Database Users (ttdba0110m000) session. Click Dump Users to convert the link to the data dictionary. 11 Finally, quit the Maintain Links between BAAN users and Database Users (ttdba0110m000) session. 2-9
The Database Administrator (DBA) module in BAAN IVb or later 2-10