You are on page 1of 14

login as: root

root@192.168.56.11's password:
        ┌──────────────────────────────────────────────────────────────────────┐
        │                                  • MobaXterm Personal Edition v21.3 •     

        │                              (SSH client, X server and network tools)     

        │                                                                           

        │ → SSH session to root@192.168.56.11                                       

        │      • Direct SSH            :    v                                       

        │      • SSH compression :    v                                             

        │      • SSH-browser          :    v                                         

        │      • X11-forwarding    :    v    (remote display is forwarded through
SSH)    │
        │                                                                           

        │ → For more info, ctrl+click on help or visit our website.                 

        └──────────────────────────────────────────────────────────────────────┘

Last login: Tue Nov 16 11:07:55 2021 from 192.168.56.1


[root@ambasanode1 ~]# su - oracle
Last login: Tue Nov 16 11:11:23 IST 2021 on pts/1
[oracle@ambasanode1 ~]$ . oraenv
ORACLE_SID = [oracle] ? PRODB
The Oracle base has been set to /u01/app/oracle
[oracle@ambasanode1 ~]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Tue Nov 16 16:26:16 2021

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

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

SQL> select name,open_mode from v$database;

NAME            OPEN_MODE
--------- --------------------
PRODB          READ WRITE

SQL> archive log list;


Database log mode                            No Archive Mode
Automatic archival                          Disabled
Archive destination                        /u01/app/oracle/product/dbhome_2/dbs/arch
Oldest online log sequence          5
Current log sequence                      7
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.

Total System Global Area 1174405120 bytes


Fixed Size                                    8619984 bytes
Variable Size                          754976816 bytes
Database Buffers                    402653184 bytes
Redo Buffers                                8155136 bytes
Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> select name, open_mode from v$database;

NAME            OPEN_MODE
--------- --------------------
PRODB          READ WRITE

SQL> archive log list;


Database log mode                            Archive Mode
Automatic archival                          Enabled
Archive destination                        /u01/app/oracle/product/dbhome_2/dbs/arch
Oldest online log sequence          5
Next log sequence to archive      7
Current log sequence                      7
SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> /

System altered.
SQL> /

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@ambasanode1 ~]$ cd /u01/app/oracle/product/dbhome_2/dbs/arch
-bash: cd: /u01/app/oracle/product/dbhome_2/dbs/arch: No such file or directory
[oracle@ambasanode1 ~]$ mkdir -p    /u01/app/oracle/product/dbhome_2/dbs/arch
[oracle@ambasanode1 ~]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Tue Nov 16 16:57:29 2021

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

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

SQL> show parameter db_rec;

NAME                                                                  TYPE           
VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                                string
db_recovery_file_dest_size                      big integer 0
db_recycle_cache_size                                big integer 0
SQL> alter system set db_recovery_file_dest_size=2g;

System altered.

SQL>    show parameter db_rec;

NAME                                                                  TYPE           
VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                                string
db_recovery_file_dest_size                      big integer 2G
db_recycle_cache_size                                big integer 0
SQL> alter system set
db_recovery_file_dest='/u01/app/oracle/product/dbhome_2/dbs/arch';

System altered.

SQL>    show parameter db_rec;

NAME                                                                  TYPE           
VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                                string           
/u01/app/oracle/product/dbhome
                                                                                     
_2/dbs/arch
db_recovery_file_dest_size                      big integer 2G
db_recycle_cache_size                                big integer 0
SQL> alter system switch log file;
alter system switch log file
                                        *
ERROR at line 1:
ORA-01900: LOGFILE keyword expected

SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> /
/

System altered.

SQL>
System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@ambasanode1 ~]$ sqlplus "/ as sysdba"

SQL*Plus: Release 12.2.0.1.0 Production on Tue Nov 16 17:06:45 2021

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

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

SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@ambasanode1 ~]$ cd $ORACLE_HOME/dbs
[oracle@ambasanode1 dbs]$ ls
arch                                          arch1_11_1087576555.dbf   
arch1_13_1087576555.dbf    arch1_8_1087576555.dbf    hc_PRODB.dat      lkPRODB       
spfilePRODB.ora
arch1_10_1087576555.dbf    arch1_12_1087576555.dbf    arch1_7_1087576555.dbf     
arch1_9_1087576555.dbf    initPRODB.ora    orapwPRODB
[oracle@ambasanode1 dbs]$ cd arch/
[oracle@ambasanode1 arch]$ ls
PRODB
[oracle@ambasanode1 arch]$ cd PRODB/
[oracle@ambasanode1 PRODB]$ ls
archivelog
[oracle@ambasanode1 PRODB]$ cd archivelog/
[oracle@ambasanode1 archivelog]$ ls
2021_11_16
[oracle@ambasanode1 archivelog]$ cd 2021_11_16/
[oracle@ambasanode1 2021_11_16]$ ls
o1_mf_1_14_js75xndk_.arc    o1_mf_1_16_js75xrnt_.arc    o1_mf_1_18_js75xxb2_.arc   
o1_mf_1_20_js75yp35_.arc
o1_mf_1_15_js75xoqr_.arc    o1_mf_1_17_js75xrpk_.arc    o1_mf_1_19_js75y9j0_.arc   
o1_mf_1_21_js75yq2b_.arc
[oracle@ambasanode1 2021_11_16]$ cd
[oracle@ambasanode1 ~]$
[oracle@ambasanode1 ~]$
[oracle@ambasanode1 ~]$
[oracle@ambasanode1 ~]$ df -kh
Filesystem            Size    Used Avail Use% Mounted on
devtmpfs                1.4G          0    1.4G      0% /dev
tmpfs                      1.4G    752M    634M    55% /dev/shm
tmpfs                      1.4G    9.6M    1.4G      1% /run
tmpfs                      1.4G          0    1.4G      0% /sys/fs/cgroup
/dev/sda5              100G    4.7G      96G      5% /
/dev/sda7                50G    4.3G      46G      9% /usr
/dev/sda10            264G      28G    237G    11% /u01
/dev/sda9                50G    198M      50G      1% /var
/dev/sda3              200G      64M    200G      1% /u02
/dev/sda2              200G    6.2G    194G      4% /softwares
/dev/sda6              100G      38M    100G      1% /home
/dev/sda1                10G    209M    9.8G      3% /boot
tmpfs                      278M      52K    278M      1% /run/user/0
tmpfs                      278M          0    278M      0% /run/user/1001
[oracle@ambasanode1 ~]$
[oracle@ambasanode1 ~]$
[oracle@ambasanode1 ~]$ cd -
/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/archivelog/2021_11_16
[oracle@ambasanode1 2021_11_16]$ cd
[oracle@ambasanode1 ~]$ cd /u01/
[oracle@ambasanode1 u01]$ mkdir Backup
[oracle@ambasanode1 u01]$
[oracle@ambasanode1 u01]$ cd Backup/
[oracle@ambasanode1 Backup]$ pwd
/u01/Backup
[oracle@ambasanode1 Backup]$
[oracle@ambasanode1 Backup]$
[oracle@ambasanode1 Backup]$ pwd
/u01/Backup
[oracle@ambasanode1 Backup]$
[oracle@ambasanode1 Backup]$
[oracle@ambasanode1 Backup]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Tue Nov 16 17:09:29 2021

Copyright (c) 1982, 2017, Oracle and/or its affiliates.    All rights reserved.

connected to target database: PRODB (DBID=2490898024)

RMAN> run{
2> allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup AS COMPRESSED BACKUPSET full database tag DB_FULL format '/u01/Backup/%d_%T_
%s_%p_FULL';
sql 'alter system archive log current';
backup AS COMPRESSED BACKUPSET archivelog all tag ARCH_LOG format '/u01/Backup/%d_%T_
%s_%p_ARCHIVE';
backup tag CONTROL current controlfile format '/u01/Backup/%d_%T_%s_%p_CONTROL';
release channel c1;
release channel c2;
}
3> 4> 5> 6> 7> 8> 9> 10>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=65 device type=DISK

allocated channel: c2
channel c2: SID=66 device type=DISK

Starting backup at 16-NOV-21


channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/PRODB/system01.dbf
input datafile file number=00013 name=/u02/datafile2.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/PRODB/sysaux01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PRODB/undotbs01.dbf
input datafile file number=00012 name=/u01/app/oracle/datafile1.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/PRODB/df02.dbf
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed full datafile backup set
channel c2: specifying datafile(s) in backup set
input datafile file number=00005 name=/u01/app/oracle/oradata/PRODB/df01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PRODB/df03.dbf
input datafile file number=00009 name=/u01/app/oracle/oradata/PRODB/df04.dbf
input datafile file number=00010 name=/u01/app/oracle/oradata/PRODB/df06.dbf
input datafile file number=00011 name=/u01/app/oracle/oradata/PRODB/df07.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/PRODB/users01.dbf
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_2_1_FULL tag=DB_FULL comment=NONE
channel c2: backup set complete, elapsed time: 00:00:03
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_1_1_FULL tag=DB_FULL comment=NONE
channel c1: backup set complete, elapsed time: 00:01:15
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088788256_js7669x7_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

sql statement: alter system archive log current

Starting backup at 16-NOV-21


current log archived
channel c1: starting compressed archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=7 RECID=1 STAMP=1088787293
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=17 RECID=11 STAMP=1088787984
input archived log thread=1 sequence=18 RECID=12 STAMP=1088787989
input archived log thread=1 sequence=19 RECID=13 STAMP=1088788001
input archived log thread=1 sequence=20 RECID=14 STAMP=1088788014
input archived log thread=1 sequence=21 RECID=15 STAMP=1088788015
input archived log thread=1 sequence=22 RECID=16 STAMP=1088788261
input archived log thread=1 sequence=23 RECID=17 STAMP=1088788262
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_5_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=8 RECID=2 STAMP=1088787299
input archived log thread=1 sequence=9 RECID=3 STAMP=1088787303
input archived log thread=1 sequence=10 RECID=4 STAMP=1088787305
input archived log thread=1 sequence=11 RECID=5 STAMP=1088787306
input archived log thread=1 sequence=12 RECID=6 STAMP=1088787308
input archived log thread=1 sequence=13 RECID=7 STAMP=1088787309
input archived log thread=1 sequence=14 RECID=8 STAMP=1088787980
input archived log thread=1 sequence=15 RECID=9 STAMP=1088787981
input archived log thread=1 sequence=16 RECID=10 STAMP=1088787984
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_6_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_4_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c1: backup set complete, elapsed time: 00:00:18
Finished backup at 16-NOV-21

Starting backup at 16-NOV-21


channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
channel c1: starting piece 1 at 16-NOV-21
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_7_1_CONTROL tag=CONTROL comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088788283_js7673ry_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

released channel: c1

released channel: c2

RMAN> exit

Recovery Manager complete.


[oracle@ambasanode1 Backup]$ ls
PRODB_20211116_1_1_FULL    PRODB_20211116_4_1_ARCHIVE    PRODB_20211116_6_1_ARCHIVE
PRODB_20211116_2_1_FULL    PRODB_20211116_5_1_ARCHIVE    PRODB_20211116_7_1_CONTROL
[oracle@ambasanode1 Backup]$ cd ..
[oracle@ambasanode1 u01]$ scp -r Backup/ oracle@192.168.56.12:/u01
The authenticity of host '192.168.56.12 (192.168.56.12)' can't be established.
ECDSA key fingerprint is SHA256:9dFgOuH0dZsN3pYCYRv5yhbuF0Czyyeh+MRXqG0j9Kg.
ECDSA key fingerprint is MD5:61:85:46:5e:6c:b3:3d:58:06:cf:e0:94:cd:d9:74:5a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.56.12' (ECDSA) to the list of known hosts.
oracle@192.168.56.12's password:
PRODB_20211116_1_1_FULL                                                             
100%    342MB    41.2MB/s      00:08
PRODB_20211116_2_1_FULL                                                             
100% 1080KB    11.5MB/s      00:00
PRODB_20211116_4_1_ARCHIVE                                                           
100%      47MB    47.5MB/s      00:00
PRODB_20211116_5_1_ARCHIVE                                                           
100%    364KB      8.2MB/s      00:00
PRODB_20211116_6_1_ARCHIVE                                                           
100%      35KB      2.1MB/s      00:00
PRODB_20211116_7_1_CONTROL                                                           
100%      10MB    57.6MB/s      00:00
[oracle@ambasanode1 u01]$
Network error: Software caused connection abort

