Creating an Oracle Database

Slides:



Advertisements
Similar presentations
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Advertisements

5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle Architecture. Instances and Databases (1/2)
Hands-On Microsoft Windows Server 2003 Administration Chapter 3 Administering Active Directory.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Installing a New Windows Server 2008 Domain Controller in a New Windows Server 2008 R2.
VMware vCenter Server Module 4.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
MCTS Guide to Configuring Microsoft Windows Server 2008 Active Directory Chapter 3: Introducing Active Directory.
DB2 (Express C Edition) Installation and Using a Database

Module 13: Configuring Availability of Network Resources and Content.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
1 Group Account Administration Introduction to Groups Planning a Group Strategy Creating Groups Understanding Default Groups Groups for Administrators.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
6.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 6: Administering User Accounts.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
■ Decide on the local database name, and which domain will contain this database. These names are set in the initialization parameters DB_NAME and DB_DOMAIN.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
Using OUI to install Oracle9i Release 2 on an OpenVMS System.
Installing Oracle9i RAC Release 2 on HP OpenVMS Systems.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Cisco Confidential © 2010 Cisco and/or its affiliates. All rights reserved. 1 MSE Virtual Appliance Presenter Name: Patrick Nicholson.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
 Database Administration Installing Oracle 11g & Creating Database.
Security Planning and Administrative Delegation Lesson 6.
IS 221: DATABASE ADMINISTRATION Lecture 2: Installing Oracle 10g or 11g & Creating Database. Information Systems Department 1.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 21 Administering User Accounts and Groups 1.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
9 Copyright © 2009, Oracle. All rights reserved. Deploying and Reporting on ETL Jobs.
3 Copyright © 2007, Oracle. All rights reserved. Creating an Oracle Database.
2 Copyright © 2004, Oracle. All rights reserved. Installing Oracle Database 10g Software.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
2 Copyright © 2005, Oracle. All rights reserved. Installing Oracle Software and Creating the Database.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
1 Remote Installation Service Windows 2003 Server Prof. Abdul Hameed.
6 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Unit 2 Preparing the Database Environment.
Data Virtualization Demoette… ODBC Clients
Recovery Catalog Creation and Maintenance
Using E-Business Suite Attachments
Is 221: Database Administration
THE STEPS TO MANAGE THE GRID
Get Oracle 8i Running on Your Linux Server Straight Away!
Planning a Group Policy Management and Implementation Strategy
HC Hyper-V Module GUI Portal VPS Templates Web Console
Tivoli Common Reporting v1.2 Overview
Physical Database Structure .
Module 12: Implementing an Analysis Services Tabular Data Model
Administering Your Network
Duplicating a Database
Configuring Essbase Server
Performing Database Recovery
Planning a Group Policy Management and Implementation Strategy
Presentation transcript:

Creating an Oracle Database

Oracle Database 10g: Administration Workshop I 3-2 Objectives After completing this lesson, you should be able to do the following: Create a database with the Database Configuration Assistant (DBCA) Create a database design template with the DBCA Generate database creation scripts with the DBCA Oracle Database 10g: Administration Workshop I 3-2

Oracle Database 10g: Administration Workshop I 3-3 Planning the Database As a DBA, you must plan: The logical storage structure of the database and its physical implementation: How many disk drives do you have for this? How many data files will you need? (Plan for growth.) How many tablespaces will you use? Which type of information will be stored? Are there any special storage requirements due to type or size? The overall database design A backup strategy for the database Planning the Database It is important to plan how the logical storage structure of the database will affect system performance and various database management operations. For example, before creating any tablespaces for your database, you should know how many data files will make up the tablespace, what type of information will be stored in each tablespace, and on which disk drives the data files will be physically stored. When planning the overall logical storage of the database structure, take into account the effects that this structure will have when the database is actually created and running. You may have database objects that have special storage requirements due to type or size. In distributed database environments, this planning stage is extremely important. The physical location of frequently accessed data dramatically affects application performance. During the planning stage, develop a backup strategy for the database. You can alter the logical storage structure or design of the database to improve backup efficiency. Backup strategies are introduced in a later lesson. These are the types of questions and considerations, which you will encounter as a DBA, and this course (in its entirety) is designed to help you answer them. Oracle Database 10g: Administration Workshop I 3-3

Oracle Database 10g: Administration Workshop I 3-4 Databases: Examples Data Warehouse: Research and marketing data State or federal tax payments Professional licensing (doctors, nurses, and so on) Transaction Processing: Store checkout register system Automatic teller machine (ATM) transactions General Purpose: Retail billing system, for example, of a software house or a nursery Databases: Examples Different types of databases have their own specific instance and storage requirements. Your Oracle database software includes templates for the creation of these different types of databases. Characteristics of these examples are the following: Data Warehouse: Store data for long periods and retrieve them in read operations. Transaction Processing: Accommodate many, but usually small, transactions. General Purpose: Work with transactions and store them for a medium length of time. Oracle Database 10g: Administration Workshop I 3-4

Database Configuration Assistant (DBCA) You can use the Database Configuration Assistant (DBCA) to create, change the configuration of, or delete a database. You can also create a database from a list of predefined templates or use an existing database as a sample to create a new database or template. This is sometimes referred to as “database cloning.” You can invoke the DBCA by performing the following steps: 1. Log on to your computer as a member of the administrative group that is authorized to install the Oracle software. 2. If required, set environment variables. 3. Enter dbca to invoke the DBCA. 4. Click Next to continue. DBCA offers you a choice of assisting with several operations, for example, creating a database. Oracle Database 10g: Administration Workshop I 3-5

