Sunteți pe pagina 1din 28

Contents

Introduction................................................................................................. 2
Instalare rdbms 11.0.7. rdbms....................................................................3
Instalarea aplicatiei.....................................................................................6
Upgrade al bazei la versiunea 11.2.............................................................7
Modificarea bazei din single nod in RAC....................................................27

Introduction
Acest document descrie instalarea bazei de date ORAIDMT, repository pentru
ORACLE SSO pe serverele orat1, orat2, AIX 7.1

Instalare rdbms 11.0.7. rdbms

Instalare rdbms oracle 11.1.0.6


Se ruleaza
./backup/install_kit/database/runInstaller

Instalare rdbms oracle 11.1.0.7


Se ruleaza
./backup/install_kit/Disk1/runInstaller
./runinstaller genereaza urmatoarea eroare:
FPR31 0000000000000000 (f: 0.000000, d: 0.000000e+00)
Module=/var/tmp/OraInstall2013-08-20_10-4901AM/jdk/jre/bin/libj9jit23.so
JVMDUMP006I Processing Dump Event "gpf", detail "" Please Wait.
Workaround: Vezi link http://www-01.ibm.com/support/docview.wss?
uid=swg21444773
Problema cu power 7 si gpf, libj9jit23.so
oracle@orat1:/backup/install_kit/Disk1> export
JAVA_COMPILER=none

Instalarea ultimului opatch (6880880)


cd /u01/app/oracle/product/11.1.0.7
unzip p6880880_111000_AIX64-5L.zip

Instalare a ultimului PSU p16619896 pentru 11.1.0.7


oracle@orat1:/backup/install_kit> unzip
p16619896_111070_AIX5L.zip
oracle@orat1:/backup/install_kit> cd 16619896
su
/usr/sbin/slibclean under root
exit
oracle@orat1:/backup/install_kit/16619896> opatch apply

Oracle Interim Patch Installer version 11.1.0.10.1


Copyright (c) 2013, Oracle Corporation. All rights
reserved.
Oracle Home
: /u01/app/oracle/product/11.1.0.7
Central Inventory : /u01/app/oraInventory
from
:
/u01/app/oracle/product/11.1.0.7/oraInst.loc
OPatch version
: 11.1.0.10.1
OUI version

: 11.1.0.7.0

Pinarea nodurilor in cluster


. grid.env
oracle@orat1:/home/oracle> olsnodes -t
orat1
Unpinned
orat2

Unpinned

crsctl pin css n orat1,orat2


oracle@orat1:/home/oracle> olsnodes -t
orat1
Pinned
orat2

Pinned

Crearea bazei de date in versiunea 11.1.0.7


Scripturile au fost create manual, dbca da eroare
Scripturile sunt la /u01/app/oracle/admin/ORAIDMT/scripts pe
serverul orat1 si in anexa create_db.zip. Logurile se creaza in
acealasi director
ls -l /u01/app/oracle/admin/ORAIDMT/scripts
CreateClustDBViews.sql
CreateDB.sql
CreateDBCatalog.sql
CreateDBFiles.sql
JServer.sql
ORAIDMT1.sh
ORAIDMT1.sql
context.sql
init.ora

lockAccount.log
lockAccount.sql
postDBCreation.sql
xdb_protocol.sql
Instalarea bazei se face ruland scriptul ORAIDMT1.sh, baza nu este
inregistrata in cluster.
cd /u01/app/oracle/admin/ORAIDMT/scripts
./ ORAIDMT1.sh

Schimbarea profilurilor:
ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS
UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME
UNLIMITED;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME
UNLIMITED;

Backup al bazei de 11.1.0.7.


run
{
allocate channel c1 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c2 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c3 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c4 device type disk format
'/backup/backup_oraidmt/27082013/%U';
backup tag empty database include current controlfile;
}

Instalarea aplicatiei
Instalarea aplicatiei nu este in scopul acestui document, insa
necesita ca baza de date sa fie disponibila pe tot timpul instalatie.
Restartul bazei de date nu este posibil

