upgrade.txt
TRANSCRIPT
-
8/10/2019 upgrade.txt
1/4
SQL> SELECT * FROM v$timezone_file;
FILENAME VERSION-------------------- ----------timezlrg_4.dat 4
GRS0240818
$ ls -lrttotal 8drwxr-s--- 2 HBOLAPU1 dba 4096 Mar 27 2011 upgrade_11.2.0.1drwxr-s--- 2 HBOLAPU1 dba 256 Jun 11 18:00 GRS0240818
/data/oracle/HBOLAPU1/admin/UPGRADES
SELECT name,description from SYS.V$PARAMETER WHERE name LIKE '\_%' ESCAPE '\'
SQL> set feedback onset verify onselect sys_nc_oid$ from kottd$ where sys_nc_oid$ not in (select oid$ from obj$ w
here type#=13); SQL> SQL>
no rows selected
SQL> delete from kottd$ where sys_nc_oid$ not in(select oid$ from obj$ where type#=13); 2
0 rows deleted.
SQL> purge dba_recyclebin;
DBA Recyclebin purged.
PL/SQL procedure successfully completed.
COMP_TIMESTAMP UTLRP_END 2012-06-11 18:19:58
1 row selected.
DOC> The following query reports the number of objects that have compiledDOC> with errors (objects that compile with errors have status set to 3 inDOC> obj$). If the number is higher than expected, please examine the errorDOC> messages reported with each object (using SHOW ERRORS) to see if theyDOC> point to system misconfiguration or resource constraints that must beDOC> fixed before attempting to recompile these objects.
DOC># 18
1 row selected.
DOC> The following query reports the number of errors caught duringDOC> recompilation. If this number is non-zero, please query the errorDOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errorsDOC> are due to misconfiguration or resource constraints that must beDOC> fixed before objects can compile successfully.
-
8/10/2019 upgrade.txt
2/4
DOC># 5
1 row selected.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
SPOOL PRE_UPGRADE_DB_LINKS.logSELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)||DECODE(U.NAME,'PUBLIC',Null, 'SYS','',U.NAME||'.')|| L.NAME||chr(10)||'CONNECT TO ' || L.USERID || ' IDENTIFIED BY "'||L.PASSWORD||'" USING '''||L.HOST||''''||chr(10)||';' TEXTFROM SYS.LINK$ L, SYS.USER$ UWHERE L.OWNER# = U.USER#;SPOOL OFF
SQL> select TZ_VERSION from registry$database;
4
1 row selected.
SQL> spool TimeZone_Info.logSQL> set serveroutput onSQL> @utltzuv2.sqlQuery sys.sys_tzuv2_temptab and sys.sys_tzuv2_va_temptab tables to see if any TIMESTAMP WITH TIME ZONE data are affected when upgrading from the current time zone version 4 to a newer version of 11.
PL/SQL procedure successfully completed.
SQL> spool off
SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
PL/SQL procedure successfully completed.
set verify off
set space 0 line 120 pages 1000set heading offset feedback offspool analyze.sqlSELECT 'Analyze cluster "'||cluster_name||'" validate structure cascade;'FROM dba_clustersWHERE owner='SYS'UNIONSELECT 'Analyze table "'||table_name||'" validate structure cascade;'FROM dba_tables
-
8/10/2019 upgrade.txt
3/4
WHERE owner='SYS'AND partitioned='NO'AND (iot_type='IOT' OR iot_type is NULL)UNIONSELECT 'Analyze table "'||table_name||'" validate structure cascade into invalid
_rows;'FROM dba_tablesWHERE owner='SYS'AND partitioned='YES';spool offset verify onset heading onset feedback onset echo on
@$ORACLE_HOME/rdbms/admin/utlvalid.sql
SQL> SELECT distinct(trunc(last_refresh)) FROM dba_snapshot_refresh_times; 2
(TRUNC(LA---------
24-MAY-1031-AUG-1008-JUL-0402-SEP-1115-APR-1009-MAR-1210-NOV-1104-MAR-0526-AUG-0913-APR-1010-APR-1211-JUN-1224-NOV-10
02-MAR-1214-NOV-1121-APR-1027-MAR-1217-JUL-0808-JUN-1120-MAR-1225-AUG-0910-JAN-1209-JUL-1008-NOV-1111-NOV-1120-AUG-09
21-APR-0403-MAR-1213-MAR-0915-NOV-11
30 rows selected.
SQL> SELECT * FROM v$recover_file;
-
8/10/2019 upgrade.txt
4/4
no rows selected
SQL> SELECT * FROM v$backup WHERE status!='NOT ACTIVE';
no rows selected
SQL> select * from dba_2pc_pending;
no rows selected
USERNAME DEFAULT_TABLESPACE------------------------------ ------------------------------SYSTEM SYSTEMSYS SYSTEM
SQL>
SQL> SELECT name FROM v$controlfile;
NAME
--------------------------------------------------------------------------------/data/oracle/HBOLAPU1/redo01/control01.ctl/data/oracle/HBOLAPU1/redo02/control02.ctl
sqlplus "/ as sysdba"