Escolar Documentos
Profissional Documentos
Cultura Documentos
SELECT * FROM
Search
Home
Institucional
Database
Eventos Oracle
Entrar
Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Nome de usuário
Dados Oracle 10.2.0.1 non-RAC
maio 14, 2012 - Instalação, Oracle Database, Segurança - Tagged: 10.2.0.1, 10.2.0.5, 8202632, 8350262,
aplicando, banco de dados, base, catupgrd.sql, dados, data, database, enterprise, Enterprise Manager, instance, Senha
manager, non-RAC, Patch, Set, single, single instance, utlrp.sql, utlu102i.sql - no comments Lembrar-me Entrar
Esqueceu sua senha?
Registrar
Este artigo tem como objetivo mostrar como aplicar o patch set 10.2.0.5 (patch 8202632) para o Banco de NLS_LANGUAGE
Dados 10.2.0.1.
Estou utilizando o Sistema Operacional Enterprise Linux 5.7 32 Bits, então devemos fazer o download do
patch para o banco de dados Oracle deste sistema operacional.
OBS: Para fazer o download é necessário obter as credenciais do Suporte da Oracle. GUOB Tech Day 2013
Download do Patch 8202632
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 1/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
07 Passed
08 Linux
09 All installer requirements met.
10 Literatura
11 Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-04-17_04-04-29PM
12 Copyright (C) 1999, 2010, Oracle. All rights reserved.
13 Manual
14 [oracle@serveroracle ~]$
Migração
PL/SQL
Com o usuário
root, vamos Scripts
executar o script
da imagem Segurança
acima.
Windows
Virtual Box
RANK()
Instalando Oracle Client 11g R2 64 Bits em
Windows 64 Bits 3.156 views
Enquete
Tela para rodar o Script Sobre o que mais você gostaria de ler?
para perm issão do usuário
"root". Copie o endereço e Oracle Database
coloque num term inal com
Programação PL/SQL
o usuário "root".
MySQL Database
01 [oracle@serveroracle ~]$ su -
Ferramentas de Desenvolvimento Oracle
02 Password:
03 [root@serveroracle ~]# /oraprd01/app/oracle/product/10.2.0/db_1/root.sh
04 Running Oracle 10g root.sh script... Virtualização Oracle
05
06 The following environment variables are set as: Vote
07 ORACLE_OWNER= oracle
08 ORACLE_HOME= /oraprd01/app/oracle/product/10.2.0/db_1 View Results
09
10 Enter the full pathname of the local bin directory: [/usr/local/bin]:
11 The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) Polls Archive
12 [n]: y
13 Copying dbhome to /usr/local/bin ...
14 The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
15 [n]: y
16 Copying oraenv to /usr/local/bin ...
17 The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 2/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
18 [n]: y
19 Copying coraenv to /usr/local/bin ...
20
21 Entries will be added to the /etc/oratab file as needed by
22 Database Configuration Assistant when a database is created
23 Finished running generic part of root.sh script.
24 Now product-specific root actions will be performed.
25 [root@serveroracle ~]# exit
26 logout
27 [oracle@serveroracle ~]$
Seguindo o documento do Patch, vamos aplicar o mesmo executando o primeiro script “utlu102i.sql”
(Descreve a informação da Atualização).
OBS: Seguindo o Documento o mesmo solicita executar um spool para verificação após executar o script
mencionado.
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 3/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
08 --> name: ORCL
09 --> version: 10.2.0.1.0
10 --> compatible: 10.2.0.1.0
11 --> blocksize: 8192
12 .
13 **********************************************************************
14 Tablespaces: [make adjustments in the current environment]
15 **********************************************************************
16 --> SYSTEM tablespace is adequate for the upgrade.
17 .... minimum required size: 448 MB
18 .... AUTOEXTEND additional space required: 8 MB
19 --> UNDOTBS1 tablespace is adequate for the upgrade.
20 .... minimum required size: 402 MB
21 .... AUTOEXTEND additional space required: 102 MB
22 --> SYSAUX tablespace is adequate for the upgrade.
23 .... minimum required size: 206 MB
24 .... AUTOEXTEND additional space required: 6 MB
25 --> TEMP tablespace is adequate for the upgrade.
26 .... minimum required size: 58 MB
27 .... AUTOEXTEND additional space required: 38 MB
28 .
29 **********************************************************************
30 Update Parameters: [Update Oracle Database 10.2 init.ora or spfile]
31 **********************************************************************
32 -- No update parameter changes are required.
33 .
34 **********************************************************************
35 Renamed Parameters: [Update Oracle Database 10.2 init.ora or spfile]
36 **********************************************************************
37 -- No renamed parameters found. No changes are required.
38 .
39 **********************************************************************
40 Obsolete/Deprecated Parameters: [Update Oracle Database 10.2 init.ora or spfile]
41 **********************************************************************
42 -- No obsolete parameters found. No changes are required
43 .
44 **********************************************************************
45 Components: [The following database components will be upgraded or installed]
46 **********************************************************************
47 --> Oracle Catalog Views [upgrade] VALID
48 --> Oracle Packages and Types [upgrade] VALID
49 --> JServer JAVA Virtual Machine [upgrade] VALID
50 --> Oracle XDK for Java [upgrade] VALID
51 --> Oracle Java Packages [upgrade] VALID
52 --> Oracle XML Database [upgrade] VALID
53 --> Oracle Workspace Manager [upgrade] VALID
54 --> Oracle interMedia [upgrade] VALID
55 --> Expression Filter [upgrade] VALID
56 --> EM Repository [upgrade] VALID
57 --> Rule Manager [upgrade] VALID
58 .
59
60 PL/SQL procedure successfully completed.
61
62 SQL> SPOOL OFF
Vamos executar o script “catupgrd.sql” para aplicar o Patch no Banco de Dados (Dicionário de Dados).
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 4/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
42 DOC> Next shutdown immediate, restart for normal operation, and then
43 DOC> run utlrp.sql to recompile any invalid application objects.
44 DOC>
45 DOC>#######################################################################
46 DOC>#######################################################################
47 DOC>#
48 SQL>
49 SQL> spool off
Vamos executar o script “utlrp.sql” e recompilar os possíveis objetos inválidos pós aplicação do Patch no
Dicionário de Dados.
01 SQL> @?/rdbms/admin/utlrp.sql
02
03 TIMESTAMP
04 --------------------------------------------------------------------------------
05 COMP_TIMESTAMP UTLRP_BGN 2012-04-17 16:40:48
06 DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid
07 DOC> objects in the database. Recompilation time is proportional to the
08 DOC> number of invalid objects in the database, so this command may take
09 DOC> a long time to execute on a database with a large number of invalid
10 DOC> objects.
11 DOC>
12 DOC> Use the following queries to track recompilation progress:
13 DOC>
14 DOC> 1. Query returning the number of invalid objects remaining. This
15 DOC> number should decrease with time.
16 DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
17 DOC>
18 DOC> 2. Query returning the number of objects compiled so far. This number
19 DOC> should increase with time.
20 DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
21 DOC>
22 DOC> This script automatically chooses serial or parallel recompilation
23 DOC> based on the number of CPUs available (parameter cpu_count) multiplied
24 DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu).
25 DOC> On RAC, this number is added across all RAC nodes.
26 DOC>
27 DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
28 DOC> recompilation. Jobs are created without instance affinity so that they
29 DOC> can migrate across RAC nodes. Use the following queries to verify
30 DOC> whether UTL_RECOMP jobs are being created and run correctly:
31 DOC>
32 DOC> 1. Query showing jobs created by UTL_RECOMP
33 DOC> SELECT job_name FROM dba_scheduler_jobs
34 DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
35 DOC>
36 DOC> 2. Query showing UTL_RECOMP jobs that are running
37 DOC> SELECT job_name FROM dba_scheduler_running_jobs
38 DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
39 DOC>#
40
41 TIMESTAMP
42 --------------------------------------------------------------------------------
43 COMP_TIMESTAMP UTLRP_END 2012-04-17 16:41:33
44 DOC> The following query reports the number of objects that have compiled
45 DOC> with errors (objects that compile with errors have status set to 3 in
46 DOC> obj$). If the number is higher than expected, please examine the error
47 DOC> messages reported with each object (using SHOW ERRORS) to see if they
48 DOC> point to system misconfiguration or resource constraints that must be
49 DOC> fixed before attempting to recompile these objects.
50 DOC>#
51
52 OBJECTS WITH ERRORS
53 -------------------
54 0
55 DOC> The following query reports the number of errors caught during
56 DOC> recompilation. If this number is non-zero, please query the error
57 DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
58 DOC> are due to misconfiguration or resource constraints that must be
59 DOC> fixed before objects can compile successfully.
60 DOC>#
61
62 ERRORS DURING RECOMPILATION
63 ---------------------------
64 0
65 SQL>
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 5/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
01 SQL> col COMP_NAME for a35
02 SQL> select VERSION, STATUS, MODIFIED, STARTUP, COMP_NAME from dba_registry;
03
04 VERSION STATUS MODIFIED STARTUP COMP_NAME
05 ------------------------------ ----------- -------------------- -------- -----------------------------------
06 10.2.0.5.0 VALID 17-APR-2012 16:35:28 Oracle Enterprise Manager
07 10.2.0.5.0 VALID 17-APR-2012 16:41:35 Oracle interMedia
08 10.2.0.5.0 VALID 17-APR-2012 16:41:34 Oracle XML
09 10.2.0.5.0 VALID 17-APR-2012 16:41:34 Oracle Expression Filter
10 10.2.0.5.0 VALID 17-APR-2012 16:41:35 Oracle Rule
11 10.2.0.5.0 VALID 17-APR-2012 16:41:33 Oracle Workspace Manager
12 10.2.0.5.0 VALID 17-APR-2012 16:41:33 Oracle Database
13 10.2.0.5.0 VALID 17-APR-2012 16:41:33 Oracle Database
14 10.2.0.5.0 VALID 17-APR-2012 16:41:34 JServer JAVA Virtual Machine
15 10.2.0.5.0 VALID 17-APR-2012 16:41:34 Oracle XDK
16 10.2.0.5.0 VALID 17-APR-2012 16:41:34 Oracle Database
17 SQL> !
Para solicionar este, devemos aplicar o Patch 8350262 para o Enterpise Manager.
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 6/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
Para aplicar o mesmo, vamos seguir o artigo Aplicação do Patch 8350262 para Correção do Enterprise
Manager..
Seguindo o artigo acima, vamos aplicar o Patch para o Enterprise Manager.
Após aplicado o Patch 8350262 para o Enterprise Manager, vamos verificar o status do serviço do mesmo.
Artigos correlatos
Zemanta
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 7/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
Autor: Maycon Tomiasi
Certificados:
Name *
E-mail *
Website
In an effort to prevent automatic filling, you should perform a task displayed below.
Publicar comentário
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 8/9
20/07/13 Aplicando Patch Set 10.2.0.5 (8202632) no Banco de Dados Oracle 10.2.0.1 non-RAC | Oracle Home
carregando
www.oraclehome.com.br/2012/05/14/aplicando-patch-set-10-2-0-5-8202632-no-banco-de-dados-oracle-10-2-0-1-non-rac/ 9/9