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

ORACLE

DATABASE 10.2
WINDOWS X86/X64

"1: 8.2" for Oracle Database


:

Igor Melnikov

10 2009 .

4 2010 ?.

ORA.1C.01

2.33

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

10.07.2009
18.12.2009
18.02.2010
27.02.2010

..
..
..
..

1.0
2.0
2.32
2.33


29 bundle, Metalink
32 bundle
33 bundle + fix for datapump

1
2
3
4

. 2 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

.................................................................................................... 2
................................................................................................................................. 4
Oracle Database 10.2.0.4 PatchSet ............................................. 5
.................................................................................................... 5
10.2.0.4 ..................................................................... 9
.......................................................................... 15
PL/SQL- ....................................................................... 17
Oracle Database 10.2.0.4 Patch 33 ........................................... 19
OPatch ................................................................ 19
OPatch ............................................................. 19
Oracle Database 10.2.0.4 Patch 33 ....................................... 20
............................................................................................... 20
Patch 33 ...................................................... 21
Patch 33 ............................................ 21
............................................................................................. 22
................................................ 23
PL/SQL- ....................................................................... 24
.......................................................................................................................... 29
...................................................................................... 30
...................................................................................................... 30
...................................................................................................... 30

. 3 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

"1C: . 8.2"
Oracle Database 10g Release 2 (10.2),
() Oracle.
, :

Oracle Database 10.2.0.4 Patchset for Windows;

Oracle Database 10.2.0.4 Patch 33 ( ) for


Windows.

: Oracle Database 10.2,


Windows ( x86, x64).

[Single Instance] DataVault. ,
,
.

. 4 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

Oracle Database 10.2.0.4 PatchSet




Oracle Database 10.2.0.1 .
web-
Oracle (Oracle Metalink) .
Oracle Database.
http://metalink.oracle.com
Sign In

. 1 Oracle Metalink
Sign In , Flash Player.
.
:

. 5 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 2 Oracle Metalink
Oracle Metalink.
Patches & Updates.

. 6 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 3
Patch Id or Number is 6810189.
+
. Platform
:

Microsoft Windows (32-bit), - 32-


Windows;

Microsoft Windows x64 (64-bit), - 64 Windows.

Close Search.
: MS Windows
2008 Server, 10.2.0.4 !
Oracle Database 10.2 for Windows Server 2008
.

. 7 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 4

Download.

. 8 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 5 10.2.0.4 for Windows 32 bit


1 , , ,
.

10.2.0.4
10.2.0.4 Oracle Database 10.2.0.1.
, , zip-. ,
Oracle.

. 9 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 6 Oracle
Disk1/setup.exe.
Oracle Universal Installer.

. 10 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 7 Oracle Universal Installer


Next,
Oracle Database 10.2.0.1

. 8 Oracle Database 10.2.0.1

. 11 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

Next,
(Prerequisite Checks).

. 9
Next,
Oracle Configuration Manager.

. 12 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 10 Oracle Configuration Manager


Oracle Configuration Manager, Oracle
Configuration Manager. ,
Oracle Metalink. Oracle Configuration Manager
, .
Next, Install.

. 13 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

. 11 10.2.0.4
, , Oracle Database
10.2.0.4 PatchSet .

. 12 10.2.0.4
. 14 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

Exit.

. 13 10.2.0.4


: 10.2.0.4
. - !
(dictionary) Oracle, MS Windows
.

. 15 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

. 14 ORCL

DOS-

ORACLE_HOME\rdbms\admin, ORACLE_HOME - ,
Oracle Database 10g Release 2.
:
C:\>cd c:\oracle\product\10.2.0\db_1\rdbms\admin
c:\oracle\product\10.2.0\db_1\rdbms\admin>|

, sqlplus,
(upgrade) startup upgrade:
c:\oracle\product\10.2.0\db_1\rdbms\admin>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jul 10
Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to an idle instance.


SQL> startup upgrade
ORACLE instance started.
Total System Global Area

360710144 bytes

. 16 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

Fixed Size

1296740 bytes

Variable Size

109053596 bytes

Database Buffers

247463936 bytes

Redo Buffers

2895872 bytes

Database mounted.
Database opened.

SQL*Plus
catupgrd.sql
SQL> spool patch.log
SQL> @catupgrd.sql

