This blog provides valuable insights and information for Oracle DBA professionals.
db_size.sql
Get link
Facebook
X
Pinterest
Email
Other Apps
-- ************************************************************************************************************
-- * Filename : db_size.sql
-- * Author : Saravanakumar K
-- * Description : This script with show all database physical file info
-- * Usage : @db_size.sql
-- * Version : v1
-- *************************************************************************************************************
set lines 200 pages 999
COL "Database Total Size" FORMAT a20
COL "Free space" FORMAT a20
COL "Used space" FORMAT a20
SELECT
name.name,round(SUM(used.bytes) / 1024 / 1024 / 1024)
|| ' GB' "Database Total Size",
round(SUM(used.bytes) / 1024 / 1024 / 1024) - round(free.p / 1024 / 1024 / 1024)
|| ' GB' "Used space",
round(free.p / 1024 / 1024 / 1024)
|| ' GB' "Free space"
FROM
(
SELECT
bytes
FROM
v$datafile
UNION ALL
SELECT
bytes
FROM
v$tempfile
UNION ALL
SELECT
bytes
FROM
v$log
) used,
(
SELECT
SUM(bytes) AS p
FROM
dba_free_space
) free,
(
select name from v$database) name
GROUP BY
free.p,name.name
/
Automating DBA Tasks with Oracle GoldenGate Oracle GoldenGate is widely recognized as one of the best tools for real-time data replication. It allows seamless database migrations, schema or table replication across homogeneous and heterogeneous environments, and enhances database performance by offloading reporting workloads. Additionally, it ensures high availability by enables Bi-directional or cascading database replication configurations. Beyond these well-known benefits, GoldenGate can also be leveraged for automating routine DBA tasks, reducing manual intervention and improving efficiency by Streamline Your DBA Tasks with EVENTACTIONS. Let's explore how you can leverage its EVENTACTIONS parameter to automate routine DBA tasks, reduce manual effort, and optimize workflows. In this post, I will demonstrate how GoldenGate can assist in automating key DBA operations, such as: Starting or stopping GoldenGate processes – Automate the m...
What is Oracle GoldenGate? It is an application that provides real-time data integration, data replication, transactional change data capture, data transformations, high availability solutions, and verification between operational and analytical enterprise systems.With Oracle GoldenGate, you can move committed transactions across multiple systems in your enterprise over a secure or non-secure configuration. It supports a wide range of databases and data sources, providing replication between same types or between heterogeneous databases. For example, you could replicate between an Oracle Autonomous Database instance and an Oracle Database instance, or between two Oracle Database instances set up as source and target, or a two-way replication between MySQL database and Oracle Database instances. In addition, you can replicate to Java Messaging Queues, flat files, and to Big Data in combination with Oracle GoldenGate for Big Data. When Do You Use Oracle GoldenGate? Oracle GoldenGate...
Comments
Post a Comment