- 浏览: 71841 次
- 性别:
- 来自: 杭州
-
文章分类
最新评论
1.To get the table space usage in oracle use this query:
SELECT a.tablespace_name,
ROUND(a.bytes / 1024000) 'Used (MB)',
ROUND(b.bytes / 1024000) 'Free (MB)',
ROUND(((a.bytes -b.bytes) / a.bytes) *100, 2) '% USED'
FROM
(SELECT tablespace_name,
SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name)
a,
(SELECT tablespace_name,
SUM(bytes) bytes,
MAX(bytes) largest
FROM dba_free_space
GROUP BY tablespace_name)
b
WHERE a.tablespace_name = b.tablespace_name
AND a.tablespace_name LIKE '%'
ORDER BY((a.bytes -b.bytes) / a.bytes) DESC;
If You want to list a particular table space replace a.TABLESPACE_NAME like ‘%’ with a.TABLESPACE_NAME like ‘MY_TABLE_SPACE’
2.To get the temporary tablespace usuage use this query:
SELECT tablespace_name,
SUM(bytes_used),
SUM(bytes_free)
FROM v$temp_space_header
GROUP BY tablespace_name;
发表评论
-
关于Oracle 版本
2015-10-10 10:23 0第一部分是“Version Number",也就是产 ... -
了解Oracle数据库的版本号
2015-10-10 10:20 0Major Database Release ... -
PDF 资料
2013-03-13 15:45 0Java design pattern --Bob ... -
Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别 [转]
2013-03-12 14:17 1037sys和system用户区别 1)最重要的区别,存储的数 ... -
Oracle 用户、对象权限、系统权限 [转]
2013-03-12 14:12 0--============================ ... -
表分区分割脚本
2013-03-12 13:10 768表分区分割脚本 -
Oracle Session 视图[转]
2013-03-06 10:17 990v$session v$session_wait v$ ... -
10G中查看历史执行计划信息[转]
2013-03-01 11:02 3773现在总结下10G的,使用的是AWR报告中的信息,主要是查询 ... -
Oracle 表连接 [转]
2013-02-26 15:20 663Oracle 表之间的连接分为三种: 1. 内连接(自然 ... -
oracle的number类型精度、刻度范围 [转]
2013-02-26 15:06 5289一、 oracle 的 number 类型精度、刻度范围 ... -
Oracle Tablespace
2012-11-29 16:53 01. 几个重要的TableSpace SYSTE ... -
[转]Optimizing SPLIT PARTITION and SPLIT SUBPARTITION Operations
2012-11-27 15:11 934Optimizing SPLIT PARTITION and ... -
Oracle splitting partitions简单小结[转]
2012-11-27 15:12 1022http://www.oracleonlinux.cn/201 ... -
When the explanation doesn't sound quite right
2012-10-30 13:05 0When the explanatio ... -
oracle中join的用法 .
2012-10-10 11:43 0oracle中join的用法8i: create ... -
[转]Oracle中Left Outer Join和外关联(+)的区别
2012-11-27 15:15 870外关联是Oracle数据库的专有语句 Left Outer ... -
[转]关于ORACLE的锁表与解锁总结
2012-09-29 11:11 0总结1:Oracle的锁表与解锁 selects.userna ... -
not in/not exists 的 null 陷阱
2012-09-27 11:07 0[转]not in/not exists 的 nul ... -
Oracle Database Link Tutorials,Examples to create, use, manage and drop them[转]
2012-09-21 10:54 0Oracle Database Link TutorialsE ... -
Understanding Oracle QUERY PLAN
2012-01-06 11:28 1177Understanding Oracle QUERY PLAN ...
相关推荐
- sort_usage: tell how temp tablespace is used in detail - sgasnap [] Snapshot the sga advice stats - sgaadv [-s []] [-o graphfile] generate a graph from v and v and store it in a file if the -o ...
- **示例**:`DBMS_UTILITY.GET_TABLESPACE_USAGE` 可以查询表空间的使用情况。 2. **DBMS_ALERT** - **功能**:提供了一种机制来实现服务器之间的通信和同步,特别适用于分布式数据库环境。 - **示例**:使用`...
select b.file_id, b.tablespace_name, b.bytes, (b.bytes - sum(nvl(a.bytes, 0))) as 'Used', sum(nvl(a.bytes, 0)) as 'Free', sum(nvl(a.bytes, 0))/(b.bytes)*100 as 'Usage %' from dba_free_space a, dba_...
- 分析`v$system_event`中的`CPU usage by sessions`事件以识别CPU瓶颈。 - 使用`v$resource_limit`视图来检查资源限制。 - **2.1.8 IO基准测试** - IO性能直接影响数据库的响应速度,因此进行IO基准测试对于...
- **方法**: 使用`dbms_space.admin`包中的`get_next_extent`和`get_max_extent`函数。 - **关键字段**: - 对象名(`object_name`)。 - 下一扩展(`next_extent`)。 - 最大扩展(`max_extent`)。 #### 五、检查...