─────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────

Session stopped
        - Press <return> to exit tab
        - Press R to restart session
        - Press S to save terminal output to file
login as: root
root@192.168.56.11's password:
Access denied
root@192.168.56.11's password:
        ┌──────────────────────────────────────────────────────────────────────┐
        │                                  • MobaXterm Personal Edition v21.3 •     

        │                              (SSH client, X server and network tools)     

        │                                                                           

        │ → SSH session to root@192.168.56.11                                       

        │      • Direct SSH            :    v                                       

        │      • SSH compression :    v                                             

        │      • SSH-browser          :    v                                         

        │      • X11-forwarding    :    v    (remote display is forwarded through
SSH)    │
        │                                                                           

        │ → For more info, ctrl+click on help or visit our website.                 

        └──────────────────────────────────────────────────────────────────────┘

Last failed login: Tue Nov 16 20:41:37 IST 2021 from 192.168.56.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Tue Nov 16 16:25:19 2021 from 192.168.56.1
[root@ambasanode1 ~]# su - oracle
Last login: Tue Nov 16 16:25:56 IST 2021 on pts/1
[oracle@ambasanode1 ~]$ rman target /
bash: rman: command not found...
Similar command is: 'man'
[oracle@ambasanode1 ~]$ . oraenv
ORACLE_SID = [oracle] ? PRODB
The Oracle base has been set to /u01/app/oracle
[oracle@ambasanode1 ~]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Tue Nov 16 20:45:27 2021

Copyright (c) 1982, 2017, Oracle and/or its affiliates.    All rights reserved.

connected to target database: PRODB (DBID=2490898024)

RMAN> run{
2> allocate channel c1 device type disk;
3> allocate channel c2 device type disk;
backup AS COMPRESSED BACKUPSET full database tag DB_FULL format '/u01/Backup/%d_%T_
%s_%p_FULL';
sql 'alter system archive log current';
backup AS COMPRESSED BACKUPSET archivelog all tag ARCH_LOG format '/u01/Backup/%d_%T_
%s_%p_ARCHIVE';
backup tag CONTROL current controlfile format '/u01/Backup/%d_%T_%s_%p_CONTROL';
release channel c1;
release channel c2;
}
4> 5> 6> 7> 8> 9> 10>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=68 device type=DISK

allocated channel: c2
channel c2: SID=59 device type=DISK

Starting backup at 16-NOV-21


channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/PRODB/system01.dbf
input datafile file number=00013 name=/u02/datafile2.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/PRODB/sysaux01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PRODB/undotbs01.dbf
input datafile file number=00012 name=/u01/app/oracle/datafile1.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/PRODB/df02.dbf
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed full datafile backup set
channel c2: specifying datafile(s) in backup set
input datafile file number=00005 name=/u01/app/oracle/oradata/PRODB/df01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PRODB/df03.dbf
input datafile file number=00009 name=/u01/app/oracle/oradata/PRODB/df04.dbf
input datafile file number=00010 name=/u01/app/oracle/oradata/PRODB/df06.dbf
input datafile file number=00011 name=/u01/app/oracle/oradata/PRODB/df07.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/PRODB/users01.dbf
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_10_1_FULL tag=DB_FULL comment=NONE
channel c2: backup set complete, elapsed time: 00:00:03
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_9_1_FULL tag=DB_FULL comment=NONE
channel c1: backup set complete, elapsed time: 00:00:56
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088801190_js7lth73_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

sql statement: alter system archive log current

Starting backup at 16-NOV-21


