INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Introduction to Oracle Automatic Storage Management (ASM) Copyright System Managers LLC 2008.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
3 Managing an Oracle Instance. Objectives Setting up operating system and password file authentication Creating the parameter file Starting up an instance.
ITEC474 Control File Maintenance
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
Harvard University Oracle Database Administration Session 3 Installation.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Harvard University Oracle Database Administration Session 2 System Level.
Managing an Oracle Instance
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Database Backup and Recovery
INTRODUCTION TO ORACLE
RMAN Restore and Recovery
Backup and Recovery Part 1.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Using RMAN to Perform Recovery
Oracle Database Administration
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
Oracle Database Administration
Managing the Oracle RDBMS Today you will look at the basics, including: –Setting up Enterprise Manager –Using Enterprise Manager –Using Server Manager.
Database Administration TableSpace & Data File Management
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC End User Management – Lecture 3 Copyright System Managers LLC 2007 all rights reserved.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
A Guide to Oracle9i1 Database Instance startup and shutdown.
IT Database Administration SECTION 01. Starting Up and Shutting Down the Database Database Administration Facilities – A number of tools are available.
Database Administration 3.Using Administration Tools.
Oracle 10g Database Administrator: Implementation and Administration Chapter 3 Creating an Oracle Instance.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
44 Creating a Database. 4-2 Objectives Preparing the operating system Preparing the parameter file Creating the database Preparing the operating system.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Week 2 Lecture 1 Creating an Oracle Instance. Learning Objectives  Learn the steps for creating a database  Understand the prerequisites for creating.
Creating an Oracle Database. Considerations before creating a DB Planning for Database Creation –Select the standard database block size. –Use an undo.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
2 Copyright © 2004, Oracle. All rights reserved. Installing Oracle Database 10g Software.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
Week 2 Lecture 2 Data Dictionary Views and Control Files.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle 10g Administration Database Architecture, Creation and Interfaces Copyright ©2006, Custom Training Institute.
Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute.
 Database Administration Oracle Database Instance Management Starting Up and Shutting Down أ. ندى الغامدي, أ. ندى الطوالة.
3 Copyright © Oracle Corporation, All rights reserved. 管理数据库事例.
Using Data Dictionary and Dynamic Performance Views
Creating an Oracle Database
Performing Database Recovery
Database administration
Oracle 12c Multitenant Database
Presentation transcript:

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Installation – Lecture 2 Copyright System Managers LLC 2007 all rights reserved.

SYSTEM INSTALLATION Oracle Environmental Variables: ORACLE_HOME, ORACLE_SID, PATH In the Windows environmental variables are set by the installer on UNIX they are set manually Choose a directory that will contain the distribution. This directory will be pointed to by the environmental variable ORACLE_HOME. Choose an instance identifier for your database. This will be the known as the ORACLE_SID

SYSTEM INSTALLATION Create an end user account that will own the installation The end user account must be in the DBA group (UNIX) or the ORA_DBA group (Windows) On UNIX use the value of ORACLE_HOME to create an OFA directory structure On Windows the OFA directory structure is created by the installer Copyright System Managers LLC 2007 all rights reserved.

SYSTEM INSTALLATION Windows User and Group Setup.

SYSTEM INSTALLATION Windows Environmental Variables.

SYSTEM INSTALLATION UNIX Environmental and User Variables.

SYSTEM INSTALLATION Layout the file system structure using the Oracle Flexible Architecture. Copyright System Managers LLC 2003 all rights reserved.

SYSTEM INSTALLATION: UNIX Only Configure the UNIX kernel by setting the values for NPROC, MAXUPRC, SEMMNS and SHMMAX (there may be others refer to the Oracle ICG) On UNIX: Set the environmental variable LD_LIBRARY_PATH – pointer to shared object libraries On UNIX: Mount the CD/unZip the media and start the Oracle installation utility RunInstaller.

SYSTEM INSTALLATION UNIX Kernel Settings

Software Installation cont. The installation process will install the RDBMS software and create a starter database. The software is installed under the directory referred to as ORACLE_HOME. Choosing the “Install Software Only” option allows the DBA to created the database manually. The installer will create the Oracle database users SYS and SYSTEM.

MANUAL DATABASE CREATION Creating the Instance C:\> ORADIM -NEW -SID -INTPWD -STARTMODE -PFILE - Database SID - Password for database administrative user - Startup mode for the services, either AUTO or MANUAL - Path and name of the INIT.ORA file

