Quantcast
Channel: Donghua's Blog - DBAGlobe
Viewing all 604 articles
Browse latest View live

19c New Features Memoptimized Rowstore Fast Ingest

$
0
0
Summary:
  • Regular insert (per row commit): Elapsed: 14:47.37
  • Regular insert (batch commit): Elapsed: 04:34.80
  • Memoptimized Rowstore Fast Insert (per row commit): Elapsed: 04:27.56

Test Script

createtable test_normal_ingest (
idnumber primary key,
test_col varchar2(15));


declare
inumber(9,0);

begin
foriin1..10000000
loop
insert/*+ normal_write */into test_normal_ingest values (i, 'test');

commit;
endloop;
end;
/

createtable test_normal_ingest_batch (
idnumber primary key,
test_col varchar2(15));


declare
inumber(9,0);

begin
foriin1..10000000
loop
insert/*+ normal_write */into test_normal_ingest_batch values (i, 'test');

endloop;
commit;
end;
/


createtable test_fast_ingest (
idnumber primary key,
test_col varchar2(15))
segmentcreationimmediate
memoptimize for write;


declare
inumber(9,0);

begin
foriin1..10000000
loop
insert/*+ MEMOPTIMIZE_WRITE */into test_fast_ingest values (i, 'test');

commit;
endloop;
end;
/
Test Output:
Regular insert (per row commit): Elapsed: 14:47.37

SQL> create table test_normal_ingest (
2 id number primary key,
3 test_col varchar2(15));

Table created.

Elapsed: 00:00:00.01
SQL>
SQL> declare
2 i number(9,0);
3 begin
4 for i in 1..10000000
5 loop
6 insert /*+ normal_write */ into test_normal_ingest values (i, 'test');
7 commit;
8 end loop;
9 end;
10 /

PL/SQL procedure successfully completed.

Elapsed: 00:14:47.37
Regular insert (batch commit): Elapsed: 04:34.80

SQL> create table test_normal_ingest_batch (
2 id number primary key,
3 test_col varchar2(15));

Table created.

Elapsed: 00:00:00.01
SQL>
SQL> declare
2 i number(9,0);
3 begin
4 for i in 1..10000000
5 loop
6 insert /*+ normal_write */ into test_normal_ingest_batch values (i, 'test');
7 end loop;
8 commit;
9 end;
10 /

PL/SQL procedure successfully completed.
Elapsed: 00:04:34.80
Memoptimized Rowstore Fast Insert (per row commit): Elapsed: 04:27.56

SQL> create table test_fast_ingest (
2 id number primary key,
3 test_col varchar2(15))
4 segment creation immediate
5 memoptimize for write;

Table created.

Elapsed: 00:00:00.28
SQL>
SQL> declare
2 i number(9,0);
3 begin
4 for i in 1..10000000
5 loop
6 insert /*+ MEMOPTIMIZE_WRITE */ into test_fast_ingest values (i, 'test');
7 commit;
8 end loop;
9 end;
10 /

PL/SQL procedure successfully completed.

Elapsed: 00:04:27.56
DB Setting:

SQL> show parameter  large_pool_size                      big integer 1G

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
large_pool_size big integer 1G


SQL> select total_size,used_space,free_space from v$memoptimize_write_area;

TOTAL_SIZE USED_SPACE FREE_SPACE
---------- ---------- ----------
2154823680 1212896 2153610784


Reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/tgdba/tuning-system-global-area.html#GUID-CFADC9EA-2E2F-4EBB-BA2C-3663291DCC25



18c New Features - Memoptimized rowstore fast lookup

$
0
0

Fast lookup enables fast data retrieval from database tables for applications, such as Internet of Things (IoT) applications.

Fast lookup uses a hash index that is stored in the SGA buffer area called memoptimize pool to provide fast access to blocks of tables permanently pinned in the buffer cache, thus avoiding disk I/O and improving query performance.


Reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/tgdba/tuning-system-global-area.html#GUID-E46EF11C-E999-4277-950F-E78EEC895ABB


Execution Plan with memoptimized read fast lookup

SQL> show parameter memoptimize_pool_size

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
memoptimize_pool_size big integer 400M


SQL> alter table test_fast_ingest memoptimize for read;

Table altered.

SQL> select * from test_fast_ingest where id=1;

ID TEST_COL
---------- ---------------
1 test

Elapsed: 00:00:00.01

Execution Plan
----------------------------------------------------------
Plan hash value: 1177632651

-----------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-----------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 22 | 2 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID READ OPTIM| TEST_FAST_INGEST | 1 | 22 | 2 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN READ OPTIM | SYS_C008161 | 1 | | 1 (0)| 00:00:01 |
-----------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

2 - access("ID"=1)


Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
4 consistent gets
0 physical reads
0 redo size
487 bytes sent via SQL*Net to client
392 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed


Execution Plan without memoptimize

SQL> alter table test_fast_ingest no memoptimize for read;

Table altered.

Elapsed: 00:00:00.01
SQL> /* take 2nd execution output, avoid overhead with SQL parsing */
SQL> select * from test_fast_ingest where id=1;

ID TEST_COL
---------- ---------------
1 test

Elapsed: 00:00:00.01

Execution Plan
----------------------------------------------------------
Plan hash value: 1177632651

------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 22 | 2 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| TEST_FAST_INGEST | 1 | 22 | 2 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN | SYS_C008161 | 1 | | 1 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

2 - access("ID"=1)


Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
4 consistent gets
0 physical reads
0 redo size
487 bytes sent via SQL*Net to client
392 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processe

19c New Features: Same table enabled for both memoptimized read and write

$
0
0

SQL> select memoptimize_read,memoptimize_write from dba_tables where table_name='TEST_FAST_INGEST';

MEMOPTIM MEMOPTIM
-------- --------
ENABLED  ENABLED

SQL> alter table test_fast_ingest no memoptimize for read;

Table altered.


SQL> alter table test_fast_ingest no memoptimize for write;

Table altered.


SQL> select memoptimize_read,memoptimize_write from dba_tables where table_name='TEST_FAST_INGEST';

MEMOPTIM MEMOPTIM
-------- --------
DISABLED DISABLED

SQL> alter table test_fast_ingest memoptimize for read;

Table altered.

SQL> alter table test_fast_ingest memoptimize for write;

Table altered.

SQL> select memoptimize_read,memoptimize_write from dba_tables where table_name='TEST_FAST_INGEST';

MEMOPTIM MEMOPTIM
-------- --------
ENABLED  ENABLED


SQL Developer 19.4 onwards new features - CODESCAN

$
0
0
SQL> help codescan
SET CODESCAN
---------

set CODESCAN ALL | NONE
            |SQLINJECTION [ON | OFF]
        Controls warning messages issued for code quality issues.
        ALL or SQLINJECTION ON turns on warnings for possible SQL injection vulnerabilities.
        NONE or SQLINJECTION OFF disables warnings.
        Default is ALL.


