RMAN - offline backup

Юуны өмнө нөөцлөлтийг хадгалах хавтсыг бэлтгэе.

[oracle@node215 admin]$ su -
Password:
[root@node215 ~]$ mkdir -p /backup/snap_ctl
[root@node215 ~]$ mkdir /backup/controlfile
[root@node215 ~]$ mkdir /backup/database
[root@node215 ~]$ chown -R oracle:oinstall /backup/
[root@node215 ~]$

RMAN -ий хэдэн тохиргоо хийе. RMAN-ий тохиргоог харахад ямар тохиргоо хийгдэж байгаа нь ойлгомжтой байдаг тул тайлбаргүй үргэлжлүүллээ.

коммандын мөрөнд аль хэрэглэгчээр ажиллуулж байгаа нь мэдэгдэж байгаа тул анхаарна уу.

[oracle@node215 ~]$
[oracle@node215 ~]$ rman target / nocatalog

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 28 06:38:58 2017

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

connected to target database: emrep (DBID=1459711226)
using target database control file instead of recovery catalog

RMAN> show all;

RMAN configuration parameters for database with db_unique_name emrep are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_emrep.f'; # default

RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/snap_ctl/snapcf_btest.f';

new RMAN configuration parameters:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/snap_ctl/snapcf_btest.f';
new RMAN configuration parameters are successfully stored

RMAN>  CONFIGURE CONTROLFILE AUTOBACKUP ON;

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored

RMAN>

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/controlfile/%F';

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/controlfile/%F';
new RMAN configuration parameters are successfully stored

RMAN>

Offline нөөцлөлтийг эхлүүлье

RMAN> shutdown immediate;

database closed
database dismounted
Oracle instance shut down

RMAN> startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area     217157632 bytes

Fixed Size                     2251816 bytes
Variable Size                159384536 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5189632 bytes

RMAN> backup format='/backup/database/offline_%s_%d_%t.bkp' database;

Starting backup at 28-JAN-17
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=110 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/emrep/users01.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/emrep/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/emrep/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/emrep/undotbs01.dbf
input datafile file number=00005 name=/u01/app/oracle/flash_recovery_area/emrep/catalog01.dbf
channel ORA_DISK_1: starting piece 1 at 28-JAN-17
channel ORA_DISK_1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_1_emrep_934440355.bkp tag=TAG20170128T064555 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 28-JAN-17

Starting Control File and SPFILE Autobackup at 28-JAN-17
piece handle=/backup/controlfile/c-1459711226-20170128-00 comment=NONE
Finished Control File and SPFILE Autobackup at 28-JAN-17

RMAN>  alter database open;

database opened

RMAN>

Бидний тохируулж өгсний дагуу нөөцлөлт явагдсан эсэхийг шалгая.

[oracle@node215 ~]$ ls -la /backup/controlfile/
total 9412
drwxr-xr-x 2 oracle oinstall    4096 Jan 28 06:46 .
drwxr-xr-x 5 oracle oinstall    4096 Jan 28 06:45 ..
-rw-r----- 1 oracle oinstall 9601024 Jan 28 06:46 c-1459711226-20170128-00
[oracle@node215 ~]$ ls -la /backup/snap_ctl/
total 9332
drwxr-xr-x 2 oracle oinstall    4096 Jan 28 06:46 .
drwxr-xr-x 5 oracle oinstall    4096 Jan 28 06:45 ..
-rw-r----- 1 oracle oinstall 9519104 Jan 28 06:46 snapcf_btest.f
[oracle@node215 ~]$ ls -la /backup/database/
total 266476
drwxr-xr-x 2 oracle oinstall      4096 Jan 28 06:45 .
drwxr-xr-x 5 oracle oinstall      4096 Jan 28 06:45 ..
-rw-r----- 1 oracle oinstall 272580608 Jan 28 06:46 offline_1_emrep_934440355.bkp
[oracle@node215 ~]$

RMAN-с шалгая.

[oracle@node215 ~]$ rman target / nocatalog

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 28 06:50:18 2017

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

connected to target database: emrep (DBID=1459711226)
using target database control file instead of recovery catalog