Upgrade al bazei la versiunea 11.2

Backup inaite de upgrade


run
{
allocate channel c1 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c2 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c3 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c4 device type disk format
'/backup/backup_oraidmt/27082013/%U';
backup tag 'before_upgrade' database include current
controlfile;
}

Utlu112i.sql
Pe baza neupgradata se ruleaza utlu112i.sql
@/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/utl
u112i.sql
SQL>
@/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/utl
u112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 08-292013 12:06:05
Script Version: 11.2.0.3.0 Build: 001
.
********************************************************
**************
Database:
********************************************************
**************
--> name:
--> version:

ORAIDMT
11.1.0.7.0

--> compatible:
--> blocksize:

11.1.0.7
8192

--> platform:
AIX-Based Systems (64-bit)
--> timezone file: V4

.
********************************************************
**************
Tablespaces: [make adjustments in the current
environment]
********************************************************
**************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 924 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 267 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 60 MB
--> IAS_META tablespace is adequate for the upgrade.
.... minimum required size: 53 MB
--> B2B_RT tablespace is adequate for the upgrade.
.... minimum required size: 38 MB
--> BAM tablespace is adequate for the upgrade.
.... minimum required size: 3 MB
--> T1_PORTAL tablespace is adequate for the upgrade.
.... minimum required size: 112 MB
.
********************************************************
**************
Flashback: OFF
********************************************************
**************
********************************************************
**************
Update Parameters: [Update Oracle Database 11.2 init.ora
or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit
database.
********************************************************
**************
--> If Target Oracle is 32-Bit, refer here for Update
Parameters:
-- No update parameter changes are required.
.
--> If Target Oracle is 64-Bit, refer here for Update
Parameters:

-- No update parameter changes are required.


.
********************************************************
**************
Renamed Parameters: [Update Oracle Database 11.2
init.ora or spfile]
********************************************************
**************
-- No renamed parameters found. No changes are required.
.
********************************************************
**************
Obsolete/Deprecated Parameters: [Update Oracle Database
11.2 init.ora or spfile]
********************************************************
**************
-- No obsolete parameters found. No changes are required
.
********************************************************
**************
Components: [The following database components will be
upgraded or installed]
********************************************************
**************
--> Oracle Catalog Views
[upgrade] VALID
--> Oracle Packages and Types
[upgrade]
--> JServer JAVA Virtual Machine [upgrade]

VALID
VALID

--> Oracle XDK for Java


--> Real Application Clusters

[upgrade]
[upgrade]

VALID
VALID

--> Oracle Workspace Manager


--> Oracle Text

[upgrade]
[upgrade]

VALID
VALID

--> Oracle XML Database


--> Oracle Java Packages

[upgrade]
[upgrade]

VALID
VALID

--> Expression Filter


--> Rule Manager

[upgrade]
[upgrade]

VALID
VALID

.
********************************************************
**************
Miscellaneous Warnings
********************************************************
**************
WARNING: --> Database is using a timezone file older
than version 14.

.... After the release migration, it is recommended that


DBMS_DST package
.... be used to upgrade the 11.1.0.7.0 database timezone
version
.... to the latest version which comes with the new
release.
WARNING: --> Database contains INVALID objects prior to
upgrade.
.... The list of invalid SYS/SYSTEM objects was written
to
.... registry$sys_inv_objs.
.... The list of non-SYS/SYSTEM objects was written to
.... registry$nonsys_inv_objs.
.... Use utluiobj.sql after the upgrade to identify any
new invalid
.... objects due to the upgrade.
.... USER PUBLIC has 1 INVALID objects.
.... USER XDB has 2 INVALID objects.
.... USER ORASSO has 31 INVALID objects.
.... USER OWF_MGR has 13 INVALID objects.
WARNING: --> Your recycle bin contains 11 object(s).
.... It is REQUIRED that the recycle bin is empty prior
to upgrading
.... your database. The command:
PURGE DBA_RECYCLEBIN
.... must be executed immediately prior to executing
your upgrade.
WARNING: --> Database contains schemas with objects
dependent on DBMS_LDAP package.
.... Refer to the 11g Upgrade Guide for instructions to
configure Network ACLs.
.... USER ODS has dependent objects.
.... USER ORASSO has dependent objects.
.... USER OWF_MGR has dependent objects.
.... USER T1_PORTAL has dependent objects.
.
********************************************************
**************
Recommendations
********************************************************
**************
Oracle recommends gathering dictionary statistics prior
to
upgrading the database.

To gather dictionary statistics execute the following


command
while connected as SYSDBA:
EXECUTE dbms_stats.gather_dictionary_stats;
********************************************************
**************
Oracle recommends reviewing any defined events prior to
upgrading.
To view existing non-default events execute the
following commands
while connected AS SYSDBA:
Events:
SELECT (translate(value,chr(13)||chr(10),' ')) FROM
sys.v$parameter2
WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'
Trace Events:
SELECT (translate(value,chr(13)||chr(10),' ')) from
sys.v$parameter2
WHERE UPPER(name) = '_TRACE_EVENTS' AND
isdefault='FALSE'
Changes will need to be made in the init.ora or spfile.
********************************************************
**************
Oracle recommends examining audit tables AUD$ and
FGA_LOG$ before
upgrading the database.
This database has 649 rows in AUD$ and 0 rows in
FGA_LOG$ that
will be updated during the database upgrade from
11.1.0.7.0.
During this upgrade, null DBIDs in AUD$ and FGA_LOG$
will be updated
with non-null values.
The upgrade downtime could be affected if there are many
rows to update.

If downtime is a concern, the audit update could be done


manually prior
to upgrading the database.
Please refer to My Oracle Support Note 1329590.1 titled
"How to
Pre-Process SYS.AUD$ Records Pre-Upgrade From 10.1 or
Later to 11.2".

Purge recyclebin
SQL> PURGE DBA_RECYCLEBIN;
DBA Recyclebin purged.
---set recyclebin off and restart
SQL>

alter system set recyclebin=off scope=spfile;

SQL> shutdown immediate;


Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size
2160600 bytes
Variable Size
Database Buffers
Redo Buffers
Database mounted.

1224738856 bytes
2969567232 bytes
79314944 bytes

Database opened.
Connected to:
Oracle Database 11g Enterprise Edition Release
11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP,
Data Mining
and Real Application Testing options

Verificare evenimentelor setate


SQL>
SELECT (translate(value,chr(13)||chr(10),' '))
FROM sys.v$parameter2
WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'

no rows selected

SQL> ;

1
SELECT (translate(value,chr(13)||chr(10),' '))
from sys.v$parameter2
2*
WHERE UPPER(name) = '_TRACE_EVENTS' AND
isdefault='FALSE'
SQL>
SQL> /
no rows selected

Verificare setare timezone.


Se va modifica dupa upgrade nu e necesar inainte
SQL> select TZ_VERSION from registry$database;
TZ_VERSION
---------4

Colectare statistici pe dictionar


SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
PL/SQL procedure successfully completed.
.

Verificare obiecte cu aceeasi nume in SYS,SYSTEM


SQL> column object_name format a30
select object_name, object_type
from dba_objects
where object_name||object_type in
(select object_name||object_type
from dba_objects
where owner = 'SYS')
and owner = 'SYSTEM';
SQL>

OBJECT_NAME

OBJECT_TYPE

------------------------------ ------------------AQ$_SCHEDULES
TABLE
AQ$_SCHEDULES_PRIMARY
DBMS_REPCAT_AUTH

INDEX
PACKAGE

DBMS_REPCAT_AUTH

PACKAGE BODY

Compilare obiecte invalide


SQL> @?/rdbms/admin/utlrp

OBJECTS WITH ERRORS


------------------0
ERRORS DURING RECOMPILATION
--------------------------0

Verificare coruptie dictionar


check dictionary corruption
Set verify off
Set space 0
Set line 120
Set heading off
Set feedback off
Set pages 1000
Spool analyze.sql
SELECT 'Analyze cluster "'||cluster_name||'" validate st
ructure cascade;'
FROM dba_clusters
WHERE owner='SYS'
UNION
SELECT 'Analyze table "'||table_name||'" validate struct
ure cascade;'
FROM dba_tables
WHERE owner='SYS'
AND partitioned='NO'
AND (iot_type='IOT' OR iot_type is NULL)

UNION
SELECT 'Analyze table "'||table_name||'" validate struct
ure cascade into invalid_rows;'
FROM dba_tables
WHERE owner='SYS'
AND partitioned='YES';
spool off
$ sqlplus "/ as sysdba"
SQL> @$ORACLE_HOME/rdbms/admin/utlvalid.sql
SQL> @analyze.sql

Verificare view materializate


SQL> select distinct(trunc(last_refresh)) from
dba_snapshot_refresh_times;
no rows selected

Verificare media recovery activa


SELECT * FROM v$recover_file;
SELECT * FROM v$backup WHERE status != 'NOT ACTIVE';
no rows selected
SQL>
no rows selected

Verificare utilizatori cu default tablespace SYSTEM

SQL> SELECT username, default_tablespace


FROM dba_users
WHERE username in ('SYS','SYSTEM');

USERNAME
DEFAULT_TABLESPACE
----------------------------------------------------------SYS
SYSTEM

SYSTEM
SQL>
SQL>

SYSTEM

SELECT owner,tablespace_name
FROM dba_tables
WHERE table_name='AUD$';

OWNER

TABLESPACE_NAME

----------------------------------------------------------SYS

SYSTEM

Salvare nume fisiere


SQL> SELECT name FROM v$controlfile;
SELECT file_name FROM dba_data_files;
SELECT group#, member FROM v$logfile;
NAME
------------------------------------------------------------------------------+DATA/oraidmt/control01.ctl
+DATA/oraidmt/control02.ctl
SQL>
FILE_NAME
------------------------------------------------------------------------------+DATA/oraidmt/datafile/system.565.824567933
+DATA/oraidmt/datafile/sysaux.554.824567937
+DATA/oraidmt/datafile/undotbs1.553.824567941
+DATA/oraidmt/datafile/undotbs2.555.824568025
+DATA/oraidmt/datafile/users.571.824568025
+DATA/oraidmt/datafile/olts_default.569.824572535
+DATA/oraidmt/datafile/olts_svrmgstore.568.824572537
+DATA/oraidmt/datafile/olts_battrstore.575.824572537
+DATA/oraidmt/datafile/olts_ct_store.573.824572539
+DATA/oraidmt/datafile/olts_attrstore.574.824572541
+DATA/oraidmt/datafile/portal.593.824574645
FILE_NAME
-------------------------------------------------------------------------------

+DATA/oraidmt/datafile/portal_doc.592.824574645
+DATA/oraidmt/datafile/portal_idx.591.824574645
+DATA/oraidmt/datafile/portal_log.590.824574647
+DATA/oraidmt/datafile/ias_meta.589.824574647
+DATA/oraidmt/datafile/disco_ptm5_meta.588.824574647
+DATA/oraidmt/datafile/disco_ptm5_cache.587.824574647
+DATA/oraidmt/datafile/dcm.586.824574649
+DATA/oraidmt/datafile/dsgateway_tab.585.824574649
+DATA/oraidmt/datafile/wcrsys_ts.584.824574649
+DATA/oraidmt/datafile/b2b_rt.583.824574649
+DATA/oraidmt/datafile/b2b_dt.582.824574651
FILE_NAME
------------------------------------------------------------------------------+DATA/oraidmt/datafile/b2b_idx.581.824574651
+DATA/oraidmt/datafile/b2b_lob.580.824574651
+DATA/oraidmt/datafile/orabpel.579.824574651
+DATA/oraidmt/datafile/bam.578.824574651
+DATA/oraidmt/datafile/ocats.577.824574653
+DATA/oraidmt/datafile/uddisys_ts.576.824574653
+DATA/oraidmt/datafile/t1_portal_log.284.824660617
+DATA/oraidmt/datafile/t1_portal.566.824660619
+DATA/oraidmt/datafile/t1_portal_idx.283.824660621
+DATA/oraidmt/datafile/t1_mds.561.824660621
+DATA/oraidmt/datafile/t1_portal_doc.562.824660623
FILE_NAME
------------------------------------------------------------------------------+DATA/oraidmt/datafile/t1_ias_portlet.556.824660625
34 rows selected.
SQL> SELECT group#, member FROM v$logfile;
GROUP#
---------MEMBER
------------------------------------------------------------------------------1
+DATA/oraidmt/redo01.log

2
+DATA/oraidmt/redo02.log
3
+DATA/oraidmt/redo03.log

GROUP#
---------MEMBER
------------------------------------------------------------------------------4
+DATA/oraidmt/redo04.log

Creere pfile in 11.2.0.3


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

2160600 bytes
1224738856 bytes

Database Buffers
Redo Buffers

2969567232 bytes
79314944 bytes

Database mounted.
Database opened.
SQL> create
pfile='/u01/app/oracle/product/11.2.0/dbhome_1/initORAID
MT1.ora' from spfile;
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit

Editare /etc/oratab
Se modifica /etc/oratab adaugandu-se noul ORACLE_HOME pentru
ORAIDMT
Cat /etc/oratab
ORAIDMT1:/u01/app/oracle/product/11.2.0/dbhome_1:N
# line added by Agent

Upgrade al bazei la RDBMS 11.2.0.3


oracle@orat1:/home/oracle/ioan> export
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
oracle@orat1:/home/oracle/ioan> export
PATH=$ORACLE_HOME/bin:$PATH
oracle@orat1:/home/oracle/ioan> export
ORACLE_SID=ORAIDMT1
cd /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin
SQL>
SQL>
SQL>
SQL>

set echo on
SPOOL upgrade.log
@catupgrd.sql
spool off

Shutdown immediate
QL> startup
ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size
2228344 bytes
Variable Size
Database Buffers
Redo Buffers
Database mounted.

1241517960 bytes
2952790016 bytes
79245312 bytes

Database opened.

Rulare script post-upgrade


SQL> @$ORACLE_HOME/rdbms/admin/utlu112s.sql
.
Oracle Database 11.2 Post-Upgrade Status Tool
08-29-2013 13:30:54
.

Component
Version

Elapsed Time

Current

Name
Number

HH:MM:SS

Status

.
Oracle Server
.
11.2.0.3.0

VALID
00:08:06

JServer JAVA Virtual Machine


.
11.2.0.3.0 00:02:35
Oracle Real Application Clusters
.
11.2.0.3.0

VALID
00:00:00

Oracle Workspace Manager


.
11.2.0.3.0 00:00:28
Oracle XDK
.
11.2.0.3.0

00:00:31
VALID

VALID
00:02:03

Oracle Database Java Packages


.
11.2.0.3.0 00:00:11
Oracle Expression Filter
.
11.2.0.3.0

VALID

VALID

Oracle Text
.
11.2.0.3.0 00:00:26
Oracle XML Database
.
11.2.0.3.0

VALID

VALID

VALID
00:00:07

Oracle Rules Manager


.
11.2.0.3.0 00:00:06
Gathering Statistics
.
00:01:00
Total Upgrade Time: 00:15:38
PL/SQL procedure successfully completed.

VALID

Rularea PSU script


@$ORACLE_HOME/rdbms/admin/catuppst.sql

SQL> PROMPT Updating registry...


Updating registry...
SQL> INSERT INTO registry$history
2
3

(action_time, action,
namespace, version, id,

4
5

bundle_series, comments)
VALUES

6
7
8
9
10
11

(SYSTIMESTAMP, 'APPLY',
SYS_CONTEXT('REGISTRY$CTX','NAMESPACE'),
'11.2.0.3',
6,
'PSU',
'PSU 11.2.0.3.6');

1 row created.
SQL> COMMIT;
Commit complete.
SQL> SPOOL off
SQL> SET echo off
Check the following log file for errors:
/
u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/catbu
ndle/catbundle_PSU_ORAIDMT_APPLY_2013Aug29_13_32_28.log

Compilare objecte invalide -@?/rdbms/admin/utlrp

OBJECTS WITH ERRORS


------------------0

Update TZ_VERSION
SQL>
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30)
value
FROM DATABASE_PROPERTIES

