Вы находитесь на странице: 1из 49

<Insert Picture Here>

Oracle
Database 11g



<Insert Picture Here>

Oracle Database

August 2015

August 2012

July 2013

July 2010

R2

January 2012

January 2009

Sustaining Support

Premier Support

Extended Support

July 2007

R2

July 2010

July 2008

t
2016

2015

2014

2013

2012

2011

2010

2009

2008

2007

2006

2005

2004

2003

2002

http://www.oracle.com/support/library/brochure/lifetime-support-technology.pdf

18%
80%

74%
40%

6%
20%

.08
.08
.08
.08
.07
.07
.07
.07
.06
.06
.06
.06
.05
.05
.05
.05
.04
.04
.04
.04
.03
.03
.03
.03
.02
.02
.02
.02
.01

.01
.01

Source: TAR Analysis (Oct 2008)

Oracle8 and Earlier


Oracle8i
Oracle9i
Oracle Database 10g
Oracle Database 11g
100%

60%

0%

11g .
7.3.4

R2

9.2.0.4

8.0.6

8.1.7.4

R2
9.0.1.4


Note 161818.1

11g

Note:454507.1
Support Status and Alerts for Oracle 11g Release 1 (11.1.0.X)

Timezone:
/
DST-? (DST: Daylight Savings Time)

2007 .
7

HST - EST - MST - EST5EDT - MST7MDT - CST6CDT - PST8PDT

DST
10.2.0.4
Oracle Database 11g V.4
DST-
Oracle 9i: Timezone V1
Oracle 10g: Timezone V2

timezone- V4
, Oracle Database 11g
!!!

: Timezone-

4 :

Note 414590.1: FAQ and Issues


Note 413671.1: Timezone V4 - Checks and Links to the Patches

Note 359145.1: Links to download utltzuv2.sql

Note 396387.1: Explanations

Files timezone.dat and timezlrg.dat will be applied


Script utltzuv2.sql used to recognize and convert data


Note: 169706.1

Note: 401705.1 Linux


Note: 466181.1 Upgrade Companion 10gR2

Note: 601807.1 Upgrade Companion 11g



Upgrade Guide

Note:429825.1
Complete Checklist for Manual Upgrades to 11gR1

Note: 421191.1

Complete checklist for manual upgrades from X to Y

OTN
http://www.oracle.com/technology/products/database/oracle11g/upgr
ade/index.html

18

Upgrade Assistant

Database Upgrade Assistant (GUI)


:



RAC

ASM
Oracle XE
:
$ORACLE_HOME/cfgtools/dbua

:
Oracle Database Upgrade Guide

Database Upgrade Assistant (GUI)


(silent mode):
$ dbua help
. :
http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/upgrade.htm

:
dbua -silent -sid dwh
-oracleHome /opt/oracle/product/RDBMS10g
-diagnosticDest /opt/oracle/diag
-sysDBAUserName sys
-sysDBAPassword manager
-recompile_invalid_objects true
-degree_of_parallelism 4
-emConfiguration LOCAL
-dbsnmpPassword manager
-sysmanPassword manager

D E M O N S T R A T I O N

DBUA: 9.2.0.8
11.1.0.7
Oracle Enterprise Linux 5 Update3 x86

CONNECT
CONNECT 10gR2:
GRANTEE
----------------------CONNECT
CONNECT
CONNECT
CONNECT
CONNECT
CONNECT
CONNECT
CONNECT

R2

PRIVILEGE
------------------CREATE VIEW
CREATE TABLE
ALTER SESSION
CREATE CLUSTER
CREATE SESSION
CREATE SYNONYM
CREATE SEQUENCE
CREATE DATABASE LINK

GRANTEE
PRIVILEGE
----------------------- ------------------CONNECT
CREATE SESSION

CONNECT
, :
SELECT grantee
FROM dba_role_privs
WHERE granted_role = 'CONNECT' and
grantee NOT IN ('SYS', 'OUTLN', 'SYSTEM',
'CTXSYS', 'DBSNMP',
'LOGSTDBY_ADMINISTRATOR',
'ORDSYS', 'ORDPLUGINS',
'OEM_MONITOR', 'WKSYS',
'WKPROXY', 'WK_TEST',
'WKUSER', 'MDSYS',
'LBACSYS', 'DMSYS', 'WMSYS',
'EXFSYS', 'SYSMAN',
'MDDATA', 'XDB', 'ODM',
'SI_INFORMTN_SCHEMA');




