1. 程式人生 > >Oracle DB , 計算各個使用者/schema 的磁碟佔用空間

Oracle DB , 計算各個使用者/schema 的磁碟佔用空間

Question:  How do I find the size of a schema in my database?

Answer: It depends on how you define "size".  If you want the total disk space consumed by the schema (including indexes, tablespace free space), then the SQL query is quite simple:

select 
   owner,
   sum(bytes)/1024/1024/1024 schema_size_gig
from dba_segments group by owner;

If you just want the size of the schema in terms of the space consumed by table rows, you would use a different query to calculate the schema size:

select 
   sum(bytes)/1024/1024/1024 as size_in_gig, 
   segment_type
from 
   dba_segments
where 
   owner
='SCOTT' group by segment_type;

Drop Table 之後,如果空間不能回收,需要執行西面語句

  清除當前使用者的回收站:purge recyclebin;

  清除所有使用者的回收站:purge dba_recyclebin;

相關推薦

Oracle DB , 計算各個使用者/schema磁碟佔用空間

Question:  How do I find the size of a schema in my database? Answer: It depends on how you define "size".  If you want the total disk space consumed by

Oracle DB , 計算各個用戶/schema 的磁盤占用空間

def term ner href pen database col table scott http://www.dba-oracle.com/t_find_size_schema.htm Question: How do I find the size of a s

Centos Linux 怎麼清理磁碟佔用空間大:/dev/xvda1

1 先在根目錄下檢索一下檔案的佔用情況,命令: du -sh * 結果如下:可以看到 www 目錄佔用了差不多10G,那目標就是找出佔用最多的檔案 [[email protected] /]# du -sh * 9.3M bin 24M boot 4

Oracle檢視分割槽、索引、表佔用空間大小

0、檢視使用者表、索引、分割槽表佔用空間 select segment_name, sum(bytes)/1024/1024 Mbytese from user_segments group by segment_name; 1、表佔用空間:select segment_n

oracle db中,某一種資料字典pct miss的計算公式

本文為原創文章,轉載請註明出處: 本文提到的資料字典,以dc_histogram_defs為例子來說明dc_histogram_defs的計算公式。 dc_histogram_defs這個依據字面的猜測,應該是直方圖的definitions 下圖中使用的db,是orac

磁碟目錄佔用空間計算排序工具

轉載自http://www.vpser.net/manage/ncdu.html ncdu介紹 原來說過使用du命令如何檢視磁碟目錄及檔案的使用情況,今天要的還是一款磁碟目錄佔用空間情況的工具,但是這款工具更方便更好用 - ncdu。ncdu命令是對傳統du命令功能

Oracle GoldenGate從oracle db 到非oracle db的初始化數據同步的方法

class article content info 靜態 oracl etl 進程 rep 非oracle db以 sqlserver為樣例說明: 我的思路 A :oracle db 生產 B: oracle db 中間機 C: sqlserver db 目的端

關於oracle db 11gR2版本號上的_external_scn_rejection_threshold_hours參數和scn headroom補丁問題

install eal 2.0 bsp 11gr2 con his star html 關於oracle db 11gR2版本號上的_external_scn_rejection_threshold_hours參數和scn headroom補丁問題 來自於: Inst

Oracle計算兩個日期時間的差

weight span num log 方法 bsp round code oracl --方法1 select floor((sysdate - to_date(‘2006-09-01 08:00:00‘, ‘yyyy-mm-dd hh24:m

Oracle DB 使用子查詢來解決查詢

目的 滿足 多少 group 錯誤 water 列表 功能 產生 ? 定義子查詢 ? 描述子查詢可以解決的問題類型 ? 列出子查詢的類型 ? 編寫單行和多行子查詢 ? 子查詢:類型、語法和準則 ? 單行子查詢: – 子查詢中的組函數 – 帶有子查詢的HAVING子句

Oracle 12.2安裝示例schema

oracle 12.2 示例 schema在做Oracle數據庫實驗時都會用到一些示例SCHEMA如:HR、OE、SH等,在Oracle11g版本時在DBCA時直接勾選Sample Schemas就可以安裝這些示例SCHEMA,如下圖:但到了Oracle12.2 版本,也有一個示例Schemas選項卡如下圖所

如何讓oracle DB、監聽和oem開機啟動(dbstart)

監聽和oem開機啟動如何讓oracle DB、監聽和oem開機啟動(dbstart)讓oracle DB、監聽和oem開機啟動(dbstart)Oracle提供了伴隨操作系統自動重啟的功能,在Windows中,可以修改“我的電腦-->管理-->服務-->OracleService$ORACL

Oracle DB 移動數據

pdu 註釋 一個 tro 進行 obj feedback exe 賬號 描述移動數據的方式 ? 創建和使用目錄對象 ? 使用SQL*Loader 加載非Oracle DB(或用戶文件)中的數據 ? 使用外部表並通過與平臺無關的文件移動數據 ? 說明Oracle 數據泵的

計算防止入坑之通過跑分看雲服務器的性能,給各位雲計算入門的一些建議

rst 應該 margin 現在 class 1.5 bre pro body 各位互聯網界的朋友,今天簡單的通過“魯大師”對現在的三款主流雲服務器進行了跑分,我選擇了阿裏雲、華為雲、新睿雲三款平臺進行測試,配置均為:2核,4G內存,40G 超高IO性能系統盤,1M帶寬,本

【Leetcode】Count Numbers with Unique Digits(計算各個位數不同的數字個數)

microsoft code nbsp ktr https 個數 col uniq ble 357. Count Numbers with Unique Digits(計算各個位數不同的數字個數) 題目:鏈接 1 class Solution { 2 priv

Oracle DB

utf-8 建議 網絡 接受 方案 中文 .exe 路徑 使用 索引 一、安裝 卸載 一、安裝 1、Oracle首先詢問用戶是否接受更新信息,一般選擇不接受;Oracle安裝選項,需為其配置數據庫,所以此處會詢問是否創建安裝數據庫,選擇是系統類型,一般選擇服

Oracle DB 使用DDL語句建立和管理表

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

磁碟可用空間佔用空間對不上的問題

新公司的測試機磁碟空間空餘很小,日誌很多,也很大,做個日誌壓縮指令碼,在夜裡4:30自動執行,第二天後發現磁碟空間又滿了,只好刪除沒用的日誌,清空空間,可詭異的是怎麼刪除沒用的檔案,空間還是佔用很大。如圖 用du 根目錄下,發現這些檔案加一塊也達不到佔用的空間大小。如圖 我也有遇見過此類問題,一般

357. 計算各個位數不同的數字個數

給定一個非負整數 n,計算各位數字都不同的數字 x 的個數,其中 0 ≤ x < 10n 。 示例: 輸入: 2 輸出: 91 解釋: 答案應為除去 11,22,33,44,55,66,77,88,99 外,在 [0,100) 區間內的所有數字。 class Solu

oracle RAC 通過udev繫結磁碟

關於oracle RAC 通過udev繫結磁碟,以下內容不做翻譯: Real Application Clusters (RAC) requires special ownership (owner, group and permissions) for the OCR (Oracle Clu