current log archived
channel c1: starting compressed archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=7 RECID=1 STAMP=1088787293
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=18 RECID=12 STAMP=1088787989
input archived log thread=1 sequence=19 RECID=13 STAMP=1088788001
input archived log thread=1 sequence=20 RECID=14 STAMP=1088788014
input archived log thread=1 sequence=21 RECID=15 STAMP=1088788015
input archived log thread=1 sequence=22 RECID=16 STAMP=1088788261
input archived log thread=1 sequence=23 RECID=17 STAMP=1088788262
input archived log thread=1 sequence=24 RECID=18 STAMP=1088801194
input archived log thread=1 sequence=25 RECID=19 STAMP=1088801195
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_13_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=8 RECID=2 STAMP=1088787299
input archived log thread=1 sequence=9 RECID=3 STAMP=1088787303
input archived log thread=1 sequence=10 RECID=4 STAMP=1088787305
input archived log thread=1 sequence=11 RECID=5 STAMP=1088787306
input archived log thread=1 sequence=12 RECID=6 STAMP=1088787308
input archived log thread=1 sequence=13 RECID=7 STAMP=1088787309
input archived log thread=1 sequence=14 RECID=8 STAMP=1088787980
input archived log thread=1 sequence=15 RECID=9 STAMP=1088787981
input archived log thread=1 sequence=16 RECID=10 STAMP=1088787984
input archived log thread=1 sequence=17 RECID=11 STAMP=1088787984
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_14_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_12_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c1: backup set complete, elapsed time: 00:00:09
Finished backup at 16-NOV-21

Starting backup at 16-NOV-21


channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
channel c1: starting piece 1 at 16-NOV-21
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_15_1_CONTROL tag=CONTROL comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088801206_js7ltz4n_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

released channel: c1

released channel: c2

RMAN> exit

Recovery Manager complete.


[oracle@ambasanode1 ~]$ cd /u01/Backup/
[oracle@ambasanode1 Backup]$ ls
PRODB_20211116_10_1_FULL          PRODB_20211116_13_1_ARCHIVE   
PRODB_20211116_2_1_FULL          PRODB_20211116_6_1_ARCHIVE
PRODB_20211116_1_1_FULL            PRODB_20211116_14_1_ARCHIVE   
PRODB_20211116_4_1_ARCHIVE    PRODB_20211116_7_1_CONTROL
PRODB_20211116_12_1_ARCHIVE    PRODB_20211116_15_1_CONTROL   
PRODB_20211116_5_1_ARCHIVE    PRODB_20211116_9_1_FULL
[oracle@ambasanode1 Backup]$ rm -f PR*
[oracle@ambasanode1 Backup]$ ls
[oracle@ambasanode1 Backup]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Tue Nov 16 20:58:37 2021

Copyright (c) 1982, 2017, Oracle and/or its affiliates.    All rights reserved.

connected to target database: PRODB (DBID=2490898024)

RMAN> run{
2> allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup AS COMPRESSED BACKUPSET full database tag DB_FULL format '/u01/Backup/%d_%T_
%s_%p_FULL';
sql 'alter system archive log current';
backup AS COMPRESSED BACKUPSET archivelog all tag ARCH_LOG format '/u01/Backup/%d_%T_
%s_%p_ARCHIVE';
3> 4> 5> 6> 7> backup tag CONTROL current controlfile format '/u01/Backup/%d_%T_%s_
%p_CONTROL';
release channel c1;
release channel c2;
}
8> 9> 10>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=55 device type=DISK

allocated channel: c2
channel c2: SID=52 device type=DISK

Starting backup at 16-NOV-21


channel c1: starting compressed full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/PRODB/system01.dbf
input datafile file number=00013 name=/u02/datafile2.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/PRODB/sysaux01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/PRODB/undotbs01.dbf
input datafile file number=00012 name=/u01/app/oracle/datafile1.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/PRODB/df02.dbf
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed full datafile backup set
channel c2: specifying datafile(s) in backup set
input datafile file number=00005 name=/u01/app/oracle/oradata/PRODB/df01.dbf
input datafile file number=00008 name=/u01/app/oracle/oradata/PRODB/df03.dbf
input datafile file number=00009 name=/u01/app/oracle/oradata/PRODB/df04.dbf
input datafile file number=00010 name=/u01/app/oracle/oradata/PRODB/df06.dbf
input datafile file number=00011 name=/u01/app/oracle/oradata/PRODB/df07.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/PRODB/users01.dbf
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_18_1_FULL tag=DB_FULL comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_17_1_FULL tag=DB_FULL comment=NONE
channel c1: backup set complete, elapsed time: 00:00:45
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088802003_js7mmw3o_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

