--Hiển thị size, free, max free của tablespace
SELECT a.tablespace_name,100 - ROUND ( (NVL (b.bytes_free, 0) / a.bytes_alloc) * 100) "%Usage",
ROUND (a.bytes_alloc / 1024 / 1024) "Size MB",
ROUND (a.bytes_alloc / 1024 / 1024)- ROUND (NVL (b.bytes_free, 0) / 1024 / 1024) "Used MB",
ROUND (NVL (b.bytes_free, 0) / 1024 / 1024) "Free MB",
--ROUND ( (NVL (b.bytes_free, 0) / a.bytes_alloc) * 100) "%Free",
ROUND (maxbytes / 1048576) "Max MB",
round(maxbytes/1048576-(ROUND (a.bytes_alloc / 1024 / 1024)- ROUND (NVL (b.bytes_free, 0) / 1024 / 1024)),0) "Free_MB_Max",
ROUND (ROUND ( (a.bytes_alloc - NVL (b.bytes_free, 0)) / 1024 / 1024)/ ROUND (maxbytes / 1048576) * 100) "%Used of Max"
FROM (SELECT f.tablespace_name, SUM (f.bytes) bytes_alloc, SUM (DECODE (f.autoextensible, 'YES', f.maxbytes, 'NO', f.bytes)) maxbytes
FROM dba_data_files f
GROUP BY tablespace_name) a,
(SELECT f.tablespace_name, SUM (f.bytes) bytes_free FROM dba_free_space f GROUP BY tablespace_name) b
WHERE a.tablespace_name = b.tablespace_name(+) --and (a.tablespace_name in ('TEMP1','DATA201511','DATA201512','DATA2016','INDX'))
order by "%Used of Max" desc;
Sửa bài viết
- 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
Thứ Năm, 6 tháng 9, 2018
File System_Quy trình chuyển datafile của tablespace DATA, INDX sang phân vùng mới bằng cách copy datafile
Muc đích:
- Chuyển đổi tablespace từ phân vùng /u01 sang phân vùng u02 hoặc sang phân vùng tốc độc thâp như SATA bằng cách copy datafile
- Ứng cứu phân vùng /u01 đầy 99, 100% cần chuyển 1 số datafile để tránh đầy sang phân vùng /u02
0.Kiểm tra dung lượng tablespace: 100MB
select round(sum(bytes)/1024/1024, 2) from dba_data_files where tablespace_name like 'DATA2018%' order by file_name desc;
select * from dba_data_files where tablespace_name like 'DATA2018%' order by file_name desc;
1.Read only, Offline tablespace
-- Chuyen tablespace ve che do read only
--alter tablespace DATA2018 read only;
Select 'alter tablespace ' || tablespace_name || ' read only;' from dba_tablespaces where tablespace_name like 'DATA2018';
Sửa bài viết
0.Kiểm tra dung lượng tablespace: 100MB
select round(sum(bytes)/1024/1024, 2) from dba_data_files where tablespace_name like 'DATA2018%' order by file_name desc;
select * from dba_data_files where tablespace_name like 'DATA2018%' order by file_name desc;
1.Read only, Offline tablespace
-- Chuyen tablespace ve che do read only
--alter tablespace DATA2018 read only;
Select 'alter tablespace ' || tablespace_name || ' read only;' from dba_tablespaces where tablespace_name like 'DATA2018';
Thứ Tư, 5 tháng 9, 2018
Hướng dẫn tạo ZFS pools và file systems trên Solaris
Chúng tôi có thể tạo nhóm ZFS bằng các thiết bị khác nhau như:
a. Sử dụng toàn bộ đĩa
b. Sử dụng slices đĩa
c. Sử dụng tập tin
Sửa bài viết
b. Sử dụng slices đĩa
c. Sử dụng tập tin
Thứ Sáu, 31 tháng 8, 2018
Thay đổi IP, hostname trên Solaris
- Assume the Primary Administrator role, or become superuser.
The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
Xử lý lỗi GoldenGate bị ABEND khi instance down đột ngột
Troubleshoot GoldenGate Process when Instance down suddenly
Mục đích: Khắc phục lỗi tiến trình GoldenGate bị ABEND khi instance shutdown đột ngột
1. Errors message from $GGATE/ggserr.log
Mục đích: Khắc phục lỗi tiến trình GoldenGate bị ABEND khi instance shutdown đột ngột
1. Errors message from $GGATE/ggserr.log
2018-08-30
15:19:41 WARNING OGG-00715 Oracle GoldenGate Capture for Oracle, ext1.prm: [Thread #3] Purging
transaction (transaction id: 3607.7.337705, start time: 2018-08-30 15:33:03,
start seqno: 85665, start RBA: 2920625168).
2018-08-30
15:19:41 WARNING OGG-00712 Oracle GoldenGate Capture for Oracle, ext1.prm: Updating I/O checkpoint
after purging orphaned transactions on thread 3 with current position (Seq#:
85669, RBA: 615293852).
2018-08-30
15:19:42 WARNING OGG-00723 Oracle GoldenGate Capture for Oracle,
consext5.prm: Record with class# 7092,
slt# 12, at seqno 85669, rba 715072016 SCN 2867.4219647111 (12317890884743) has
secondary transaction ID that is du
plicate of
existing open uncommitted transaction.
.
....
2018-08-30
15:20:53 ERROR OGG-00446
Oracle GoldenGate Capture for Oracle, EXT2.prm: Could not find archiv
ed log for
sequence 87475 thread 1 under default destinations SQL <SELECT name
FROM v$archived_log WHERE se
quence# =
:ora_seq_no AND thread# =
:ora_thread AND resetlogs_id =
:ora_resetlog_id AND a
rchived =
'YES' AND deleted = 'NO>,
error retrieving redo file name for sequence 87475, archived = 1, use
_alternate
= 0Not able to establish initial position for sequence 87475, rba 1795950096.
2018-08-30 15:20:53 ERROR OGG-01668
Oracle GoldenGate Capture for Oracle,DP2.prm: PROCESS ABENDING.
Sửa bài viết
Xử lý lỗi GoldenGate bị ABEND khi instance down đột ngột
Troubleshoot GoldenGate Process when Instance down suddenly
Mục đích: Khắc phục lỗi tiến trình GoldenGate bị ABEND khi instance shutdown đột ngột
1. Errors message from $GGATE/ggserr.log
Mục đích: Khắc phục lỗi tiến trình GoldenGate bị ABEND khi instance shutdown đột ngột
1. Errors message from $GGATE/ggserr.log
2018-08-30
15:19:41 WARNING OGG-00715 Oracle GoldenGate Capture for Oracle, ext1.prm: [Thread #3] Purging
transaction (transaction id: 3607.7.337705, start time: 2018-08-30 15:33:03,
start seqno: 85665, start RBA: 2920625168).
2018-08-30
15:19:41 WARNING OGG-00712 Oracle GoldenGate Capture for Oracle, ext1.prm: Updating I/O checkpoint
after purging orphaned transactions on thread 3 with current position (Seq#:
85669, RBA: 615293852).
2018-08-30
15:19:42 WARNING OGG-00723 Oracle GoldenGate Capture for Oracle,
consext5.prm: Record with class# 7092,
slt# 12, at seqno 85669, rba 715072016 SCN 2867.4219647111 (12317890884743) has
secondary transaction ID that is du
plicate of
existing open uncommitted transaction.
.
....
2018-08-30
15:20:53 ERROR OGG-00446
Oracle GoldenGate Capture for Oracle, EXT2.prm: Could not find archiv
ed log for
sequence 87475 thread 1 under default destinations SQL <SELECT name
FROM v$archived_log WHERE se
quence# =
:ora_seq_no AND thread# =
:ora_thread AND resetlogs_id =
:ora_resetlog_id AND a
rchived =
'YES' AND deleted = 'NO>,
error retrieving redo file name for sequence 87475, archived = 1, use
_alternate
= 0Not able to establish initial position for sequence 87475, rba 1795950096.
2018-08-30 15:20:53 ERROR OGG-01668
Oracle GoldenGate Capture for Oracle,DP2.prm: PROCESS ABENDING.
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