WHERE PROPERTY_NAME LIKE 'DST_%'


ORDER BY PROPERTY_NAME; 2
3

PROPERTY_NAME
-----------------------------VALUE
------------------------------------------------------------------------------DST_PRIMARY_TT_VERSION
4
DST_SECONDARY_TT_VERSION
0
DST_UPGRADE_STATE
NONE
3 rows selected.
SQL>
SQL>
SQL>
SQL> exec DBMS_DST.BEGIN_PREPARE(14);
EXEC DBMS_DST.END_PREPARE;
PL/SQL procedure successfully completed.
SQL> SQL>
PL/SQL procedure successfully completed.
SQL> shutdown immediate;
startup upgrade;
set serveroutput on
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size
Variable Size

2228344 bytes
1275072392 bytes

Database Buffers
Redo Buffers

2919235584 bytes
79245312 bytes

Database mounted.
Database opened.
SQL> SQL>
SQL>
SQL> set serveroutput on
SQL> SQL>
SQL>
SQL> purge dba_recyclebin;
TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;

TRUNCATE TABLE sys.dst$affected_tables;


TRUNCATE TABLE sys.dst$error_table;
alter session set "_with_subquery"=materialize;
DBA Recyclebin purged.
SQL> SQL> alter session set "_simple_view_merging"=TRUE;
EXEC DBMS_DST.BEGIN_UPGRADE(14);
Table truncated.
SQL>
Table truncated.
SQL>
Table truncated.
SQL> SQL>
Session altered.
SQL> SQL>
Session altered.
SQL> SQL>
An upgrade window has been successfully started.
PL/SQL procedure successfully completed.
SQL> SQL> SQL>
SQL> shutdown immediate
startup
alter session set "_with_subquery"=materialize;
alter session set "_simple_view_merging"=TRUE;
set serveroutput on
VAR numfail number
BEGIN
DBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
log_errors => TRUE,
log_errors_table => 'SYS.DST$ERROR_TABLE',
log_triggers_table => 'SYS.DST$TRIGGER_TABLE',
error_on_overlap_time => FALSE,
error_on_nonexisting_time => FALSE);
DBMS_OUTPUT.PUT_LINE('Failures:'|| :numfail);
END;
/
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
ORACLE instance started.
Total System Global Area 4275781632 bytes

