RAC Database From 12.1 To 12.2 - Workshop

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

Steps to db1m database to 12.2 and migration.

Ref: 12c Release 2 (12.2) E86577-02 December 2017


Ref

Document Change Log


Revision Date Author Description of change

1.0 2018-02-05 Joshua Ehiguese Document Creation.

Space issue remove db1c datafile folder in asm


SQL> select name from v$database;

NAME
---------
CDBZORO

SQL> show parameter db_create_file_dest;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
db_create_file_dest string +EDATA
SQL> show parameter recovery;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +ERECOVERY
db_recovery_file_dest_size big integer 70G
recovery_parallelism integer 0
remote_recovery_file_dest string
SQL> select name from v$database;

NAME
---------
CDBZORO

SQL> create pluggable database PDBQA from db1m@db1m_link;


create pluggable database PDBQA from db1m@db1m_link
*
ERROR at line 1:
ORA-65169: error encountered while attempting to copy file
+EDATA/DB1M/DATAFILE/zoro_nolog_data.838.908882221
ORA-19504: failed to create file "+EDATA"
ORA-17502: ksfdcre:4 Failed to create file +EDATA
ORA-15041: diskgroup "EDATA" space exhausted

SQL> show pdbs;

CON_ID CON_NAME OPEN MODE RESTRICTED


---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO

Db1m is 500GB

rzrackokodbn2:db1m} $ export ORACLE_SID=db1m2


{noden2:db1m2} $ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Tue Feb 6 18:46:29 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> SELECT SUM(bytes)/1024/1024/1024 FROM sys.dba_segments ;

SUM(BYTES)/1024/1024/1024
-------------------------
540.631226

SQL>

Shutdown db1c and renive the datafile folder in asm.

{noden1:db1c} $ export ORACLE_SID=db1c1


{noden1:db1c1} $ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Tue Feb 6 18:22:48 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> SELECT count(*) FROM GV$SESSION WHERE USERNAME NOT IN


('SYS','SYSTEM','DBSNMP') and status='ACTIVE';

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> create pluggable database PDBQA from db1m@db1m_link;


create pluggable database PDBQA from db1m@db1m_link
*
ERROR at line 1:
ORA-01119: error in creating database file '+EDATA'
ORA-17502: ksfdcre:4 Failed to create file +EDATA
ORA-15041: diskgroup "EDATA" space exhausted

SQL>

Removed db1x datafile.

SMCMD [+EDATA] > ls


DB1C/
DB1X/
DB1M/
cdbzoro/
kokodb/
ASMCMD [+EDATA] > cd DB1X
ASMCMD [+EDATA/DB1X] > ls
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
PASSWORD/
TEMPFILE/
ASMCMD [+EDATA/DB1X] > rm -rf DATAFILE
ASMCMD [+EDATA/DB1X]

Check space

ASMCMD-8022: unknown command 'ls-s' specified


ASMCMD [+] > lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB
Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 4194304 573440 436320
0 436320 0 N DATA/
MOUNTED EXTERN N 512 512 4096 4194304 2252800 1093484
0 1093484 0 N EDATA/
MOUNTED EXTERN N 512 512 4096 4194304 819200 723580
0 723580 0 N ERECOVERY/
MOUNTED NORMAL N 512 512 4096 4194304 184320 113132
30720 41206 0 Y OCR_VOTE/
MOUNTED EXTERN N 512 512 4096 4194304 409600 365736
0 365736 0 N RECOVERY/
ASMCMD [+] >

Try again at 8:05 pm


{noden1:cdbzoro1} $ . oraenv
ORACLE_SID = [cdbzoro1] ? cdbzoro
The Oracle base remains unchanged with value /u01/oracle
{noden1:cdbzoro} $ export ORACLE_SID=cdbzoro1
{noden1:cdbzoro1} $ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Tue Feb 6 20:05:57 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL*Plus: Release 12.2.0.1.0 Production on Tue Feb 6 20:05:57 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> create pluggable database PDBQA from db1m@db1m_link;

