当前位置:网站首页>DM8 backup set deletion
DM8 backup set deletion
2022-07-06 03:54:00 【Song Xiaorong】
DMRMAN Delete backup set in
1
Delete a specific backup set
remove backupset Command to delete a specific backup set , Only one backup set can be deleted at a time . Close the database :
[[email protected]]$ ./DmServiceDMSERVER stop
Stopping DmServiceDMSERVER: [ OK ]
RMAN>backup database '/dm8/data/DAMENG/dm.ini' backupset'/dm8/backup/full01';
RMAN>remove backupset '/dm8/backup/full01';
Successfully deleted in the database , The backup files on the operating system will also be deleted accordingly .
2
Delete all backup sets in batch
RMAN>backup database '/dm8/data/DAMENG/dm.ini' backupset'/dm8/backup/full01';
RMAN>backup database '/dm8/data/DAMENG/dm.ini' backupset'/dm8/backup/full02';
RMAN>remove backupsets with backupdir '/dm8/backup';
3
Batch delete backup sets at a specified point in time
RMAN>backup database '/dm8/data/DAMENG/dm.ini' backupset'/dm8/backup/full01';
RMAN>remove backupsets with backupdir '/dm8/backup/' until time'2020-08-19 17:00:00';
SQL Statement use the function to delete the backup set
stay DM The database can check and delete backup sets through the following procedures or functions :
SF_BAKSET_CHECK
SF_BAKSET_REMOVE
SF_BAKSET_REMOVE_BATCH
SP_DB_BAKSET_REMOVE_BATCH
SP_TS_BAKSET_REMOVE_BATCH
SP_TAB_BAKSET_REMOVE_BATCH
SP_ARCH_BAKSET_REMOVE_BATCH
1
SF_BAKSET_CHECK
Verify the backup set .
[[email protected]]$ ./DmServiceDMSERVER start
Starting DmServiceDMSERVER: [ OK ]
[[email protected]]$ ./disql SYSDBA/SYSDBA
The server [LOCALHOST:5236]: In the normal open state
Login usage time :6.089( millisecond )
disqlV8
SQL>backup database full backupset '/dm8/backup/full01';
Operation performed
Elapsed time :00:00:01.278. Executive number :6.
SQL>select SF_BAKSET_CHECK('DISK','/dm8/backup/full01');
Line number SF_BAKSET_CHECK('DISK','/dm8/backup/full01')
------------------------------------------------------
1 1
Elapsed time :7.370( millisecond ). Executive number :7.
2
SF_BAKSET_REMOVE
Delete the backup set of the specified device type and the specified backup set directory . Check only one legal at a time .meta file , Then delete the corresponding backup set .
SQL>select SF_BAKSET_REMOVE('DISK','/dm8/backup/full01');
Line number SF_BAKSET_REMOVE('DISK','/dm8/backup/full01')
-------------------------------------------------------
1 1
Elapsed time :19.721( millisecond ). Executive number :8.
3
SF_BAKSET_REMOVE_BATCH
Batch delete all backup sets that meet the specified conditions .
SQL> backup database full backupset '/dm8/bakcup/full01';
Operation performed
Elapsed time :938.875( millisecond ). Executive number :10.
SQL> backup tablespace test full backupset '/dm8/backup/full02';
Operation performed
Elapsed time :794.957( millisecond ). Executive number :11.
SQL> select sf_bakset_remove_batch ('DISK', now()-1, 2, NULL);
Line number SF_BAKSET_REMOVE_BATCH('DISK',NOW()-1,2,NULL)
-------------------------------------------------------
1 1
Elapsed time :8.614( millisecond ). Executive number :12.
SQL>select sf_bakset_remove_batch ('DISK', now(),NULL,NULL);
Line number SF_BAKSET_REMOVE_BATCH('DISK',NOW(),NULL,NULL)
--------------------------------------------------------
1 1
Elapsed time :7.756( millisecond ). Executive number :13.
4
SP_DB_BAKSET_REMOVE_BATCH
Batch delete the database backup set before the specified time . Before using this method , You need to use it first SF_BAKSET_BACKUP_DIR_ADD Add the backup set directory to be deleted , Otherwise, only the backup set under the default backup path will be deleted .
SQL>backup database full backupset '/dm8/backup/full01';
Operation performed
Elapsed time :922.757( millisecond ). Executive number :14.
SQL> select sf_bakset_backup_dir_add('DISK','/dm8/backup');
Line number SF_BAKSET_BACKUP_DIR_ADD('DISK','/dm8/backup')
---------- ----------------------------------------------
1 1
Elapsed time :0.946( millisecond ). Executive number :15.
SQL> sp_db_bakset_remove_batch ('DISK', now());
DMSQL Process completed successfully
Elapsed time :10.211( millisecond ). Executive number :16.
SQL> sp_db_bakset_remove_batch ('DISK', now()-15);
DMSQL Process completed successfully
Elapsed time :8.257( millisecond ). Executive number :17.
5
SP_TS_BAKSET_REMOVE_BATCH
Batch delete the specified table space object and the table space backup set before the specified time . Before using this method , You need to use it first SF_BAKSET_BACKUP_DIR_ADD Add the backup set directory to be deleted , Otherwise, only the backup set under the default backup path will be deleted .
SQL>backup tablespace test full backupset '/dm8/backup/test';
Operation performed
Elapsed time :800.435( millisecond ). Executive number :18.
SQL>select sf_bakset_backup_dir_add('DISK','/dm8/backup');
Line number SF_BAKSET_BACKUP_DIR_ADD('DISK','/dm8/backup')
--------------------------------------------------------
1 1
Elapsed time :0.315( millisecond ). Executive number :19.
SQL>call sp_ts_bakset_remove_batch('DISK',NOW(),'TEST');
DMSQL Process completed successfully
Elapsed time :8.093( millisecond ). Executive number :20.
6
SP_TAB_BAKSET_REMOVE_BATCH
Batch delete the specified table object and the table backup set before the specified time . Before using this method , You need to use it first SF_BAKSET_BACKUP_DIR_ADD Add the backup set directory to be deleted , Otherwise, only the backup set under the default backup path will be deleted .
SQL>create table test (t1 int);
Operation performed
Elapsed time :8.965( millisecond ). Executive number :21.
SQL>backup table test backupset '/dm8/backup/test';
Operation performed
Elapsed time :00:00:01.784. Executive number :22.
SQL>select SF_BAKSET_BACKUP_DIR_ADD ('DISK','/dm8/backup');
Line number SF_BAKSET_BACKUP_DIR_ADD('DISK','/dm8/backup')
--------------------------------------------------------
1 1
Elapsed time :731.887( millisecond ). Executive number :23.
SQL>call SP_TAB_BAKSET_REMOVE_BATCH('DISK',NOW(),'SYSDBA','TEST');
DMSQL Process completed successfully
Elapsed time :185.518( millisecond ). Executive number :24.
7
SP_ARCH_BAKSET_REMOVE_BATCH
Batch delete the archive backup set before the specified time . Before using this method , You need to use it first SF_BAKSET_BACKUP_DIR_ADD Add the backup set directory to be deleted , Otherwise, only the backup set under the default backup path will be deleted .
SQL>backup archivelog backupset '/dm8/backup/archbak';
Operation performed
Elapsed time :00:00:01.363. Executive number :25.
SQL>select SF_BAKSET_BACKUP_DIR_ADD('DISK','/dm8/backup');
Line number SF_BAKSET_BACKUP_DIR_ADD('DISK','/dm8/backup')
--------------------------------------------------------
1 1
Elapsed time :1.192( millisecond ). Executive number :26.
SQL>call SP_ARCH_BAKSET_REMOVE_BATCH('DISK',NOW());
DMSQL Process completed successfully
Elapsed time :10.074( millisecond ). Executive number :27.
边栏推荐
- 【FPGA教程案例11】基于vivado核的除法器设计与实现
- Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
- Record the pit of NETCORE's memory surge
- C (XXIX) C listbox CheckedListBox Imagelist
- Redis (replicate dictionary server) cache
- C#(二十七)之C#窗体应用
- cookie,session,Token 这些你都知道吗?
- Blue Bridge Cup - Castle formula
- Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)
- 3分钟带你了解微信小程序开发
猜你喜欢
math_极限&微分&导数&微商/对数函数的导函数推导(导数定义极限法)/指数函数求导公式推导(反函数求导法则/对数求导法)
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
BUAA计算器(表达式计算-表达式树实现)
Do you know cookies, sessions, tokens?
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Blue Bridge Cup - Castle formula
Esp32 (based on Arduino) connects the mqtt server of emqx to upload information and command control
C (thirty) C combobox listview TreeView
Chinese brand hybrid technology: there is no best technical route, only better products
在 .NET 6 中使用 Startup.cs 更简洁的方法
随机推荐
math_ Derivative function derivation of limit & differential & derivative & derivative / logarithmic function (derivative definition limit method) / derivative formula derivation of exponential functi
SAP ALV color code corresponding color (finishing)
[practice] mathematics in lottery
Exchange bottles (graph theory + thinking)
Canvas cut blocks game code
【FPGA教程案例12】基于vivado核的复数乘法器设计与实现
Failure causes and optimization methods of LTE CSFB
A brief introduction to symbols and link libraries in C language
自动化测试怎么规范部署?
Schnuka: 3D vision detection application industry machine vision 3D detection
Thread sleep, thread sleep application scenarios
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
C mouse event and keyboard event of C (XXVIII)
Cf464e the classic problem [shortest path, chairman tree]
1. New project
【按鍵消抖】基於FPGA的按鍵消抖模塊開發
Facebook等大厂超十亿用户数据遭泄露,早该关注DID了
Mapping between QoE and KQI
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
[analysis of variance] single factor analysis and multi factor analysis