You are on page 1of 3

Obsolete Parameters:

user_dump_dest
background_dudmp_dest

Parameters added:
pga_aggregate_limit = 2147483648

ORA-04031: unable to allocate nn bytes of shared memory


WARNING: --> "pga_aggregate_limit" needs to be increased to at least 2147483648
WARNING: --> "sga_target" needs to be increased to at least 1736441856
Starting with Oracle Database 12c, OLAP Catalog component is desupported.
If you are not using the OLAP Catalog component and want
to remove it, then execute the
ORACLE_HOME/olap/admin/catnoamd.sql script before or
after the upgrade.
Database is using a time zone file older than version 18.
After the upgrade, it is recommended that DBMS_DST package
be used to upgrade the 11.2.0.4.0 database time zone version
to the latest version which comes with the new release.
Please refer to My Oracle Support note number 1509653.1 for details.

EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

Parameters commented out:


alter system set "_enable_NUMA_support"=FALSE;
alter system set "_file_size_increase_increment"=2143289344;

cp /u01/app/oracle/product/12.1.0.2/dbhome_2/rdbms/admin/preupgrd.sql
/u01/app/oracle/product/11.2.0.4/dbhome_2/rdbms/admin/
cp /u01/app/oracle/product/12.1.0.2/dbhome_2/rdbms/admin/utluppkg.sql
/u01/app/oracle/product/11.2.0.4/dbhome_2/rdbms/admin/

cp /u01/app/oracle/product/12.1.0.2/dbhome_1/rdbms/admin/preupgrd.sql
/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/
cp /u01/app/oracle/product/12.1.0.2/dbhome_1/rdbms/admin/utluppkg.sql
/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/

SQLPLUS> @/u01/app/oracle/cfgtoollogs/DWSV/preupgrade/preupgrade_fixups.sql

ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=SPFILE;


CREATE RESTORE aPOINT PREUPGRADE GUARANTEE FLASHBACK DATABASE;

ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs1.1353.853000617' RESIZE


116736M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs2.1342.853000641' RESIZE
116736M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs3.1343.853000667' RESIZE
116736M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs4.1344.853000691' RESIZE
116736M;

Create bigfile undo tablespace undotbs1a datafile '+DATA_DWV1' size 116736M;


Create bigfile undo tablespace undotbs2a datafile '+DATA_DWV1' size 116736M;
Create bigfile undo tablespace undotbs3a datafile '+DATA_DWV1' size 116736M;
Create bigfile undo tablespace undotbs4a datafile '+DATA_DWV1' size 116736M;

drop tablespace undotbs1a;


drop tablespace undotbs2a;
drop tablespace undotbs3a;
drop tablespace undotbs4a;

SELECT DBMS_METADATA.GET_DDL('TABLESPACE','UNDOTBS1A') FROM dual;

alter system set undo_tablespace='UNDOTBS1A' scope=both sid='*';

dwpv1.undo_tablespace='UNDOTBS1A'
dwpv2.undo_tablespace='UNDOTBS2A'
dwpv3.undo_tablespace='UNDOTBS3A'
dwpv4.undo_tablespace='UNDOTBS4A'

dwpv1.undo_tablespace='UNDOTBS1'
dwpv2.undo_tablespace='UNDOTBS2'
dwpv3.undo_tablespace='UNDOTBS3'
dwpv4.undo_tablespace='UNDOTBS4'

CREATE BIGFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 17179869184;

ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs1.1353.853000617' RESIZE


563200M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs2.1342.853000641' RESIZE
563200M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs3.1343.853000667' RESIZE
563200M;
ALTER DATABASE DATAFILE '+DATA_DWV1/dwpv/datafile/undotbs4.1344.853000691' RESIZE
563200M;

Create bigfile undo tablespace UNDOTBS1 datafile '+DATA_DWV1' size 563200M;


Create bigfile undo tablespace UNDOTBS2 datafile '+DATA_DWV1' size 563200M;
Create bigfile undo tablespace UNDOTBS3 datafile '+DATA_DWV1' size 563200M;
Create bigfile undo tablespace UNDOTBS4 datafile '+DATA_DWV1' size 563200M;

alter system set undo_tablespace='UNDOTBS1' scope=both sid='dwpv1';


alter system set undo_tablespace='UNDOTBS2' scope=both sid='dwpv2';
alter system set undo_tablespace='UNDOTBS3' scope=both sid='dwpv3';
alter system set undo_tablespace='UNDOTBS4' scope=both sid='dwpv4';

EDIT DATABASE 'DWPV' SET PROPERTY 'LogShipping'='OFF';

$ORACLE_HOME/perl/bin/perl catctl.pl -n 16 -l /tmp catupgrd.sql

SQLPLUS> @/u01/app/oracle/cfgtoollogs/DWSV/preupgrade/postupgrade_fixups.sql
SQLPLUS> @?/rdbms/admin/utlrp.sql

ALTER SYSTEM SET CLUSTER_DATABASE=TRUE SCOPE=SPFILE;

exec DBMS_STATS.GATHER_TABLE_STATS('SYS','X$KTFBUE');
exec DBMS_STATS.GATHER_TABLE_STATS('SYS','WRH$_SYS_TIME_MODEL');
exec DBMS_STATS.GATHER_TABLE_STATS('SYS','X$KEWASH');
exec DBMS_STATS.GATHER_TABLE_STATS('SYS','props$');

srvctl upgrade database -d dwpm -o /u01/app/oracle/product/12.1.0.2/dbhome_1

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.24)


(PORT=1522))' SCOPE=BOTH SID='dwum1';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.25)
(PORT=1522))' SCOPE=BOTH SID='dwum2';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.26)
(PORT=1522))' SCOPE=BOTH SID='dwum3';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.27)
(PORT=1522))' SCOPE=BOTH SID='dwum4';

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.27)


(PORT=1522))' SCOPE=BOTH SID='dwdm4';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.26)
(PORT=1522))' SCOPE=BOTH SID='dwdm3';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.25)
(PORT=1522))' SCOPE=BOTH SID='dwdm2';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.24)
(PORT=1522))' SCOPE=BOTH SID='dwdm1';

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.24)


(PORT=1522))' SCOPE=BOTH SID='dwtm1';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.25)
(PORT=1522))' SCOPE=BOTH SID='dwtm2';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.26)
(PORT=1522))' SCOPE=BOTH SID='dwtm3';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.27)
(PORT=1522))' SCOPE=BOTH SID='dwtm4';

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.24)


(PORT=1523))' SCOPE=BOTH SID='dwlm1';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.25)
(PORT=1523))' SCOPE=BOTH SID='dwlm2';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.26)
(PORT=1523))' SCOPE=BOTH SID='dwlm3';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.26.230.27)
(PORT=1523))' SCOPE=BOTH SID='dwlm4';

ALTER SESSION SET "_fix_control"='7452863:0';

alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.25.230.25)


(PORT=1521))' SCOPE=BOTH SID='dwsv1';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.25.230.25)
(PORT=1521))' SCOPE=BOTH SID='dwsv2';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.25.230.25)
(PORT=1521))' SCOPE=BOTH SID='dwsv3';
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=172.25.230.25)
(PORT=1521))' SCOPE=BOTH SID='dwsv4';

add database 'DWPM' as connect identifier is 'DWPM.SURESCRIPTS.INT';