Transportable tablespace trong Oracle Database là một tính năng cho phép bạn di chuyển một hoặc nhiều tablespace từ cơ sở dữ liệu này sang cơ sở dữ liệu khác một cách hiệu quả và nhanh chóng. Đây là một phương pháp lý tưởng để di chuyển khối lượng dữ liệu lớn giữa các cơ sở dữ liệu, đặc biệt khi việc xuất và nhập dữ liệu thông qua các phương pháp truyền thống như export/import sẽ mất nhiều thời gian.
- HOME
- BASIC
- INSTALL
- ADMIN
- FULL BÀI VIẾT
- CÂU HỎI THƯỜNG GẶP
- ADMIN TUTORIAL
- CÀI ĐẶT, PATCH
- UPGRADE/MIGRATION
- NGUYÊN LÝ
- CÔNG CỤ
- INSTANCE
- USER, QUYỀN
- LƯU TRỮ (STORAGE)
- GIAO DỊCH
- BẢO MẬT
- OBJECTS
- BACKUP
- RECOVERY
- BẢO TRÌ
- HIỆU NĂNG (PERFORMANCE)
- CÁC LỖI THƯỜNG GẶP
- TROUBLESHOOTING
- QUY TRÌNH VẬN HÀNH ORACLE DATABASE A-Z
- VẬN HÀNH TỰ ĐỘNG
- TIPS
- KHO TÀI NGUYÊN
- EXADATA
- KHÁC
- DEV
- SECURITY
- TUNNING
- RAC
- HA
- OTHER DB
- SYSTEM
- SOLUTION
- TRAINING
- CONTACT
Hiển thị các bài đăng có nhãn Admin > Storage. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Admin > Storage. Hiển thị tất cả bài đăng
Thứ Hai, 8 tháng 9, 2025
Thứ Bảy, 6 tháng 9, 2025
SWITCH LOG như thế nào cho hiệu quả?
Quá trình “SWITCH LOG” trong Oracle là quá trình chuyển đổi giữa các bản ghi redo log. Khi một redo log được đầy, Oracle sẽ tự động chuyển sang sử dụng redo log mới, điều này được gọi là “SWITCH LOG”. Quá trình này không nên gây ra ảnh hưởng đáng kể đến hiệu suất của cơ sở dữ liệu.
Chủ Nhật, 25 tháng 6, 2023
Sử dụng Undo Advisor trong Oracle Database
Undo Advisor sẽ giúp bạn sizing undo tablespace dựa trên tải của database, chú ý xác định thời điểm chiếm tải nhiều nhất để xác định undo tablespace, khi đã vượt qua được thời điểm này thì đương nhiên các thời điểm khác tải cũng đáp ứng.
Sửa bài viết
Thứ Tư, 17 tháng 5, 2023
[VIP5] Khi nào cần tạo lại online redo log, sizing như thế nào cho chuẩn trong Oracle Database?
Trong quá trình quản lý redo log, bạn có thể sẽ có những lăn tăn:- Sizing redo log như thế nào để phù hợp?
- Tạo lại online redo log và cách tạo lại trong giờ hành chính có an toàn không?
- Các lỗi có thể sẽ gặp nếu không sizing chuẩn: Treo DB khi DML dồn dập.
- Sizing redo log như thế nào để phù hợp?
- Tạo lại online redo log và cách tạo lại trong giờ hành chính có an toàn không?
- Các lỗi có thể sẽ gặp nếu không sizing chuẩn: Treo DB khi DML dồn dập.
Hãy đọc hết bài viết này để tìm được câu trả lời thỏa đáng.
Vấn đề gặp phải
-- Monitor Alert log xuất hiện cảnh báo:
Thread 2 cannot allocate new log, sequence 362494
Checkpoint not complete
-- Số lần switch log quá nhiều, lên đến 95 lần/1 giờ:
-- Monitor số lần switch log theo từng giờ và so sánh với các ngày trước trong 31 ngày gần nhất
select
to_char(COMPLETION_TIME,'YYYY-MM-DD') day,
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'00',1,0)),'999') "00h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'01',1,0)),'999') "01h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'02',1,0)),'999') "02h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'03',1,0)),'999') "03h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'04',1,0)),'999') "04h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'05',1,0)),'999') "05h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'06',1,0)),'999') "06h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'07',1,0)),'999') "07h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'08',1,0)),'999') "08h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'09',1,0)),'999') "09h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'10',1,0)),'999') "10h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'11',1,0)),'999') "11h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'12',1,0)),'999') "12h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'13',1,0)),'999') "13h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'14',1,0)),'999') "14h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'15',1,0)),'999') "15h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'16',1,0)),'999') "16h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'17',1,0)),'999') "17h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'18',1,0)),'999') "18h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'19',1,0)),'999') "19h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'20',1,0)),'999') "20h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'21',1,0)),'999') "21h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'22',1,0)),'999') "22h",
to_char(sum(decode(substr(to_char(COMPLETION_TIME,'HH24'),1,2),'23',1,0)),'999') "23h",
round(sum(BLOCKS*BLOCK_SIZE)/1024/1024/1024,0)||' GB' "Total GB in a day",COUNT(*) "Total switch log in a day"
from v$archived_log
where to_date(COMPLETION_TIME) > sysdate-40
and dest_id=1
group by to_char(COMPLETION_TIME,'YYYY-MM-DD')
order by day desc;
Nguyên nhân:
Size redo log quá nhỏ, các group đều ở trạng thái CURENT, ACTIVE
Khắc phục:
Sizing lại online redo log, do size online redo log quá nhỏ, tính toán lượng archived log sinh ra 1 ngày đảm bảo 1h từ 3 lần switch log, tất nhiên 4-6 lần vẫn OK., dùng 1 trong 2 cách sau:
* Tăng size của online redo logs: Phải tạo lại chứ ko resize được
* Bổ sung thêm redo log groups (cách này trong 1 số trường hợp switch log không quá lớn)
alter database add logfile thread 1 group 1 ('+DATA','+RECO') size 1G;
alter database add logfile thread 2 group 11 ('+DATA','+RECO') size 1G;
Chi tiết thủ tục như sau:
THỦ TỤC TẠO LẠI ONLINE REDO LOG
VỚI ASM
-- Note: Không càn cấu hình OMF
-- Monitor đảm bảo mỗi group tối thiểu 02 member trên 2 phân vùng khác nhau
--+FRA/OCSGWRPT/ONLINELOG/group_1.257.1077367961
--+DATA1/OCSGWRPT/ONLINELOG/group_1.262.1077367961
select * from v$logfile order by 1;
--Status đảm bảo luôn có group inactive
select * from v$log order by 1;
set echo off set feedback off set linesize 120 set pagesize 35 set trim on set trims on set lines 120 col group# format 999 col thread# format 999 col member format a70 wrap col status format a10 col archived format a10 col fsize format 999 heading "Size (MB)" select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2
alter database add logfile thread 1 group 5 ('/u09/oracle/data/DBAViet/redo01a.log','/u10/oracle/data/DBAViet/redo01b.log') size 1G;
--FRA 897GB DATA1 con 41GB, DATA2 conf 61GB --> Ko them vao DATA1, DATA2; DATA3 conf 1.3TB
select * from v$asm_diskgroup;
alter database add logfile thread 1 group 5 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 2 group 6 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 1 group 7 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 2 group 8 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 1 group 9 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 2 group 10 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 1 group 11 ('+DATA3','+FRA') size 2G;
alter database add logfile thread 2 group 12 ('+DATA3','+FRA') size 2G;
select * from v$logfile order by 1;
--Status đảm bảo luôn có group inactive
select * from v$log order by 1;
alter system switch logfile;
select * from v$logfile order by 1;
--Status đảm bảo luôn có group inactive thi drop duoc
select * from v$log order by 1;
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
alter database drop logfile group 4;
VỚI FILE SYSTEM
--Method to drop and recreate online redolog files with 2 members to each group
--1.Firstly ORACLE will never allow you to drop the current ONLINE redolog file –
-- Size, status logfile group, thread
select * from v$log;
--Group# Thread# Sequence# BytesMembers Archived
--1 1 17449 524288000 1 YES INACTIVE 11950575940971 28/05/2017 1:36:20 AM
--2 1 17448 524288000 1 YES INACTIVE 11949968296967 27/05/2017 2:05:34 AM
--3 2 26642 524288000 1 YES INACTIVE 11951023181485 28/05/2017 6:30:26 PM
--4 2 26643 524288000 1 YES INACTIVE 11951187419487 29/05/2017 1:35:35 AM
--5 2 26644 524288000 1 YES INACTIVE 11951568250526 29/05/2017 3:17:19 PM
--6 2 26645 524288000 1 NO CURRENT 11951840525221 30/05/2017 1:14:52 AM
--7 1 17450 524288000 1 YES INACTIVE 11951187419492 29/05/2017 1:35:36 AM
--8 1 17451 524288000 1 NO CURRENT 11951840525227 30/05/2017 1:14:53 AM
-- D/s duong dan logfile
select * from v$logfile order by 1;
--1 ONLINE /data/oradata/dbaviet/redo01.log NO
--2 ONLINE /data/oradata/dbaviet/redo02.log NO
--3 ONLINE /data/oradata/dbaviet/redo03.log NO
--4 ONLINE /data/oradata/dbaviet/redo04.log NO
--5 ONLINE /data/oradata/dbaviet/redo05.log NO
--6 ONLINE /data/oradata/dbaviet/redo06.log NO
--7 ONLINE /data/oradata/dbaviet/redo07.log NO
--8 ONLINE /data/oradata/dbaviet/redo08.log NO
--10 STANDBY /data/oradata/dbaviet/standby_redo10.log NO
--11 STANDBY /data/oradata/dbaviet/standby_redo11.log NO
--12 STANDBY /data/oradata/dbaviet/standby_redo12.log NO
--13 STANDBY /data/oradata/dbaviet/standby_redo13.log NO
--14 STANDBY /data/oradata/dbaviet/standby_redo14.log NO
--15 STANDBY /data/oradata/dbaviet/standby_redo15.log NO
alter database drop logfile group 10;
alter database drop logfile group 11;
alter database drop logfile group 12;
alter database drop logfile group 13;
alter database drop logfile group 14;
alter database drop logfile group 15;
--Intention is to drop and recreate these online logs with a different size.
select * from v$log;
--Group# Thread# Sequence# BytesMembers Archived
--1 1 17449 524288000 1 YES INACTIVE 11950575940971 28/05/2017 1:36:20 AM
--2 1 17448 524288000 1 YES INACTIVE 11949968296967 27/05/2017 2:05:34 AM
--3 2 26642 524288000 1 YES INACTIVE 11951023181485 28/05/2017 6:30:26 PM
--4 2 26643 524288000 1 YES INACTIVE 11951187419487 29/05/2017 1:35:35 AM
--5 2 26644 524288000 1 YES INACTIVE 11951568250526 29/05/2017 3:17:19 PM
--6 2 26645 524288000 1 NO CURRENT 11951840525221 30/05/2017 1:14:52 AM
--7 1 17450 524288000 1 YES INACTIVE 11951187419492 29/05/2017 1:35:36 AM
--8 1 17451 524288000 1 NO CURRENT 11951840525227 30/05/2017 1:14:53 AM
--+ Begin dropping the redolog groups with STATUS=’INACTIVE’ – As mentioned earlier Oracle will not allow you to drop a current online redolog file.
alter database drop logfile group 1;
alter database drop logfile group 2;
--alter database drop logfile group 3;
alter database drop logfile group 4;
alter database drop logfile group 5;
alter database drop logfile group 7;
cd /data/oradata/prepaid/
mv /data/oradata/prepaid/redo01.log /data/oradata/dbaviet/redo01.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo02.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo03.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo04.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo05.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo06.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo07.log.bkp
mv /data/oradata/dbaviet/redo01.log /data/oradata/dbaviet/redo08.log.bkp
--Recreate group with both members
select * from v$log;
select * from v$logfile;
alter database drop logfile group 6;
alter database drop logfile group 7;
alter database add logfile thread 1 group 1 '/u02/oradata/dbaviet/redo01.log' size 512m;
alter database add logfile thread 1 group 2 '/u02/oradata/dbaviet/redo02.log' size 512m;
--alter database add logfile thread 2 group 3 '/u02/oradata/dbaviet/redo03.log' size 512m;
alter database add logfile thread 2 group 4 '/u02/oradata/dbaviet/redo04.log' size 512m;
alter database add logfile thread 2 group 5 '/u02/oradata/dbaviet/redo05.log' size 512m;
alter database add logfile thread 2 group 6 '/u02/oradata/dbaviet/redo06.log' size 512m;
alter database add logfile thread 1 group 7 '/u02/oradata/dbaviet/redo07.log' size 512m;
-- Tao lai group 8 thread 1: Van con /data
-- Group# 8 INACTIVE thi drop logfile
select * from v$log;
select * from v$logfile
alter database drop logfile group 8;
alter database add logfile thread 1 group 8 '/u02/oradata/dbaviet/redo08.log' size 512m;
alter system switch logfile;
ĐỌC THÊM:
Hy vọng hữu ích cho bạn.
=============================* 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: https://www.youtube.com/@binhguru
👨 Tiktok: https://www.tiktok.com/@binhguru
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhguru
👨 Podcast: https://www.podbean.com/pu/pbblog-eskre-5f82d6
👨 Đị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
=============================
Khi nào cần tạo lại online redo log, sizing như thế nào cho chuẩn trong Oracle Database, 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, ASM, 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
Sửa bài viết
Thứ Bảy, 3 tháng 12, 2022
Temporary Undo trong Cơ sở dữ liệu Oracle 12c
Một tính năng khá "thú vị" của các bảng global temporary (GTT) là các undo segment của chúng được lưu trữ trong undo tablespace thông thường, đồng thời nó lại được bảo vệ bằng redo entry Điều này gặp phải một số vấn đề.
Sửa bài viếtThứ Hai, 2 tháng 5, 2022
Cách tìm phân mảnh (Fragmentation) trong Oracle Database
Mục đích: Chia sẻ script để đơn giản hóa quá trình tìm phân mảnh (Fragmentation) trong Oracle Database
Sửa bài viết
Thứ Ba, 29 tháng 3, 2022
Kiểm tra user nào, sql_id, bảng nào sinh ra archived redo log
Mục đích: Kiểm tra user nào, sql_id, bảng nào sinh ra archived redo log
Sửa bài viết
Thứ Tư, 2 tháng 3, 2022
File tham số khởi tạo PFILE và SPFILE
Giới thiệu bài viết:
Bài viết về PFILEs và SPFILEs là một trong những bài viết được nhiều người quan tâm
Thứ Năm, 6 tháng 1, 2022
Thủ tục chuyển datafile sang phân vùng SAN khác_Recover
Mục đích: Phân vùng /u08 có 1 số datafile của tablespace DATA1 nằm trên SAN có nguy cơ bị lỗi, rất khẩn cấp DBA phải chuyển sang phân vùng /u18 của SAN "xịn" khác, dưới đây tôi sẽ chia sẻ cách thực hiện chuyển
Note: Cách này anh em mới vào nghề cẩn thận nhé, chú ý BACKUP FULL OK trước khi thực hiện nhé.
Thứ Tư, 5 tháng 1, 2022
[VIP] Checklist đảm bảo an toàn trước khi thu hồi phân vùng SAN hoặc chuyển sang phân vùng khác
Mục đích: Checklist các loại dữ liệu: DF, Undo, redo log, control file, CRS, OCR,…. Trước khi thu hồi phân vùng /u02 hoặc chuyển từ u02 sang u12
[VIP] Checklist đảm bảo an toàn trước khi thu hồi phân vùng SAN hoặc chuyển sang phân vùng khác
Mục đích: Checklist các loại dữ liệu: DF, Undo, redo log, control file, CRS, OCR,…. Trước khi thu hồi phân vùng /u02 hoặc chuyển từ u02 sang u12
Thứ Ba, 4 tháng 1, 2022
Redo log cấu hình size như thế nào là tối ưu?
1. Redo nhỏ quá ảnh hưởng tiêu cực gì?
--> Switch log nhiều, mỗi lần switch lại checkpoint, khi checkpoint là lúc ghi dữ liệu dirty block xuống Datafile, từ đó làm giảm hiệu năng của DB
Sửa bài viết
--> Switch log nhiều, mỗi lần switch lại checkpoint, khi checkpoint là lúc ghi dữ liệu dirty block xuống Datafile, từ đó làm giảm hiệu năng của DB
Thứ Tư, 29 tháng 12, 2021
Script Unix/Linux xoá archived log tự động hàng ngày, lưu trữ archived log 3 ngày
Mục đích: Script Unix/Linux xoá archived log tự động hàng ngày, lưu trữ archived log 3 ngày
Thứ Ba, 19 tháng 10, 2021
Thay đổi cỡ của Redo Log Files trong ASM của Oracle Database
Khi tạo redo log file lớn quá, vừa tốn dung lượng vừa không tối ưu, khi đó có thể tạo lại redo log file group và xóa redo log file cũ đi.
Thứ Sáu, 1 tháng 10, 2021
Script off autoextend toàn bộ các datafile trong 1 diskgroup
Mục đích:
Diskgroup DATA2, DATA3, DATA4 còn free < 20GB, đầy 99-100% rồi do đó cần off autoextend toàn bộ các datafile trong 1 diskgroup
Thực hiện:
1. Check diskgroup sắp đầy:
select group_number,type, name, round(total_mb/1024,2) "Total_GB", round(usable_file_mb/1024) "Usable_file_GB"
from v$asm_diskgroup
where round(usable_file_mb/1024) < 20GB
order by "Usable_file_GB";
2. Script sinh câu lệnh SQL
select * from v$datafile where name like '%DATA2%' or name like '%DATA3%' or name like '%DATA4%';
select 'alter database datafile ' || file# ||' autoextend off;' from v$datafile where name like '%DATA2%' or name like '%DATA3%' or name like '%DATA4%';
3. Lấy câu lệnh ở trên và chạy trong TOAD hoặc SQL Navigator hoặc duyệt cursor
alter database datafile 2 autoextend off;
alter database datafile 8 autoextend off;
alter database datafile 430 autoextend off;
alter database datafile 2159 autoextend off;
alter database datafile 3050 autoextend off;
alter database datafile 3946 autoextend off;
alter database datafile 3947 autoextend off;
alter database datafile 8081 autoextend off;
alter database datafile 8082 autoextend off;
alter database datafile 8083 autoextend off;
alter database datafile 8084 autoextend off;
alter database datafile 8085 autoextend off;
alter database datafile 8086 autoextend off;
alter database datafile 8087 autoextend off;
alter database datafile 13146 autoextend off;
alter database datafile 15295 autoextend off;
alter database datafile 15397 autoextend off;
alter database datafile 15398 autoextend off;
alter database datafile 15399 autoextend off;
alter database datafile 15400 autoextend off;
alter database datafile 15401 autoextend off;
alter database datafile 15402 autoextend off;
alter database datafile 15403 autoextend off;
alter database datafile 15404 autoextend off;
alter database datafile 15405 autoextend off;
alter database datafile 15406 autoextend off;
alter database datafile 15407 autoextend off;
alter database datafile 15408 autoextend off;
alter database datafile 15409 autoextend off;
alter database datafile 15410 autoextend off;
alter database datafile 15411 autoextend off;
alter database datafile 15412 autoextend off;
alter database datafile 15413 autoextend off;
alter database datafile 15414 autoextend off;
alter database datafile 15415 autoextend off;
alter database datafile 15416 autoextend off;
....
4. Theo dõi sau khi thực hiện
Theo dõi liên tục vùng này để tránh đầy ổ.
select group_number,type, name, round(total_mb/1024,2) "Total_GB", round(usable_file_mb/1024) "Usable_file_GB"
from v$asm_diskgroup
where round(usable_file_mb/1024) < 20GB
order by "Usable_file_GB";
5. Các bước tiếp theo
- Chuyển bớt datafile sang phân vùng diskgroup khác (ví dụ RECO, FRA,...) theo các hướng dẫn sau:
https://www.vietdba.vn/2021/02/quy-trinh-chuyen-datafile-sang-phan.html
- Bổ sung thêm LUN vào diskgroup DATA2, DATA3, DATA4 theo hướng dẫn: https://www.vietdba.vn/2020/07/quy-trinh-add-o-ia-moi-vao-diskgroup.html
Hy vọng hữu ích cho bạn.
* 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: 0902912888
⚡️ Skype: tranbinh48ca
👨 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
=============================
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,khóa học pl/sql, 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 dataguard, oracle goldengate, mview, oracle exadata, oracle weblogic, middleware, hoc solaris, hoc linux, hoc aix, unix, oracle oca, oracle ocp, oracle ocm
Sửa bài viết
Thứ Ba, 21 tháng 9, 2021
Quản lý Undo data trong Oracle Database từ A-Z
Mục đích:
- Undo data là bản ghi sinh ra bởi các giao dịch DML
- Ghi lại tất cả các giao dịch có thay đổi dữ liệu
- Duy trì tối thiểu cho đến khi giao dịch kết thúc (commit, rollback , DDL)
- Hỗ trợ:
- Hoạt động rollback- Truy vấn đảm bảo tính nhất quán dữ liệu- Oracle Flashback Query, Oracle Flashback Transaction và Oracle Flashback Table, chi tiết- Khôi phục lại các giao dịch lỗi
Thứ Bảy, 10 tháng 7, 2021
Thủ tục add datafile trong ASM Oracle Database
--Check dung lượng sử dụng tablespace: Hiển thị size, free, max free của tablespace
Thứ Bảy, 15 tháng 5, 2021
Cách xử lý lỗi đầy temp file trong Oracle Database
--Lỗi xuất hiện
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
statement in resumable session 'User (0), Session 60, Instance 1' was suspended due to
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
Sat May 15 09:00:38 2020
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
statement in resumable session 'User (0), Session 278, Instance 1' was suspended due to
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
Sat May 15 09:05:40 2020
statement in resumable session 'User (0), Session 278, Instance 1' was aborted
Sat May 15 09:05:42 2020
statement in resumable session 'User (0), Session 60, Instance 1' was aborted
Sat May 15 09:50:41 2020
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
statement in resumable session 'User (0), Session 179, Instance 1' was suspended due to
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
Sat May 15 10:00:41 2020
ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
statement in resumable session 'User (0), Session 612, Instance 1' was suspended due to
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
Sat May 15 10:05:43 2020
statement in resumable session 'User (0), Session 179, Instance 1' was aborted
Suspending MMON slave action kewfmadsa_ for 82800 seconds
Sat May 15 10:05:47 2020
statement in resumable session 'User (0), Session 612, Instance 1' was aborted
Sat May 15 10:23:13 2020
statement in resumable session 'User SYS(0), Session 702, Instance 1' was resumed
Sat May 15 10:23:14 2020
statement in resumable session 'User User1(86), Session 486, Instance 1' was resumed
Sat May 15 10:23:15 2020
statement in resumable session 'User SYS(0), Session 704, Instance 1' was resumed
-- 1.Kiểm tra tempfile đã cấp phát, user sử dụng tempfile
select b.Total_MB,
b.Total_MB - round(a.used_blocks*8/1024) Current_Free_MB,
round(used_blocks*8/1024) Current_Used_MB,
round(max_used_blocks*8/1024) Max_used_MB
from v$sort_segment a,
(select round(sum(bytes)/1024/1024) Total_MB from dba_temp_files ) b;
-- Xac dinh session dang dung TEMP
SELECT A.inst_id,b.tablespace, 'ALTER SYSTEM KILL SESSION '''||a.sid||','||a.serial#||',@'||a.inst_id||''' IMMEDIATE;',ROUND(((b.blocks*p.value)/1024/1024),2)||'M' "SIZE",
a.sid||','||a.serial# SID_SERIAL,a.username,a.program
FROM sys.Gv_$session a,sys.Gv_$sort_usage b,sys.v_$parameter p
WHERE p.name = 'db_block_size' and a.inst_id=b.inst_id AND a.saddr = b.session_addr and b.tablespace like 'TEMP'
--AND A.USERNAME IS NOT NULL AND A.USERNAME not like 'SYS%'
ORDER BY b.tablespace, b.blocks;
-- Kiểm tra temp file đang lưu ở đâu, ví dụ diskgroup +DATA
select * from dba_temp_files;
-- Kiểm tra cột usable của diskgroup +DATA nếu còn mới add được
select * from v$asm_diskgroup;
-- 2.Thực hiện thêm tempfile
alter tablespace temp add tempfile '+DATA' size 1G autoextend on next 100m;
hoặc
alter tablespace temp add tempfile '+DATA' size 1G autoextend on next 100m maxsize 10g;
Tham khảo thêm: https://www.vietdba.vn/2020/11/quan-tri-temp-files.html
* 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
hoặc
https://bit.ly/oaz_fp
=============================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile: 0902912888
⚡️ Skype: tranbinh48ca
👨 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
=============================
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,khóa học pl/sql, 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 dataguard, oracle goldengate, oracle weblogic, oracle exadata, hoc solaris, hoc linux, hoc aix
Sửa bài viết
Đăng ký:
Bài đăng (Atom)
ĐỌC NHIỀU
-
Checklist triển khai theo 6 giải pháp của Bộ TT&TT (có phân vai “Ai làm gì” – từng bước – mẫu tài liệu cần chuẩn bị). Template “Kế h...
-
ASM là viết tắt của “Automatic Storage Management” trong hệ thống quản lý cơ sở dữ liệu của Oracle. ASM là một công nghệ của Oracle Databas...
-
Serial: sneep All Hardware # prtdiag -v // verbose show đầy đủ thông tin # prtconf