Presentation is loading. Please wait.

Presentation is loading. Please wait.

DB2 (Express C Edition) Installation and Using a Database

Similar presentations


Presentation on theme: "DB2 (Express C Edition) Installation and Using a Database"— Presentation transcript:

1 DB2 (Express C Edition) Installation and Using a Database
What this unit is about This unit describes: The different versions of DB2, and the various DB2 products. The tools that are included with DB2. How to use the Control Center to manage systems, DB2 instances, databases, database objects, and more. How the Configuration Assistant lets you maintain a list of databases to which your applications can connect, manage, and administer. All of the standalone tools in the Control Center and the Configuration Assistant. What data warehousing is, and the DB2 products available to assist with data warehousing. What you should be able to do After completing this unit, you should be able to: Understand the different versions of DB2, and the various DB2 products. Understand the tools that are included with DB2. Use the Control Center to manage systems, DB2 instances, databases, database objects, and more. Understand how the Configuration Assistant lets you maintain a list of databases to which your applications can connect, manage, and administer. Use all of the standalone tools in the Control Center and the Configuration Assistant. Understand what data warehousing is, and the DB2 products available to assist with data warehousing. Also note that throughout this tutorial, you will see commands and syntax that are generally used on either a Linux, Windows, or UNIX platform. DB2 (Express C Edition) Installation and Using a Database © Copyright IBM Corporation 2008

2 Unit objectives After completing this unit, you should understand:
Steps to install DB2-Express C database. Use the Control Center to manage systems, DB2 instances, databases, database objects, and more. Identify how the Configuration Assistant lets you maintain a list of databases to which your applications can connect, manage, and administer. Notes: This lists the unit objectives. © Copyright IBM Corporation 2008

3 Introduction to DB2 Express-C
DB2 Express-C data server software ("DB2 Express-C") is a member of the IBM DB2 family of powerful data server software for managing both relational and XML data. DB2 Express-C is a free, no-limits, and easy to use edition of DB2. The ‘C’ in DB2 Express-C stands for the Community. A community of DB2 Express-C users that bands together to assist each other, both online and offline. You can download DB2 express edition from the following website:

4 Installation Prerequisites
DB2 Express-C is available on Linux®, Sun Solaris (x64), and Microsoft Windows® 2003, XP, and Vista. It is also available as a beta on Mac OS X. The processor architectures available are 32-bit, 64-bit and PowerPC (Linux). For the latest information on DB2 Express-C hardware requirements, review the DB2 Express-C web page at To install DB2 on Windows, you must have an operating system user with sufficient authority. For Windows, the user account must belong to the Administrators group on the machine where you will perform the installation. Alternatively, on Windows 2008, Windows Vista, or higher, a non-administrator can perform an installation, but will be prompted for administrative credentials by the DB2 Setup wizard.

5 Installation requirements for DB2
Before you install a DB2® database product on Windows operating systems, ensure that the system you choose meets the necessary operating system, hardware, and software requirements. Windows workstation platforms Operating System Prerequisites Hardware Windows XP Professional (32–bit and 64–bit) Windows Vista Business (32–bit and 64–bit) Windows Vista Enterprise (32–bit and 64–bit) Windows Vista Ultimate (32–bit and 64–bit) Windows 7 Professional (32-bit and 64-bit) Windows 7 Enterprise (32-bit and 64-bit) Windows 7 Ultimate (32-bit and 64-bit) Windows XP Service Pack 2 or later IBM® Data Server Provider for .NET client applications and CLR server-side procedures require .NET 2.0 framework runtime. 64-bit IBM data server provider for .NET applications are supported. All Windows Vista service packs are supported. All Intel and AMD processors capable of running the supported Windows operating systems (32–bit and 64–bit based systems)

6 Installation wizard Although there are several methods to install DB2 Express-C, the easiest method is to use the GUI-based DB2 Installation wizard. After downloading and uncompressing the DB2 Express-C image, you can launch the wizard as follows: Execute the setup.exe file located in the EXP/image/directory DB2 Express-C is straightforward to install by following the instructions in the DB2 installation wizard. In most cases, the default settings are sufficient, so all you need to do is accept the license, click the Next button until the “Finish” button is active, and then click the Finish button. After a few minutes, your installation is complete and DB2 will be up and running.

7 Steps for installation DB2
After run setup.exe, the DB2 Setup Launchpad will display. Click on Install a Product and then choose Install New to install a new copy of DB2 Express-C on your system

8 After accepting the license, it is usually sufficient to choose the “Typical” installation

9 In the next step, Choosing “Install IBM DB2 Express Edition on this computer”

10 Then, select directory to install DB2

11 When you arrive at the following panel, you will need to type in a user ID which will be used to setup and run the instance and other services. The default user ID name is db2admin, enter password for db2admin

12 Then, click next after the following window appeared

13 Finally, the installation wizard displays a summary of what will be installed, and the different configuration values provided in the previous steps. When you click the “Finish” button, the installation begins, and the program files will be laid down on your system.

14 After click “install” button, it will display the following windows
After finished installation, click next button © Copyright IBM Corporation 2008

15 When the installation completes, the following window appears, informing you of the results of the installation wizard process, as well as any further steps that are required to complete your installation. Click “Finish” button. © Copyright IBM Corporation 2008

16 After you click “Finish” in the installation results window will display as following.
Note: If you install DB2 Express-C it will automatically created a sample database © Copyright IBM Corporation 2008