RMAN>  list backup of database;


List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1       Full    259.95M    DISK        00:00:07     28-JAN-17
        BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T064555
        Piece Name: /backup/database/offline_1_emrep_934440355.bkp
  List of Datafiles in backup set 1
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 226276     28-JAN-17 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 226276     28-JAN-17 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 226276     28-JAN-17 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 226276     28-JAN-17 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 226276     28-JAN-17 /u01/app/oracle/flash_recovery_area/emrep/catalog01.dbf

RMAN>  list backup of controlfile;


List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    9.14M      DISK        00:00:03     28-JAN-17
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T064610
        Piece Name: /backup/controlfile/c-1459711226-20170128-00
  Control File Included: Ckp SCN: 226276       Ckp time: 28-JAN-17

RMAN> list backup of spfile;


List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    9.14M      DISK        00:00:03     28-JAN-17
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T064610
        Piece Name: /backup/controlfile/c-1459711226-20170128-00
  SPFILE Included: Modification time: 28-JAN-17
  SPFILE db_unique_name: emrep

RMAN>

Recovery Catalog -ийн хувьд


[oracle@node215 ~]$
[oracle@node215 ~]$ rman target / catalog rcat/r@rcat

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 28 06:57:38 2017

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

connected to target database: EMREP (DBID=4154964260)
connected to recovery catalog database

RMAN> shutdown immediate;

database closed
database dismounted
Oracle instance shut down

RMAN> startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    1570009088 bytes

Fixed Size                     2253584 bytes
Variable Size                989859056 bytes
Database Buffers             570425344 bytes
Redo Buffers                   7471104 bytes

RMAN> backup format='/backup/database/offline_%s_%d_%t.bkp' database;

Starting backup at 28-JAN-17
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/emrep/users01.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/emrep/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/emrep/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/emrep/undotbs01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/emrep/example01.dbf
channel ORA_DISK_1: starting piece 1 at 28-JAN-17
channel ORA_DISK_1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_7_EMREP_934441086.bkp tag=TAG20170128T065806 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:45
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 28-JAN-17
channel ORA_DISK_1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_8_EMREP_934441191.bkp tag=TAG20170128T065806 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 28-JAN-17

RMAN> alter database open;

database opened

RMAN> list backup of database;


List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
593     Full    2.58G      DISK        00:03:22     30-DEC-16
        BP Key: 598   Status: AVAILABLE  Compressed: NO  Tag: TAG20161230T165217
        Piece Name: /u01/app/oracle/fast_recovery_area/EMREP/backupset/2016_12_30/o1_mf_nnndf_TAG20161230T165217_d6d822dc_.bkp
  List of Datafiles in backup set 593
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/example01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
619     Full    2.63G      DISK        00:01:44     28-JAN-17
        BP Key: 622   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T065806
        Piece Name: /backup/database/offline_7_EMREP_934441086.bkp
  List of Datafiles in backup set 619
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/example01.dbf

RMAN>

Offline backup - RMAN дээр шууд тохиргоо хийж нөөцлөх


[oracle@node215 ~]$ rman target / catalog rcat/r@rcat

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 28 07:05:51 2017

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

connected to target database: EMREP (DBID=4154964260)
connected to recovery catalog database

RMAN> shutdown immediate;

database closed
database dismounted
Oracle instance shut down

RMAN> startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    1570009088 bytes

Fixed Size                     2253584 bytes
Variable Size                989859056 bytes
Database Buffers             570425344 bytes
Redo Buffers                   7471104 bytes

RMAN>
RMAN> run
2> {
3> allocate channel c1 device type disk format='/backup/database/offline_%d_%s_%t.bkp';
4> backup database;
5> backup current controlfile;
6> }

allocated channel: c1
channel c1: SID=133 device type=DISK

Starting backup at 28-JAN-17
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/emrep/users01.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/emrep/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/emrep/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/emrep/undotbs01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/emrep/example01.dbf
channel c1: starting piece 1 at 28-JAN-17
channel c1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_9_934441609.bkp tag=TAG20170128T070649 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:35
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel c1: starting piece 1 at 28-JAN-17
channel c1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_10_934441704.bkp tag=TAG20170128T070649 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 28-JAN-17