sql statement: alter system archive log current

Starting backup at 16-NOV-21


current log archived
channel c1: starting compressed archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=7 RECID=1 STAMP=1088787293
channel c1: starting piece 1 at 16-NOV-21
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=19 RECID=13 STAMP=1088788001
input archived log thread=1 sequence=20 RECID=14 STAMP=1088788014
input archived log thread=1 sequence=21 RECID=15 STAMP=1088788015
input archived log thread=1 sequence=22 RECID=16 STAMP=1088788261
input archived log thread=1 sequence=23 RECID=17 STAMP=1088788262
input archived log thread=1 sequence=24 RECID=18 STAMP=1088801194
input archived log thread=1 sequence=25 RECID=19 STAMP=1088801195
input archived log thread=1 sequence=26 RECID=20 STAMP=1088802005
input archived log thread=1 sequence=27 RECID=21 STAMP=1088802005
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_21_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c2: starting compressed archived log backup set
channel c2: specifying archived log(s) in backup set
input archived log thread=1 sequence=8 RECID=2 STAMP=1088787299
input archived log thread=1 sequence=9 RECID=3 STAMP=1088787303
input archived log thread=1 sequence=10 RECID=4 STAMP=1088787305
input archived log thread=1 sequence=11 RECID=5 STAMP=1088787306
input archived log thread=1 sequence=12 RECID=6 STAMP=1088787308
input archived log thread=1 sequence=13 RECID=7 STAMP=1088787309
input archived log thread=1 sequence=14 RECID=8 STAMP=1088787980
input archived log thread=1 sequence=15 RECID=9 STAMP=1088787981
input archived log thread=1 sequence=16 RECID=10 STAMP=1088787984
input archived log thread=1 sequence=17 RECID=11 STAMP=1088787984
input archived log thread=1 sequence=18 RECID=12 STAMP=1088787989
channel c2: starting piece 1 at 16-NOV-21
channel c2: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_22_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c2: backup set complete, elapsed time: 00:00:01
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_20_1_ARCHIVE tag=ARCH_LOG comment=NONE
channel c1: backup set complete, elapsed time: 00:00:09
Finished backup at 16-NOV-21

Starting backup at 16-NOV-21


channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
channel c1: starting piece 1 at 16-NOV-21
channel c1: finished piece 1 at 16-NOV-21
piece handle=/u01/Backup/PRODB_20211116_23_1_CONTROL tag=CONTROL comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-NOV-21

Starting Control File and SPFILE Autobackup at 16-NOV-21


piece handle=/u01/app/oracle/product/dbhome_2/dbs/arch/PRODB/autobackup/2021_11_16/
o1_mf_s_1088802017_js7mn9of_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 16-NOV-21

released channel: c1

released channel: c2

RMAN> exit;

Recovery Manager complete.


[oracle@ambasanode1 Backup]$ scp PROD* oracle@192.168.56.12:/u01/Backup
oracle@192.168.56.12's password:
PRODB_20211116_17_1_FULL                                                             
100%    342MB    53.9MB/s      00:06
PRODB_20211116_18_1_FULL                                                             
100% 1080KB    30.7MB/s      00:00
PRODB_20211116_20_1_ARCHIVE                                                         
100%      47MB    79.6MB/s      00:00
PRODB_20211116_21_1_ARCHIVE                                                         
100% 2864KB    66.9MB/s      00:00
PRODB_20211116_22_1_ARCHIVE                                                         
100%      37KB    39.6MB/s      00:00
PRODB_20211116_23_1_CONTROL                                                         
100%      10MB    55.3MB/s      00:00
[oracle@ambasanode1 Backup]$ cd /u01/app/oracle/product/dbhome_2/dbs/
[oracle@ambasanode1 dbs]$ vi initPRODB.ora
[oracle@ambasanode1 dbs]$

You might also like