Pluggable database created.

SQL>

Finished at 8:45PM

Run post script at the pdb level.


Note:Set Linux screen and putty keep alive due to nero timeout.
{noden1:cdbwe81} $ cd /u01/oracle/product/12.2.0.1_kokokodb/rdbms/admin
{noden1:cdbwe81} $ ls -ltr | grep -i noncdb
-rw-r--r-- 1 oracle oinstall 20530 Mar 22 2016 noncdb1945o_pdb.sql
{noden1:cdbwe81} $ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 2 13:08:02 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> show pdbs;

CON_ID CON_NAME OPEN MODE RESTRICTED


---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
4 PDBG MOUNTED
SQL> alter session set container=PDBQA;

Session altered.

SQL> @noncdb1945o_pdb.sql

PL/SQL procedure successfully completed.

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>

tail the alert log.


{noden1:kokodb} $ tail -f alert_cdbwe81.log
PDBG(4):Completed: alter pluggable database "PDBG" open upgrade
2018-02-02T13:35:42.621653-05:00
PDBG(4):alter pluggable database "PDBG" close immediate instances=all
2018-02-02T13:35:42.708073-05:00
PDBG(4):JIT: pid 26320 requesting stop
2018-02-02T13:35:44.217541-05:00
PDBG(4):detach called for domid 4 (domuid: 0x909ad4e8, options: 0x0, pid:
26320)
PDBG(4):queued detach broadcast request 0x164a419b0
2018-02-02T13:35:44.417714-05:00
freeing rdom 4
2018-02-02T13:35:44.726144-05:00
Pluggable database PDBG closed
2018-02-02T13:35:44.731247-05:00
PDBG(4):Completed: alter pluggable database "PDBG" close immediate
instances=all

Open all the pdbs instances in read and write mode.

SQL> show pdbs;

CON_ID CON_NAME OPEN MODE RESTRICTED


---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDBQA MOUNTED
SQL> alter pluggable database PDBQA open instances=all;

Pluggable database altered.

SQL> col name for a10


SQL> select name,open_mode from gv$pdbs;

NAME OPEN_MODE
---------- ----------
PDB$SEED READ ONLY
PDBQA READ WRITE
PDB$SEED READ ONLY
PDBQA READ WRITE

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> SQL>

Review the alertlog and stop the tail.


rrent size.
2018-02-06T21:55:24.234245-05:00
PDBQA(3):[30036] Successfully onlined Undo Tablespace 2.
PDBQA(3):Undo initialization finished serial:0 start:1771283307
end:1771284857 diff:1550 ms (1.5 seconds)
PDBQA(3):Database Characterset for PDBQA is WE8MSWIN1252
2018-02-06T21:55:26.429569-05:00
PDBQA(3):Opatch validation is skipped for PDB PDBQA (con_id=0)
PDBQA(3):***************************************************************
PDBQA(3):WARNING: Pluggable Database PDBQA with pdb id - 3 is
PDBQA(3): altered with errors or warnings. Please look into
PDBQA(3): PDB_PLUG_IN_VIOLATIONS view for more details.
PDBQA(3):***************************************************************
2018-02-06T21:55:45.137242-05:00
PDBQA(3):Opening pdb with no Resource Manager plan active
2018-02-06T21:55:48.982077-05:00
Pluggable database PDBQA opened read write

Review the violations cdb level

SQL> COLUMN time FORMAT A30


COLUMN name FORMAT A30
COLUMN cause FORMAT A30
COLUMN message FORMAT A30
SQL> SQL> SQL> SQL>
SQL> SELECT time, name, cause, message
FROM pdb_plug_in_violations
WHERE time > TRUNC(SYSTIMESTAMP)
ORDER BY time;
2 3 4
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
06-FEB-18 08.49.57.392374 PM PDBQA
APEX APEX zoromatch: PDB has install
ed common APEX. CDB has not in
stalled APEX.

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter processes zoromat
ch: Previous 300 Current 640