Starting backup at 28-JAN-17
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 28-JAN-17
channel c1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_11_934441709.bkp tag=TAG20170128T070829 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 28-JAN-17
released channel: c1

RMAN>  alter database open;

database opened

RMAN> list backup of database;


List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
593     Full    2.58G      DISK        00:03:22     30-DEC-16
        BP Key: 598   Status: AVAILABLE  Compressed: NO  Tag: TAG20161230T165217
        Piece Name: /u01/app/oracle/fast_recovery_area/EMREP/backupset/2016_12_30/o1_mf_nnndf_TAG20161230T165217_d6d822dc_.bkp
  List of Datafiles in backup set 593
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 1412184    30-DEC-16 /u01/app/oracle/oradata/emrep/example01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
619     Full    2.63G      DISK        00:01:44     28-JAN-17
        BP Key: 622   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T065806
        Piece Name: /backup/database/offline_7_EMREP_934441086.bkp
  List of Datafiles in backup set 619
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 1576194    28-JAN-17 /u01/app/oracle/oradata/emrep/example01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
640     Full    2.63G      DISK        00:01:27     28-JAN-17
        BP Key: 644   Status: AVAILABLE  Compressed: NO  Tag: TAG20170128T070649
        Piece Name: /backup/database/offline_EMREP_9_934441609.bkp
  List of Datafiles in backup set 640
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1577176    28-JAN-17 /u01/app/oracle/oradata/emrep/system01.dbf
  2       Full 1577176    28-JAN-17 /u01/app/oracle/oradata/emrep/sysaux01.dbf
  3       Full 1577176    28-JAN-17 /u01/app/oracle/oradata/emrep/undotbs01.dbf
  4       Full 1577176    28-JAN-17 /u01/app/oracle/oradata/emrep/users01.dbf
  5       Full 1577176    28-JAN-17 /u01/app/oracle/oradata/emrep/example01.dbf

RMAN>

Backup piece-үүдэд хувааж нөөцлөх


[oracle@node215 ~]$
[oracle@node215 ~]$ rman target / catalog rcat/r@rcat

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 28 07:10:17 2017

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

connected to target database: EMREP (DBID=4154964260)
connected to recovery catalog database

RMAN> shutdown immediate;

database closed
database dismounted
Oracle instance shut down

RMAN> startup mount;

connected to target database (not started)
Oracle instance started
database mounted

Total System Global Area    1570009088 bytes

Fixed Size                     2253584 bytes
Variable Size                989859056 bytes
Database Buffers             570425344 bytes
Redo Buffers                   7471104 bytes

RMAN> run
2> {
3>  allocate channel t1 type disk maxpiecesize=100M format='/backup/database/offline_%d_%s_%t_%U.bkp';
4>  backup database;
5>  release channel t1;
6> }

allocated channel: t1
channel t1: SID=133 device type=DISK