SQL> create or replace procedure p(name in varchar2)
  2  as
  3  begin
  4    execute immediate 'select * from t1 where id1='''||name||'''';
  5  end;
  6* /


SQLcl security warning: SQL injection NAME line 1 -> NAME line 4

Procedure P compiled


ORA-30009: Not enough memory for CONNECT BY operation

$
0
0
When using connect by to generate large amount testing dataset, it can easier hit error: "ORA-30009: Not enough memory for CONNECT BY operation".

SQL> create table t1 as
  2  select level as id,rpad('a',10,'a') as value
  3  from dual
  4  connect by level <=1000000;
Table created.
SQL> create table t1 as
  2  select level as id, rpad('a',20,'a')  as value
  3  from dual
  4  connect by level <=10000000;
from dual
     *
ERROR at line 3:
ORA-30009: Not enough memory for CONNECT BY operation

Below is the workaround to bypass the issue:

SQL> create table t1 as
  2  select rownum as id, rpad('a',20,'a') as value from
  3  (select level from dual connect by level <=10000),
  4  (select level from dual connect by level <=10000);
Table created.

SQL> select count(*) from t1;

COUNT(*)
----------
100000000

SQL> select bytes from dba_segments where owner='DONGHUA' and segment_name='T1';
     BYTES
----------
3690987520

"Move online including rows" vs traditional "delete + move";

$
0
0
Setup:

create table t1 as
select rownum as id, rpad('a',20,'a') as value from 
(select level from dual connect by level <=10000),
(select level from dual connect by level <=10000);

create table t2 as
select rownum as id, rpad('a',20,'a') as value from 
(select level from dual connect by level <=10000),
(select level from dual connect by level <=10000);


Delete+Move Performance: (Total: 7 minutes 8 seconds)

SQL> delete from t1 where mod(id,10)<>0;
90000000 rows deleted.
Elapsed: 00:05:38.24

SQL> commit;
Commit complete.
Elapsed: 00:00:00.09

SQL> alter table t1 move online;
Table altered.
Elapsed: 00:01:29.39

SQL> select bytes from dba_segments where owner='DONGHUA' and segment_name='T1';
     BYTES
----------
 369098752

SQL> select * from t1 fetch first 5 rows only;
        ID VALUE
---------- --------------------
        10 aaaaaaaaaaaaaaaaaaaa
        20 aaaaaaaaaaaaaaaaaaaa
        30 aaaaaaaaaaaaaaaaaaaa
        40 aaaaaaaaaaaaaaaaaaaa
        50 aaaaaaaaaaaaaaaaaaaa

Move online + Filter clause: (Total: 1 minutes 45 seconds)

SQL> alter table t2 move online including rows where mod(id,10)=0;
Table altered.
Elapsed: 00:01:45.85

SQL> select bytes from dba_segments where owner='DONGHUA' and segment_name='T2';
     BYTES
----------
 369098752

SQL> select * from t2 fetch first 5 rows only;
        ID VALUE
---------- --------------------
        10 aaaaaaaaaaaaaaaaaaaa
        20 aaaaaaaaaaaaaaaaaaaa
        30 aaaaaaaaaaaaaaaaaaaa
        40 aaaaaaaaaaaaaaaaaaaa
        50 aaaaaaaaaaaaaaaaaaaa

Readonly Oracle Home in 19c

$
0
0
Starting with Oracle Database 18c, you can configure an Oracle home in read-only mode, with following benefits:
  • Enables seamless patching and updating of Oracle databases without extended downtime.
  • Simplifies patching and mass rollout as only one image needs to be updated to distribute a patch to many servers.
  • Simplifies provisioning by implementing separation of installation and configuration.

Environment Variables: (~/.bash_profile)
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/db/dbhome_1
PATH=$PATH:/u01/db/dbhome_1/bin
LD_LIBRARY_PATH=/u01/db/lib
ORACLE_SID=PRORCL
# Read-only Oracle Home
# ORACLE_BASE_CONFIG/dbs contains the configuration files for ORACLE_HOME
ORACLE_BASE_CONFIG=/u01/app/oracle
# user-specific files, instance-specific files, and log files reside
# in ORACLE_BASE_HOME, e.g. networking directores
ORACLE_BASE_HOME=/u01/app/oracle/homes/OraDB19Home1
export ORACLE_BASE ORACLE_HOME PATH LD_LIBRARY_PATH ORACLE_SID
export ORACLE_BASE_CONFIG ORACLE_BASE_HOME
Oracle Home Software Installation

[oracle@db01 stage]$ mkdir -p /u01/db/dbhome_1
[oracle@db01 stage]$ unzip /u01/stage/DB.19.7.GoldImage/db_home_2020-05-16_04-52-09PM.zip -d /u01/db/dbhome_1
[oracle@db01 stage]$ /u01/db/dbhome_1/runInstaller -silent -responseFile /u01/stage/db_install.rsp

Enable Readonly Home
[oracle@db01 stage]$ $ORACLE_HOME/bin/roohctl -enable
Enabling Read-Only Oracle home.
Update orabasetab file to enable Read-Only Oracle home.
Orabasetab file has been updated successfully.
Create bootstrap directories for Read-Only Oracle home.
Bootstrap directories have been created successfully.
Bootstrap files have been processed successfully.
Read-Only Oracle home has been enabled successfully.

Check the log file /u01/app/oracle/cfgtoollogs/roohctl/roohctl-200707AM032033.log for more details.

Create Listener & DB
# Create listener
/u01/db/dbhome_1/bin/netca /orahome /u01/db/dbhome_1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /responseFile /u01/db/dbhome_1/network/install/netca_typ.rsp /lisport 1521 /silent /orahnam OraDB19Home1

# Create Database
/u01/db/dbhome_1/bin/dbca -silent -createDatabase -emConfiguration NONE -templateName 'General_Purpose.dbc' -storageType FS -datafileDestination '/u01/app/oracle/oradata' -datafileJarLocation '/u01/db/dbhome_1/assistants/dbca/templates' -sampleSchema true -oratabLocation /etc/oratab -runCVUChecks false -continueOnNonFatalErrors true -createAsContainerDatabase true -numberOfPDBs 1 -pdbName appdb1 -gdbName 'ORCL' -sid 'PRORCL' -initParams filesystemio_options=setall -ignorePrereqs


Check dbs & network Files Location
[oracle@db01 admin]$ ls -l /u01/app/oracle/dbs/
total 20
-rw-rw---- 1 oracle oinstall 1544 Jul 7 04:02 hc_PRORCL.dat
-rw-r----- 1 oracle oinstall 46 Jul 7 04:02 initPRORCL.ora
-rw-r----- 1 oracle oinstall 24 Jul 7 03:41 lkORCL
-rw-r----- 1 oracle oinstall 2048 Jul 7 03:46 orapwPRORCL
-rw-r----- 1 oracle oinstall 3584 Jul 7 04:02 spfilePRORCL.ora

[oracle@db01 admin]$ ls -l /u01/app/oracle/homes/OraDB19Home1/network/admin/
total 12
-rw-r----- 1 oracle oinstall 362 Jul 7 03:33 listener.ora
-rw-r----- 1 oracle oinstall 190 Jul 7 03:33 sqlnet.ora
-rw-r----- 1 oracle oinstall 875 Jul 7 04:18 tnsnames.ora
Output of "/u01/app/oracle/cfgtoollogs/roohctl/roohctl-200707AM032033.log"
[main] [ 2020-07-07 03:20:33.560 GMT ] [RoohCtl.execute:461] Oracle Home value read from System Properties: /u01/db/dbhome_1
[main] [ 2020-07-07 03:20:33.561 GMT ] [RoohCtl.execute:479] Operation enable
[main] [ 2020-07-07 03:20:33.561 GMT ] [RoohCtl.execute:484] nodeList value read from CLI: null
[main] [ 2020-07-07 03:20:33.704 GMT ] [InventoryUtil.getOUIInvSession:349] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2020-07-07 03:20:33.710 GMT ] [HAUtils.<init>:339] oui location /u01/app/oraInventory/ContentsXML
[main] [ 2020-07-07 03:20:33.716 GMT ] [InventoryUtil.getOUIInvSession:349] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2020-07-07 03:20:33.716 GMT ] [OracleHome.isClientHome:1816] Homeinfo /u01/db/dbhome_1,1
[Finalizer] [ 2020-07-07 03:20:33.766 GMT ] [Util.finalize:136] Util: finalized called for oracle.ops.mgmt.has.Util@d7e7713
[main] [ 2020-07-07 03:20:33.993 GMT ] [HAUtils.<init>:372] isClientHome: false
[main] [ 2020-07-07 03:20:33.994 GMT ] [Version.isPre:757] version to be checked 19.0.0.0.0 major version to check against 10
[main] [ 2020-07-07 03:20:33.994 GMT ] [Version.isPre:768] isPre.java: Returning FALSE
[main] [ 2020-07-07 03:20:33.994 GMT ] [Version.isPre:757] version to be checked 19.0.0.0.0 major version to check against 10
[main] [ 2020-07-07 03:20:33.994 GMT ] [Version.isPre:768] isPre.java: Returning FALSE
[main] [ 2020-07-07 03:20:33.994 GMT ] [Version.isPre:757] version to be checked 19.0.0.0.0 major version to check against 11
[main] [ 2020-07-07 03:20:33.995 GMT ] [Version.isPre:768] isPre.java: Returning FALSE
[main] [ 2020-07-07 03:20:33.995 GMT ] [Version.isPre:789] version to be checked 19.0.0.0.0 major version to check against 11 minor version to check against 2
[main] [ 2020-07-07 03:20:33.995 GMT ] [Version.isPre:798] isPre: Returning FALSE for major version check
[main] [ 2020-07-07 03:20:33.995 GMT ] [UnixSystem.isHAConfigured:3609] olrFileName = /etc/oracle/olr.loc
[main] [ 2020-07-07 03:20:33.995 GMT ] [RoohCtl.checkOracleHomeForConfiguration:592] Oracle restart configured: false
[main] [ 2020-07-07 03:20:33.995 GMT ] [RoohCtl.checkOracleHomeForConfiguration:601] Oracle Grid Infrastructure configured: false
[main] [ 2020-07-07 03:20:33.996 GMT ] [RoohCtl.checkOracleHomeForConfiguration:653] Enumerating oratab file
[main] [ 2020-07-07 03:20:34.011 GMT ] [RoohCtl.checkOracleHomeForConfiguration:682] Created oracle.net.config.Config for Oracle Home: /u01/db/dbhome_1
[main] [ 2020-07-07 03:20:34.014 GMT ] [RoohCtl.processOperation:770] Orabasetab Location: /u01/db/dbhome_1/install/orabasetab
[main] [ 2020-07-07 03:20:34.023 GMT ] [RoohCtl.createModifiedOrabasetab:163] Oracle Home read from orabasetab: /u01/db/dbhome_1
[main] [ 2020-07-07 03:20:34.023 GMT ] [RoohCtl.createModifiedOrabasetab:164] Oracle Base read from orabasetab: /u01/app/oracle
[main] [ 2020-07-07 03:20:34.024 GMT ] [RoohCtl.createModifiedOrabasetab:165] Oracle Home Name read from orabasetab: OraDB19Home1
[main] [ 2020-07-07 03:20:34.024 GMT ] [RoohCtl.processOrabasetab:255] Copying file /u01/db/dbhome_1/install/orabasetab.temp to /u01/db/dbhome_1/install/orabasetab
[main] [ 2020-07-07 03:20:34.025 GMT ] [RoohCtl.processOrabasetab:263] Deleting temp file: /u01/db/dbhome_1/install/orabasetab.temp
[main] [ 2020-07-07 03:20:34.027 GMT ] [OsUtilsBase.deleteFromEnvironment:2304] Removed from env ORACLE_BASE=/u01/app/oracle
[main] [ 2020-07-07 03:20:34.033 GMT ] [InstallUtils.getOracleBase:489] OracleBase from orabase /u01/app/oracle
[main] [ 2020-07-07 03:20:34.034 GMT ] [OsUtilsBase.deleteFromEnvironment:2304] Removed from env ORACLE_BASE=/u01/app/oracle
[main] [ 2020-07-07 03:20:34.043 GMT ] [InstallUtils.getOraBaseConfigLocation:592] orabaseconfig location from orabaseconfig util /u01/app/oracle
[main] [ 2020-07-07 03:20:34.043 GMT ] [OsUtilsBase.deleteFromEnvironment:2304] Removed from env ORACLE_BASE=/u01/app/oracle
[main] [ 2020-07-07 03:20:34.052 GMT ] [InstallUtils.getOraBaseHomeLocation:551] orabasehome from orabasehome /u01/app/oracle/homes/OraDB19Home1
[main] [ 2020-07-07 03:20:34.052 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORACLEBASE%/
[main] [ 2020-07-07 03:20:34.052 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORACLEBASE%/homes
[main] [ 2020-07-07 03:20:34.053 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASECONFIG%/
[main] [ 2020-07-07 03:20:34.053 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASECONFIG%/%DBS%
[main] [ 2020-07-07 03:20:34.053 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/
[main] [ 2020-07-07 03:20:34.053 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/rdbms
[main] [ 2020-07-07 03:20:34.053 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/rdbms/log
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/rdbms/audit
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/%DBS%
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/network
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/network/admin
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/network/trace
[main] [ 2020-07-07 03:20:34.054 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/network/log
[main] [ 2020-07-07 03:20:34.055 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/assistants
[main] [ 2020-07-07 03:20:34.055 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/assistants/dbca
[main] [ 2020-07-07 03:20:34.055 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/assistants/dbca/templates
[main] [ 2020-07-07 03:20:34.055 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file %ORABASEHOME%/install
[main] [ 2020-07-07 03:20:34.055 GMT ] [RoohCtl.processBootstrapFile:287] Line from the file FILEPROCESS|%ORACLEHOME%/network/admin/sqlnet.ora|%ORABASEHOME%/network/admin/sqlnet.ora|WIN
[main] [ 2020-07-07 03:20:34.057 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/
[main] [ 2020-07-07 03:20:34.057 GMT ] [RoohCtl.createBootstrapDirs:406] Directory /u01/app/oracle/ exists
[main] [ 2020-07-07 03:20:34.057 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:406] Directory /u01/app/oracle/ exists
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/dbs
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/dbs
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/
[main] [ 2020-07-07 03:20:34.058 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/
[main] [ 2020-07-07 03:20:34.059 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/rdbms
[main] [ 2020-07-07 03:20:34.059 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/rdbms
[main] [ 2020-07-07 03:20:34.059 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/rdbms/log
[main] [ 2020-07-07 03:20:34.059 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/rdbms/log
[main] [ 2020-07-07 03:20:34.060 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/rdbms/audit
[main] [ 2020-07-07 03:20:34.060 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/rdbms/audit
[main] [ 2020-07-07 03:20:34.060 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/dbs
[main] [ 2020-07-07 03:20:34.060 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/dbs
[main] [ 2020-07-07 03:20:34.060 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/network
[main] [ 2020-07-07 03:20:34.061 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/network
[main] [ 2020-07-07 03:20:34.061 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/network/admin
[main] [ 2020-07-07 03:20:34.062 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/network/admin
[main] [ 2020-07-07 03:20:34.062 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/network/trace
[main] [ 2020-07-07 03:20:34.062 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/network/trace
[main] [ 2020-07-07 03:20:34.063 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/network/log
[main] [ 2020-07-07 03:20:34.063 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/network/log
[main] [ 2020-07-07 03:20:34.063 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/assistants
[main] [ 2020-07-07 03:20:34.068 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/assistants
[main] [ 2020-07-07 03:20:34.068 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/assistants/dbca
[main] [ 2020-07-07 03:20:34.068 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/assistants/dbca
[main] [ 2020-07-07 03:20:34.068 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/assistants/dbca/templates
[main] [ 2020-07-07 03:20:34.069 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/assistants/dbca/templates
[main] [ 2020-07-07 03:20:34.069 GMT ] [RoohCtl.createBootstrapDirs:404] Creating directory /u01/app/oracle/homes/OraDB19Home1/install
[main] [ 2020-07-07 03:20:34.069 GMT ] [RoohCtl.createBootstrapDirs:415] Created directory /u01/app/oracle/homes/OraDB19Home1/install
[main] [ 2020-07-07 03:20:34.069 GMT ] [RoohCtl.processFilesDirectives:961] Processing entry /u01/db/dbhome_1/network/admin/sqlnet.ora|/u01/app/oracle/homes/OraDB19Home1/network/admin/sqlnet.ora|WIN
[main] [ 2020-07-07 03:20:34.070 GMT ] [RoohCtl.processFilesDirectives:982] OS specific construct WIN
[main] [ 2020-07-07 03:20:34.070 GMT ] [RoohCtl.processFilesDirectives:988] Process entry false
Reference URL: https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/about-read-only-oracle-home.html#GUID-D848002A-DBAD-48FA-8467-E849630B8E42

SQL Macro - Parameterized Views (since Oracle DB 19.6)

$
0
0

create or replace function dept_job_salaries (
  job varchar2
) return varchar2 sql_macro is
begin
  return '
     select department_id, sum ( salary ) 
     from   employees
     where  job_id = dept_job_salaries.job
     group  by department_id';
end;
/

select * from  dept_job_salaries ( 'FI_ACCOUNT' );

SQL> select * from  dept_job_salaries ( 'FI_ACCOUNT' );

DEPARTMENT_ID SUM(SALARY)
------------- -----------
          100       39600


Execution Plan
----------------------------------------------------------
Plan hash value: 55893400

---------------------------------------------------------------------------------------------------
| Id  | Operation                            | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                     |            |     4 |    64 |     3  (34)| 00:00:01 |
|   1 |  HASH GROUP BY                       |            |     4 |    64 |     3  (34)| 00:00:01 |
|   2 |   TABLE ACCESS BY INDEX ROWID BATCHED| EMPLOYEES  |     5 |    80 |     2   (0)| 00:00:01 |
|*  3 |    INDEX RANGE SCAN                  | EMP_JOB_IX |     5 |       |     1   (0)| 00:00:01 |
---------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------


   3 - access("JOB_ID"='FI_ACCOUNT')

Alternative implementation with pipelined table, although context switch between SQL and PL/SQL overhead for such implementation

create or replace type t_depart_role_sal as object (
    department_id       number,
    total_salaries      number
);

create or replace type t_depart_role_sal_tab 
    is table of t_depart_role_sal;

-- Build a pipelined table function.
CREATE OR REPLACE FUNCTION depart_role_sal_ptf(job varchar2)
return t_depart_role_sal_tab pipelined
as
cursor c is 
  select department_id, sum (salary) total_salary 
     from   employees
     where  job_id = job
     group  by department_id;
begin
  for c1 in c
  loop
    PIPE ROW(t_depart_role_sal(c1.department_id, c1.total_salary));
  end loop;
  return;
exception
  when no_data_needed then
    raise;
  when others then
    raise;
end;
/


select * from depart_role_sal_ptf('FI_ACCOUNT');

SQL> select * from depart_role_sal_ptf('FI_ACCOUNT');

DEPARTMENT_ID TOTAL_SALARIES
------------- --------------
          100          39600


Execution Plan
----------------------------------------------------------
Plan hash value: 1610656097

---------------------------------------------------------------------------------------------------------
| Id  | Operation                         | Name                | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT                  |                     |  8168 | 16336 |    29   (0)| 00:00:01 |
|   1 |  COLLECTION ITERATOR PICKLER FETCH| DEPART_ROLE_SAL_PTF |  8168 | 16336 |    29   (0)| 00:00:01 |
---------------------------------------------------------------------------------------------------------


SQL Micro - Top N View (from Oracle 19.6 onwards)

$
0
0
create or replace function top_n (
  num_rows number, tab dbms_tf.table_t
) return varchar2 sql_macro is
begin
  return 
    'select * from top_n.tab
     fetch first top_n.num_rows 
       rows only';
end;
/

select * from top_n(5,employees);

clean up .patch_storage in /u01 after quarterly RU installations

$
0
0
[oracle@dbhost1 u01]$ du -sh /u01/*/.patch_storage
6.6G    /u01/db/.patch_storage
9.8G    /u01/grid/.patch_storage


[oracle@dbhost1 u01]$ $ORACLE_HOME/OPatch/opatch util cleanup -help
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation.  All rights reserved.


DESCRIPTION
     This utility cleans up 'restore.sh,make.txt' files and 'scratch,backup'
     directories of the.patch_storage directory of Oracle Home.If -ps option is used,
     then, it cleans the above specified areas only for that patch, else for all
     patches under ORACLE_HOME/.patch_storage. You will be still able to
     rollback patches after this cleanup.

SYNTAX
opatch util cleanup  [-invPtrLoc ]
                     [-jre ] [-oh ]
                     [-silent] [-report]
                     [-ps , this will
                       be located under ORACLE_HOME/.patch_storage/]

OPTIONS
       -invPtrLoc
              Used to locate the oraInst.loc file. Needed when the
              installation used the -invPtrLoc flag. This should be
              the path to the oraInst.loc file.

       -jre
              This option tells OPatch to use JRE (java) from the
              specified location instead of the default location
              under Oracle Home. Both -jdk and -jre options cannot
              be specified together. OPatch will display error in
              that case.

       -oh
              The oracle home to work on. This takes precedence over
              the environment variable ORACLE_HOME.

       -ps
              This option is used to specify the Patch ID with timestamp.
              This Patch ID with timestamp should be the same as in
              .patch_storage directory.

              A directory by this name will be present under
              ORACLE_HOME/.patch_storage. If this directory is specified
              and is valid, then the contents specified in the description
              will be cleaned up only for this patch. Otherwise, all patch
              related directories will be acted upon by this utility.

      -silent
              In silent mode, the cleanup always takes place.

      -report
              Prints the operations without actually executing them.


OPatch succeeded.

[oracle@dbhost1 u01]$ $ORACLE_HOME/OPatch/opatch util cleanup -oh /u01/grid
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/grid
Central Inventory : /u01/app/oraInventory
   from           : /u01/grid/oraInst.loc
OPatch version    : 12.2.0.1.21
OUI version       : 12.2.0.7.0
Log file location : /u01/grid/cfgtoollogs/opatch/opatch2020-07-18_10-24-18AM_1.log

Invoking utility "cleanup"
OPatch will clean up 'restore.sh,make.txt' files and 'scratch,backup' directories.
You will be still able to rollback patches after this cleanup.
Do you want to proceed? [y|n]
y
User Responded with: Y

Backup area for restore has been cleaned up. For a complete list of files/directories
deleted, Please refer log file.

OPatch succeeded.

Additionally, further cleanup of the $ORACLE_HOME/.patch_storage is possible if there are directories from patches applied to previous versions.


[oracle@dbhost1 .patch_storage]$ du -sh /u01/grid/.patch_storage/[23]*
248K    /u01/grid/.patch_storage/29517242_Apr_17_2019_23_27_10
32K     /u01/grid/.patch_storage/29517247_Apr_1_2019_15_08_20
76K     /u01/grid/.patch_storage/29585399_Apr_9_2019_19_12_47
928M    /u01/grid/.patch_storage/30122149_Sep_19_2019_19_36_02
442M    /u01/grid/.patch_storage/30122167_Sep_3_2019_00_43_16
731M    /u01/grid/.patch_storage/30125133_Oct_9_2019_00_10_29
626M    /u01/grid/.patch_storage/30489227_Jan_7_2020_03_37_45
484M    /u01/grid/.patch_storage/30489632_Dec_24_2019_03_32_55
1.2G    /u01/grid/.patch_storage/30557433_Jan_6_2020_19_07_34
3.4M    /u01/grid/.patch_storage/30655595_Dec_12_2019_04_55_54
1.2G    /u01/grid/.patch_storage/30869156_Apr_6_2020_23_20_53
564M    /u01/grid/.patch_storage/30869304_Feb_16_2020_07_11_33
988M    /u01/grid/.patch_storage/30894985_Apr_10_2020_05_35_01
3.4M    /u01/grid/.patch_storage/30898856_Feb_13_2020_21_26_23
1.7G    /u01/grid/.patch_storage/31281355_Jul_6_2020_11_18_02
564M    /u01/grid/.patch_storage/31304218_Jun_29_2020_05_07_23
619M    /u01/grid/.patch_storage/31305087_Jun_25_2020_11_36_08
3.3M    /u01/grid/.patch_storage/31335188_May_12_2020_05_27_58

[oracle@dbhost1 .patch_storage]$ du -sh /u01/db/.patch_storage/[23]*
248K    /u01/db/.patch_storage/29517242_Apr_17_2019_23_27_10
76K     /u01/db/.patch_storage/29585399_Apr_9_2019_19_12_47
212M    /u01/db/.patch_storage/30122149_Sep_19_2019_19_36_02
751M    /u01/db/.patch_storage/30125133_Oct_9_2019_00_10_29
425M    /u01/db/.patch_storage/30128191_Aug_29_2019_23_53_58
227M    /u01/db/.patch_storage/30489227_Jan_7_2020_03_37_45
1.2G    /u01/db/.patch_storage/30557433_Jan_6_2020_19_07_34
426M    /u01/db/.patch_storage/30805684_Feb_21_2020_20_52_36
1.3G    /u01/db/.patch_storage/30869156_Apr_6_2020_23_20_53
227M    /u01/db/.patch_storage/30894985_Apr_10_2020_05_35_01
426M    /u01/db/.patch_storage/31219897_Jul_8_2020_01_57_16
1.4G    /u01/db/.patch_storage/31281355_Jul_6_2020_11_18_02
215M    /u01/db/.patch_storage/31305087_Jun_25_2020_11_36_08

rm -rf    /u01/grid/.patch_storage/29517242_Apr_17_2019_23_27_10
rm -rf    /u01/grid/.patch_storage/29517247_Apr_1_2019_15_08_20
rm -rf    /u01/grid/.patch_storage/29585399_Apr_9_2019_19_12_47
rm -rf    /u01/grid/.patch_storage/30122149_Sep_19_2019_19_36_02
rm -rf    /u01/grid/.patch_storage/30122167_Sep_3_2019_00_43_16
rm -rf    /u01/grid/.patch_storage/30125133_Oct_9_2019_00_10_29
rm -rf    /u01/grid/.patch_storage/30489227_Jan_7_2020_03_37_45
rm -rf    /u01/grid/.patch_storage/30489632_Dec_24_2019_03_32_55
rm -rf    /u01/grid/.patch_storage/30557433_Jan_6_2020_19_07_34
rm -rf    /u01/grid/.patch_storage/30655595_Dec_12_2019_04_55_54
rm -rf    /u01/grid/.patch_storage/30869156_Apr_6_2020_23_20_53
rm -rf    /u01/grid/.patch_storage/30869304_Feb_16_2020_07_11_33
rm -rf    /u01/grid/.patch_storage/30894985_Apr_10_2020_05_35_01
rm -rf    /u01/grid/.patch_storage/30898856_Feb_13_2020_21_26_23

rm -rf     /u01/db/.patch_storage/29517242_Apr_17_2019_23_27_10
rm -rf     /u01/db/.patch_storage/29585399_Apr_9_2019_19_12_47
rm -rf     /u01/db/.patch_storage/30122149_Sep_19_2019_19_36_02
rm -rf     /u01/db/.patch_storage/30125133_Oct_9_2019_00_10_29
rm -rf     /u01/db/.patch_storage/30128191_Aug_29_2019_23_53_58
rm -rf     /u01/db/.patch_storage/30489227_Jan_7_2020_03_37_45
rm -rf     /u01/db/.patch_storage/30557433_Jan_6_2020_19_07_34
rm -rf     /u01/db/.patch_storage/30805684_Feb_21_2020_20_52_36
rm -rf     /u01/db/.patch_storage/30869156_Apr_6_2020_23_20_53
rm -rf     /u01/db/.patch_storage/30894985_Apr_10_2020_05_35_01


[oracle@dbhost1 .patch_storage]$ du -sh /u01/*/.patch_storage
2.0G    /u01/db/.patch_storage
2.8G    /u01/grid/.patch_storage

Start RHEL 7/ OL 7 in Graphical mode (GUI)

$
0
0
[root@odi12c ~]# yum groupinstall "Server with GUI"
[root@odi12c ~]# systemctl get-default
multi-user.target
[root@odi12c ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@odi12c ~]# systemctl get-default
graphical.target
[root@odi12c ~]# reboot

Setup Certificates used for OGG MA Lab

$
0
0
# Environment variables set before creating the certs and run oggca.sh

export JAVA_HOME=/usr/java/jdk1.8.0_251-amd64
export OGG_HOME=/u01/ogg/oggma
export ORACLE_HOME=/u01/db
export ORACLE_BASE=/u01/app/oracle
export PATH=$ORACLE_HOME/bin:$OGG_HOME/bin:$PATH
export ORACLE_SID=orcl
export OGG_ETC_HOME=/u01/ogg/oggma_first/etc
export OGG_VAR_HOME=/u01/ogg/oggma_first/var
export OGG_CLIENT_TLS_CAPATH=/home/oracle/wallet_dir/rootCA_Cert.pem


# root certificates Wallet
[oracle@ogg ~]$ mkdir /home/oracle/wallet_dir

[oracle@ogg ~]$ orapki wallet create -wallet /home/oracle/wallet_dir/root_ca -auto_login -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/root_ca -dn "CN=RootCA" -keysize 2048 -self_signed -validity 7300 -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet export -wallet /home/oracle/wallet_dir/root_ca -dn "CN=RootCA" -cert /home/oracle/wallet_dir/rootCA_Cert.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

# Server certificates Wallet

[oracle@ogg ~]$ hostname -f
ogg

[oracle@ogg ~]$ orapki wallet create -wallet /home/oracle/wallet_dir/ogg -auto_login -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.


[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/ogg -dn "CN=ogg" -keysize 2048 -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.


[oracle@ogg ~]$ orapki wallet export -wallet /home/oracle/wallet_dir/ogg -dn "CN=ogg" -request  /home/oracle/wallet_dir/ogg_request.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

# 20 is a uniqie number
[oracle@ogg ~]$ orapki cert create -wallet /home/oracle/wallet_dir/root_ca -request /home/oracle/wallet_dir/ogg_request.pem -cert /home/oracle/wallet_dir/ogg_Cert.pem -serial_num 20 -validity 365 -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/ogg -trusted_cert -cert /home/oracle/wallet_dir/rootCA_Cert.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/ogg -user_cert -cert /home/oracle/wallet_dir/ogg_Cert.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.


# Distribution Server User certificates Wallet


[oracle@ogg ~]$ orapki wallet create -wallet /home/oracle/wallet_dir/dist_client -auto_login -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/dist_client -dn "CN=ogg" -keysize 2048 -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.
 
[oracle@ogg ~]$ orapki wallet export -wallet /home/oracle/wallet_dir/dist_client -dn "CN=ogg" -request  /home/oracle/wallet_dir/dist_client_request.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki cert create -wallet /home/oracle/wallet_dir/root_ca -request /home/oracle/wallet_dir/dist_client_request.pem -cert /home/oracle/wallet_dir/dist_client_Cert.pem -serial_num 30 -validity 365 -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/dist_client -trusted_cert -cert /home/oracle/wallet_dir/rootCA_Cert.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.

[oracle@ogg ~]$ orapki wallet add -wallet /home/oracle/wallet_dir/dist_client -user_cert -cert /home/oracle/wallet_dir/dist_client_Cert.pem -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Operation is successfully completed.


[oracle@ogg ~]$ orapki wallet display -wallet /home/oracle/wallet_dir/root_ca -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Requested Certificates:
User Certificates:
Subject:        CN=RootCA
Trusted Certificates:
Subject:        CN=RootCA

[oracle@ogg ~]$ orapki wallet display -wallet /home/oracle/wallet_dir/ogg -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Requested Certificates:
User Certificates:
Subject:        CN=ogg
Trusted Certificates:
Subject:        CN=RootCA

[oracle@ogg ~]$ orapki wallet display -wallet /home/oracle/wallet_dir/dist_client -pwd myComplexPassword123
Oracle PKI Tool Release 21.0.0.0.0 - Production
Version 21.0.0.0.0
Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.

Requested Certificates:
User Certificates:
Subject:        CN=ogg
Trusted Certificates:
Subject:        CN=RootCA



 

[oracle@ogg ~]$ adminclient

Oracle GoldenGate Administration Client for Oracle

Version 19.1.0.0.200714 OGGCORE_19.1.0.0.0OGGBP_PLATFORMS_200628.2141

 

Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.

 

Linux, x64, 64bit (optimized) on Jun 29 2020 08:15:41

Operating system character set identified as UTF-8.

 

OGG (not connected) 1> connect https://ogg:9001 as admin

 

ERROR: Network error - Certificate validation error

 

OGG (not connected) 4> exit

 

 

[oracle@ogg ~]$ export OGG_CLIENT_TLS_CAPATH=/home/oracle/wallet_dir/rootCA_Cert.pem

[oracle@ogg ~]$ adminclient

Oracle GoldenGate Administration Client for Oracle

Version 19.1.0.0.200714 OGGCORE_19.1.0.0.0OGGBP_PLATFORMS_200628.2141

 

Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.

 

Linux, x64, 64bit (optimized) on Jun 29 2020 08:15:41

Operating system character set identified as UTF-8.

 

OGG (not connected) 1> connect https://ogg:9001 as admin

Password for 'admin' at 'https://ogg:9001':

Using default deployment 'oggma_first'

 

OGG (https://ogg:9001 oggma_first) 2> info all

Program     Status      Group       Type             Lag at Chkpt  Time Since Chkpt

 

ADMINSRVR   RUNNING

DISTSRVR    RUNNING

PMSRVR      DISABLED

RECVSRVR    RUNNING

 

OGG (https://ogg:9001 oggma_first) 3>


Recursive "WITH" clause

$
0
0

Code:

createtable flights (
sourcevarchar(10),
destination varchar2(10),
flight_time number(3,1)
);


insertinto flights values ('Bei Jing', 'Shang Hai',2);
insertinto flights values ('Shang Hai', 'Singapore',5.5);
insertinto flights values ('Singapore', 'Sydney',9);

commit;
WITH Reachable_From (source, destination, total_flight_time) 
AS
(
SELECTsource, destination, flight_time from flights
UNION ALL
SELECT incoming.source, outgoing.destination,
incoming.total_flight_time+outgoing.flight_time
FROM Reachable_From incoming, flights outgoing
WHERE incoming.destination=outgoing.source
)
SELECTsource, destination, total_flight_time
FROM Reachable_From;
Output:


Install SQL Server 2019 on OL8

$
0
0

 Reference: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-red-hat?view=sql-server-ver15

Commands:

sudo alternatives --config python

# If not configured, install python2 and openssl10 using the following commands: 

sudo yum install python2

sudo yum install compat-openssl10

# Configure python2 as the default interpreter using this command: 

sudo alternatives --config python

sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/8/mssql-server-2019.repo

sudo yum install -y mssql-server

sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/8/prod.repo

sudo yum install -y mssql-tools unixODBC-devel

echo 'export PATH="$PATH:/opt/mssql-tools/bin"'>> ~/.bash_profile

echo 'export PATH="$PATH:/opt/mssql-tools/bin"'>> ~/.bashrc

source ~/.bashrc

sudo /opt/mssql/bin/mssql-conf setup


Output for reference:

[root@ol8 ~]# sudo /opt/mssql/bin/mssql-conf setup

usermod: no changes

Choose an edition of SQL Server:

  1) Evaluation (free, no production use rights, 180-day limit)

  2) Developer (free, no production use rights)

  3) Express (free)

  4) Web (PAID)

  5) Standard (PAID)

  6) Enterprise (PAID) - CPU Core utilization restricted to 20 physical/40 hyperthreaded

  7) Enterprise Core (PAID) - CPU Core utilization up to Operating System Maximum

  8) I bought a license through a retail sales channel and have a product key to enter.


Details about editions can be found at

https://go.microsoft.com/fwlink/?LinkId=2109348&clcid=0x409


Use of PAID editions of this software requires separate licensing through a

Microsoft Volume Licensing program.

By choosing a PAID edition, you are verifying that you have the appropriate

number of licenses in place to install and run this software.


Enter your edition(1-8): 2

The license terms for this product can be found in

/usr/share/doc/mssql-server or downloaded from:

https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409


The privacy statement can be viewed at:

https://go.microsoft.com/fwlink/?LinkId=853010&clcid=0x409


Do you accept the license terms? [Yes/No]:Yes


Enter the SQL Server system administrator password:

Confirm the SQL Server system administrator password:

Configuring SQL Server...


ForceFlush is enabled for this instance.

ForceFlush feature is enabled for log durability.

Created symlink /etc/systemd/system/multi-user.target.wants/mssql-server.service → /usr/lib/systemd/system/mssql-server.service.

Setup has completed successfully. SQL Server is now starting.


[root@ol8 ~]# systemctl status mssql-server

● mssql-server.service - Microsoft SQL Server Database Engine

   Loaded: loaded (/usr/lib/systemd/system/mssql-server.service; enabled; vendor preset: disabled)

   Active: active (running) since Sat 2020-08-29 13:14:01 +08; 19s ago

     Docs: https://docs.microsoft.com/en-us/sql/linux

 Main PID: 94338 (sqlservr)

    Tasks: 142

   Memory: 645.6M

   CGroup: /system.slice/mssql-server.service

           ├─94338 /opt/mssql/bin/sqlservr

           └─94361 /opt/mssql/bin/sqlservr


Aug 29 13:14:05 ol8.oci.net sqlservr[94338]: [158B blob data]

Aug 29 13:14:05 ol8.oci.net sqlservr[94338]: [155B blob data]

Aug 29 13:14:05 ol8.oci.net sqlservr[94338]: [61B blob data]

Aug 29 13:14:05 ol8.oci.net sqlservr[94338]: [96B blob data]

Aug 29 13:14:05 ol8.oci.net sqlservr[94338]: [66B blob data]

Aug 29 13:14:06 ol8.oci.net sqlservr[94338]: [75B blob data]

Aug 29 13:14:06 ol8.oci.net sqlservr[94338]: [96B blob data]

Aug 29 13:14:06 ol8.oci.net sqlservr[94338]: [100B blob data]

Aug 29 13:14:06 ol8.oci.net sqlservr[94338]: [71B blob data]

Aug 29 13:14:06 ol8.oci.net sqlservr[94338]: [124B blob data]


Will max(columnid) and "top 1 ... order by desc" use the same execution plan?

$
0
0
 >>> testcase.sql
DROP TABLE IF EXISTS Users
GO

CREATE TABLE Users (
        id int IDENTITY(1,1) PRIMARY KEY,
        Reputation NUMERIC(8,2)
)
GO


WITH RandomValues AS (
        select 1 id, (cast(rand(checksum(newid()))*100000 as numeric(8,2))) AS RandomNumber
        union all
        select id+1, (cast(rand(checksum(newid()))*100000 as numeric(8,2))) AS RandomNumber from RandomValues where id<1000000
)
insert into Users (Reputation)
select RandomNumber from RandomValues OPTION(MAXRECURSION 0)
GO

>> show_plan.sql
Update statistics Users
go
set showplan_text on
go
select top 1 * from Users order by Reputation desc
go
select max(Reputation) from Users
go
set showplan_text off
go
set statistics time on
set statistics io on
go
select top 1 * from Users order by Reputation desc
go
select max(Reputation) from Users
go
set statistics time off
set statistics io off
go

Execute: 
[root@ol8 ~]# sqlcmd -S localhost -U SA -P 'xxxxx' -d TestDB -e -i testcase.sql
[root@ol8 ~]# sqlcmd -S localhost -U SA -P 'xxxxx' -d TestDB -e -i show_plan.sql

Output:

[root@ol8 ~]# sqlcmd -S localhost -U SA -P 'xxxxxx' -d TestDB -e -i show_plan.sql

Update statistics Users

set showplan_text on




select top 1 * from Users order by Reputation desc

StmtText
----------------------------------------------------
select top 1 * from Users order by Reputation desc

(1 rows affected)
StmtText
--------------------------------------------------------------------------------------------------------
  |--Top(TOP EXPRESSION:((1)))
       |--Parallelism(Gather Streams, ORDER BY:([TestDB].[dbo].[Users].[Reputation] DESC))
            |--Sort(TOP 1, ORDER BY:([TestDB].[dbo].[Users].[Reputation] DESC))
                 |--Clustered Index Scan(OBJECT:([TestDB].[dbo].[Users].[PK__Users__3213E83F7CAE2D67]))

(4 rows affected)






select max(Reputation) from Users

StmtText
-----------------------------------
select max(Reputation) from Users

(1 rows affected)
StmtText
-------------------------------------------------------------------------------------------------
  |--Hash Match(Aggregate, HASH:() DEFINE:([Expr1002]=MAX([TestDB].[dbo].[Users].[Reputation])))
       |--Clustered Index Scan(OBJECT:([TestDB].[dbo].[Users].[PK__Users__3213E83F7CAE2D67]))

(2 rows affected)



set showplan_text off

set statistics time on
set statistics io on


 SQL Server Execution Times:
   CPU time = 0 ms,  elapsed time = 0 ms.
   
   
   
   
select top 1 * from Users order by Reputation desc

SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 0 ms.
id          Reputation
----------- ----------
     385843   99999.87

(1 rows affected)
Table 'Users'. Scan count 3, logical reads 2263, physical reads 0, page server reads 0, read-ahead reads 0, page server read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob page server reads 0, lob read-ahead reads 0, lob page server read-ahead reads 0.

 SQL Server Execution Times:
  CPU time = 191 ms,  elapsed time = 122 ms.
   
   
   
   
select max(Reputation) from Users

SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 0 ms.

----------
  99999.87

(1 rows affected)
Table 'Users'. Scan count 1, logical reads 2237, physical reads 0, page server reads 0, read-ahead reads 0, page server read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob page server reads 0, lob read-ahead reads 0, lob page server read-ahead reads 0.

 SQL Server Execution Times:
   CPU time = 54 ms,  elapsed time = 55 ms.
   
   
   
   
   
set statistics time off
set statistics io off

SQL Server parse and compile time:
   CPU time = 0 ms, elapsed time = 0 ms.

Refer to SQL Server setup URL if u need SQL Server setup on Linux: http://www.dbaglobe.com/2020/08/install-sql-server-2019-on-ol8.html


Transfer AWR data to another database for AWR database comparison report

$
0
0

 

Extract from Source DB

[oracle@oem13 admin]$ sqlplus /as sysdba

SQL*Plus: Release19.0.0.0.0- Production on Sat Sep 2609:58:192020
Version 19.8.0.0.0

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


Connected to:
Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

SQL> @?/rdbms/admin/awrextr.sql
~~~~~~~~~~~~~
AWR EXTRACT
~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ This script will extract the AWR datafora range of snapshots ~
~intoadumpfile. The script will prompt users for the ~
~following information: ~
~(1)database id ~
~(2)snapshot range to extract ~
~(3) name of directory object ~
~(4) name ofdumpfile~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Databasesin this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id DB Name Host
------------ ------------ ------------
*3670937227 OMSREPO oem13

The defaultdatabase id is the local one: '3670937227'.Touse this
database id, press <return>tocontinue, otherwise enter an alternative.

Enter valuefor dbid: 3670937227

Using3670937227forDatabase ID


Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.


Enter valuefor num_days: 2

Listing the last2 days of Completed Snapshots

DB Name Snap Id Snap Started
------------ --------- ------------------
OMSREPO 95225 Sep 202000:00
95325 Sep 202001:00
95425 Sep 202002:00
95525 Sep 202003:00
95625 Sep 202004:00
95725 Sep 202005:00
95825 Sep 202006:00
95925 Sep 202007:00
96025 Sep 202008:00
96125 Sep 202009:00
96225 Sep 202010:00

DB Name Snap Id Snap Started
------------ --------- ------------------
OMSREPO 96325 Sep 202011:00
96425 Sep 202012:00
96525 Sep 202013:00
96625 Sep 202014:00
96725 Sep 202015:00
96825 Sep 202016:00
96925 Sep 202017:00
97025 Sep 202018:00
97125 Sep 202019:00
97225 Sep 202020:00
97325 Sep 202021:00

DB Name Snap Id Snap Started
------------ --------- ------------------
OMSREPO 97425 Sep 202022:00
97525 Sep 202023:00
97626 Sep 202000:00
97726 Sep 202001:00
97826 Sep 202002:00
97926 Sep 202003:00
98026 Sep 202004:00
98126 Sep 202005:00
98226 Sep 202006:00
98326 Sep 202007:00
98426 Sep 202008:00

DB Name Snap Id Snap Started
------------ --------- ------------------
OMSREPO 98526 Sep 202009:00


Specify the BeginandEndSnapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter valuefor begin_snap: 970
BeginSnapshot Id specified: 970

Enter valuefor end_snap: 982
EndSnapshot Id specified: 982


Specify the Directory Name
~~~~~~~~~~~~~~~~~~~~~~~~~~

Directory Name Directory Path
------------------------------ -------------------------------------------------
DATA_PUMP_DIR /u01/app/oracle/admin/omsrepo/dpdump/
DBMS_OPTIM_ADMINDIR /u01/db/rdbms/admin
DBMS_OPTIM_LOGDIR /u01/db/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$ /u01/db/javavm/admin/
OPATCH_INST_DIR /u01/db/OPatch
OPATCH_LOG_DIR /u01/db/rdbms/log
OPATCH_SCRIPT_DIR /u01/db/QOpatch
ORACLE_BASE /u01/app/oracle
ORACLE_HOME /u01/db
ORACLE_OCM_CONFIG_DIR /u01/db/ccr/state
ORACLE_OCM_CONFIG_DIR2 /u01/db/ccr/state

Directory Name Directory Path
------------------------------ -------------------------------------------------
SDO_DIR_ADMIN /u01/db/md/admin
SDO_DIR_WORK
XMLDIR /u01/db/rdbms/xml
XSDDIR /u01/db/rdbms/xml/schema

Choose a Directory Name from the above list (case-sensitive).

Enter valuefor directory_name: DATA_PUMP_DIR

Using the dump directory: DATA_PUMP_DIR

Specify the Name of the Extract DumpFile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The prefix for the defaultdumpfile name is awrdat_970_982.
Touse this name, press <return>tocontinue, otherwise enter
an alternative.

Enter valuefor file_name: omsrepo_awrdat_970_982

Using the dumpfile prefix: omsrepo_awrdat_970_982
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The AWR extract dumpfile will be located
|in the following directory/file:
|/u01/app/oracle/admin/omsrepo/dpdump/
| omsrepo_awrdat_970_982.dmp
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|*** AWR Extract Started ...
|
| This operation will take a few moments. The
| progress of the AWR extract operation can be
| monitored in the following directory/file:
|/u01/app/oracle/admin/omsrepo/dpdump/
| omsrepo_awrdat_970_982.log
|

Endof AWR Extract
SQL>exit
Disconnected from Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

Load to Target DB

Copy omsrepo_awrdat_970_982.dmp to target datapump directory.

[oracle@ol8 admin]$ sqlplus /as sysdba

SQL*Plus: Release19.0.0.0.0- Production on Sat Sep 2610:24:372020
Version 19.8.0.0.0

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


Connected to:
Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

SQL> @?/rdbms/admin/awrload.sql
~~~~~~~~~~
AWR LOAD
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ This script will load the AWR datafromadumpfile. The ~
~ script will prompt users for the following information: ~
~(1) name of directory object ~
~(2) name ofdumpfile~
~(3) staging schema name toload AWR datainto~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Specify the Directory Name
~~~~~~~~~~~~~~~~~~~~~~~~~~

Directory Name Directory Path
------------------------------ -------------------------------------------------
DATA_PUMP_DIR /u01/app/oracle/admin/ORCL/dpdump/
DBMS_OPTIM_ADMINDIR /u01/db/rdbms/admin
DBMS_OPTIM_LOGDIR /u01/db/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$ /u01/db/javavm/admin/
OPATCH_INST_DIR /u01/db/OPatch
OPATCH_LOG_DIR /u01/db/rdbms/log
OPATCH_SCRIPT_DIR /u01/db/QOpatch
ORACLE_BASE /u01/app/oracle
ORACLE_HOME /u01/db
ORACLE_OCM_CONFIG_DIR /u01/db/ccr/state
ORACLE_OCM_CONFIG_DIR2 /u01/db/ccr/state

Directory Name Directory Path
------------------------------ -------------------------------------------------
SDO_DIR_ADMIN /u01/db/md/admin
SDO_DIR_WORK
XMLDIR /u01/db/rdbms/xml
XSDDIR /u01/db/rdbms/xml/schema

Choose a Directory Name from the list above (case-sensitive).

Enter valuefor directory_name: DATA_PUMP_DIR

Using the dump directory: DATA_PUMP_DIR

Specify the Name of the DumpFiletoLoad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please specify the prefix of the dumpfile(.dmp)toload:

Enter valuefor file_name: omsrepo_awrdat_970_982

Loading from the file name: omsrepo_awrdat_970_982.dmp

Staging SchematoLoad AWR SnapshotData
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The next step istocreate the staging schema
where the AWR snapshotdata will be loaded.
After loading the datainto the staging schema,
the data will be transferred into the AWR tables
in the SYS schema.


The default staging schema name is C##AWR_STAGE.
Touse this name, press <return>tocontinue, otherwise enter
an alternative.

Enter valuefor schema_name:

Using the staging schema name: C##AWR_STAGE

Choose the Defaulttablespacefor the C##AWR_STAGE user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the C##AWR_STAGE users's default tablespace. This is the
tablespacein which the AWR data will be staged.

TABLESPACE_NAME CONTENTS DEFAULTTABLESPACE
------------------------------ --------------------- ------------------
SYSAUX PERMANENT *
USERS PERMANENT

Pressing <return> will result in the recommended default
tablespace(identified by*) being used.

Enter valuefor default_tablespace:

Usingtablespace SYSAUX as the defaulttablespacefor the C##AWR_STAGE


Choose the Temporarytablespacefor the C##AWR_STAGE user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Choose the C##AWR_STAGE user's temporary tablespace.

TABLESPACE_NAME CONTENTS DEFAULTTEMPTABLESPACE
------------------------------ --------------------- -----------------------
TEMPTEMPORARY*

Pressing <return> will result in the database's defaulttemporary
tablespace(identified by*) being used.

Enter valuefor temporary_tablespace:

UsingtablespaceTEMPas the temporarytablespacefor C##AWR_STAGE




... Creating C##AWR_STAGE user

|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Loading the AWR datafrom the following
| directory/file:
|/u01/app/oracle/admin/ORCL/dpdump/
| omsrepo_awrdat_970_982.dmp
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|*** AWR Load Started ...
|
| This operation will take a few moments. The
| progress of the AWR load operation can be
| monitored in the following directory/file:
|/u01/app/oracle/admin/ORCL/dpdump/
| omsrepo_awrdat_970_982.log
|
... Dropping C##AWR_STAGE user

Endof AWR Load
SQL>exit
Disconnected from Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

Run AWR Comparison Report


[oracle@ol8 admin]$ sqlplus /as sysdba

SQL*Plus: Release19.0.0.0.0- Production on Sat Sep 2610:31:082020
Version 19.8.0.0.0

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


Connected to:
Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

SQL> @?/rdbms/admin/awrddrpi.sql

Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report,ora plain text report?
Enter 'html'for an HTML report,or'text'for plain text
Defaults to'html'
Enter valuefor report_type:



Type Specified: html





Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ ---------- --------- ---------- ------
36709372271 OMSREPO omsrepo oem13
*15713995561 ORCL ORCL ol8.oci.net

Database Id and Instance Number for the First Pair of Snapshots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter valuefor dbid: 1571399556
Using1571399556forDatabase Id for the first pair of snapshots
Enter valuefor inst_num: 1
Using1for Instance Number for the first pair of snapshots


Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.


Enter valuefor num_days: 1

Listing the last day's Completed Snapshots
Instance DB Name Snap Id Snap Started Snap Level
------------ ------------ ---------- ------------------ ----------

ORCL ORCL 27 26 Sep 2020 00:00 1
28 26 Sep 2020 01:00 1
29 26 Sep 2020 02:00 1
30 26 Sep 2020 03:00 1
31 26 Sep 2020 04:00 1
32 26 Sep 2020 05:00 1
33 26 Sep 2020 06:00 1
34 26 Sep 2020 07:00 1
35 26 Sep 2020 08:00 1
36 26 Sep 2020 09:00 1
37 26 Sep 2020 10:00 1


Specify the First Pair of Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 28
First Begin Snapshot Id specified: 28

Enter value for end_snap: 29
First End Snapshot Id specified: 29




Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ ---------- --------- ---------- ------
3670937227 1 OMSREPO omsrepo oem13
* 1571399556 1 ORCL ORCL ol8.oci.net




Database Id and Instance Number for the Second Pair of Snapshots
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter value for dbid2: 3670937227
Using 3670937227 for Database Id for the second pair of snapshots
Enter value for inst_num2: 1
Using 1 for Instance Number for the second pair of snapshots


Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.


Enter value for num_days2: 1

Listing the last day'
s Completed Snapshots
97626 Sep 202000:001
97726 Sep 202001:001
97826 Sep 202002:001
97926 Sep 202003:001
98026 Sep 202004:001
98126 Sep 202005:001
98226 Sep 202006:001


Specify the Second Pair ofBeginandEndSnapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter valuefor begin_snap2: 977
Second BeginSnapshot Id specified: 977

Enter valuefor end_snap2: 978
Second EndSnapshot Id specified: 978



Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrdiff_1_28_1_977.html Touse this name,
press <return>tocontinue, otherwise enter an alternative.

Enter valuefor report_name: awrdiff_orcl_1_28_omsrepo_1_977.html

Using the report name awrdiff_orcl_1_28_omsrepo_1_977.html
<omit outout...>

Scripts to demo 19c autoindex features using Swingbench OE workloads

$
0
0

 Scripts:

select interval, enabled from DBA_AUTOTASK_SCHEDULE_CONTROL where TASK_NAME='Auto Index Task';
exec dbms_auto_task_admin.modify_autotask_setting('Auto Index Task','INTERVAL',180);
EXEC DBMS_AUTO_INDEX.drop_secondary_indexes('SOE',null);
EXEC DBMS_AUTO_INDEX.drop_auto_indexes('SOE',NULL,true);
select*from dba_indexes where owner='SOE';
-- commit is required for repeating testing, otherwise AUTO INDEX Task blocked by this session
commit;

EXEC DBMS_AUTO_INDEX.CONFIGURE('AUTO_INDEX_SCHEMA','SOE');
select*from DBA_AUTO_INDEX_CONFIG;
EXEC DBMS_AUTO_INDEX.CONFIGURE('AUTO_INDEX_MODE','IMPLEMENT');

select*from dba_auto_index_executions;
select*from dba_auto_index_ind_actions;

SET LONG 1000000 LONGCHUNKSIZE 1000000
SET LINESIZE 1000 PAGESIZE 0
SET TRIM ON TRIMSPOOL ON
SET ECHO OFF FEEDBACK OFF

-- report last 30 minutes auto index activities
SELECT DBMS_AUTO_INDEX.report_activity(
activity_start => SYSTIMESTAMP-1/48,
activity_end => SYSTIMESTAMP,
type=>'TEXT',
section =>'ALL',
"LEVEL"=>'ALL')
FROM dual;

-- report auto index activities between 16:30 to 17:30
SELECT DBMS_AUTO_INDEX.report_activity(
activity_start => TO_TIMESTAMP('202009261630','YYYYMMDDHH24MI'),
activity_end => TO_TIMESTAMP('202009261730','YYYYMMDDHH24MI'),
type=>'TEXT',
section =>'ALL',
"LEVEL"=>'ALL')
FROM dual;
SQL>SET LONG 1000000 LONGCHUNKSIZE 1000000SQL>SET LINESIZE 1000 PAGESIZE 0
SQL>SET TRIM ON TRIMSPOOL ON
SQL>SET ECHO OFF FEEDBACK OFF
GENERAL INFORMATION
-------------------------------------------------------------------------------
Activity start : 26-SEP-202016:30:00
Activity end : 26-SEP-202017:30:00
Executions completed : 4
Executions interrupted : 0
Executions with fatal error : 0
-------------------------------------------------------------------------------

SUMMARY (AUTO INDEXES)
-------------------------------------------------------------------------------
Index candidates : 8
Indexes created (visible / invisible) : 8(5/3)
Space used (visible / invisible) : 150.08 MB (134.22 MB /15.86 MB)
Indexes dropped : 0
SQL statements verified : 14
SQL statements improved (improvement factor) : 6(55.3x)
SQL plan baselines created : 0
Overall improvement factor : 19.5x
-------------------------------------------------------------------------------

SUMMARY (MANUAL INDEXES)
-------------------------------------------------------------------------------
Unused indexes : 0
Space used : 0 B
Unusable indexes : 0
-------------------------------------------------------------------------------

INDEX DETAILS
-------------------------------------------------------------------------------
1. The following indexes were created:
*: invisible
-------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
| Owner |Table|Index|Key|Type| Properties |
--------------------------------------------------------------------------------------------
| SOE | PRODUCT_INFORMATION |* SYS_AI_b9k5zyq0mjwf5 | CATEGORY_ID | B-TREE | NONE |
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------

VERIFICATION DETAILS
-------------------------------------------------------------------------------
1. The performance of the following statements improved:
-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : 29qp10usqkqh0
SQL Text : SELECT TT.ORDER_TOTAL, TT.SALES_REP_ID, TT.ORDER_DATE,
CUSTOMERS.CUST_FIRST_NAME, CUSTOMERS.CUST_LAST_NAME FROM
(SELECT ORDERS.ORDER_TOTAL, ORDERS.SALES_REP_ID,
ORDERS.ORDER_DATE, ORDERS.CUSTOMER_ID, RANK()OVER(ORDER
BY ORDERS.ORDER_TOTAL DESC) SAL_RANK FROM ORDERS WHERE
ORDERS.SALES_REP_ID = :B1 ...
Improvement Factor : 2578.6x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 8441555124028
CPU Time (s): 402484988008
Buffer Gets: 825777427
Optimizer Cost: 89479
Disk Reads: 02
Direct Writes: 00
Rows Processed: 105430
Executions: 3851


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 3619984409

-----------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-----------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||||8443||
|1|HASHJOIN||1459|124015|8443|00:00:01|
|2| NESTED LOOPS ||1459|124015|8443|00:00:01|
|3| NESTED LOOPS ||1459|124015|8443|00:00:01|
|4|STATISTICS COLLECTOR ||||||
|5|VIEW||1459|94835|5524|00:00:01|
|6| WINDOW SORT PUSHED RANK ||1459|35016|5524|00:00:01|
|7|TABLE ACCESS FULL| ORDERS |1459|35016|5523|00:00:01|
|8|INDEXUNIQUE SCAN | CUSTOMERS_PK |1||1|00:00:01|
|9|TABLE ACCESS BYINDEX ROWID | CUSTOMERS |1|20|2|00:00:01|
|10|TABLE ACCESS FULL| CUSTOMERS |1|20|2|00:00:01|
-----------------------------------------------------------------------------------------

Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- This is an adaptive plan


-With Auto Indexes
-----------------------------
PlanHashValue : 3900469033

-----------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-----------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||2|170|9|00:00:01|
|1| NESTED LOOPS ||2|170|9|00:00:01|
|2| NESTED LOOPS ||2|170|9|00:00:01|
|*3|VIEW||2|130|5|00:00:01|
|*4| WINDOW SORT PUSHED RANK ||2|48|5|00:00:01|
|5|TABLE ACCESS BYINDEX ROWID BATCHED | ORDERS |2|48|4|00:00:01|
|*6|INDEX RANGE SCAN | SYS_AI_gbwwy984mc1ft |1||3|00:00:01|
|*7|INDEXUNIQUE SCAN | CUSTOMERS_PK |1||1|00:00:01|
|8|TABLE ACCESS BYINDEX ROWID | CUSTOMERS |1|20|2|00:00:01|
-----------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*3- filter("TT"."SAL_RANK"<=10)
*4- filter(RANK()OVER(ORDERBY INTERNAL_FUNCTION("ORDERS"."ORDER_TOTAL")DESC)<=10)
*6- access("ORDERS"."SALES_REP_ID"=:B1)
*7- access("CUSTOMERS"."CUSTOMER_ID"="TT"."CUSTOMER_ID")


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)
- This is an adaptive plan


-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : 7hk2m2702ua0g
SQL Text : WITH NEED_TO_PROCESS AS(SELECT ORDER_ID, CUSTOMER_ID
FROM ORDERS WHERE ORDER_STATUS <=4AND WAREHOUSE_ID =
:B1 AND ROWNUM <10)SELECT O.ORDER_ID, OI.LINE_ITEM_ID,
OI.PRODUCT_ID, OI.UNIT_PRICE, OI.QUANTITY, O.ORDER_MODE,
O.ORDER_STATUS, O.ORDER_TOTAL, O.SALES_REP_ID,
O.PROMOTION_ID, C.CUSTOMER_ID...
Improvement Factor : 1.9x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 3638001267113
CPU Time (s): 109840128911
Buffer Gets: 185829157
Optimizer Cost: 19740
Disk Reads: 54316
Direct Writes: 00
Rows Processed: 83550
Executions: 8351


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 2307454521

--------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
--------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||||199||
|1|HASHJOINOUTER||45|5580|199|00:00:01|
|2| NESTED LOOPS OUTER||45|5580|199|00:00:01|
|3|STATISTICS COLLECTOR ||||||
|4|HASHJOIN||9|936|163|00:00:01|
|5| NESTED LOOPS ||9|936|163|00:00:01|
|6|STATISTICS COLLECTOR ||||||
|7|HASHJOIN||9|504|145|00:00:01|
|8| NESTED LOOPS ||9|504|145|00:00:01|
|9|STATISTICS COLLECTOR ||||||
|10|VIEW||9|117|127|00:00:01|
|11| COUNT STOPKEY ||||||
|12|TABLE ACCESS FULL| ORDERS |10|130|127|00:00:01|
|13|TABLE ACCESS BYINDEX ROWID | ORDERS |1|43|2|00:00:01|
|14|INDEXUNIQUE SCAN | ORDER_PK |1||1|00:00:01|
|15|TABLE ACCESS FULL| ORDERS |1|43|2|00:00:01|
|16|TABLE ACCESS BYINDEX ROWID | CUSTOMERS |1|48|2|00:00:01|
|17|INDEXUNIQUE SCAN | CUSTOMERS_PK |1||1|00:00:01|
|18|TABLE ACCESS FULL| CUSTOMERS |1|48|2|00:00:01|
|19|TABLE ACCESS BYINDEX ROWID BATCHED | ORDER_ITEMS |5|100|4|00:00:01|
|20|INDEX RANGE SCAN | ORDER_ITEMS_PK |5||2|00:00:01|
|21|TABLE ACCESS FULL| ORDER_ITEMS |5|100|4|00:00:01|
--------------------------------------------------------------------------------------------------

Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- This is an adaptive plan


-With Auto Indexes
-----------------------------
PlanHashValue : 420986395

-------------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-------------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||5|620|40|00:00:01|
|1| NESTED LOOPS OUTER||5|620|40|00:00:01|
|2| NESTED LOOPS ||1|104|36|00:00:01|
|3| NESTED LOOPS ||1|56|34|00:00:01|
|4|VIEW||1|13|32|00:00:01|
|*5| COUNT STOPKEY ||||||
|*6|TABLE ACCESS BYINDEX ROWID BATCHED | ORDERS |1|13|32|00:00:01|
|*7|INDEX RANGE SCAN | SYS_AI_3z00frhp9vd91 |1436||3|00:00:01|
|8|TABLE ACCESS BYINDEX ROWID | ORDERS |1|43|2|00:00:01|
|*9|INDEXUNIQUE SCAN | ORDER_PK |1||1|00:00:01|
|10|TABLE ACCESS BYINDEX ROWID | CUSTOMERS |1|48|2|00:00:01|
|*11|INDEXUNIQUE SCAN | CUSTOMERS_PK |1||1|00:00:01|
|12|TABLE ACCESS BYINDEX ROWID BATCHED | ORDER_ITEMS |5|100|4|00:00:01|
|*13|INDEX RANGE SCAN | ORDER_ITEMS_PK |5||2|00:00:01|
-------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*5- filter(ROWNUM<10)
*6- filter("ORDER_STATUS"<=4)
*7- access("WAREHOUSE_ID"=:B1)
*9- access("NTP"."ORDER_ID"="O"."ORDER_ID")
*11- access("C"."CUSTOMER_ID"="O"."CUSTOMER_ID")
*13- access("OI"."ORDER_ID"="O"."ORDER_ID")


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)
- This is an adaptive plan


-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : 7t0959msvyt5g
SQL Text : SELECT ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID,
ORDER_STATUS, ORDER_TOTAL, SALES_REP_ID, PROMOTION_ID,
WAREHOUSE_ID, DELIVERY_TYPE, COST_OF_DELIVERY,
WAIT_TILL_ALL_AVAILABLE, DELIVERY_ADDRESS_ID,
CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID FROM ORDERS
WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
Improvement Factor : 1243.5x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 6174603321319853
CPU Time (s): 2856386217876
Buffer Gets: 6564675534
Optimizer Cost: 579812
Disk Reads: 5471
Direct Writes: 00
Rows Processed: 47760
Executions: 30841


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 335441244

-----------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-----------------------------------------------------------------------
|0|SELECT STATEMENT ||||5520||
|1| COUNT STOPKEY ||||||
|2|TABLE ACCESS FULL| ORDERS |9|846|5520|00:00:01|
-----------------------------------------------------------------------

Notes
-----
- optimizer_use_stats_on_conventional_dml = yes


-With Auto Indexes
-----------------------------
PlanHashValue : 1119417062

--------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
--------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||9|846|12|00:00:01|
|*1| COUNT STOPKEY ||||||
|2|TABLE ACCESS BYINDEX ROWID BATCHED | ORDERS |9|846|12|00:00:01|
|*3|INDEX RANGE SCAN | SYS_AI_5p2zapcmkj174 |9||3|00:00:01|
--------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*1- filter(ROWNUM<:B1)
*3- access("CUSTOMER_ID"=:B2)


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)


-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : 7ws837zynp1zv
SQL Text : SELECT CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER,
EXPIRY_DATE, IS_VALID, SECURITY_CODE FROM CARD_DETAILS
WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
Improvement Factor : 752.3x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 1058848442797551
CPU Time (s): 4832842637401
Buffer Gets: 8330770431
Optimizer Cost: 27554
Disk Reads: 2102
Direct Writes: 00
Rows Processed: 124520
Executions: 82671


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 2597291669

-----------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-----------------------------------------------------------------------------
|0|SELECT STATEMENT ||||2755||
|1| COUNT STOPKEY ||||||
|2|TABLE ACCESS FULL| CARD_DETAILS |9|360|2755|00:00:01|
-----------------------------------------------------------------------------

-With Auto Indexes
-----------------------------
PlanHashValue : 1494990609

--------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
--------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||2|80|4|00:00:01|
|*1| COUNT STOPKEY ||||||
|2|TABLE ACCESS BYINDEX ROWID BATCHED | CARD_DETAILS |2|80|4|00:00:01|
|*3|INDEX RANGE SCAN | SYS_AI_dt4w4vr174j9m |1||3|00:00:01|
--------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*1- filter(ROWNUM<:B1)
*3- access("CUSTOMER_ID"=:B2)


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)


-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : g81cbrq5yamf5
SQL Text : SELECT ADDRESS_ID, CUSTOMER_ID, DATE_CREATED,
HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY,
POST_CODE, ZIP_CODE FROM ADDRESSES WHERE CUSTOMER_ID =
:B2 AND ROWNUM < :B1
Improvement Factor : 1327.8x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 1944433630952727
CPU Time (s): 9503765527150
Buffer Gets: 19566548131
Optimizer Cost: 46914
Disk Reads: 152
Direct Writes: 00
Rows Processed: 172040
Executions: 113531


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 1286489376

--------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
--------------------------------------------------------------------------
|0|SELECT STATEMENT ||||4690||
|1| COUNT STOPKEY ||||||
|2|TABLE ACCESS FULL| ADDRESSES |9|657|4690|00:00:01|
--------------------------------------------------------------------------

-With Auto Indexes
-----------------------------
PlanHashValue : 1527416462

--------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
--------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||2|146|4|00:00:01|
|*1| COUNT STOPKEY ||||||
|2|TABLE ACCESS BYINDEX ROWID BATCHED | ADDRESSES |2|146|4|00:00:01|
|*3|INDEX RANGE SCAN | SYS_AI_4bz3nuupj3kt5 |1||3|00:00:01|
--------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*1- filter(ROWNUM<:B1)
*3- access("CUSTOMER_ID"=:B2)


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)


-------------------------------------------------------------------------------
Parsing Schema Name : SOE
SQL ID : gkxxkghxubh1a
SQL Text : SELECT ORDER_MODE, ORDERS.WAREHOUSE_ID,
SUM(ORDER_TOTAL),COUNT(1)FROM ORDERS, WAREHOUSES WHERE
ORDERS.WAREHOUSE_ID = WAREHOUSES.WAREHOUSE_ID AND
WAREHOUSES.WAREHOUSE_ID = :B1 GROUPBY
CUBE(ORDERS.ORDER_MODE, ORDERS.WAREHOUSE_ID)
Improvement Factor : 7.5x

Execution Statistics:
-----------------------------
Original Plan Auto IndexPlan
---------------------------- ----------------------------
Elapsed Time (s): 31754462247888
CPU Time (s): 1492714112874
Buffer Gets: 29262321235
Optimizer Cost: 55281223
Disk Reads: 03
Direct Writes: 00
Rows Processed: 11528
Executions: 1441


PLANS SECTION
---------------------------------------------------------------------------------------------

- Original
-----------------------------
PlanHashValue : 2692802960

---------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
---------------------------------------------------------------------------------
|0|SELECT STATEMENT ||||5527||
|1| SORT GROUPBY||2|36|5527|00:00:01|
|2| GENERATE CUBE ||2|36|5527|00:00:01|
|3| SORT GROUPBY||2|36|5527|00:00:01|
|4| NESTED LOOPS ||1431|25758|5526|00:00:01|
|5|INDEXUNIQUE SCAN | WAREHOUSES_PK |1|4|1|00:00:01|
|6|TABLE ACCESS FULL| ORDERS |1431|20034|5525|00:00:01|
---------------------------------------------------------------------------------

Notes
-----
- optimizer_use_stats_on_conventional_dml = yes


-With Auto Indexes
-----------------------------
PlanHashValue : 3836151239

-----------------------------------------------------------------------------------------------------------
| Id | Operation | Name |Rows| Bytes | Cost | Time |
-----------------------------------------------------------------------------------------------------------
|0|SELECT STATEMENT ||2|36|1223|00:00:01|
|1| SORT GROUPBY||2|36|1223|00:00:01|
|2| GENERATE CUBE ||2|36|1223|00:00:01|
|3| SORT GROUPBY||2|36|1223|00:00:01|
|4| NESTED LOOPS ||1436|25848|1222|00:00:01|
|*5|INDEXUNIQUE SCAN | WAREHOUSES_PK |1|4|1|00:00:01|
|6|TABLE ACCESS BYINDEX ROWID BATCHED | ORDERS |1436|20104|1221|00:00:01|
|*7|INDEX RANGE SCAN | SYS_AI_3z00frhp9vd91 |1261||4|00:00:01|
-----------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
------------------------------------------
*5- access("WAREHOUSES"."WAREHOUSE_ID"=:B1)
*7- access("ORDERS"."WAREHOUSE_ID"=:B1)


Notes
-----
- optimizer_use_stats_on_conventional_dml = yes
- Dynamic sampling used for this statement ( level =11)


-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

ERRORS
---------------------------------------------------------------------------------------------
Noerrors found.
-------------------------------------

Encountered errors during first time SQLcl execution for Simple Oracle Document Access (SODA)

$
0
0

 Error 1: java.lang.NoClassDefFoundError: javax/json/JsonException

SQL> soda list
Exception in thread "main" java.lang.NoClassDefFoundError: javax/json/JsonException
at oracle.soda.rdbms.OracleRDBMSClient.getDatabase(OracleRDBMSClient.java:214)
at oracle.soda.rdbms.OracleRDBMSClient.getDatabase(OracleRDBMSClient.java:118)
at oracle.dbtools.raptor.newscriptrunner.commands.SODACommand.handleEvent(SODACommand.java:111)
at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.fireListeners(CommandRegistry.java:346)
at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:226)
at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:344)
at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:227)
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.process(SqlCli.java:410)
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.processLine(SqlCli.java:421)
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.startSQLPlus(SqlCli.java:1292)
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:502)
Caused by: java.lang.ClassNotFoundException: javax.json.JsonException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
...11 more

How to fix: Download javax.json-x1.0.4.jar based on following document and put in SQL Developer/lib/ext directory.

[oracle@ol8 ext]$ ls -l /u01/sqldeveloper-20.2/sqldeveloper/sqldeveloper/lib/ext/javax.json-1.0.4.jar
-rw-r--r-- 1 oracle oinstall 85147 Nov 19 2013 /u01/sqldeveloper-20.2/sqldeveloper/sqldeveloper/lib/ext/javax.json-1.0.4.jar

Error 2: PLS-00201: identifier ‘DBMS_SODA_ADMIN’ must be declared

SQL> soda list
ORA-06550: line 2,column3:
PLS-00201: identifier 'DBMS_SODA_ADMIN' must be declared
ORA-06550: line 2,column3:
PL/SQL: Statement ignored

Failed toexecute: soda list

How to fix: Grant soda_app privilege using sys.

grant soda_app to donghua;

Sample output: working Soda example with document API

[oracle@ol8 ext]$ sql donghua/Password_xxxx@pdb1

SQLcl: Release20.2 Production on Sun Sep 2722:05:152020

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



Last Successful login time: Sun Sep 27202022:05:16+08:00

Connected to:
Oracle Database19c Enterprise Edition Release19.0.0.0.0- Production
Version 19.8.0.0.0

SQL> soda list
There are no existing collections.

SQL> soda create myDocuments;
Successfully created collection: myDocuments

SQL>
SQL> soda list
List of collections:

myDocuments

SQL> soda insert myDocuments {"mykey":"My Value"}
Json String inserted successfully.

SQL> soda count myDocuments

1row selected.

SQL> soda get myDocuments -all;
KEY Created On

6C1917D2E3B94FC9899E6FD87E4E6B46 2020-09-27T14:07:00.717168000Z

1row selected.

SQL> soda get myDocuments -klist 6C1917D2E3B94FC9899E6FD87E4E6B46

Key: 6C1917D2E3B94FC9899E6FD87E4E6B46
Content: {"mykey":"My Value"}
-----------------------------------------

1row selected.

Advanced Compression & In-memory segment size comparison (Oracle: 19.8)

$
0
0

 Table Records: 31M

SQL> select 'OSB_CPU_LOAD_OCT2020' as tname,  count(*) as rowcount from OSB_CPU_LOAD_OCT2020
2 union
3* select 'OSB_CPU_LOAD_OCT2020_NOCOMP' as tname, count(*) as rowcount from OSB_CPU_LOAD_OCT2020_NOCOMP;

TNAME ROWCOUNT
______________________________ ___________
OSB_CPU_LOAD_OCT2020 31,492,705
OSB_CPU_LOAD_OCT2020_NOCOMP 31,492,705

Enable In-memory and compression (in-memory compression is part of in-memory option, instead of advanced compression option.)

altertable donghua.OSB_CPU_LOAD_OCT2020 inmemoryprioritylowmemcompressforquerylow;
altertable donghua.OSB_CPU_LOAD_OCT2020_NOCOMP inmemoryprioritylowmemcompressforcapacityhigh;

Check the table/in-memory compression setting

SQL> select table_name, compress_for,inmemory_compression from user_tables
2 where table_name like 'OSB_CPU_LOAD_OCT2020%';


TABLE_NAME COMPRESS_FOR INMEMORY_COMPRESSION
______________________________ _______________ _______________________
OSB_CPU_LOAD_OCT2020 ADVANCED FOR QUERY LOW
OSB_CPU_LOAD_OCT2020_NOCOMP FOR CAPACITY HIGH


Elapsed: 00:00:00.006

Verify the table on disk size: (compression is 43% smaller)

SQL> select segment_name, bytes from user_segments
2* where segment_name like 'OSB_CPU_LOAD_OCT2020%';


SEGMENT_NAME BYTES
______________________________ _____________
OSB_CPU_LOAD_OCT2020 620,756,992
OSB_CPU_LOAD_OCT2020_NOCOMP 1,073,741,824

Verify the table on in-memory size: (compression is 2x-6.5x smaller)

SQL> SELECT owner, segment_name, populate_status,
2 inmemory_size, bytes_not_populated
3* FROM v$im_segments;


OWNER SEGMENT_NAME POPULATE_STATUS INMEMORY_SIZE BYTES_NOT_POPULATED
__________ ______________________________ __________________ ________________ ______________________
DONGHUA OSB_CPU_LOAD_OCT2020_NOCOMP COMPLETED 166,789,120 0
DONGHUA OSB_CPU_LOAD_OCT2020 COMPLETED 496,173,056 0

Reference: https://blogs.oracle.com/in-memory/database-in-memory-compression

What will "opatchauto apply" do

$
0
0
[root@dbhost1 ~]# opatchauto apply /u01/stage/31720429/31750108

OPatchauto session is initiated at Fri Oct 2307:52:552020

System initialization log file is /u01/grid/cfgtoollogs/opatchautodb/systemconfig2020-10-23_07-52-57AM.log.

Session log file is /u01/grid/cfgtoollogs/opatchauto/opatchauto2020-10-23_07-53-00AM.log
The id for this session is CBD4

Executing OPatch prereq operations to verify patch applicability on home /u01/db
Patch applicability verified successfully on home /u01/db


Verifying SQL patch applicability on home /u01/db
SQL patch applicability verified successfully on home /u01/db


Executing OPatch prereq operations to verify patch applicability on home /u01/grid
Patch applicability verified successfully on home /u01/grid


Preparing to bring down database service on home /u01/db
Successfully prepared home /u01/db to bring down database service


Bringing down database service on home /u01/db
Following database has been stopped and will be restarted later during the session: orcl
Database service successfully brought down on home /u01/db


Bringing down CRS service on home /u01/grid
Prepatch operation log file location: /u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_07-57-11PM.log
CRS service brought down successfully on home /u01/grid


Start applying binary patch on home /u01/db
Binary patch applied successfully on home /u01/db


Start applying binary patch on home /u01/grid
Binary patch applied successfully on home /u01/grid


Starting CRS service on home /u01/grid
Postpatch operation log file location: /u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_08-24-35PM.log
CRS service started successfully on home /u01/grid


Starting database service on home /u01/db
Database service successfully started on home /u01/db


Preparing home /u01/db after database service restarted
No step execution required.........


Trying to apply SQL patch on home /u01/db
SQL patch applied successfully on home /u01/db

OPatchAuto successful.

--------------------------------Summary--------------------------------

Patching is completed successfully. Please find the summary as follows:

Host:dbhost1
SIDB Home:/u01/db
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /u01/stage/31720429/31750108/31773437
Reason: This patch is not applicable to this specified target type - "oracle_database"

Patch: /u01/stage/31720429/31750108/31780966
Reason: This patch is not applicable to this specified target type - "oracle_database"


==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log


Host:dbhost1
SIHA Home:/u01/grid
Version:19.0.0.0.0
Summary:

==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31773437
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31780966
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log



OPatchauto session completed at Fri Oct 2308:33:322020
Time taken to complete the session 40 minutes, 37 seconds

Detail Log:


2020-10-2307:53:00,501 INFO [1] com.oracle.glcm.patch.auto.OPatchAuto - OPatchAuto version: 13.9.4.4.0
2020-10-2307:53:00,504 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Session log file is /u01/grid/cfgtoollogs/opatchauto/opatchauto2020-10-23_07-53-00AM.log'}
2020-10-2307:53:00,763 INFO [1] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - crsType: SIHA
2020-10-2307:53:00,883 INFO [1] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - running: true
2020-10-2307:53:01,128 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.DBPatchingHelper - Checking the CRS status across the entire cluster
2020-10-2307:53:01,133 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoHelper - Executing command [bash, -c, ORACLE_HOME=/u01/grid /u01/grid/bin/orabasehome]
2020-10-2307:53:01,144 INFO [1] com.oracle.helper.util.HelperUtility - Output :
/u01/grid

2020-10-2307:53:01,144 INFO [1] com.oracle.helper.util.HelperUtility - Oracle Base Home for /u01/grid is /u01/grid
2020-10-2307:53:01,491 INFO [24] oracle.dbsysmodel.driver.sdk.util.OsysUtility$ReaderThread - Oct 23, 20207:53:01 AM oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader isCRSRunning
2020-10-2307:53:01,492 INFO [24] oracle.dbsysmodel.driver.sdk.util.OsysUtility$ReaderThread - INFO: crsType: SIHA
2020-10-2307:53:01,682 INFO [24] oracle.dbsysmodel.driver.sdk.util.OsysUtility$ReaderThread - Oct 23, 20207:53:01 AM oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader isStackRunning
2020-10-2307:53:01,683 INFO [24] oracle.dbsysmodel.driver.sdk.util.OsysUtility$ReaderThread - INFO: running: true
2020-10-2307:53:01,698 INFO [1] oracle.dbsysmodel.driver.sdk.util.OsysUtility - Error message ::: Oct 23, 20207:53:01 AM oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader isCRSRunning
INFO: crsType: SIHA
Oct 23, 20207:53:01 AM oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader isStackRunning
INFO: running: true

2020-10-2307:53:01,698 INFO [1] oracle.dbsysmodel.driver.sdk.util.OsysUtility - Output message :::
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - OPatchAutoOptions configured options:
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: patch.location:patch-location Value:/u01/stage/31720429/31750108
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: home:-oh Value:/u01/grid
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: log:-log Value:/u01/grid/cfgtoollogs/opatchauto/opatchauto2020-10-23_07-53-00AM.log
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: log_priority:-logLevel Value:INFO
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: customLogDir:-customLogDir Value:/u01/grid/cfgtoollogs
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: inventory.pointer.location:-invPtrLoc Value:/u01/grid/oraInst.loc
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: host:-host Value:dbhost1.myoracle.com
2020-10-2307:53:01,747 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: patch.plan:-plan Value:siha
2020-10-2307:53:01,748 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: format:-format Value:xml
2020-10-2307:53:01,748 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: output:-output Value:console
2020-10-2307:53:01,748 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: customconfigdir:-customConfigDir Value:/u01/grid/opatchautocfg/db
2020-10-2307:53:01,748 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: nonrolling:-nonrolling Value:false
2020-10-2307:53:01,748 INFO [1] com.oracle.glcm.patch.auto.OPatchAutoOptions - Option: session:-session Value:CBD4
2020-10-2307:53:01,940 INFO [1] com.oracle.glcm.patch.auto.OPatchAuto - The id for this session is CBD4
2020-10-2307:53:01,940 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='The id for this session is CBD4'}
2020-10-2307:53:01,943 WARNING [1] com.oracle.glcm.patch.auto.credential.CredentialManager - Unable to locate credential for host dbhost1
2020-10-2307:53:01,983 WARNING [1] com.oracle.glcm.patch.auto.credential.CredentialManager - Unable to locate credential for host dbhost1
2020-10-2307:53:01,998 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.impl.PatchPackageFactoryImpl - Entering getPatchPackageFromDir, getting patch object for the given patch location /u01/stage/31720429/31750108
2020-10-2307:53:02,642 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchBundlePatchValidatorAndGenerator - Bundle.xml does not exist
2020-10-2307:53:02,642 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchSingletonPatchValidatorAndGenerator - inventory.xml found at /u01/stage/31720429/31750108/31772784/etc/config/inventory.xml which implies it is an OPatch Singleton patch
2020-10-2307:53:02,644 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Command for patch metadata::/u01/grid/perl/bin/perl /u01/grid/OPatch/auto/database/bin/OPatchAutoBinary.pl query patchinfo -patch_location /u01/stage/31720429/31750108/31772784 -result /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:04,603 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Reading session result from /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:04,630 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchBundlePatchValidatorAndGenerator - Bundle.xml does not exist
2020-10-2307:53:04,631 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchSingletonPatchValidatorAndGenerator - inventory.xml found at /u01/stage/31720429/31750108/31773437/etc/config/inventory.xml which implies it is an OPatch Singleton patch
2020-10-2307:53:04,631 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Command for patch metadata::/u01/grid/perl/bin/perl /u01/grid/OPatch/auto/database/bin/OPatchAutoBinary.pl query patchinfo -patch_location /u01/stage/31720429/31750108/31773437 -result /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:06,399 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Reading session result from /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:06,409 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchBundlePatchValidatorAndGenerator - Bundle.xml does not exist
2020-10-2307:53:06,409 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchSingletonPatchValidatorAndGenerator - inventory.xml found at /u01/stage/31720429/31750108/31780966/etc/config/inventory.xml which implies it is an OPatch Singleton patch
2020-10-2307:53:06,409 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Command for patch metadata::/u01/grid/perl/bin/perl /u01/grid/OPatch/auto/database/bin/OPatchAutoBinary.pl query patchinfo -patch_location /u01/stage/31720429/31750108/31780966 -result /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:08,230 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Reading session result from /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:08,235 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchBundlePatchValidatorAndGenerator - Bundle.xml does not exist
2020-10-2307:53:08,235 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.OPatchSingletonPatchValidatorAndGenerator - inventory.xml found at /u01/stage/31720429/31750108/31771877/etc/config/inventory.xml which implies it is an OPatch Singleton patch
2020-10-2307:53:08,235 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Command for patch metadata::/u01/grid/perl/bin/perl /u01/grid/OPatch/auto/database/bin/OPatchAutoBinary.pl query patchinfo -patch_location /u01/stage/31720429/31750108/31771877 -result /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:11,132 INFO [1] com.oracle.glcm.patch.auto.db.framework.core.patch.PatchMetadaReader - Reading session result from /u01/grid/OPatch/auto/dbtmp/result.ser
2020-10-2307:53:11,162 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.CheckForNullValuesValidator - Method Filter's for class dbmodel.db_crs.ASMInstance don't exist or is empty in the Validation Filter map. This class will be ignored for validation
2020-10-2307:53:11,162 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - CRS Type is detected to be SIHA
2020-10-2307:53:11,162 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - Checking the CRS status and session state across the entire cluster
2020-10-2307:53:11,162 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - Size of the host list is : 1
2020-10-2307:53:11,163 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - Credential not found for user oracle on dbhost1
2020-10-2307:53:11,163 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - This is a SIHA environment, state file will not be checked.
2020-10-2307:53:11,163 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.RemoteGIStatusValidation - First node of patching :true
2020-10-2307:53:11,163 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.PatchApplicableValidator - The patch 31780966can be applied on any platform.
2020-10-2307:53:11,277 WARNING [1] com.oracle.glcm.patch.auto.credential.CredentialManager - Unable to locate credential for host dbhost1
2020-10-2307:53:11,277 WARNING [1] com.oracle.glcm.patch.auto.credential.CredentialManager - Unable to locate credential for host dbhost1 for user root
2020-10-2307:53:11,277 WARNING [1] com.oracle.glcm.patch.auto.credential.CredentialManager - Unable to locate credential for host dbhost1
2020-10-2307:53:11,278 INFO [1] com.oracle.glcm.patch.auto.db.product.DBPatchVersionSelection - Found HAS-has_dbhost1 with version: 19.0.0.0.0
2020-10-2307:53:11,283 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder - home: /u01/db in host: dbhost1
2020-10-2307:53:11,284 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder - home: /u01/grid in host: dbhost1
2020-10-2307:53:11,284 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder - hostList: dbhost1
2020-10-2307:53:11,284 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder - completeHostList: dbhost1
2020-10-2307:53:11,284 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.CRSTopologyBuilder - Post remote check hostList: dbhost1
2020-10-2307:53:11,861 INFO [1] com.oracle.glcm.patch.auto.db.product.validation.validators.OOPPatchTargetValidator - OOP patch target validation skipped
2020-10-2307:53:11,863 INFO [1] com.oracle.glcm.patch.auto.OPatchAuto - Topology loaded:
Topology Hosts: [dbhost1 Homes: [/u01/db [sidb [home], default [home]], /u01/grid [siha [home], default [home]]]]
2020-10-2307:53:12,372 INFO [51] com.oracle.cie.wizard.silent.tasks.LogKeyTask - The key operation has a value of <apply>
2020-10-2307:53:12,373 INFO [52] com.oracle.cie.wizard.silent.tasks.LogKeyTask - The key patch.plan has a value of <siha>
2020-10-2307:53:12,373 INFO [53] com.oracle.cie.wizard.silent.tasks.LogKeyTask - The key patch.plan.target has a value of <siha>
2020-10-2307:53:12,376 INFO [48] com.oracle.cie.wizard.internal.tasks.EvaluateExternalWCF - No extension file: wcf/opatchauto/db_lifecycle.xml available in classpath.
2020-10-2307:53:12,640 WARNING [48] com.oracle.cie.wizard.internal.wcf.WCFParser$WCFValidationEventHandler - [jar:file:/u01/grid/OPatch/auto/database/modules/com.oracle.glcm.patch.opatchautodb-actions_13.9.4.4.jar!/wcf/opatchauto/db_siha_patch_plan.xml - line:7, column:85] cvc-complex-type.4: Attribute 'default-target' must appear on element 'wizard-control-file'.
2020-10-2307:53:12,700 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [init:init] phase:goal.
2020-10-2307:53:12,701 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [OJVMPatchAction, OPatchAutoBinaryAction, DBPrereqAction, SwitchAnalyzeAction, SDBShardEntityPatchAction, SDBGIPatchAction, DGOGGPatchAction, PatchReportAction, PushImagePatchAction] for [init:init] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2307:53:12,705 INFO [69] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action OJVMPatchAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:53:12,706 INFO [69] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:53:15,352 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.OJVMPatchAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:53:15,353 INFO [72] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:53:15,353 INFO [72] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:53:15,353 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2307:53:15,354 INFO [73] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:53:15,354 INFO [73] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Executing OPatch prereq operations to verify patch applicability on home /u01/db'
}
2020-10-2307:53:15,357 INFO [73] com.oracle.glcm.patch.auto.OPatchAutoHelper - Executing command [bash, -c, ORACLE_HOME=/u01/db /u01/db/bin/orabaseconfig]
2020-10-2307:53:15,374 INFO [73] com.oracle.helper.util.HelperUtility - Output :
/u01/db

2020-10-2307:53:15,374 INFO [73] com.oracle.helper.util.HelperUtility - Oracle Base Config for /u01/db is /u01/db
2020-10-2307:53:15,429 INFO [73] com.oracle.glcm.patch.auto.OPatchAutoHelper - Executing command [bash, -c, ORACLE_HOME=/u01/db /u01/db/bin/orabasehome]
2020-10-2307:53:15,442 INFO [73] com.oracle.helper.util.HelperUtility - Output :
/u01/db

2020-10-2307:53:15,442 INFO [73] com.oracle.helper.util.HelperUtility - Oracle Base Home for /u01/db is /u01/db
2020-10-2307:53:15,501 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -
Executing command as oracle:
/u01/db/OPatch/opatchauto apply /u01/stage/31720429/31750108 -oh /u01/db -target_type oracle_database -binary -invPtrLoc /u01/grid/oraInst.loc -jre /u01/grid/OPatch/jre -persistresult /u01/db/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_sidb_2.ser -analyze -online -prepare_home
2020-10-2307:54:20,036 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary return code=0
2020-10-2307:54:20,037 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary output=Oracle Home : /u01/db

OPatchAuto binary patching Tool
Copyright (c)2014, Oracle Corporation. All rights reserved.

OPatchauto Version : 13.9.5.0.0
Running from : /u01/db

opatchauto log file: /u01/db/cfgtoollogs/opatchauto/opatchauto_2020-10-23_07-53-15_binary.log

Target type : oracle_database

Patch selected: /u01/stage/31720429/31750108


Analysing this list of patches :
[/u01/stage/31720429/31750108/31772784, /u01/stage/31720429/31750108/31771877] ...

Analysis completed and prepared the home for patching.


opatchauto SUCCEEDED.



2020-10-2307:54:20,037 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary error message=
2020-10-2307:54:20,037 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Reading session result from /u01/db/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_sidb_2.ser
2020-10-2307:54:20,041 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -

==Following patches were SKIPPED:

Patch: /u01/stage/31720429/31750108/31773437
Reason: This patch is not applicable to this specified target type - "oracle_database"

Patch: /u01/stage/31720429/31750108/31780966
Reason: This patch is not applicable to this specified target type - "oracle_database"


==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-53-18AM_1.log

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-53-18AM_1.log

2020-10-2307:54:20,042 INFO [73] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - isSkipped: false
2020-10-2307:54:20,042 INFO [73] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:54:20,043 INFO [73] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Patch applicability verified successfully on home /u01/db
'
}
2020-10-2307:54:20,044 INFO [93] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action DBPrereqAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:54:20,044 INFO [93] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:54:20,044 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.DBPrereqAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2307:54:20,046 INFO [94] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action DBPrereqAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:54:20,047 INFO [94] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Verifying SQL patch applicability on home /u01/db'
}
2020-10-2307:54:20,072 INFO [94] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.SqlPatchCommand - Is SQL patch available=true
2020-10-2307:54:20,073 INFO [94] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: owner Value: oracle
2020-10-2307:54:20,758 INFO [94] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.DBPatchingHelper - Is orcl standby database : false
2020-10-2307:54:20,760 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'cd /u01/db; ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/OPatch/datapatch -prereq -verbose'
2020-10-2307:54:20,760 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'cd /u01/db; ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/OPatch/datapatch -prereq -verbose'
2020-10-2307:55:43,133 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:55:43,134 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:55:43,134 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:55:43,134 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - SQL Patching tool version 19.8.0.0.0 Production on Fri Oct 2307:54:212020
Copyright (c) 2012, 2020, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_14422_2020_10_23_07_54_21/sqlpatch_invocation.log

Connecting to database...OK
Gathering database info...done

Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)

Determining current state...done

Current state of interim SQL patches:
Interim patch 30128191 (OJVM RELEASE UPDATE: 19.5.0.0.191015 (30128191)):
Binary registry: Not installed
PDB CDB$ROOT: Rolled back successfully on 18-APR-2003.21.12.474119 PM
PDB ORCLPDB1: Rolled back successfully on 18-APR-2003.21.12.513259 PM
PDB PDB$SEED: Rolled back successfully on 18-APR-2003.21.12.493577 PM
Interim patch 30805684 (OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684)):
Binary registry: Not installed
PDB CDB$ROOT: Rolled back successfully on 18-JUL-2010.02.48.249145 AM
PDB ORCLPDB1: Rolled back successfully on 18-JUL-2010.02.48.314462 AM
PDB PDB$SEED: Rolled back successfully on 18-JUL-2010.02.48.288939 AM
Interim patch 31219897 (OJVM RELEASE UPDATE: 19.8.0.0.200714 (31219897)):
Binary registry: Installed
PDB CDB$ROOT: Applied successfully on 18-JUL-2010.02.48.255611 AM
PDB ORCLPDB1: Applied successfully on 18-JUL-2010.02.48.319252 AM
PDB PDB$SEED: Applied successfully on 18-JUL-2010.02.48.295459 AM

Current state of release update SQL patches:
Binary registry:
19.8.0.0.0 Release_Update 200703031501: Installed
PDB CDB$ROOT:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.13.58.691644 AM
PDB ORCLPDB1:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.14.02.613527 AM
PDB PDB$SEED:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.14.00.478177 AM

Adding patches to installation queue and performing prereq checks...done
Installation queue:
For the following PDBs: CDB$ROOT PDB$SEED ORCLPDB1
No interim patches need to be rolled back
No release update patches need to be installed
No interim patches need to be applied

SQL Patching tool complete on Fri Oct 2307:55:422020

2020-10-2307:55:43,134 INFO [94] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:55:43,137 INFO [94] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='SQL patch applicability verified successfully on home /u01/db
'
}
2020-10-2307:55:43,138 INFO [99] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SwitchAnalyzeAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:55:43,139 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.SwitchAnalyzeAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:55:43,140 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:55:43,140 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:55:43,140 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:55:43,141 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:55:43,141 INFO [68] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:55:43,153 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [init:init] phase:goal.
2020-10-2307:55:43,154 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [OJVMPatchAction, OPatchAutoBinaryAction, DBPrereqAction, SwitchAnalyzeAction, SDBShardEntityPatchAction, SDBGIPatchAction, DGOGGPatchAction, PatchReportAction, PushImagePatchAction] for [init:init] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2307:55:43,154 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:55:43,154 INFO [111] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2307:55:43,154 INFO [111] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2307:55:43,155 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction] for patch targets [dbhost1->/u01/grid Type[siha]].
2020-10-2307:55:43,155 INFO [112] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2307:55:43,155 INFO [112] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Executing OPatch prereq operations to verify patch applicability on home /u01/grid'
}
2020-10-2307:55:43,156 INFO [112] com.oracle.glcm.patch.auto.OPatchAutoHelper - Executing command [bash, -c, ORACLE_HOME=/u01/grid /u01/grid/bin/orabaseconfig]
2020-10-2307:55:43,165 INFO [112] com.oracle.helper.util.HelperUtility - Output :
/u01/grid

2020-10-2307:55:43,165 INFO [112] com.oracle.helper.util.HelperUtility - Oracle Base Config for /u01/grid is /u01/grid
2020-10-2307:55:43,263 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -
Executing command as oracle:
/u01/grid/OPatch/opatchauto apply /u01/stage/31720429/31750108 -oh /u01/grid -target_type has -binary -invPtrLoc /u01/grid/oraInst.loc -jre /u01/grid/OPatch/jre -persistresult /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_siha_1.ser -analyze -online -prepare_home
2020-10-2307:56:44,305 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary return code=0
2020-10-2307:56:44,305 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary output=Oracle Home : /u01/grid

OPatchAuto binary patching Tool
Copyright (c)2014, Oracle Corporation. All rights reserved.

OPatchauto Version : 13.9.5.0.0
Running from : /u01/grid

opatchauto log file: /u01/grid/cfgtoollogs/opatchauto/opatchauto_2020-10-23_07-55-43_binary.log

Target type : has

Patch selected: /u01/stage/31720429/31750108


Analysing this list of patches :
[/u01/stage/31720429/31750108/31772784, /u01/stage/31720429/31750108/31773437, /u01/stage/31720429/31750108/31780966, /u01/stage/31720429/31750108/31771877] ...

Analysis completed and prepared the home for patching.


opatchauto SUCCEEDED.



2020-10-2307:56:44,305 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary error message=
2020-10-2307:56:44,305 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Reading session result from /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_siha_1.ser
2020-10-2307:56:44,308 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -

==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-55-45AM_1.log

Patch: /u01/stage/31720429/31750108/31773437
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-55-45AM_1.log

Patch: /u01/stage/31720429/31750108/31780966
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-55-45AM_1.log

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-55-45AM_1.log

2020-10-2307:56:44,309 INFO [112] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - isSkipped: false
2020-10-2307:56:44,309 INFO [112] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2307:56:44,309 INFO [112] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Patch applicability verified successfully on home /u01/grid
'
}
2020-10-2307:56:44,310 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,310 INFO [131] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SwitchAnalyzeAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.SwitchAnalyzeAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,311 INFO [110] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:56:44,319 INFO [142] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [shutdown:prepare-shutdown] phase:goal.
2020-10-2307:56:44,319 INFO [142] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [SIDBPrepareShutDownAction, RemoteGIStopAction, RACPrepareShutDownAction] for [shutdown:prepare-shutdown] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2307:56:44,320 INFO [143] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBPrepareShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:56:44,320 INFO [143] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:56:44,320 INFO [142] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBPrepareShutDownAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2307:56:44,320 INFO [144] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIDBPrepareShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:56:44,321 INFO [144] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Preparing to bring down database service on home /u01/db'
}
2020-10-2307:56:44,325 INFO [144] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: owner Value: oracle
2020-10-2307:56:44,832 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'echo "DECLARE l_count NUMBER(4) :=0; BEGIN SELECT count(*) INTO l_count FROM CDB_PDBS; IF l_count >1 then EXECUTE IMMEDIATE '\''alter pluggable database ALL SAVE STATE'\''; END IF; commit; END;"> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,832 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'echo "DECLARE l_count NUMBER(4) :=0; BEGIN SELECT count(*) INTO l_count FROM CDB_PDBS; IF l_count >1 then EXECUTE IMMEDIATE '\''alter pluggable database ALL SAVE STATE'\''; END IF; commit; END;"> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'echo "/">> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,846 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'echo "/">> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,860 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'echo "EXIT;">> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,861 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'echo "EXIT;">> /tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,874 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'cd /u01/db ; ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/bin/sqlplus / as sysdba @/tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:44,875 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'cd /u01/db ; ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/bin/sqlplus / as sysdba @/tmp/OraDB19Home1_oracle_orcl.sql'
2020-10-2307:56:45,913 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:56:45,913 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:56:45,913 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:56:45,913 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
SQL*Plus: Release 19.0.0.0.0 - Production on Fri Oct 2307:56:442020
Version 19.8.0.0.0

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


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.8.0.0.0


PL/SQL procedure successfully completed.

Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.8.0.0.0

2020-10-2307:56:45,913 INFO [144] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:56:45,915 INFO [144] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Successfully prepared home /u01/db to bring down database service
'
}
2020-10-2307:56:45,915 INFO [142] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:56:45,915 INFO [142] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:56:45,919 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [shutdown:shutdown] phase:goal.
2020-10-2307:56:45,919 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACOneAction, SIHAShutDownAction, GIShutDownAction, SIDBShutDownAction, RACShutDownAction] for [shutdown:shutdown] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2307:56:45,920 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:56:45,920 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:56:45,920 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:56:45,921 INFO [166] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:56:45,921 INFO [166] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:56:45,921 INFO [166] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - running: true
2020-10-2307:56:45,922 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBShutDownAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2307:56:45,922 INFO [167] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIDBShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:56:45,922 INFO [167] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Bringing down database service on home /u01/db'
}
2020-10-2307:56:45,931 INFO [167] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: owner Value: oracle
2020-10-2307:56:45,932 INFO [167] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.OracleHomeLifecycle - type: stop
2020-10-2307:56:45,932 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
mkdir -p /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1
2020-10-2307:56:45,932 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: mkdir -p /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1
2020-10-2307:56:45,943 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'ORACLE_HOME=/u01/db /u01/db/bin/srvctl stop home -o /u01/db -f -s /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat'
2020-10-2307:56:45,944 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'ORACLE_HOME=/u01/db /u01/db/bin/srvctl stop home -o /u01/db -f -s /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat'
2020-10-2307:57:10,671 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:57:10,672 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:57:10,672 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:57:10,672 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2307:57:10,672 INFO [167] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:57:10,672 INFO [167] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Following database has been stopped and will be restarted later during the session: orcl'}
2020-10-2307:57:10,673 INFO [167] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Database service successfully brought down on home /u01/db
'
}
2020-10-2307:57:10,673 INFO [165] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:57:10,678 INFO [182] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [shutdown:prepare-shutdown] phase:goal.
2020-10-2307:57:10,678 INFO [182] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [SIDBPrepareShutDownAction, RemoteGIStopAction, RACPrepareShutDownAction] for [shutdown:prepare-shutdown] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2307:57:10,678 INFO [182] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:10,678 INFO [182] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:10,678 INFO [182] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:10,698 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [shutdown:shutdown] phase:goal.
2020-10-2307:57:10,699 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACOneAction, SIHAShutDownAction, GIShutDownAction, SIDBShutDownAction, RACShutDownAction] for [shutdown:shutdown] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2307:57:10,699 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:10,699 INFO [193] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIHAShutDownAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2307:57:10,699 INFO [193] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Retrieving property SHARED for target /u01/grid [siha [home], default [home]], dbhost1 Homes: [/u01/db [sidb [home], default [home]], /u01/grid [siha [home], default [home]]]:null
2020-10-2307:57:10,700 INFO [193] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - running: true
2020-10-2307:57:10,700 INFO [193] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Is patch applicability check required for CRS:true
2020-10-2307:57:10,700 INFO [193] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2307:57:10,700 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIHAShutDownAction] for patch targets [dbhost1->/u01/grid Type[siha]].
2020-10-2307:57:10,701 INFO [194] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIHAShutDownAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2307:57:10,701 INFO [194] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Bringing down CRS service on home /u01/grid'
}
2020-10-2307:57:10,704 INFO [194] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.RootCrsCommand - rootPlPath: ROOT_CRS_PL_PATH
2020-10-2307:57:10,704 INFO [194] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Updated root crs location is /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install
2020-10-2307:57:10,704 INFO [194] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Updated xag file location is /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag
2020-10-2307:57:10,704 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as root:
/u01/grid/perl/bin/perl -I/u01/grid/perl/lib -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/roothas.pl -prepatch
2020-10-2307:57:10,704 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /u01/grid/perl/bin/perl -I/u01/grid/perl/lib -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/roothas.pl -prepatch
2020-10-2307:57:34,990 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2307:57:34,990 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2307:57:34,990 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2307:57:34,990 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Using configuration parameter file: /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_07-57-11PM.log
2020/10/2219:57:34 CLSRSC-347: Successfully unlock /u01/grid
2020/10/2219:57:34 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.

2020-10-2307:57:34,990 INFO [194] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2307:57:34,991 INFO [194] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Prepatch operation log file location: /u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_07-57-11PM.log'}
2020-10-2307:57:34,991 INFO [194] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='CRS service brought down successfully on home /u01/grid
'
}
2020-10-2307:57:34,992 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:34,992 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:34,992 INFO [192] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2307:57:34,995 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:prepare] phase:goal.
2020-10-2307:57:34,995 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CopyHomePatchAction, SIHAShutDownAction, GIShutDownAction, CloneOracleHomeAction, PostCloneOracleHomeAction, RACPatchingAction, SIDBPatchingAction] for [offline:prepare] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2307:57:34,995 INFO [208] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CopyHomePatchAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:34,996 INFO [208] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:34,996 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.CopyHomePatchAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:34,996 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:57:34,996 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:57:34,999 INFO [209] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CloneOracleHomeAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:34,999 INFO [209] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:34,999 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.CloneOracleHomeAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:35,000 INFO [210] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action PostCloneOracleHomeAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:35,000 INFO [210] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:35,000 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.PostCloneOracleHomeAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:35,001 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:57:35,001 INFO [211] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBPatchingAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:35,001 INFO [211] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:35,001 INFO [207] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBPatchingAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:35,010 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:binary-patching] phase:goal.
2020-10-2307:57:35,010 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CloneHomePatchAction, CopyDatapatchLibsAction, OPatchAutoBinaryAction, BinaryPatchAction] for [offline:binary-patching] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2307:57:35,010 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2307:57:35,011 INFO [222] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CopyDatapatchLibsAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:35,011 INFO [222] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:35,012 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.CopyDatapatchLibsAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:35,017 INFO [223] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:35,017 INFO [223] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2307:57:35,017 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2307:57:35,017 INFO [224] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2307:57:35,017 INFO [224] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Start applying binary patch on home /u01/db'
}
2020-10-2307:57:35,090 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -
Executing command as oracle:
/u01/db/OPatch/opatchauto apply /u01/stage/31720429/31750108 -oh /u01/db -target_type oracle_database -binary -invPtrLoc /u01/grid/oraInst.loc -jre /u01/grid/OPatch/jre -persistresult /u01/db/opatchautocfg/db/sessioninfo/sessionresult_dbhost1_sidb_2.ser -analyzedresult /u01/db/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_sidb_2.ser
2020-10-2308:07:28,742 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary return code=0
2020-10-2308:07:28,743 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary output=Oracle Home : /u01/db

OPatchAuto binary patching Tool
Copyright (c)2014, Oracle Corporation. All rights reserved.

OPatchauto Version : 13.9.5.0.0
Running from : /u01/db

opatchauto log file: /u01/db/cfgtoollogs/opatchauto/opatchauto_2020-10-23_07-57-35_binary.log

Target type : oracle_database

Patch selected: /u01/stage/31720429/31750108


Analyze session result created from file :: /u01/db/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_sidb_2.ser

Analyzing before applying /u01/stage/31720429/31750108/31771877 ...

Applying /u01/stage/31720429/31750108/31771877 ...

Patch /u01/stage/31720429/31750108/31771877 applied.

Analyzing before applying /u01/stage/31720429/31750108/31772784 ...

Applying /u01/stage/31720429/31750108/31772784 ...

Patch /u01/stage/31720429/31750108/31772784 applied.


opatchauto SUCCEEDED.



2020-10-2308:07:28,743 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary error message=
2020-10-2308:07:28,743 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Reading session result from /u01/db/opatchautocfg/db/sessioninfo/sessionresult_dbhost1_sidb_2.ser
2020-10-2308:07:28,743 INFO [224] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -

==Following patches were SKIPPED:

Patch: /u01/stage/31720429/31750108/31773437
Reason: This patch is not applicable to this specified target type - "oracle_database"

Patch: /u01/stage/31720429/31750108/31780966
Reason: This patch is not applicable to this specified target type - "oracle_database"


==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log

2020-10-2308:07:28,762 INFO [224] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Binary patch applied successfully on home /u01/db
'
}
2020-10-2308:07:28,762 INFO [221] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,765 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:finalize-binary-patching] phase:goal.
2020-10-2308:07:28,765 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CloneOracleHomeStartupAction, SIDBPrepareShutDownAction, RACPrepareShutDownAction, SIDBShutDownAction, RACShutDownAction, RACOneAction, SIHAShutDownAction, GIShutDownAction, CloneHomePatchAction, ImageHomePatchAction] for [offline:finalize-binary-patching] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:07:28,765 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,768 INFO [253] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBPrepareShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:07:28,768 INFO [253] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,769 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBPrepareShutDownAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:07:28,769 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,769 INFO [254] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBShutDownAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:07:28,769 INFO [254] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,770 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBShutDownAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,771 INFO [252] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,790 INFO [264] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:product-patching] phase:goal.
2020-10-2308:07:28,790 INFO [264] com.oracle.glcm.patch.auto.action.PatchActionExecutor - There are no patch actions which require execution for [offline:product-patching] phase:goal.
2020-10-2308:07:28,795 INFO [274] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:finalize] phase:goal.
2020-10-2308:07:28,795 INFO [274] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACPatchingAction, SIDBPatchingAction, RemoteGIStopAction] for [offline:finalize] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:07:28,795 INFO [274] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,795 INFO [275] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBPatchingAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:07:28,796 INFO [275] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,797 INFO [274] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBPatchingAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:07:28,797 INFO [274] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:07:28,803 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:prepare] phase:goal.
2020-10-2308:07:28,803 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CopyHomePatchAction, SIHAShutDownAction, GIShutDownAction, CloneOracleHomeAction, PostCloneOracleHomeAction, RACPatchingAction, SIDBPatchingAction] for [offline:prepare] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:07:28,804 INFO [287] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CopyHomePatchAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,804 INFO [287] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,805 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.CopyHomePatchAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:07:28,807 INFO [288] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIHAShutDownAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,807 INFO [288] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Is patch applicability check required for CRS:true
2020-10-2308:07:28,807 INFO [288] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,809 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIHAShutDownAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:07:28,809 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:07:28,810 INFO [289] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CloneOracleHomeAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,810 INFO [289] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,811 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.CloneOracleHomeAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:07:28,811 INFO [290] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action PostCloneOracleHomeAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,811 INFO [290] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,812 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.PostCloneOracleHomeAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:07:28,812 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:07:28,812 INFO [286] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:07:28,816 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:binary-patching] phase:goal.
2020-10-2308:07:28,817 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CloneHomePatchAction, CopyDatapatchLibsAction, OPatchAutoBinaryAction, BinaryPatchAction] for [offline:binary-patching] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:07:28,817 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:07:28,817 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:07:28,817 INFO [301] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,817 INFO [301] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:07:28,818 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction] for patch targets [dbhost1->/u01/grid Type[siha]].
2020-10-2308:07:28,818 INFO [302] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action OPatchAutoBinaryAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:07:28,818 INFO [302] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Start applying binary patch on home /u01/grid'
}
2020-10-2308:07:28,943 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -
Executing command as oracle:
/u01/grid/OPatch/opatchauto apply /u01/stage/31720429/31750108 -oh /u01/grid -target_type has -binary -invPtrLoc /u01/grid/oraInst.loc -jre /u01/grid/OPatch/jre -persistresult /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_dbhost1_siha_1.ser -analyzedresult /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_siha_1.ser
2020-10-2308:24:35,512 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary return code=0
2020-10-2308:24:35,512 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary output=Oracle Home : /u01/grid

OPatchAuto binary patching Tool
Copyright (c)2014, Oracle Corporation. All rights reserved.

OPatchauto Version : 13.9.5.0.0
Running from : /u01/grid

opatchauto log file: /u01/grid/cfgtoollogs/opatchauto/opatchauto_2020-10-23_08-07-29_binary.log

Target type : has

Patch selected: /u01/stage/31720429/31750108


Analyze session result created from file :: /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_analyze_dbhost1_siha_1.ser

Analyzing before applying /u01/stage/31720429/31750108/31771877 ...

Applying /u01/stage/31720429/31750108/31771877 ...

Patch /u01/stage/31720429/31750108/31771877 applied.

Analyzing before applying /u01/stage/31720429/31750108/31772784 ...

Applying /u01/stage/31720429/31750108/31772784 ...

Patch /u01/stage/31720429/31750108/31772784 applied.

Analyzing before applying /u01/stage/31720429/31750108/31773437 ...

Applying /u01/stage/31720429/31750108/31773437 ...

Patch /u01/stage/31720429/31750108/31773437 applied.

Analyzing before applying /u01/stage/31720429/31750108/31780966 ...

Applying /u01/stage/31720429/31750108/31780966 ...

Patch /u01/stage/31720429/31750108/31780966 applied.


opatchauto SUCCEEDED.



2020-10-2308:24:35,513 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Opatchcore binary error message=
2020-10-2308:24:35,513 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction - Reading session result from /u01/grid/opatchautocfg/db/sessioninfo/sessionresult_dbhost1_siha_1.ser
2020-10-2308:24:35,513 INFO [302] com.oracle.glcm.patch.auto.db.integration.controller.action.OPatchAutoBinaryAction -

==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31773437
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31780966
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

2020-10-2308:24:35,520 INFO [302] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Binary patch applied successfully on home /u01/grid
'
}
2020-10-2308:24:35,521 INFO [300] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,525 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:finalize-binary-patching] phase:goal.
2020-10-2308:24:35,525 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [CloneOracleHomeStartupAction, SIDBPrepareShutDownAction, RACPrepareShutDownAction, SIDBShutDownAction, RACShutDownAction, RACOneAction, SIHAShutDownAction, GIShutDownAction, CloneHomePatchAction, ImageHomePatchAction] for [offline:finalize-binary-patching] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:24:35,526 INFO [331] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CloneOracleHomeStartupAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:24:35,526 INFO [331] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.CloneOracleHomeStartupAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,527 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,528 INFO [332] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIHAShutDownAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:24:35,528 INFO [332] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Is patch applicability check required for CRS:true
2020-10-2308:24:35,528 INFO [332] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:24:35,529 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIHAShutDownAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:24:35,530 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,530 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,530 INFO [330] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,533 INFO [342] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:product-patching] phase:goal.
2020-10-2308:24:35,533 INFO [342] com.oracle.glcm.patch.auto.action.PatchActionExecutor - There are no patch actions which require execution for [offline:product-patching] phase:goal.
2020-10-2308:24:35,536 INFO [352] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [offline:finalize] phase:goal.
2020-10-2308:24:35,536 INFO [352] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACPatchingAction, SIDBPatchingAction, RemoteGIStopAction] for [offline:finalize] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:24:35,536 INFO [352] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,536 INFO [352] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,536 INFO [352] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,539 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [startup:startup] phase:goal.
2020-10-2308:24:35,539 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACOneAction, SIHAStartupAction, SIDBStartupAction, GIStartupAction, RACStartupAction] for [startup:startup] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:24:35,539 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:24:35,539 INFO [364] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIHAStartupAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:24:35,540 INFO [364] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Retrieving property SHARED for target /u01/grid [siha [home], default [home]], dbhost1 Homes: [/u01/db [sidb [home], default [home]], /u01/grid [siha [home], default [home]]]:null
2020-10-2308:24:35,540 INFO [364] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - running: true
2020-10-2308:24:35,540 INFO [364] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Is patch applicability check required for CRS:true
2020-10-2308:24:35,540 INFO [364] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:24:35,540 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIHAStartupAction] for patch targets [dbhost1->/u01/grid Type[siha]].
2020-10-2308:24:35,541 INFO [365] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIHAStartupAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:24:35,541 INFO [365] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Starting CRS service on home /u01/grid'
}
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: path Value: /u01/grid
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.RootCrsCommand - rootPlPath: ROOT_CRS_PL_PATH
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Updated root crs location is /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.integration.controller.action.CRSShutDownStartupAction - Updated xag file location is /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as root:
/u01/grid/rdbms/install/rootadd_rdbms.sh
2020-10-2308:24:35,542 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /u01/grid/rdbms/install/rootadd_rdbms.sh
2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as root:
/u01/grid/perl/bin/perl -I/u01/grid/perl/lib -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/roothas.pl -postpatch
2020-10-2308:24:35,593 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /u01/grid/perl/bin/perl -I/u01/grid/perl/lib -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install -I/u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/xag /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/roothas.pl -postpatch
2020-10-2308:26:22,861 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2308:26:22,861 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2308:26:22,861 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2308:26:22,861 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Using configuration parameter file: /u01/grid/opatchautocfg/db/dbtmp/bootstrap_dbhost1/patchwork/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_08-24-35PM.log
2020/10/2220:24:38 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
2020/10/2220:26:22 CLSRSC-672: Post-patch steps for patching GI home successfully completed.

2020-10-2308:26:22,861 INFO [365] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2308:26:22,862 INFO [365] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Postpatch operation log file location: /u01/app/oracle/crsdata/dbhost1/crsconfig/hapatch_2020-10-22_08-24-35PM.log'}
2020-10-2308:26:22,862 INFO [365] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='CRS service started successfully on home /u01/grid
'
}
2020-10-2308:26:22,863 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:26:22,863 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:26:22,863 INFO [363] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:26:22,867 INFO [379] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [startup:finalize] phase:goal.
2020-10-2308:26:22,867 INFO [379] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [SIDBFinalizeStartAction, RACFinalizeStartAction] for [startup:finalize] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:26:22,867 INFO [379] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:26:22,867 INFO [379] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:26:22,883 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [startup:startup] phase:goal.
2020-10-2308:26:22,883 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RACOneAction, SIHAStartupAction, SIDBStartupAction, GIStartupAction, RACStartupAction] for [startup:startup] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:26:22,883 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:22,883 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:22,884 INFO [391] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBStartupAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:22,884 INFO [391] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:26:22,884 INFO [391] oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader - running: true
2020-10-2308:26:22,885 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBStartupAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2308:26:22,885 INFO [392] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIDBStartupAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:22,885 INFO [392] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Starting database service on home /u01/db'
}
2020-10-2308:26:22,886 INFO [392] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: owner Value: oracle
2020-10-2308:26:22,887 INFO [392] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.OracleHomeLifecycle - type: start
2020-10-2308:26:22,887 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'ORACLE_HOME=/u01/db /u01/db/bin/srvctl start home -o /u01/db -s /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat'
2020-10-2308:26:22,887 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'ORACLE_HOME=/u01/db /u01/db/bin/srvctl start home -o /u01/db -s /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat'
2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2308:26:39,122 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
rm -rf /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat
2020-10-2308:26:39,123 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: rm -rf /u01/db/opatchautocfg/db/sessioninfo/statfile/dbhost1/OracleHome-75afcffb-8848-4014-8d4d-ea01d9c700c6_dbhost1.stat
2020-10-2308:26:39,197 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2308:26:39,197 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2308:26:39,197 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2308:26:39,197 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
2020-10-2308:26:39,197 INFO [392] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2308:26:39,198 INFO [392] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Database service successfully started on home /u01/db
'
}
2020-10-2308:26:39,198 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:39,198 INFO [390] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:39,261 INFO [407] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [startup:finalize] phase:goal.
2020-10-2308:26:39,261 INFO [407] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [SIDBFinalizeStartAction, RACFinalizeStartAction] for [startup:finalize] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:26:39,288 INFO [408] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBFinalizeStartAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,288 INFO [408] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:26:39,289 INFO [407] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBFinalizeStartAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2308:26:39,306 INFO [409] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIDBFinalizeStartAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,307 INFO [409] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Preparing home /u01/db after database service restarted'
}
2020-10-2308:26:39,308 INFO [409] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='No step execution required.........'}
2020-10-2308:26:39,316 INFO [409] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message=''}
2020-10-2308:26:39,317 INFO [407] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:39,384 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [online:product-patching] phase:goal.
2020-10-2308:26:39,385 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [ClusterStartupFinalizeAction, SIDBSwitchAction, DatabaseStartupFinalizeAction, SIDBOnlineAction, SDBShardEntityPatchAction, SDBGIPatchAction, RACOnlineAction] for [online:product-patching] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:26:39,385 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:26:39,404 INFO [421] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBSwitchAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,404 INFO [421] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:26:39,406 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.sidb.SIDBSwitchAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:26:39,419 INFO [422] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action DatabaseStartupFinalizeAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,419 INFO [422] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:26:39,419 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.DatabaseStartupFinalizeAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:26:39,432 INFO [423] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action SIDBOnlineAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,432 INFO [423] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:26:39,432 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Executing patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.siha.SIDBOnlineAction] for patch targets [dbhost1->/u01/db Type[sidb]].
2020-10-2308:26:39,444 INFO [424] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing patch action SIDBOnlineAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:26:39,445 INFO [424] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Trying to apply SQL patch on home /u01/db'
}
2020-10-2308:26:39,446 INFO [424] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.StopStartRedoApply$Builder - crate stop start log shipping commandStartRedoApply
2020-10-2308:26:39,451 INFO [424] com.oracle.glcm.patch.auto.db.product.cmdtranslator.commands.SqlPatchCommand - Is SQL patch available=true
2020-10-2308:26:39,452 INFO [424] com.oracle.glcm.patch.auto.db.framework.sdk.patchplanner.SystemModelUtils - Base Class: class dbmodel.common.OracleHome PropertyName: owner Value: oracle
2020-10-2308:26:40,281 INFO [424] com.oracle.glcm.patch.auto.db.integration.model.productsupport.topology.DBPatchingHelper - Is orcl standby database : false
2020-10-2308:26:40,281 INFO [424] com.oracle.glcm.patch.auto.db.integration.controller.action.OnlineAction - Is SQL patching required = true
2020-10-2308:26:40,281 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor -
Executing command as oracle:
/bin/sh -c 'cd /u01/db;ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/OPatch/datapatch -verbose'
2020-10-2308:26:40,281 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - COMMAND Looks like this: /bin/sh -c 'cd /u01/db;ORACLE_HOME=/u01/db ORACLE_SID=orcl /u01/db/OPatch/datapatch -verbose'
2020-10-2308:33:31,726 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - status: 0
2020-10-2308:33:31,726 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Successfully executed the above command.

2020-10-2308:33:31,726 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Output from the command:
2020-10-2308:33:31,726 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - SQL Patching tool version 19.9.0.0.0 Production on Fri Oct 2308:26:402020
Copyright (c) 2012, 2020, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_27896_2020_10_23_08_26_40/sqlpatch_invocation.log

Connecting to database...OK
Gathering database info...done

Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)

Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of interim SQL patches:
Interim patch 30128191 (OJVM RELEASE UPDATE: 19.5.0.0.191015 (30128191)):
Binary registry: Not installed
PDB CDB$ROOT: Rolled back successfully on 18-APR-2003.21.12.474119 PM
PDB ORCLPDB1: Rolled back successfully on 18-APR-2003.21.12.513259 PM
PDB PDB$SEED: Rolled back successfully on 18-APR-2003.21.12.493577 PM
Interim patch 30805684 (OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684)):
Binary registry: Not installed
PDB CDB$ROOT: Rolled back successfully on 18-JUL-2010.02.48.249145 AM
PDB ORCLPDB1: Rolled back successfully on 18-JUL-2010.02.48.314462 AM
PDB PDB$SEED: Rolled back successfully on 18-JUL-2010.02.48.288939 AM
Interim patch 31219897 (OJVM RELEASE UPDATE: 19.8.0.0.200714 (31219897)):
Binary registry: Installed
PDB CDB$ROOT: Applied successfully on 18-JUL-2010.02.48.255611 AM
PDB ORCLPDB1: Applied successfully on 18-JUL-2010.02.48.319252 AM
PDB PDB$SEED: Applied successfully on 18-JUL-2010.02.48.295459 AM

Current state of release update SQL patches:
Binary registry:
19.9.0.0.0 Release_Update 200930183249: Installed
PDB CDB$ROOT:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.13.58.691644 AM
PDB ORCLPDB1:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.14.02.613527 AM
PDB PDB$SEED:
Applied 19.8.0.0.0 Release_Update 200703031501 successfully on 18-JUL-2009.14.00.478177 AM

Adding patches to installation queue and performing prereq checks...done
Installation queue:
For the following PDBs: CDB$ROOT PDB$SEED ORCLPDB1
No interim patches need to be rolled back
Patch 31771877 (Database Release Update : 19.9.0.0.201020 (31771877)):
Apply from 19.8.0.0.0 Release_Update 200703031501 to 19.9.0.0.0 Release_Update 200930183249
No interim patches need to be applied

Installing patches...
Patch installation complete. Total patches installed: 3

Validating logfiles...done
Patch 31771877 apply (pdb CDB$ROOT): SUCCESS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/31771877/23869227/31771877_apply_ORCL_CDBROOT_2020Oct23_08_30_17.log (no errors)
Patch 31771877 apply (pdb PDB$SEED): SUCCESS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/31771877/23869227/31771877_apply_ORCL_PDBSEED_2020Oct23_08_31_39.log (no errors)
Patch 31771877 apply (pdb ORCLPDB1): SUCCESS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/31771877/23869227/31771877_apply_ORCL_ORCLPDB1_2020Oct23_08_31_39.log (no errors)
SQL Patching tool complete on Fri Oct 2308:33:312020

2020-10-2308:33:31,726 INFO [424] com.oracle.glcm.patch.auto.db.product.executor.PatchingStepExecutor - Command executed successfully.

2020-10-2308:33:31,734 INFO [424] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='SQL patch applied successfully on home /u01/db
'
}
2020-10-2308:33:31,734 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:33:31,736 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:33:31,736 INFO [420] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:33:31,746 INFO [438] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [online:finalize] phase:goal.
2020-10-2308:33:31,746 INFO [438] com.oracle.glcm.patch.auto.action.PatchActionExecutor - There are no patch actions which require execution for [online:finalize] phase:goal.
2020-10-2308:33:31,757 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [online:product-patching] phase:goal.
2020-10-2308:33:31,757 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [ClusterStartupFinalizeAction, SIDBSwitchAction, DatabaseStartupFinalizeAction, SIDBOnlineAction, SDBShardEntityPatchAction, SDBGIPatchAction, RACOnlineAction] for [online:product-patching] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:33:31,757 INFO [450] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action ClusterStartupFinalizeAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:33:31,758 INFO [450] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:33:31,758 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.ClusterStartupFinalizeAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,759 INFO [449] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,769 INFO [460] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [online:finalize] phase:goal.
2020-10-2308:33:31,769 INFO [460] com.oracle.glcm.patch.auto.action.PatchActionExecutor - There are no patch actions which require execution for [online:finalize] phase:goal.
2020-10-2308:33:31,772 INFO [471] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [finalize:finalize] phase:goal.
2020-10-2308:33:31,775 INFO [471] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RemoteDeleteAction, DeletePatchAction, CopyOOPSessionFilePatchAction] for [finalize:finalize] phase:goal using patch targets [dbhost1->/u01/grid Type[siha]] for types [siha]
2020-10-2308:33:31,775 INFO [471] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [siha]
2020-10-2308:33:31,776 INFO [472] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action DeletePatchAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:33:31,776 INFO [472] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:33:31,777 INFO [471] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.DeletePatchAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:33:31,784 INFO [473] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CopyOOPSessionFilePatchAction on patch target dbhost1->/u01/grid Type[siha]
2020-10-2308:33:31,784 INFO [473] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/grid [siha [home], default [home]]skipPatchTarget: false
2020-10-2308:33:31,786 INFO [471] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.CopyOOPSessionFilePatchAction] and patch target [dbhost1->/u01/grid Type[siha]].
2020-10-2308:33:31,792 INFO [484] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Execute called for patch actions of [finalize:finalize] phase:goal.
2020-10-2308:33:31,792 INFO [484] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Attempting to execute patch actions [RemoteDeleteAction, DeletePatchAction, CopyOOPSessionFilePatchAction] for [finalize:finalize] phase:goal using patch targets [dbhost1->/u01/db Type[sidb]] for types [sidb]
2020-10-2308:33:31,792 INFO [484] com.oracle.glcm.patch.auto.action.PatchActionExecutor - Skipping patch action because it does not support one of the current patch target types [sidb]
2020-10-2308:33:31,793 INFO [485] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action DeletePatchAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:33:31,793 INFO [485] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:33:31,794 INFO [484] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.DeletePatchAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:33:31,794 INFO [486] com.oracle.glcm.patch.auto.action.LocalPatchActionRunner - Local patch action runner executing is required check for patch action CopyOOPSessionFilePatchAction on patch target dbhost1->/u01/db Type[sidb]
2020-10-2308:33:31,794 INFO [486] com.oracle.glcm.patch.auto.db.framework.patchinfostore.PatchingSessionInfoStore - Target home: /u01/db [sidb [home], default [home]]skipPatchTarget: false
2020-10-2308:33:31,795 INFO [484] com.oracle.glcm.patch.auto.action.PatchActionExecutor - No action required for patch action [com.oracle.glcm.patch.auto.db.integration.controller.action.oop.CopyOOPSessionFilePatchAction] and patch target [dbhost1->/u01/db Type[sidb]].
2020-10-2308:33:31,798 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='OPatchAuto successful.'}
2020-10-2308:33:31,799 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.DBBaseProductSupport - Space available after session: 31201 MB
2020-10-2308:33:31,964 INFO [1] com.oracle.glcm.patch.auto.db.integration.model.productsupport.ProductSupportHelper - All nodes of the cluster have been patched. Session state file will now be deleted.
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
--------------------------------Summary--------------------------------'
}
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='
Patching is completed successfully. Please find the summary as follows:
'
}
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Host:dbhost1'}
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='SIDB Home:/u01/db'}
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Version:19.0.0.0.0'}
2020-10-2308:33:31,969 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Summary:

==Following patches were SKIPPED:

Patch: /u01/stage/31720429/31750108/31773437
Reason: This patch is not applicable to this specified target type - "oracle_database"

Patch: /u01/stage/31720429/31750108/31780966
Reason: This patch is not applicable to this specified target type - "oracle_database"


==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/db/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_07-57-36AM_1.log

'
}
2020-10-2308:33:31,970 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Host:dbhost1'}
2020-10-2308:33:31,970 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='SIHA Home:/u01/grid'}
2020-10-2308:33:31,970 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Version:19.0.0.0.0'}
2020-10-2308:33:31,970 INFO [1] com.oracle.cie.common.util.reporting.CommonReporter - Reporting console output : Message{id='null', message='Summary:

==Following patches were SUCCESSFULLY applied:

Patch: /u01/stage/31720429/31750108/31771877
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31772784
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31773437
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

Patch: /u01/stage/31720429/31750108/31780966
Log: /u01/grid/cfgtoollogs/opatchauto/core/opatch/opatch2020-10-23_08-07-31AM_1.log

'
}
Viewing all 604 articles
Browse latest View live