MANUAL DATABASE CREATION Deleting the Instance C:\> ORADIM -DELETE -SRVC NOTE: SERVICE_NAME = SID ORADIM ERRORS ARE IN THE DIRECTORY: \DATABASE\ORADIM.LOG Copyright System Managers LLC 2007 all rights reserved.

MANUAL DATABASE CREATION Starting The Instance Ensure that the environmental variables have been set and the services have been started (NT/2003). Log into SQL*PLUS as the system user with administrative privileges C:\> sqlplus “/ as sysdba” SQL> startup nomount – Start the Oracle instance but do not mount or open the database. On UNIX this starts the Oracle processes and allocates the SGA Other startup options include MOUNT and EXCLUSIVE

Manual Database Create

Creating Additional Tablespaces Creating And Enlarging Tablespaces Automatically increase tablespace sizes using “AUTOEXTEND” CREATE TABLESPACE DATA DATAFILE '/u01/oracle/rbdb1/users01.dbf' SIZE 300M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE 1500M; Add another data file if not using AUTOEXTEND SQL > alter tablespace DATA add datafile '/u01/oracle/rbdb1/users02.dbf' size 20M;

MANUAL DATABASE CREATION Shutting Down the Database Must be the administrative user: SQL> shutdown normal Other SHUTDOWN options include: IMMEDIATE – Allow transactions to complete and then log off all users ABORT – Log off all users (no grace period)

SYSTEM POST-INSTALLATION The data dictionary is a collection of tables and views that are are used by the RDBMS to keep track of system performance and all database activities Owned by the Oracle user “SYS” All data dictionary objects reside in the system tablespace. The tables and views in the data dictionary should never be modified.

SYSTEM INSTALLATION SOME ORACLE DATA DICTIONARY TABLES/VIEWS: Table/View Name Description/Useage V$DATABASE Database name, log mode, creation date V$SESSION List of who is logged into the database V$SYSSTAT Performance statistics V$CONTROLFILE Location of database control files V$LOGFILE Location of database log files V$BACKUP Information on database backups V$DATAFILE Information about database data files V$INSTANCE Information about the instance There are many other tables/views in the Oracle data dictionary. Refer to the Oracle8 Administrators Guide for a complete list/description Copyright System Managers LLC 2007 all rights reserved.

SYSTEM INSTALLATION SOME ORACLE DATA DICTIONARY TABLES/VIEWS: Table/View Name Description/Useage DBA_DATA_FILES Data file to tablespace map DBA_USERS Names of all users of the database DBA_CATALOG Names of all database objects DBA_TABLES List of all tables in the database DBA_INDEXES List of all indexes in the database DBA_TABLESPACES Descriptions of all database tablespaces DBA_SYNONYMS List of all synonyms in the database DBA_VIEWS List of all views in the database There are many other tables/views in the Oracle data dictionary. Refer to the Oracle Administrators Guide for a complete list/description

Solving Installation Errors (Windows) Review the installation log file and the database alert log. Check that all environmental variables have been set. Check the directory write permissions Check the Windows patch level Do we have enough RAM and disk?

Solving Installation Errors (UNIX) Check that all environmental variables have been set. Use Oracle utility “oerr” to look up cause/solutions for errors. Check ownership and permissions on the Oracle executable “oracle“ (4755). Check that shared memory has been allocated: ipcs –b Check that the correct version of the “C” compiler and utilities such as “make” and “ld” are installed on the system. Check that the “make” utility is accessible. Check software pre-requisites.

Database Maintenance Best Practices Check the DBA Alert log file daily and watch for any unusual errors(eg: especially ORA-600's and Ora-7445's) and/or any resource constraint ORA errors. Revoke access to default oracle accounts. All patches should first be introduced on a test instance and validated prior to moving to development instance Multiplex the online redo logs Maintain multiple concurrent backups of the control file Take frequent backups of physical datafiles and store them in a safe place, making multiple copies if possible. Periodically doing a complete restore to test diaster recovery procedures.

Getting Help Oracle Technical Support Web access through MetalLink Log a service request (SR) using Technical Assistance Report (TAR) system. Types of TARs: Severity 1 - Complete loss of service for mission critical operations where work cannot reasonably continue. Severity 2 - Significant or degraded loss of service or resources. Severity 3 - Minor loss of services or resources. Severity 4 - No work being impeded at the time - information is requested or reported.