Starting backup at 28-JAN-17
channel t1: starting full datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/app/oracle/oradata/emrep/users01.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/emrep/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/emrep/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/emrep/undotbs01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/emrep/example01.dbf
channel t1: starting piece 1 at 28-JAN-17
channel t1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_1_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 2 at 28-JAN-17
channel t1: finished piece 2 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_2_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 3 at 28-JAN-17
channel t1: finished piece 3 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_3_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 4 at 28-JAN-17
channel t1: finished piece 4 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_4_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 5 at 28-JAN-17
channel t1: finished piece 5 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_5_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 6 at 28-JAN-17
channel t1: finished piece 6 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_6_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 7 at 28-JAN-17
channel t1: finished piece 7 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_7_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 8 at 28-JAN-17
channel t1: finished piece 8 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_8_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 9 at 28-JAN-17
channel t1: finished piece 9 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_9_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 10 at 28-JAN-17
channel t1: finished piece 10 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_10_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 11 at 28-JAN-17
channel t1: finished piece 11 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_11_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 12 at 28-JAN-17
channel t1: finished piece 12 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_12_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 13 at 28-JAN-17
channel t1: finished piece 13 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_13_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 14 at 28-JAN-17
channel t1: finished piece 14 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_14_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 15 at 28-JAN-17
channel t1: finished piece 15 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_15_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 16 at 28-JAN-17
channel t1: finished piece 16 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_16_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 17 at 28-JAN-17
channel t1: finished piece 17 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_17_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 18 at 28-JAN-17
channel t1: finished piece 18 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_18_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 19 at 28-JAN-17
channel t1: finished piece 19 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_19_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 20 at 28-JAN-17
channel t1: finished piece 20 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_20_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 21 at 28-JAN-17
channel t1: finished piece 21 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_21_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 22 at 28-JAN-17
channel t1: finished piece 22 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_22_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 23 at 28-JAN-17
channel t1: finished piece 23 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_23_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 24 at 28-JAN-17
channel t1: finished piece 24 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_24_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 25 at 28-JAN-17
channel t1: finished piece 25 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_25_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 26 at 28-JAN-17
channel t1: finished piece 26 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_26_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: starting piece 27 at 28-JAN-17
channel t1: finished piece 27 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_12_934441858_0crr4ss2_27_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: backup set complete, elapsed time: 00:02:34
channel t1: starting full datafile backup set
channel t1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel t1: starting piece 1 at 28-JAN-17
channel t1: finished piece 1 at 28-JAN-17
piece handle=/backup/database/offline_EMREP_13_934442012_0drr4t0s_1_1.bkp tag=TAG20170128T071058 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:01
Finished backup at 28-JAN-17

released channel: t1

RMAN>  alter database open;

database opened

RMAN>

Шалгах:

[oracle@node215 ~]$
[oracle@node215 ~]$ ls -la /backup/database/
total 8577072
drwxr-xr-x 2 oracle oinstall       4096 Jan 28 07:13 .
drwxr-xr-x 5 oracle oinstall       4096 Jan 28 06:45 ..
-rw-r----- 1 oracle oinstall  272580608 Jan 28 06:46 offline_1_ORCL_934440355.bkp
-rw-r----- 1 oracle oinstall 2820259840 Jan 28 06:59 offline_7_EMREP_934441086.bkp
-rw-r----- 1 oracle oinstall    9830400 Jan 28 06:59 offline_8_EMREP_934441191.bkp
-rw-r----- 1 oracle oinstall    9830400 Jan 28 07:08 offline_EMREP_10_934441704.bkp
-rw-r----- 1 oracle oinstall    9797632 Jan 28 07:08 offline_EMREP_11_934441709.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_10_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_11_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_12_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_13_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_14_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_15_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_16_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_17_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_18_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_19_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_1_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_20_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_21_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_22_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_23_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:12 offline_EMREP_12_934441858_0crr4ss2_24_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:13 offline_EMREP_12_934441858_0crr4ss2_25_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:13 offline_EMREP_12_934441858_0crr4ss2_26_1.bkp
-rw-r----- 1 oracle oinstall   95125504 Jan 28 07:13 offline_EMREP_12_934441858_0crr4ss2_27_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_2_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_3_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_4_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_5_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_6_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_7_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_8_1.bkp
-rw-r----- 1 oracle oinstall  104857600 Jan 28 07:11 offline_EMREP_12_934441858_0crr4ss2_9_1.bkp
-rw-r----- 1 oracle oinstall    9830400 Jan 28 07:13 offline_EMREP_13_934442012_0drr4t0s_1_1.bkp
-rw-r----- 1 oracle oinstall 2820489216 Jan 28 07:08 offline_EMREP_9_934441609.bkp
[oracle@node215 ~]$

1 Like

нөөцлөлтөө хэрхэн сэргээх, хэрхэн нөөцлөлтийг автоматжуулах, фолдерлох гэх мэт ер нь нөөцлөлттэй холбоотой нэг сэдэв, видео хичээл энэ ондоо багтааж туршлаагаас хуваалцан оруулаач та @batmunkh

Нөөцөөс сэргээхтэй холбоотой хичээлүүд оруулсан байгаа