17 Validating your installation
After installing DB2, you can run three commands from the DB2 Command Window to verify that your installation is in good shape: db2level: This command displays information about the DB2 product installed, fix pack level, and other details. db2licm -l: This command lists all the licensing information specific to your installed DB2 products db2val: This is a new command available in DB It validates your installation by verifying the core functionality of your DB2 copy. It makes sure your instances are consistent, and that database creation and database connections work

18 The following window provides an example of the output of these three commands.

19 DB2 command editor To run DB2 command editor click, <Start>/<All Program>/<IBM DB2>/<DB2COPY1>/<General Administrator>/<Control Centre> Then, click ‘Advanced’ © Copyright IBM Corporation 2008

20 Control Center After that Control Center window will display. Object
Notes: The Control Center is the central point of administration for DB2. There are three views that you can chose from: Basic View: Is a simplified view of DB2 core functionality, and omits features that are generally used by the DB2 system administrator but not by the DBA. This includes essential objects such as databases, tables, views, triggers, and stored procedures. Advanced View: Is the default and lists the standard set of objects. Custom View: Here you can select those features which you wish to see. The Control Center is divided into three areas which have contents depending on your chosen view: Object tree Pane Contents Pane, showing the contents of the selected object. Object Detail Pane, which provides context-sensitive access to the main features of the object focused and selected in the other panes, like, for example, the Backup Database tool, the Storage Management tool, or Automatic Maintenance. Use the Control Center to manage systems (different OSs), DB2 instances, DB2 for OS/390 and z/OS subsystems, databases, and database objects such as tables and views. In general: The most often used parameters and options are included in UIF panels. If a special parameter or option needs to be used, use the command line interface instead. In the Control Center, you can administer all of your systems, databases, and database objects. From the Control Center, you can also open other centers and tools to help you optimize queries, jobs, and scripts; perform data warehousing tasks; create stored procedures or UDFs; and work with DB2 commands. The following are some of the key tasks that you can perform with the Control Center: Add DB2 systems, federated systems, DB2 for z/OS and OS/390 systems, instances, databases, and database objects to the object tree. Manage database objects. You can create, alter, and drop databases, table spaces, tables, views, indexes, triggers, and schemas. You can also manage users. Manage data. You can load, import, export, and reorganize data. You can also gather statistics. Perform preventive maintenance by backing up and restoring databases or table spaces. Monitor performance and troubleshoot problems. Configure and tune instances and databases. Manage database connections, such as DB2 Connect servers and subsystems. Manage applications. Analyze queries using Visual Explain to look at access plans. Launch other tools such as the Command Editor and the Health Center. Automatic maintenance of your databases. In many cases, wizards and launch pads are available to help you perform these tasks more quickly and easily. In many cases, the wizard will launch automatically when you select a task to be performed on an object; for example, the Create action on the Tables object will launch the Create Table wizard. Other components of the Control Center are the following: Menu Bar — It is used to access Control Center functions and online help using menus. Tool Bar — These icons are used to access all the other administration tools. Hover Help — Provides a short description for each icon on the toolbars. The Systems object represents machines. You can see all of the systems that your system has catalogued by looking at the list in the Control Center. The local workstation is represented by a System icon labeled with the machine name of the local workstation; other remote systems defined are labeled as they are cataloged. To display the instances on each system, expand the object tree by clicking the plus sign (+) on the local or remote system name. Object Tree Pane Contents Pane © Copyright IBM Corporation 2008 Object Detail Pane

21 Command Editor: to type SQL command
SQL Assist Notes: Use the Command Editor to execute DB2 commands and SQL/XQUERY statements; to execute MVS, OS/390, or z/OS commands; to work with command scripts; and to view a graphical representation of the access plan for explained SQL statements. On the command page, you can perform the following actions: Execute an SQL statement or DB2 CLP command. You do not need to precede the command by DB2. Run an existing script, by clicking the Execute icon (at the left of the tool bar). Execute the commands in sequence. Create and save a script. You can optionally store a saved script in the Task Center, where you can schedule the script to run at a specific time. Run and/or modify an existing script. On the Query Results page, you can see the results of the queries. You can also save the results or edit the contents of the table. On the Access Plan page, you can see the access plan for any explainable statement that you specified on the Interactive page or the Script page. DB2 generates the access plan when it compiles the SQL or XQUERY statement. You can use this information to tune your queries for better performance. To invoke the SQL Assist tool, click the SQL Assist button on the Interactive page. To invoke the Visual Explain tool, execute an explainable statement on the Interactive page or the Script page. The Web version of the Command Editor includes most of these features but it does not currently include Visual Explain or SQL Assist. Both the GUI and traditional CLP are installed and shown as icons in the DB2 folder. For Windows, there is also a Command Window to enable users to execute SQL statements and DB2 commands from an MS-DOS command prompt. The example commands shown in the Command Editor assume that a semi-colon (;) has been set in the Tools (can be specified at the bottom of the command editor window) as the statement termination character. © Copyright IBM Corporation 2008

22 Exercise In this exercise, you will install DB2 Express-C and create the SAMPLE database Objective Before you can begin exploring all the features and tools that come with DB2 Express-C, you must first install it on your system. In this exercise, you will perform a basic installation of DB2 Express-C on Windows. Refer file Ex0-Installation DB2


Download ppt "DB2 (Express C Edition) Installation and Using a Database"

Similar presentations


Ads by Google