Thứ Tư, 23 tháng 11, 2022

Mã hóa Sao lưu bằng mật khẩu trong RMAN

Mục đích: Bảo vệ dữ liệu bản backup bằng cách mã hóa dùng mật khẩu, nếu mất bản backup cũng không thể recovery ra lấy dữ liệu được.

RMAN hỗ trợ ba chế độ mã hóa:

  • Transparent mode:
  • Password mode:
  • Dual mode

Trong ví dụ của chúng tôi, chúng tôi sẽ tạo một bản sao lưu cơ sở dữ liệu đầy đủ bằng mã hóa có mật khẩu bảo vệ./

Bước 1 : Kết nối với RMAN và đặt mật khẩu:

RMAN> SET ENCRYPTION ON IDENTIFIED BY "oracle_4U" only;
 executing command: SET encryption

Bước 2 : Tạo bản sao lưu đầy đủ

RMAN> backup database tag 'Full_encryption_Backup' ;
 Starting backup at 28-OCT-20
 allocated channel: ORA_DISK_1
 channel ORA_DISK_1: SID=57 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=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
 input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
 input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
 input datafile file number=00007 name=/u01/app/oracle/oradata/orcl/users01.dbf
 channel ORA_DISK_1: starting piece 1 at 28-OCT-20
 channel ORA_DISK_1: finished piece 1 at 28-OCT-20
 piece handle=/u01/app/oracle/product/12.2.0/dbhome_1/dbs/030bs0ts_1_1 tag=FULL_ENCRYPTION_BACKUP comment=NONE
 channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
 Finished backup at 28-OCT-20
 Starting Control File and SPFILE Autobackup at 28-OCT-20
 piece handle=/u01/app/oracle/product/12.2.0/dbhome_1/dbs/c-1613867185-20201028-00 comment=NONE
 Finished Control File and SPFILE Autobackup at 28-OCT-20
 RMAN> 

Lưu ý : Chúng ta đã có một bản sao lưu cơ sở dữ liệu đầy đủ được mã hóa bằng chế độ mật khẩu.

=============================
* KHOÁ HỌC ORACLE DATABASE A-Z ENTERPRISE trực tiếp từ tôi giúp bạn bước đầu trở thành những chuyên gia DBA, đủ kinh nghiệm đi thi chứng chỉ OA/OCP, đặc biệt là rất nhiều kinh nghiệm, bí kíp thực chiến trên các hệ thống Core tại VN chỉ sau 1 khoá học.
* CÁCH ĐĂNG KÝ: Gõ (.) hoặc để lại số điện thoại hoặc inbox https://m.me/tranvanbinh.vn hoặc Hotline/Zalo 090.29.12.888
* Chi tiết tham khảo:
https://bit.ly/oaz_w
=============================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile/Zalo: 0902912888
👨 Facebook: https://www.facebook.com/BinhOracleMaster
👨 Inbox Messenger: https://m.me/101036604657441 (profile)
👨 Fanpage: https://www.facebook.com/tranvanbinh.vn
👨 Inbox Fanpage: https://m.me/tranvanbinh.vn
👨👩 Group FB: https://www.facebook.com/groups/DBAVietNam
👨 Website: https://www.tranvanbinh.vn
👨 Blogger: https://tranvanbinhmaster.blogspot.com
🎬 Youtube: http://bit.ly/ytb_binhoraclemaster
👨 Tiktok: https://www.tiktok.com/@binhoraclemaster?lang=vi
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhoracle
👨 Địa chỉ: Tòa nhà Sun Square - 21 Lê Đức Thọ - Phường Mỹ Đình 1 - Quận Nam Từ Liêm - TP.Hà Nội

=============================
Mã hóa Sao lưu bằng mật khẩu trong RMAN, Password-Mode Encryption RMAN Backup, oracle tutorial, học oracle database, Tự học Oracle, Tài liệu Oracle 12c tiếng Việt, Hướng dẫn sử dụng Oracle Database, Oracle SQL cơ bản, Oracle SQL là gì, Khóa học Oracle Hà Nội, Học chứng chỉ Oracle ở đầu, Khóa học Oracle online,sql tutorial, khóa học pl/sql tutorial, học dba, học dba ở việt nam, khóa học dba, khóa học dba sql, tài liệu học dba oracle, Khóa học Oracle online, học oracle sql, học oracle ở đâu tphcm, học oracle bắt đầu từ đâu, học oracle ở hà nội, oracle database tutorial, oracle database 12c, oracle database là gì, oracle database 11g, oracle download, oracle database 19c, oracle dba tutorial, oracle tunning, sql tunning , oracle 12c, oracle multitenant, Container Databases (CDB), Pluggable Databases (PDB), oracle cloud, oracle security, oracle fga, audit_trail,oracle RAC, oracle dataguard, oracle goldengate, mview, oracle exadata, oracle oca, oracle ocp, oracle ocm , oracle weblogic, postgresql tutorial, mysql tutorial, mariadb tutorial, sql server tutorial, nosql, mongodb tutorial, oci, cloud, middleware tutorial, hoc solaris tutorial, hoc linux tutorial, hoc aix tutorial, unix tutorial, securecrt, xshell, mobaxterm, putty

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master