You are on page 1of 16

O RACLE T RAINING (PART 2)

A GENDA

Introduction to Oracle Oracle 11g R2 Installation Oracle DB configuration with Integrity DB Cloning Database performance and Tuning

ORACLE 11G R2 - TRAINING

8/11/2013

I NTRODUCTION

Oracle is an object-relational database management system produced and marketed by Oracle Corporation. Oracle database is a collection of data treated as a unit. A database server is the key to solving the problems of information management

A database server also prevents unauthorized access and provides efficient solutions for failure recovery.
ORACLE 11G R2 - TRAINING
8/11/2013

P HYSICAL

STRUCTURE

Datafiles (*.dbf)

The datafiles contain all the database data. The data of logical database structures, such as tables and indexes, is physically stored in the datafiles allocated for a database.

Control Files (*.ctl)

A control file contains entries that specify the physical structure of the database such as Database name and the Names and locations of datafiles and redo log files.

Redo Log Files (*.log)

The primary function of the redo log is to record all changes made to data. If a failure prevents modified data from being permanently written to the datafiles, then the changes can be obtained from the redo log, so work is never lost.

ORACLE 11G R2 - TRAINING

8/11/2013

L OGICAL S TRUCTURE

Tablespaces

A database is divided into logical storage units called tablespaces, which group related logical structures together. One or more datafiles are explicitly created for each tablespace to physically store the data of all logical structures in a tablespace.

Oracle Data Blocks

At the finest level of granularity, Oracle database data is stored in data blocks. One data block corresponds to a specific number of bytes of physical database space on disk. The standard block size is specified by the DB_BLOCK_SIZE initialization parameter.

Schema Overview

A schema is a collection of database objects. A schema is owned by a database user and has the same name as that user. Schema objects are the logical structures that directly refer to the database's data. Schema objects include structures like tables, views, and indexes.

8/11/2013

O RACLE I NSTANCE

An Oracle database server consists of an Oracle database and an Oracle instance. Every time a database is started, a system global area (SGA) is allocated and Oracle background processes are started. The combination of the background processes and memory buffers is called an Oracle instance. The System Global Area (SGA) is a shared memory region that contains data and control information for one Oracle instance. Users currently connected to an Oracle database share the data in the SGA.

8/11/2013

O RACLE 11 G R2 I NSTALLATION

Make sure you have at least 3 GB of memory on your Windows PC, or that you can allocate 4 GB of memory to your virtual machine Install Oracles SJDK and run time for Java 6 or 7 on Windows 7 . Install Java 6 SDK 32-bit version (at least SJDK 1.6.0_4) for Oracle SQL Developer. Disable Microsofts User Access Controls (UAC). Configure your C:\Windows\System32\drivers\etc\hosts file.
8/11/2013

Download oracle from the link: http://www.oracle.com/technetwork/database/ windows/downloads/index-093848.html

The Oracle Database 11g Release 2 files are broken down into two zip files on the Oracle site. That means you need to download both files, and then expand them into an installation directory.

8/11/2013

Provide an email address for security updates no matter what. You can uncheck the box if you dont want updates via Oracle Support Services.

Create and configure a database -Choose this option to create a new database along with sample schemas.
Server Class - Choose this option if you are installing on a server class system. This option allows for more advanced configuration options.
8/11/2013

10

Select the type of database installation you want to perform and click Next. Select the type of installation you want to perform and click Next. Select the type of database that you want to create during the installation, and then click Next. Specify Database Identifiers A database is identified by a Global Database Name, and the instance associated with the database is identified by an Oracle System Identifier (SID)

8/11/2013

11

C REATING O RACLE DB

The connecting user requires the following system privileges: CREATE PROCEDURE, CREATE TYPE, CREATE SEQUENCE, CREATE VIEW, and CREATE TABLE. Execute permission on the following system packages: DBMS_AQADM, DBMS_AQ, DBMS_LOCK, DBMS_JAVA, DBMS_APPLICATION_INFO.

back up the tnsnames.ora and sqlnet.ora files of your existing applications. If you do not, those files are overwritten and you are not be able to access any of your existing applications.
8/11/2013

12

Increase open_cursors initialization parameter from 300 (default) to 2500. alter system set open_cursors=300 scope=spfile SID='orcl'; To create oracle DB

Create new Tablespace to contain Integrity Data ALTER SYSTEM SET DB_CREATE_FILE_DEST = 'F:/Oracle11gR2/oradata'; CREATE TABLESPACE integrity10tbs DATAFILE AUTOEXTEND ON MAXSIZE 800M;

8/11/2013

13

Create new user login name CREATE USER integrityuser IDENTIFIED BY mks123;

GRANT CONNECT, CTXAPP TO integrityuser;


GRANT CREATE PROCEDURE, CREATE TABLE, CREATE TYPE, CREATE SEQUENCE TO integrityuser; Set the default tablespace for the newly created user to the tablespace name created in step 1.
8/11/2013

14

Grant the following object privileges to the newly created user: SELECT on CTXSYS.CTX_INDEXES

EXECUTE on DBMS_LOCK
EXECUTE on DBMS_AQ EXECUTE on DBMS_AQADM

8/11/2013

15

S UPPORTED

VERSION

Oracle Database 11g Release 1: 11.1.0.611.1.0.7 (patchset as of September 2008) Oracle Database 11g Release 2: 11.2.0.111.2.0.3 (patchset as of September 2011)

ORACLE 11G R2 - TRAINING

8/11/2013

16

DB C LONING

ORACLE 11G R2 - TRAINING

8/11/2013

You might also like