Connected to: SQL> show pdbs;


Oracle Database 12c Enterprise
Edition Release 12.2.0.1.0 - 64bit CON_ID CON_NAME
Production OPEN MODE RESTRICTED
---------- -------------------------
SQL> select instance_name, status ----- ---------- ----------
from gv$instance; 3 PDBQA
READ WRITE NO
INSTANCE_NAME STATUS SQL> show parameter process;;
---------------- ------------ SQL>
cdbzoro1 OPEN show parameter process;
cdbzoro2 OPEN SQL>
NAME
SQL> show pdbs; TYPE VALUE
------------------------------------
CON_ID CON_NAME ----------- ------------------------
OPEN MODE RESTRICTED ------
---------- ------------------------- aq1945m_processes
----- ---------- ---------- integer 1
2 PDB$SEED asm_io_processes
READ ONLY NO integer 20
3 PDBQA cell_offload_processing
READ WRITE NO boolean TRUE
SQL> show parameter process; db_writer_processes
integer 1
NAME gcs_server_processes
TYPE VALUE integer 2
------------------------------------ global1945xn_processes
----------- ------------------------ integer 1
------ job_queue_processes
aq1945m_processes integer 1000
integer 1 log_archive_max_processes
asm_io_processes integer 4
integer 20 processes
cell_offload_processing integer 640
boolean TRUE processor_group_name
db_writer_processes string
integer 1 SQL>
gcs_server_processes
integer 2
global1945xn_processes
integer 1
job_queue_processes
integer 4000
log_archive_max_processes
integer 4
processes
integer 640
processor_group_name
string
SQL>
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
06-FEB-18 08.49.57.392374 PM PDBQA
Parameter CDB parameter memory1945arget mi
smatch: Previous 20G Current 0

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter memory_max1945arge
t zoromatch: Previous 20G Curre
nt 0

SQL> show parameter mem; SQL> show parameter mem;


;
NAME
NAME TYPE VALUE
TYPE VALUE ------------------------------------
------------------------------------ ----------- ------------------------
----------- ------------------------ ------
------ hi_shared_memory_address
hi_shared_memory_address integer 0
integer 0 inmemory_adg_enabled
inmemory_adg_enabled boolean TRUE
boolean TRUE inmemory_clause_default
inmemory_clause_default string
string inmemory_expressions_usage
inmemory_expressions_usage string ENABLE
string ENABLE inmemory_force
inmemory_force string DEFAULT
string DEFAULT inmemory_max_populate_servers
inmemory_max_populate_servers integer 0
integer 0 inmemory_query
inmemory_query string ENABLE
string ENABLE inmemory_size
inmemory_size big integer 0
big integer 0 inmemory1945rickle_repopulate_server
inmemory1945rickle_repopulate_server s_ integer 1
s_ integer 1 perkot
perkot inmemory_virtual_columns
inmemory_virtual_columns string MANUAL
string MANUAL
NAME
NAME TYPE VALUE
TYPE VALUE ------------------------------------
------------------------------------ ----------- ------------------------
----------- ------------------------ ------
------ memory_max1945arget
memory_max1945arget big integer 0
big integer 0 memory1945arget
memory1945arget big integer 0
big integer 0 optimizer_inmemory_aware
optimizer_inmemory_aware boolean TRUE
boolean TRUE
shared_memory_address shared_memory_address
integer 0 integer 0
SQL> 1* select instance_name, SQL>
status from gv$instance
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'

SQL> show parameter compatibl; SQL> show parameter compatibl;

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>

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter transactions zoro
match: Previous 528 Current 10
82

SQL> show parameter transactions; SQL> show parameter transactions;

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
------------------------------ ------------------------------

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter temp_undo_enable
d zoromatch: Previous TRUE Curr
ent FALSE

show parameter temp_undo; SQL> show parameter temp_undo;

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>

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter _ash_size zoromat
ch: Previous 96M Current 10486

TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
18

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter session_cached_cursors
zoromatch: Previous 200
Current 50

SQL> show parameter cursors; QL> show parameter cursors;

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

SQL> alter system set


session_cached_cursors=200 sid='*'
scope=spfile;

System altered.

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter job_queue_processes
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
ses zoromatch: Previous 1000 Current 4000

SQL> show parameter SQL> show parameter


job_queue_process; job_queue_process;

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>

06-FEB-18 08.49.57.392374 PM PDBQA


Parameter CDB parameter cursor_sharing zoromatch:
Previous 'FORCE' Current 'EXACT'

SQL> ALTER SYSTEM SET System altered.


cursor_sharing=FORCE SCOPE=BOTH
SID=*; SQL> show parameter cursor_sharing
ALTER SYSTEM SET cursor_sharing=FORCE ;
SCOPE=BOTH SID=*
NAME
* TYPE VALUE
ERROR at line 1: ----------------------------------
ORA-01780: string literal required -- ----------- -------------------
-----------
cursor_sharing
SQL> ALTER SYSTEM SET cursor_sharing string FORCE
='FORCE' SCOPE=BOTH SID=*; SQL>
ALTER SYSTEM SET cursor_sharing
='FORCE' SCOPE=BOTH SID=*

*
ERROR at line 1:
ORA-01780: string literal required

SQL> show parameter cursor_sharing;

NAME
TYPE VALUE
------------------------------------
----------- -------------------------
-----
cursor_sharing
string EXACT
SQL>

06-FEB-18 08.49.57.392374 PM PDBQA

TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
Parameter CDB parameter parallel_max_servers zoromatch:
Previous 206 Cu
rrent 320

SQL> SQL> show parameter SQL> show parameter


parallel_max_servers ; parallel_max_servers ;

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>

SQL> show parameter


parallel_max_servers;

NAME
TYPE VALUE
------------------------------------
----------- -------------------------
-----
parallel_max_servers
integer 320
SQL>

06-FEB-18 09.52.16.225349 PM PDBQA


Service Name Conflict Service name or network name o
f service db1mXDB in the PDB i
s invalid or conflicts with an
existing service name or netw
TIME NAME
------------------------------ ------------------------------
CAUSE MESSAGE
------------------------------ ------------------------------
ork name in the CDB.

06-FEB-18 09.55.24.733222 PM PDBQA


Non-CDB to PDB PDB plugged in is a non-CDB, r
equires noncdb1945o_pdb.sql be r
un.
14 rows selected.

SQL>

Review the violations again after changes and database restart.

SQL> SET LINESIZE 200


COLUMN time FORMAT A30
COLUMN name FORMAT A30
COLUMN cause FORMAT A30
COLUMN message FORMAT A30
SQL> SQL> SQL> SQL> SQL>
SQL> select NAME,CAUSE,TYPE,ERROR_NUMBER,MESSAGE,STATUS,ACTION from
PDB_PLUG_IN_
VIOLATIONS;

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
PDBQA APEX ERROR
0 APEX zoromatch: PDB has install RESOLVED

ed common APEX. CDB has not in

stalled APEX.
Please contact Oracle Support.

PDBQA Parameter WARNING


0 CDB parameter processes zoromat RESOLVED

ch: Previous 300 Current 640


Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
PDBQA Parameter WARNING
0 CDB parameter memory1945arget mi RESOLVED

smatch: Previous 20G Current 0


Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter memory_max1945arge RESOLVED

t zoromatch: Previous 20G Curre

nt 0
Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
PDBQA Parameter WARNING
0 CDB parameter compatible zoroma RESOLVED

tch: Previous '12.1.0.2.0' Cur

rent '12.2.0'
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter transactions zoro RESOLVED

match: Previous 528 Current 10

82
Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
PDBQA Parameter WARNING
0 CDB parameter temp_undo_enable RESOLVED

d zoromatch: Previous TRUE Curr