40 1,5 .
patch.log
.

PL/SQL-
PL/SQL-
(INVALID state).
, - utlrp.sql.
ORACLE_HOME/rdbms/admin
utlrp.sql
( startup):

C:\ >sqlplus / as sysdba


SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

. 17 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

Total System Global Area


Fixed Size

360710144 bytes
1296740 bytes

Variable Size

109053596 bytes

Database Buffers

247463936 bytes

Redo Buffers

2895872 bytes

Database mounted.
Database opened.
SQL> exit;

, utlrp.sql SYS
C:\>cd c:\oracle\product\10.2.0\db_1\rdbms\admin
C:\oracle\...\admin>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> @utlrp.sql;

, 10 40 .

. 18 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

Oracle Database 10.2.0.4 Patch 33


OPatch
Oracle Database 10.2.0.4 Patch 33 ,
OPatch. Patch 33
OPatch - 10.2.0.4.3 .
OPatch, Oracle Metalink,
:
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6880880&relea
se=80102000&plat_lang=912P&patch_num_id=979663&

. 15 Opatch
:

Microsoft Windows (32-bit)

Microsoft Windows x64 (64-bit)

Download.

OPatch
OPatch
"" .
. 19 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

OPatch
ORACLE_HOME, ORACLE_HOME - ,

Oracle
Database
10g
Release
2.
:
c:\oracle\product\10.2.0\db_1
OPatch .
OPatch .
:
C:\oracle\product\10.2.0\db_1>unzip p6880880_102000_WINNT.zip
Extracting files from .ZIP: p6880880_102000_WINNT.zip
Extracting: OPatch/
Extracting: OPatch/docs/
Inflating: OPatch/docs/FAQ
Inflating: OPatch/docs/Users_Guide.txt
Inflating: OPatch/docs/Prereq_Users_Guide.txt
Extracting: OPatch/jlib/
Inflating: OPatch/jlib/opatch.jar
Inflating: OPatch/jlib/opatchutil.jar
... ... ... ... ... ... ... ... ... .... ... ... ... ... .... ... ... ... ... .... ... ... ... ... .... ... ..

, , ORACLE_HOME/OPatch
OPatch.

Oracle Database 10.2.0.4 Patch 33


Oracle Metalink (http://metalink.oracle.com) Patches & Updates.
Simple Search.
, Oracle Database 10.2.
( Search By),
:

9358798

Microsoft Windows (32-bit)

9358800

Microsoft Windows x64 (64-bit)

, , Download.


10.2.0.4.33
Oracle Database 10.2.0.4. , , zip-.
, Oracle.
. 20 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

: Distributed
Transaction Coordinator

Patch 33
DOS-- ,
ORACLE_HOME,
Oracle Database 10g Release 2:

C:\>set ORACLE_HOME=c:\oracle\product\10.2.0\db_1
C:\>set PATH=%ORACLE_HOME%\OPatch;%PATH%

Patch 33
Patch 33, , (
DOS- !) ,
, opatch apply :

C:\>cd c:\temp\9303471
C:\temp\9303471\> opatch apply

, , . OPatch
, . OPatch

metalink.oracle.com. , ,
.

Email address/User Name: ivan.ivanov@mycompany.com


Provide your My Oracle Support password to receive security
updates via your MyOracle Support account.
Password (optional):[ENTER]
Unable to establish a network connection to Oracle. If your
systems require a proxy server for outbound Internet
connections, enter the proxy server details in this format:
<proxy-user>@]<proxy-host>[:<proxy-port>]
If you want to remain uninformed of critical security issues in
your configuration, enter NONE
Proxy specification: NONE
Is the local system ready for patching? [y|n]
y
User Responded with: Y

. 21 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

OPatch .


, Patch 33 ,
. Service
Control Manager Windows.

. README.HTML
( 3.3.7.1). init.ora- ,
, sp-,
:
alter system set "_first_spare_parameter"=1 scope=spfile sid='*';
alter system set event="10411 trace name context forever, level 1" scope=spfile sid='*';

C:\>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
00:26:38 2009
Copyright (c) 1982, 2008, Oracle.