SQL> EXECUTE dbms_stats.gather_schema_stats
('SYS',
options
=> 'GATHER',
estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,
method_opt
=> 'FOR ALL COLUMNS SIZE AUTO',
cascade

=>

TRUE);

:
Oracle Database Upgrade Guide Appendix B

SQL> EXECUTE dbms_stats.gather_dictionary_stats;



- CBO :
SQL> EXECUTE dbms_stats.gather_system_stats('start');
...
SQL> EXECUTE dbms_stats.gather_system_stats('stop');
SQL> select pname NAME, pval1 VALUE, pval2 INFO
from aux_stats$;
NAME
VALUE INFO
-------------------- ---------- -----------------------------STATUS
COMPLETED
DSTART
04-03-2008 12:30
DSTOP
05-03-2008 12:30
FLAGS
1
CPUSPEEDNW
1392,39
IOSEEKTIM
11,405
IOTFRSPEED
25595,605
...



(dynamic performance tables):

SQL> execute
dbms_stats.gather_fixed_objects_stats;

28

Upgrade Assistant

Server(OLD)

Server(NEW)

1) Oracle11g
2) utlu111i.sql
3)

utlu111i.sql

4)
5)



6)
7)


:
1. Oracle Database 11g
2. ( )
3.
utlu111i.sql
4. NETCA
5. ,
(startup upgrade) . SYSAUX
( < 10.1)
6. catupgrd.sql : utlrp.sql
7. : utlu111s.sql
8. catuppst.sql
10g


: utlu111i.sql

Info

init-
11g
:

. SYSAUX
(Characterset)
Timezone

Command Line Upgrade


utlu111i.sql: ?

Command Line Upgrade


SQL> STARTUP UPGRADE;

Taken from an example alert.log

:
ORA-00942: table or view does not exist

Command Line Upgrade


SYSAUX (
9i) :
SQL> CREATE TABLESPACE sysaux
DATAFILE 'file' SIZE 500M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO
ONLINE;

Command Line Upgrade


(dictionary) :
SQL> @catupgrd.sql
:
SQL> SPOOL /tmp/upgrade.log

36

Upgrade Assistant

DBUA
/ (exp/imp)
DataPump

(Transportable Tablespaces - TTS)
Streams
Logical Standby

/
/ (exp/imp)


Oracle Database ( V5 )
Oracle Database 11g

:

(character set)
( Oracle 10gR2)

(: 8.1.6)

/

SYSTEM
SYS

3 , c
exp
imp

. : Note:286775.1

DIRECT=Y ... SQL
,


INDEXES=N ... ... INDEXFILE=...

commit_write=NOWAIT


Data Pump
:
, exp/imp

:
impdp
DB-, dmp-
IMPDP usr1/password NETWORK_LINK=db_link1 FULL=Y

:
+
+
+
-

Datapump
dmp- ( -)

10.1.0.2

:
Oracle Database Utilities
: Note:553337.1


Transportable tablespaces

:

:
+
- SYSTEM+SYSAUX
,
..
-

OTN:
Amadeus Customer Case
White Paper: TTS Upgrade 10.2
White Paper: TTS OS-Migration 10.2



11.1.0.7

9.2.0.8

Target DB

Source DB
Create new

Import non-segment
user data (views etc.)

Transport


Oracle Streams
:

:
,
Streams,

:
+
-
- 9.2

:
Oracle Streams Concepts and Administration: Appendix B


Logical Standby (Data Guard)
:

:
standby
: standby
(ex-prod)

:
+
-

~2

Logminer
10.1.0.3
+ 11g:
Transient Logical Standby Physical
Standby rolling-upgrade


Data Guard Physical Standby
:
Windows Linux

:
physical standby

:
+ 1 .
- WinLinux HP-PA
HP-IA64
- : Note:413484.1

47

Oracle
9i 11g
OTN
http://www.oracle.com/technology/products/database/oracle11g/upgrade/
presentations/9i_to_11g_real_world_customer_experience.pdf

49

<Insert Picture Here>


Oracle
Email: Igor.Melnikov@oracle.com
Phone: +7 (495) 641 14 00
Direct:
+7 (495) 641 14 42
Mobile: +7 (915) 205 26 27

51