ent FALSE
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter session_cached_c RESOLVED

ursors zoromatch: Previous 200

Current 50

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter job_queue_proces RESOLVED

ses zoromatch: Previous 1000 Cu

rrent 4000
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter cursor_sharing m RESOLVED

ismatch: Previous 'FORCE' Curr

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------

ent 'EXACT'
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter parallel_max_ser RESOLVED

vers zoromatch: Previous 206 Cu

rrent 320
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter _ash_size zoromat RESOLVED

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------

ch: Previous 96M Current 10486

18
Please check the parameter in the current CDB

PDBQA Non-CDB to PDB ERROR


0 PDB plugged in is a non-CDB, r RESOLVED

equires noncdb1945o_pdb.sql be r

un.
Run noncdb1945o_pdb.sql.

NAME CAUSE TYPE


ERROR_NU
MBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
----
---- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----------------------------------------
PDBQA Service Name Conflict WARNING
0 Service name or network name o PENDING

f service db1mXDB in the PDB i


s invalid or conflicts with an

existing service name or netw

ork name in the CDB.


Drop the service and recreate it with an appropriate name.

14 rows selected.

SQL> select NAME,CAUSE,TYPE,ERROR_NUMBER,MESSAGE,STATUS,ACTION from


PDB_PLUG_IN_VIOLATIONS;

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------
PDBQA APEX ERROR
0 APEX zoromatch: PDB has install RESOLVED

ed common APEX. CDB has not in

stalled APEX.
Please contact Oracle Support.

PDBQA Parameter WARNING


0 CDB parameter processes zoromat RESOLVED

ch: Previous 300 Current 640


Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------
PDBQA Parameter WARNING
0 CDB parameter memory1945arget mi RESOLVED

smatch: Previous 20G Current 0


Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter memory_max1945arge RESOLVED

t zoromatch: Previous 20G Curre

nt 0
Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------
PDBQA Parameter WARNING
0 CDB parameter compatible zoroma RESOLVED

tch: Previous '12.1.0.2.0' Cur

rent '12.2.0'
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter transactions zoro RESOLVED

match: Previous 528 Current 10

82
Please check the parameter in the current CDB

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------

PDBQA Parameter WARNING


0 CDB parameter temp_undo_enable RESOLVED

d zoromatch: Previous TRUE Curr

ent FALSE
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter session_cached_c RESOLVED

ursors zoromatch: Previous 200

Current 50

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter job_queue_proces RESOLVED

ses zoromatch: Previous 1000 Cu

rrent 4000
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter cursor_sharing m RESOLVED

ismatch: Previous 'FORCE' Curr

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------

ent 'EXACT'
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter parallel_max_ser RESOLVED

vers zoromatch: Previous 206 Cu

rrent 320
Please check the parameter in the current CDB

PDBQA Parameter WARNING


0 CDB parameter _ash_size zoromat RESOLVED

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------

ch: Previous 96M Current 10486

18
Please check the parameter in the current CDB

PDBQA Non-CDB to PDB ERROR


0 PDB plugged in is a non-CDB, r RESOLVED
equires noncdb1945o_pdb.sql be r

un.
Run noncdb1945o_pdb.sql.

NAME CAUSE TYPE


ERROR_NUMBER MESSAGE STATUS
------------------------------ ------------------------------ --------- ----
-------- ------------------------------ ---------
ACTION
----------------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------
PDBQA Service Name Conflict WARNING
0 Service name or network name o PENDING

f service db1mXDB in the PDB i

s invalid or conflicts with an

existing service name or netw

ork name in the CDB.


Drop the service and recreate it with an appropriate name.

14 rows selected.

SQL>

Lets ignore the above violations for now an move on


Confirm nls character set. For PDBQA.
CON_NAME
------------------------------
CDB$ROOT
SQL> select name from v$database;

NAME
------------------------------
CDBZORO

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> alter session set container=PDBQA;


Session altered.

SQL> show con_name;

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>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy