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

<Insert Picture Here>

Oracle CIS

Server(OLD)

Server(NEW)

1) Oracle11g
2) utlu112i.sql
3)

utlu112i.sql

4)
5)



6)
7)


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


: utlu112i.sql

Info

init-
11g
:

. SYSAUX
(Characterset)
Timezone


utlunmi.sql

!
Note:884522.1

2010 Oracle Corporation

Command Line Upgrade


utlu112i.sql:

time zone

, TIMESTAMP WITH TIME ZONE

2010 Oracle Corporation

Command Line Upgrade


utlu112i.sql:
?

2010 Oracle Corporation

Command Line Upgrade


utlu112i.sql: init.ora ?

2010 Oracle Corporation

Command Line Upgrade


utlu112i.sql: ?

( ) :
Note:472937.1 Information On Installed Database Componentsand Schemas
Note.300056.1 Debug and Validate Invalid Objects
Note:753041.1 How to diagnose Components with NON VALID status
Note.733667.1 How to Determine if XDB is Being Used in the Database?

2010 Oracle Corporation

Command Line Upgrade


(dictionary statistics)
(IMMEDIATE/NORMAL)
init-:

COMPATIBLE 10.1.0
SGA_TARGET 524MB (32-bit) ... 748MB (64-bit)
PGA_AGGREGATE_TARGET 25MB
LOG_ARCHIVE_FORMAT %s, %t %r

init.ora/SPFILE PWDsid.ora
$ORACLE_HOME
11g ( NETCA)
$ORACLE_HOME

10

Command Line Upgrade


SQL> STARTUP UPGRADE;

:
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+:
SQL> SPOOL /tmp/upgrade.log

:
SQL> execute
dbms_stats.gather_fixed_objects_stats;

Command Line Upgrade


:
utlrp.sql
utlprp.sql CPU_COUNT-1


INVALID
utl_recomp

utlprp.sql :
SQL> @utlprp 7

14

Command Line Upgrade


:
1. INVALID.
:

SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);


2.
:

SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;


3. (job-) UTL_RECOMP.

SELECT job_name FROM dba_scheduler_jobs


WHERE job_name like 'UTL_RECOMP_SLAVE_%';
4. (job-) :

SELECT job_name FROM dba_scheduler_running_jobs


WHERE job_name like 'UTL_RECOMP_SLAVE_%';

15

Command Line Upgrade


: catuppst.sql
10.1
$O_H/rdbms/admin
upgrade

utlrp.sql
Automatic Workload repository (AWR)
ADDM
Oracle Label security (OLS)

16

Command Line Upgrade

Status

Post upgrade : utlu112s.sql


11g

DBA_REGISTRY

17

Command Line Upgrade


utlu112s.sql
SQL> @?/rdbms/admin/utlu112s.sql
Oracle Database 11.2 Post-Upgrade Status Tool
Component
Oracle Server
JServer JAVA Virtual Machine
Oracle Workspace Manager
Oracle Enterprise Manager
Oracle XDK
Oracle Text
Oracle XML Database
Oracle Database Java Packages
Oracle Multimedia
Oracle Expression Filter
Oracle Rule Manager
Gathering Statistics
Total Upgrade Time: 00:52:31

Status
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID

05-11-2009 11:23:33
Version
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0
11.2.0.1.0

HH:MM:SS
00:16:17
00:05:19
00:01:01
00:10:13
00:00:48
00:00:58
00:04:09
00:00:33
00:07:43
00:00:18
00:00:12
00:04:53

invalid-

Invalid: utluiobj.sql
SQL> @?/rdbms/admin/utluiobj.sql
Oracle Database 11.1 Post-Upgrade Invalid Objects Tool 08-03-2010
18:23:09
This tool lists post-upgrade invalid objects that were not invalid
prior to upgrade (it ignores pre-existing pre-upgrade invalid objects).
Owner
...

Object Name

Object Type



- 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
...

21

<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

23

Оценить