RAC Database From 12.1 To 12.2 - Workshop
RAC Database From 12.1 To 12.2 - Workshop
RAC Database From 12.1 To 12.2 - Workshop
NAME
---------
CDBZORO
NAME
---------
CDBZORO
Db1m is 500GB
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SUM(BYTES)/1024/1024/1024
-------------------------
540.631226
SQL>
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
COUNT(*)
----------
0
SQL> /
COUNT(*)
----------
0
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
{noden1:db1c1} $ . oraenv
ORACLE_SID = [db1c1] ? db1c
The Oracle base remains unchanged with value /u01/oracle
{noden1:db1c} $ srvctl status database -d db1c
Instance db1c1 is running on node noden1
Instance db1c2 is running on node noden2
{noden1:db1c} $ srvctl stop database -d db1c -o immediate
{noden1:db1c} $ srvctl status database -d db1c
Instance db1c1 is not running on node noden1
Instance db1c2 is n
649479AE821848DDE0532561A8C0AC23/
6494B4C74FDB3B82E0532661A8C09B23/
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
PASSWORD/
TEMPFILE/
ASMCMD [+EDATA/cdbzoro] > rm -rf 6494B4C74FDB3B82E0532661A8C09B23/
ASMCMD [+EDATA/cdbzoro] > cd 4700A987085B3DFAE05387E5E50A8C7B
ASMCMD [+EDATA/cdbzoro/4700A987085B3DFAE05387E5E50A8C7B] > ls
DATAFILE/
ASMCMD [+EDATA/cdbzoro/4700A987085B3DFAE05387E5E50A8C7B] > cd DATAFILE/
ASMCMD [+EDATA/cdbzoro/4700A987085B3DFAE05387E5E50A8C7B/DATAFILE] > ls
SYSAUX.1457.967400651
SYSTEM.1459.967400651
UNDOTBS1.1462.967400651
ASMCMD [+EDATA/cdbzoro/4700A987085B3DFAE05387E5E50A8C7B/DATAFILE] > exit
{noden1:+ASM1} $ asmcmd -p
ASMCMD [+] > ls -s
Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB
Usable_file_MB Offline_disks Voting_files Name
512 512 4096 4194304 573440 436320 0 436320 0
N DATA/
512 512 4096 4194304 2252800 678748 0 678748 0
N EDATA/
512 512 4096 4194304 819200 724700 0 724700 0
N ERECOVERY/
512 512 4096 4194304 184320 113148 30720 41214 0
Y OCR_VOTE/
512 512 4096 4194304 409600 365736 0 365736 0
N RECOVERY/
ASMCMD [+] > ls
DATA/
EDATA/
ERECOVERY/
OCR_VOTE/
RECOVERY/
ASMCMD [+] > cd EDATA
ASMCMD [+EDATA] > ls
DB1C/
DB1X/
DB1M/
cdbzoro/
kokodb/
ASMCMD [+EDATA] > cd DB1C
ASMCMD [+EDATA/DB1C] > ls
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
PASSWORD/
TEMPFILE/
spfiledb1c.ora
ASMCMD [+EDATA/DB1C] > rm -rf DATAFILE
ASMCMD [+EDATA/DB1C] > exit
{noden1:+ASM1} $ asmcmd -p
ASMCMD [+] > ls -s
Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB
Usable_file_MB Offline_disks Voting_files Name
512 512 4096 4194304 573440 436320 0 436320 0
N DATA/
512 512 4096 4194304 2252800 872736 0 872736 0
N EDATA/
512 512 4096 4194304 819200 723600 0 723600 0
N ERECOVERY/
512 512 4096 4194304 184320 113148 30720 41214 0
Y OCR_VOTE/
512 512 4096 4194304 409600 365736 0 365736 0
N RECOVERY/
ASMCMD [+] > exit
Started at 7:05PM
SQL> create pluggable database PDBQA from db1m@db1m_link;
SQL>
Check space
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>
Finished at 8:45PM
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Session altered.
SQL> @noncdb1945o_pdb.sql
Elapsed: 00:00:00.02
13:35:44 SQL>
13:35:44 SQL> WHENEVER SQLERROR CONTINUE;
13:35:44 SQL>
13:35:44 SQL>
13:35:44 SQL>
13:35:44 SQL> -- restore old settings
13:35:44 SQL> START ncdb2pdb.settings.sql
13:35:44 SQL> set appinfo OFF
13:35:44 SQL> set appinfo "SQL*Plus"
13:35:44 SQL> set arraysize 15
13:35:44 SQL> set autocommit OFF
13:35:44 SQL> set autoprint OFF
13:35:44 SQL> set autorecovery OFF
13:35:44 SQL> set autotrace OFF
13:35:44 SQL> set blockterminator "."
13:35:44 SQL> set cmdsep OFF
13:35:44 SQL> set colinvisible OFF
13:35:44 SQL> set colsep " "
13:35:44 SQL> set compatibility NATIVE
13:35:44 SQL> set concat "."
13:35:44 SQL> set copycommit 0
13:35:44 SQL> set copytypecheck ON
13:35:44 SQL> set define "&"
13:35:44 SQL> set describe DEPTH 1 LINENUM OFF INDENT ON
13:35:44 SQL> set echo ON
13:35:44 SQL> set editfile "afiedt.buf"
13:35:44 SQL> set embedded OFF
13:35:44 SQL> set escape OFF
13:35:44 SQL> set escchar OFF
13:35:44 SQL> set exitcommit ON
13:35:44 SQL> set feedback ON
13:35:44 SQL> set flagger OFF
13:35:44 SQL> set flush ON
13:35:44 SQL> set fullcolname OFF
13:35:44 SQL> set heading ON
13:35:44 SQL> set headsep "|"
13:35:44 SQL> set linesize 80
13:35:44 SQL> set lobprefetch 0
13:35:44 SQL> set logsource ""
13:35:44 SQL> set long 80
13:35:44 SQL> set longchunksize 80
13:35:44 SQL> set markup HTML OFF HEAD "<style type='text/css'> body
{font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} p
{font:10pt Arial,Helvetica,sans-serif; color:black; background:White;}
table,tr,td {font:10pt Arial,Helvetica,sans-serif; color:Black;
background:#f7f7e7; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} th
{font:bold 10pt Arial,Helvetica,sans-serif; color:#336699;
background:#cccc99; padding:0px 0px 0px 0px;} h1 {font:16pt
Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White;
border-bottom:1px solid #cccc99; margin-top:0pt; margin-bottom:0pt;
padding:0px 0px 0px 0px;-
13:35:44 > } h2 {font:bold 10pt Arial,Helvetica,Geneva,sans-serif;
color:#336699; background-color:White; margin-top:4pt; margin-bottom:0pt;} a
{font:9pt Arial,Helvetica,sans-serif; color:#663300; background:#ffffff;
margin-top:0pt; margin-bottom:0pt; vertical-
align:top;}</style><title>SQL*Plus Report</title>" BODY "" TABLE "border='1'
width='90%' align='koter' summary='Script output'" SPOOL OFF ENTMAP ON PRE
OFF
13:35:44 SQL> set markup CSV OFF DELIMITER , QUOTE ON
13:35:44 SQL> set newpage 1
13:35:44 SQL> set null ""
13:35:44 SQL> set numformat ""
13:35:44 SQL> set numwidth 10
13:35:44 SQL> set pagesize 100
13:35:44 SQL> set pause OFF
13:35:44 SQL> set recsep WRAP
13:35:44 SQL> set recsepchar " "
13:35:44 SQL> set rowprefetch 1
13:35:44 SQL> set securedcol OFF
13:35:44 SQL> set serveroutput ON SIZE UNLIMITED FORMAT WORD_WRAPPED
13:35:44 SQL> set shiftinout invisible
13:35:44 SQL> set showmode OFF
13:35:44 SQL> set sqlblanklines OFF
13:35:44 SQL> set sqlcase MIXED
13:35:44 SQL> set sqlcontinue "> "
13:35:44 SQL> set sqlnumber ON
13:35:44 SQL> set sqlpluscompatibility 12.2.0
13:35:44 SQL> set sqlprefix "#"
13:35:44 SQL> set sqlprompt "SQL> "
13:35:44 SQL> set sqlterminator ";"
13:35:44 SQL> set statementcache 0
13:35:44 SQL> set suffix "sql"
13:35:44 SQL> set tab OFF
13:35:44 SQL> set termout ON
13:35:44 SQL> set time OFF
SQL> set timing OFF
SQL> set trimout ON
SQL> set trimspool ON
SQL> set underline "-"
SQL> set verify OFF
SQL> set wrap ON
SQL> set xmloptimizationcheck OFF
SQL>
SQL>
NAME OPEN_MODE
---------- ----------
PDB$SEED READ ONLY
PDBQA READ WRITE
PDB$SEED READ ONLY
PDBQA READ WRITE
PARAMETER VALUE
------------------------------ ------------------------------
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
SQL> SQL>
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
06-FEB-18 08.49.57.392374 PM PDBQA
Parameter CDB parameter compatible zoroma
tch: Previous '12.1.0.2.0' Cur
rent '12.2.0'
NAME NAME
TYPE VALUE TYPE VALUE
------------------------------------ ------------------------------------
----------- ------------------------ ----------- ------------------------
------ ------
compatible compatible
string 12.2.0 string 12.2.0
noncdb_compatible noncdb_compatible
boolean FALSE boolean FALSE
SQL> SQL>
NAME NAME
TYPE VALUE TYPE VALUE
------------------------------------ ------------------------------------
----------- ------------------------ ----------- ------------------------
------ ------
transactions transactions
integer 1082 integer 1082
transactions_per_rollback_segment transactions_per_rollback_segment
integer 5 integer 5
SQL> SQL>
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
NAME NAME
TYPE VALUE TYPE VALUE
---------------------------------- ------------------------------------
-- ----------- ------------------- ----------- -------------------------
----------- -----
temp_undo_enabled temp_undo_enabled
boolean FALSE boolean TRUE
SQL> SQL>
NAME
TYPE VALUE
----------------------------------
-- ----------- ------------------- SQL> alter system set
----------- temp_undo_enabled=FALSE sid='*'
temp_undo_enabled scope=both;
boolean FALSE
SQL> System altered.
SQL>
show parameter temp_undo;
NAME
TYPE VALUE
------------------------------------
----------- -------------------------
-----
temp_undo_enabled
boolean FALSE
SQL> SQL>
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
18
NAME NAME
TYPE VALUE TYPE VALUE
------------------------------------ ----------------------------------
----------- ------------------------- -- ----------- -------------------
----- -----------
open_cursors open_cursors
integer 300 integer 300
session_cached_cursors session_cached_cursors
integer 50 integer 200
SQL> alter system set SQL>
session_cached_cursors=200 sid='*'
scope=both;
alter system set
session_cached_cursors=200 sid='*'
scope=both
*
ERROR at line 1:
ORA-02096: specified initialization
parameter is not modifiable with this
option
System altered.
NAME NAME
TYPE VALUE TYPE VALUE
---------------------------------- ------------------------------------
-- ----------- ------------------- ----------- -------------------------
----------- -----
job_queue_processes job_queue_processes
integer 4000 integer 1000
SQL> SQL>
SQL> alter system set
job_queue_processes=4000 sid='*'
scope=spfile;
System altered.
SQL>
*
ERROR at line 1:
ORA-01780: string literal required
NAME
TYPE VALUE
------------------------------------
----------- -------------------------
-----
cursor_sharing
string EXACT
SQL>
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
Parameter CDB parameter parallel_max_servers zoromatch:
Previous 206 Cu
rrent 320
NAME NAME
TYPE VALUE TYPE VALUE
---------------------------------- ------------------------------------
-- ----------- ------------------- ----------- -------------------------
----------- -----
parallel_max_servers parallel_max_servers
integer 320 integer 206
SQL> SQL>
parallel_max_servers
integer 206
SQL> alter system set
parallel_max_servers=320 sid='*'
scope=both;
System altered.
SQL>
NAME
TYPE VALUE
------------------------------------
----------- -------------------------
-----
parallel_max_servers
integer 320
SQL>
SQL>
stalled APEX.
Please contact Oracle Support.
nt 0
Please check the parameter in the current CDB
rent '12.2.0'
Please check the parameter in the current CDB
82
Please check the parameter in the current CDB
ent FALSE
Please check the parameter in the current CDB
Current 50
rrent 4000
Please check the parameter in the current CDB
ent 'EXACT'
Please check the parameter in the current CDB
rrent 320
Please check the parameter in the current CDB
18
Please check the parameter in the current CDB
equires noncdb1945o_pdb.sql be r
un.
Run noncdb1945o_pdb.sql.
14 rows selected.
stalled APEX.
Please contact Oracle Support.
nt 0
Please check the parameter in the current CDB
rent '12.2.0'
Please check the parameter in the current CDB
82
Please check the parameter in the current CDB
ent FALSE
Please check the parameter in the current CDB
Current 50
rrent 4000
Please check the parameter in the current CDB
ent 'EXACT'
Please check the parameter in the current CDB
rrent 320
Please check the parameter in the current CDB
18
Please check the parameter in the current CDB
un.
Run noncdb1945o_pdb.sql.
14 rows selected.
SQL>
NAME
------------------------------
CDBZORO
PARAMETER VALUE
------------------------------ ------------------------------
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
CON_NAME
------------------------------
PDBQA
SQL> col PARAMETER for a30
SQL> col VALUE for a30
SQL> select * from nls_database_parameters where parameter like
'%CHARACTERSET';
PARAMETER VALUE
------------------------------ ------------------------------
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
SQL>