Fixed Size
Variable Size

2228344 bytes
1275072392 bytes

Database Buffers
Redo Buffers

2919235584 bytes
79245312 bytes

Database mounted.
Database opened.
SQL> SQL>
Session altered.
SQL>
Session altered.
SQL> SQL> SQL> SQL> SQL> SQL>
7
8
9
10
11

Table list: "OWF_MGR"."AQ$_WF_REPLAY_OUT_S"


Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_REPLAY_OUT_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_REPLAY_IN_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_REPLAY_IN_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_OUT_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_OUT_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_NOTIFICATION_OUT_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_NOTIFICATION_OUT_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_NOTIFICATION_IN_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_NOTIFICATION_IN_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JMS_OUT_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JMS_OUT_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JMS_IN_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JMS_IN_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JAVA_ERROR_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JAVA_ERROR_L"

Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JAVA_DEFERRED_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_JAVA_DEFERRED_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_IN_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_IN_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_ERROR_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_ERROR_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_DEFERRED_TABLE_M_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_DEFERRED_TABLE_M_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_DEFERRED_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_DEFERRED_L"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_CONTROL_S"
Number of failures: 0
Table list: "OWF_MGR"."AQ$_WF_CONTROL_L"
Number of failures: 0
Table list: "B2B"."AQ$_IP_QTAB_S"
Number of failures: 0
Table list: "B2B"."AQ$_IP_QTAB_L"
Number of failures: 0
Table list: "B2B"."AQ$_IPRT_EVENT_DATABUS_T_S"
Number of failures: 0
Table list: "B2B"."AQ$_IPRT_EVENT_DATABUS_T_L"
Number of failures: 0
Table list: "B2B"."AQ$_EVENT_QTAB_S"
Number of failures: 0
Table list: "B2B"."AQ$_EVENT_QTAB_L"
Number of failures: 0
Table list: "T1_PORTAL"."AQ$_WWSRC_EVENT_Q_TABLE_S"
Number of failures: 0
Table list: "T1_PORTAL"."AQ$_WWSRC_EVENT_Q_TABLE_L"
Number of failures: 0
Table list: "T1_PORTAL"."AQ$_WWSBR_EVENT_Q_TABLE_S"
Number of failures: 0