All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Production
With the Partitioning options
SQL> alter system set "_first_spare_parameter"=1 scope=spfile
sid='*';
System altered.
SQL> alter system set event="10411 trace name context forever,
level 1" scope=spfile sid='*';
System altered.

C:\>sqlplus / as sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> shutdown;
Database closed.
Database dismounted.

. 22 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

ORACLE instance shut down.


SQL> startup
ORACLE instance started.
Total System Global Area
Fixed Size

360710144 bytes
1296740 bytes

Variable Size

109053596 bytes

Database Buffers

247463936 bytes

Redo Buffers

2895872 bytes

Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition
Release 10.2.0.4.0 - Production
With the Partitioning options

, ORACLE_HOME/Bundle/Patch33, catcpu.sql
SYS:

C:\>cd c:\oracle\product\10.2.0\db_1\Bundle\Patch33
C:\oracle\product\10.2.0\db_1\Bundle\Patch33\>sqlplus / as
sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
00:26:38 2009
Copyright (c) 1982, 2008, Oracle.

All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Production
With the Partitioning options
SQL> @catcpu.sql

, 10-20 , .

. 23 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64


(upgrade) , , view_recompile_jan2008cpu.sql,
ORACLE_HOME\bundle\view_recompile

C:\>cd c:\oracle\product\10.2.0\db_1\Bundle\view_recompile
C:\oracle\...\Bundle\view_recompile>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup upgrade
ORACLE instance started.
Total System Global Area
Fixed Size

360710144 bytes
1296740 bytes

Variable Size

109053596 bytes

Database Buffers

247463936 bytes

Redo Buffers

2895872 bytes

Database mounted.
Database opened.
SQL> @view_recompile_jan2008cpu.sql

, 10-15 ,
.

PL/SQL-
(
) PL/SQL- (INVALID
state).
, - utlrp.sql.
ORACLE_HOME/rdbms/admin
. 24 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

utlrp.sql
( startup):

C:\ >sqlplus / as sysdba


SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area
Fixed Size

360710144 bytes
1296740 bytes

Variable Size

109053596 bytes

Database Buffers

247463936 bytes

Redo Buffers

2895872 bytes

Database mounted.
Database opened.
SQL> exit

, utlrp.sql SYS
C:\>cd c:\oracle\product\10.2.0\db_1\rdbms\admin
C:\oracle\...\admin>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15
Copyright (c) 1982, 2007, Oracle.

. 25 30

All Rights Reserved.

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> @utlrp.sql
...
, 10 40 .
...
OBJECTS WITH ERRORS
------------------0
DOC> The following query reports the number of errors caught
during
DOC> recompilation. If this number is non-zero, please query
the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of
these errors
DOC> are due to misconfiguration or resource constraints that
must be
DOC> fixed before objects can compile successfully.
DOC>#
ERRORS DURING RECOMPILATION
--------------------------0
PL/SQL procedure successfully completed.
SQL>

, ,
AQ .
datapump.
:
1. :
C:\oracle\...\admin>sqlplus / as sysdba

. 26 30

: ORA.1C.01

Oracle Database 10.2 Windows x86/x64

SQL*Plus: Release 10.2.0.4.0 - Production on Wed Jul 15


Copyright (c) 1982, 2007, Oracle.

All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Production
With the Partitioning options
SQL> exec dbms_aqadm.drop_queue_table(queue_table
=>'SYS.KUPC$DATAPUMP_QUETAB',force=> TRUE);
PL/SQL procedure successfully completed.
SQL>

2. :

SQL> BEGIN dbms_aqadm.create_queue_table(queue_table =>


'SYS.KUPC$DATAPUMP_QUETAB', multiple_consumers => TRUE,
queue_payload_type =>'SYS.KUPC$_MESSAGE', comment => 'DataPump
Queue Table', compatible=>'8.1.3'); END;
\
PL/SQL procedure successfully completed.
SQL>
, utlrp.sql SYS
SQL> @utlrp.sql
...
ERRORS DURING RECOMPILATION
--------------------------0
PL/SQL procedure successfully completed.
SQL>

. 27 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

, ..
INVALID.

. 28 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01


Oracle Database
1: 8.2.
, ,
( , DataVault) .
DataVault,
, -
( README.html).

. 29 30

Oracle Database 10.2 Windows x86/x64

: ORA.1C.01

ID

ID

. 30 30