m odule 2 d atabase i nstallation and c onfiguration section 1: dbms installation 1 itec 450 fall...
TRANSCRIPT
ITEC
45
0
1
MODULE 2DATABASE INSTALLATION AND CONFIGURATIONSection 1: DBMS Installation
Fall 2
01
2
2
ITEC
45
0DBMS INSTALLATION BASICS
Understand the prerequisites for the specific version of DBMS Version of the operating system Hardware components: cpu, memory, available
storage Related software: java, network
Read the installation guide Understand the installation process and
procedure Follow the explicit instructions
Mechanics of the installation process is a relative simple affair
Fall 2
01
2
3
ITEC
45
0
HARDWARE REQUIREMENTS
Basic CPU requirements: minimum processor speed
Storage requirements: available free space, backup DBMS software itself: 1 – 2 GB depending on OS Database: size of applications and data
Memory requirements: amount of memory Memory structures: data cache, data dictionary,
SGA Application data request -> read the data in the
disk -> copy the data to the memory -> process the data -> write the modified data from memory to disk
Available swap space
Fall 2
01
2
4
ITEC
45
0
DBMS CONFIGURATION
Understand DBMS components Installation user privilege: Windows –
administration role; UNIX – unlimited resource, a special group
Licensed DBMS components: partition, spatial, enterprise
Platform version requirement: Windows XP or higher, HP-UX 11, Solaris 10, AIX
Operating system requirement: patches, kernel parameters, message queue, DLL files
Program requirement: C++, Cobol, Perl Define the initial settings
Inputs during the installation process Installation configuration file
Fall 2
01
2
5
ITEC
45
0DBMS INSTALLATION
VERIFICATION
Ensure the clear understanding of all error messages or popup windows
Take screen shots of all questionable error messages or popup windows
Review installation log files Run tests if possible
Fall 2
01
2
6
ITEC
45
0
UPGRADE AND PATCH
DBMS version – major change, such as Oracle 11g or SQL Server 2008
Release – major function enhancement Patch – bug fixes Example:
Oracle 11.2.1 (Version 11, Release number 2, Patch release number 1)
SQL Server 2008 SP1 CU6 (Version 2008, Release of Service Patch 1, Patch of Cumulative Update package 6)
Fall 2
01
2
7
ITEC
45
0
DBMS CHANGE CONSIDERATION
Database structure changes, application features changes
Planning for DBMS changes Testing environment establishment Regression testing of applications: functions,
performance Downtime and lost business opportunities during the
DBMS change. Supporting software products may lack immediate
support: purchased applications, DBA tools, query tools, interface programs
Cost of Change Cost of the new version might be changed Planning, installing, testing, and deploying in both
DBMS and applications using databases
Fall 2
01
2
8
ITEC
45
0
DATABASE STANDARDS AND PROCEDURES
Standards – common practices that ensure the consistency and effectiveness of the database environment Database naming conventions
Names of database, data files, objects (table, index, procedure, trigger, etc.)
Length of names Abbreviation
Roles and responsibilities Database application development standards: coding
standards, performance tips and techniques Procedures – scripts and processes for handling
specific events Application migration procedures Design review process
Fall 2
01
2
ITEC
45
0
9
MODULE 2DATABASE INSTALLATION AND CONFIGURATIONSection 2: Oracle Installation
Fall 2
01
2
10
ITEC
45
0
OPTIMAL FLEXIBLE ARCHITECTURE (OFA)
Organize large amounts of complicated software and data on disk, to avoid device bottlenecks and poor performance
Facilitate routine administrative tasks such as software and data backup, which are often vulnerable to data corruption
Facilitate switching between multiple Oracle databases
Adequately manage and administer database growth
Help eliminate fragmentation of free space in the data dictionary, isolate other fragmentation, and minimize resource contention
Fall 2
01
2
11
ITEC
45
0
FILE NAMING STANDARDSFa
ll 20
12
12
ITEC
45
0
FILE STRUCTURES FOR ORACLE
Windows – Take defaults as much as possible UNIX – Company standards, examples
Software - /u01/app/oracle/product/10.2.0Administrative files -
/u01/app/oracle/admin/hrdbDatabase files -
/u02/oradata/hrdb/control01.ctl
Fall 2
01
2
13
ITEC
45
0
FILE STRUCTURES FOR ORACLE
Path to Oracle software is called ORACLE_HOME containing Oracle binaries Defined as a variable within your system
E.g. ORACLE_HOME/bin/runnit.exe Each installation has its own ORACLE_HOME Examples:
C:\oracle\product\11.2.0\db1 c:\oracle\product\11.2.0\client1
Contains a bin directory that holds most of the executables
Fall 2
01
2
14
ITEC
45
0
ORACLE HOMEFa
ll 20
12
15
ITEC
45
0
INSTALLING THE SOFTWARE
Advanced Installation Select Installation Type: Enterprise Edition Select Configuration Option: Install database
software only
Note: Some of the slides are from Oracle 10g Database Administrator: Implementation and Administration by Gavin Powell and Carol McCullough-Dieter
Fall 2
01
2