Table list: "T1_PORTAL"."AQ$_WWSBR_EVENT_Q_TABLE_L"


Number of failures: 0
Failures:0
PL/SQL procedure successfully completed.
SQL>
SQL> select TZ_VERSION from registry$database;
TZ_VERSION
---------4
update registry$database set TZ_VERSION = (select
version FROM v$timezone_file);
commit;
SQL>
SQL>

select TZ_VERSION from registry$database;

TZ_VERSION
---------14

Modificarea bazei din single nod in RAC

Enble cluster_database
SQL> alter system set cluster_database=true
scope=spfile;

Creerea redo thread 2


SQL> ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 5
('+DATA/ORAIDMT/redo05.log') SIZE 512M,
GROUP 6 ('+DATA/ORAIDMT/redo06.log') SIZE 512M,
GROUP 7 ('+DATA/ORAIDMT/redo07.log') SIZE 512M,
GROUP 8 ('+DATA/ORAIDMT/redo08.log') SIZE 512M;
2
3
4
Database altered.
SQL> SQL> ALTER DATABASE ENABLE PUBLIC THREAD 2;
Database altered.

Creerea de init,password file pentru ORAIDMT2


oracle@orat1:/u01/app/oracle/product/11.2.0/dbhome_1/dbs
> scp initORAIDMT1.ora orat2:`pwd`/initORAIDMT2.ora
initORAIDMT1.ora
100%
41
0.0KB/s

00:00

oracle@orat1:/u01/app/oracle/product/11.2.0/dbhome_1/dbs
> scp orapwORAIDMT1 orat2:`pwd`/orapwORAIDMT2
orapwORAIDMT1

Inregistrarea bazei in cluster


/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl add
database -d ORAIDMT -o
/u01/app/oracle/product/11.2.0/dbhome_1 -p
+DATA/ORAIDMT/spfileORAIDMT.ora -a DATA,FRA
/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl add
instance -d ORAIDMT -i ORAIDMT1 -n orat1
/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl add
instance -d ORAIDMT -i ORAIDMT2 -n orat2

/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl stop
database d ORAIDMT
/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl start
database d ORAIDMT

Setarea remote_listener la scan


SQL> alter system set remote_listener='orat-scan:1521';

Backup after migration


run
{
allocate channel c1 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c2 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c3 device type disk format
'/backup/backup_oraidmt/27082013/%U';
allocate channel c4 device type disk format
'/backup/backup_oraidmt/27082013/%U';
backup tag 'after_upgrade_112' database include current
controlfile;
}

S-ar putea să vă placă și