Using the DBCA to Create a Database You can use the DBCA to create a database as follows: 1. Select Create a Database on the DBCA Operations page to invoke a wizard that enables you to configure and create a database. The wizard prompts you to provide configuration information as outlined in the steps that follow. On most pages, the wizard provides a default setting that you can accept. 2. Select the type of database template to be used in creating the database. There are templates for Data Warehouse, General Purpose, and Transaction Processing databases that copy a preconfigured database, including data files. These data files include control files, redo log files, and data files for various included tablespaces. Click Show Details to see the configuration for each type of database. For more complex environments, you may want to select the Custom Database option. Oracle Database 10g: Administration Workshop I 3-6

Using the DBCA to Create a Database 3 4 Using the DBCA to Create a Database (continued) 3. Database Identification: Enter the Global Database Name in the form database_name.domain_name, and the system identifier (SID). The SID defaults to the database name and uniquely identifies the instance associated with the database. 4. Management Options: Use this page to set up your database so that it can be managed with Oracle Enterprise Manager. Select the default: Configure the Database with Enterprise Manager. Oracle Database 10g: Administration Workshop I 3-7

Using the DBCA to Create a Database 5 6 7 Using the DBCA to Create a Database (continued) 5. Database Credentials: Use this page to specify the passwords for the administrative accounts, such as SYS and SYSTEM. In class, use oracle as password for all administrative accounts. 6. Storage Options: Specify the type of storage mechanism (such as File System) that you would want your database to use. 7. Database File Locations: Choose according to your needs. Oracle Managed Files (OMF) eliminate the need for you to directly manage the operating system files comprising an Oracle database. You specify operations in terms of database objects rather than file names. For more details, see the lesson titled “Managing Database Storage Structures.” Oracle Database 10g: Administration Workshop I 3-8

Using the DBCA to Create a Database 8 9 Using the DBCA to Create a Database (continued) 8. Recovery Configuration: If required, specify a flash recovery area and enable archiving. 9. Database Content: These pages provide options for selecting components, such as Sample Schemas, and for using custom scripts. Oracle Database 10g: Administration Workshop I 3-9

Using the DBCA to Create a Database 10 B Using the DBCA to Create a Database (continued) 10. Initialization Parameters: The tabs on this page provide access to pages that enable you to change default initialization parameter settings: Memory: Use this page to set the initialization parameters that control memory usage. Use either (A) Typical or (B) Custom memory allocation. Sizing: To specify block size, enter the size in bytes or accept the default. Character Sets: Use this page to specify the character sets for your database. Best Practice Tip: Oracle recommends (whenever possible) that you use Unicode for a database character set because it provides optimal flexibility for supporting Web technologies as well as many spoken languages. Connection Mode: Select Dedicated or Shared Server Mode. For more details, see the lesson titled “Configuring the Oracle Network Environment.” Note: Several initialization parameters are set for the lifetime of a database, such as the DB_BLOCK_SIZE and CHARACTER_SET parameters. Oracle Database 10g: Administration Workshop I 3-10

Using the DBCA to Create a Database 11 12 Using the DBCA to Create a Database (continued) 11. Database Storage: If you have selected one of the preconfigured templates for a database, then you cannot add or remove control files or data files. Note: You may want to save your database definition as an HTML file for easy reference. 12. Creation Options: You have the options of creating your database at this time, saving the database definition as a template, and generating scripts. If you choose all options, then the DBCA first saves the database template, then generates the scripts into your destination directory, and finally creates your database. Oracle Database 10g: Administration Workshop I 3-11

Oracle Database 10g: Administration Workshop I 3-12 Password Management A B C Password Management After the DBCA finishes, note the following information for future reference: Location of installation log files (see A) Global database name (see B) System identifier (SID) (see B) Server parameter file name and location (see B) Enterprise Manager URL (see C) Click Password Management to unlock database accounts that you plan to use. Provide a password when you unlock an account. Oracle Database 10g: Administration Workshop I 3-12

Creating a Database Design Template A template is a predefined database definition that you use as a starting point for a new database. If you do not create a template as part of the database creation process, you can do it anytime by invoking the DBCA. You have three ways to create a template: From an existing template From an existing database (structure only) From an existing database (structure as well as data) The DBCA guides you through the steps to create a database design template. Oracle Database 10g: Administration Workshop I 3-13

Using the DBCA to Delete a Database 1 2 3 Using the DBCA to Delete a Database To delete (or configure) a database in UNIX or Linux, you must set ORACLE_SID in the shell from which DBCA is launched. Start the DBCA by entering dbca in a terminal window, and click Next on the Welcome page. To delete the database, perform the following steps: 1. On the Operations page, select Delete a Database, and click Next. 2. Select the database that you want to delete (in class, hist), and click Finish. 3. Click Yes to confirm your deletion. Oracle Database 10g: Administration Workshop I 3-14

Oracle Database 10g: Administration Workshop I 3-16 Summary In this lesson, you should have learned how to use the DBCA to: Create a database Create a database design template Generate database creation scripts Oracle Database 10g: Administration Workshop I 3-16

Practice Overview: Using the DBCA This practice covers the following topics: Creating the ORCL database by using the DBCA Unlocking the HR schema Note: Completing the database creation and unlocking the HR schema is critical for all following practice sessions. Optionally: Creating the ORCL database design template by using the DBCA Creating database creation scripts with the DBCA Oracle Database 10g: Administration Workshop I 3-17