- 浏览: 23602 次
文章分类
- 全部博客 (35)
- linux (0)
- basedaoimpl 1 (0)
- basedao (1)
- basedaoimpl 2 (0)
- basedaoimpl 3 (0)
- basedaoimpl 4 (0)
- basedaoimpl 5 (0)
- basedaoimpl 6 (0)
- basedaoimpl 7 (0)
- htmlservlet1 (0)
- htmlservlet2 (0)
- htmlservlet3 (0)
- htmlservlet4 (0)
- excle1 (0)
- excle2 (0)
- pdf1 (0)
- pdf2 (0)
- servletutil1 (0)
- servletutil2 (0)
- servletutil3 (0)
- ziputil1 (0)
- ziputil2 (0)
- 项目管理以及统计工具 (0)
- linux命令总结 (0)
- 经典回答 (0)
- TR点设置 (0)
- TR点设置2 (0)
- 枚举 (1)
- tomcat5.5.xx以上 (1)
- 标准的写法遍历Map (1)
- 线程安全 (1)
- sql (1)
- 转义字符 (1)
- 经典美文1 (1)
- 经典美文2 (1)
- 经典美文3 (1)
- webservice以及线程应用 (1)
- webservice以及线程应用2 (1)
- InitializingBean应用 (1)
- 线程应用 (1)
- sqlloader1 (1)
- sqlloader2 (1)
- sqlloader3 (1)
- sqlloader4 (1)
- sqlloader5 (1)
- sqlloader6 (1)
- sqlloader7 (1)
- sql上报数据1 (1)
- sql上报数据2 (1)
- sql上报数据3 (1)
- sql上报数据4 (1)
- sql上报数据5 (1)
- sql上报数据6 (1)
- iputil1 (1)
- iputil2 (1)
- iputil3 (1)
- oracle sql1 (1)
- oracle sql2 (1)
- 线程池1 (0)
- 线程池3 (0)
- 日期处理1 (0)
- 日期处理2 (0)
- 日期处理3 (0)
- 日期处理4 (0)
- iputil4 (0)
- iputil5 (0)
- iputil6 (0)
- 日期处理6 (0)
- 日期处理7 (0)
- 日期处理8 (0)
- protocolList (0)
- DATELONG2TEXT (0)
- Dateinfo5 (0)
- Dateinfo6 (0)
- Dateinfo7 (0)
- Dateinfo8 (0)
- Dateinfo9 (0)
- Dateinfo10 (0)
- Dateinfo11 (0)
- Dateinfo12 (0)
- 处理ifream滚动条 (0)
- 工具面试题 (0)
- oracle1 (0)
- 批量插入数据 (0)
- oracle2 (0)
- oracle3 (0)
- oracle4 (0)
- oracle5 (0)
- oracle6 (0)
- oracle7 (0)
- oracle8 (0)
- oracle9 (0)
- oracle11 (0)
- oracle12 (0)
- oracle13 (0)
- oracle14 (0)
- oracle15 (0)
- http://zhang-xzhi-xjtu.iteye.com/category/133743 (1)
- 绑定变量 (0)
- 绑定变量2 (0)
- 绑定变量3 (0)
- 合理使用排序 (0)
- Jconsole 内存1 (0)
- Jconsole 内存2 (0)
- Jconsole 内存3 (0)
- io nio (0)
- nio (0)
- Batch (0)
- fetchsize (0)
- fetchsize2 (0)
- 面试题 (0)
- ExecutorService线程池 (0)
- 阻塞队列 (0)
- 简单阻塞队列实现 (0)
- 简单阻塞队列实现2 (1)
- CountDownLatch 结合线程应用 (0)
- 线程池 (0)
- 阻塞队列2 (0)
- LockSupport park unpark interrupt notifyAll wait等关系区别 (0)
- LockSupport park unpark interrupt notifyAll wait等关系区别1 (0)
- LockSupport park unpark interrupt notifyAll wait等关系区别2 (0)
- nio FileChannel (1)
- Nio Charset (0)
- nio 学习 (0)
- 杨化龙 (0)
- 排序1 (0)
- 排序2 (0)
- tomcat内存配置 (0)
- 字符串转换16进制数表示的字符串 (0)
- Dpi.report.common.TopnEdit (0)
- Dpi.report.common.TopnEdit2 (0)
- Dpi.report.common.TopnEdit3 (0)
- Dpi.report.common.TopnEdit4 (0)
- webservice调用 (0)
最新评论
su - oracle
sqlplus / as sysdba
shutdown immediate;
// 启动数据库
startup nomount;
alter database mount;
alter database open;
// 查询表空间文件
select file_name,tablespace_name,bytes/(1024*1024) from dba_data_files
where tablespace_name = 'TBS_DATA_SIG_USER_RPT1';
// 查询每一个表空间的大小和使用
select a.tablespace_name as "Tablespace",
(a.totalspace - b.freespace) "Used(MB)",
a.totalspace as "Totla(MB)",
b.freespace as "Free(MB)",
round(b.freespace / a.totalspace * 100) as "Pct. Free%"
from (select tablespace_name, round(sum(bytes) / 1048576) TotalSpace
from dba_data_files
group by tablespace_name) a,
(select tablespace_name, round(sum(bytes) / 1048576) FreeSpace
from dba_free_space
group by tablespace_name) b
where a.tablespace_name = b.tablespace_name;
// 重置表空间
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt1_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt2_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt3_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt5_01.dbf' resize 500m;
sqlplus / as sysdba
shutdown immediate;
// 启动数据库
startup nomount;
alter database mount;
alter database open;
// 查询表空间文件
select file_name,tablespace_name,bytes/(1024*1024) from dba_data_files
where tablespace_name = 'TBS_DATA_SIG_USER_RPT1';
// 查询每一个表空间的大小和使用
select a.tablespace_name as "Tablespace",
(a.totalspace - b.freespace) "Used(MB)",
a.totalspace as "Totla(MB)",
b.freespace as "Free(MB)",
round(b.freespace / a.totalspace * 100) as "Pct. Free%"
from (select tablespace_name, round(sum(bytes) / 1048576) TotalSpace
from dba_data_files
group by tablespace_name) a,
(select tablespace_name, round(sum(bytes) / 1048576) FreeSpace
from dba_free_space
group by tablespace_name) b
where a.tablespace_name = b.tablespace_name;
// 重置表空间
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt1_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt2_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt3_01.dbf' resize 500m;
Alter database datafile '/opt/oracle/oradata/tbs_data_public/tbs_data_sig_user_rpt5_01.dbf' resize 500m;
相关推荐
oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具oracle SQL查询工具...
ORACLE SQL性能优化系列 ORACLE SQL性能优化系列 ORACLE SQL性能优化系列
Oracle Sql语句转换成Mysql Sql语句java 源码,非常简单,只要给定源oracle sql语句地址,和生成目标文件地址运行即可。
[Apress] Oracle SQL 高级程序设计 第1版 (英文版) [Apress] Pro Oracle SQL 1st Edition (E-Book) ☆ 图书概要:☆ Pro Oracle SQL unlocks the power of SQL in the Oracle Database—one of the most potent ...
several factors, has Oracle at #1 as of late 2018. It’s used in many large organizations, and the main competitor is Microsoft’s SQL Server. Learning Oracle SQL will put you in a good position when ...
Oracle Sql基础(beginning oracle sql中文版)
精通Oracle SQL【第2版】ORACLE SQL高级编程【第二版】学习笔记
Oracle SQL 11G2 官方文档,包含4份,分别是PLSQL语言参考、PLSQL程序包与类型、Oracle SQL参考、SQL快速参考
Oracle SQL 内置函数大全 SQL中的单记录函数 给出整数,返回对应的字符 连接两个字符串 增加或减去月份 用于对查询到的结果进行排序输出
OracleSQL必备参考OracleSQL必备参考OracleSQL必备参考OracleSQL必备参考
Oracle SQL Developer is a relatively new product included in the range of Oracle products. It was frst introduced to the world in September 2005, by its code name Project Raptor. Raptor is a name ...
OracleSQL的优化.pdf
资深开发DBA对Oracle SQL编写规范的总结
Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition by Stelios Charalambides English | 8 May 2017 | ISBN: 1484224353 | 408 Pages | PDF | 24.39 MB Learn through this practical guide ...
解决oracle sqldeveloper无法连接mysql、SQLServer问题,sqlDeveloper是ORACLE数据库开发工具,自带的是无法连接MS SQL Server以及mysql的,想连接的话需要第三方工具。 使用方法: 解压出来后将2个jar放入jlib...
《Oracle SQL高级编程/数据库系列》的作者莫顿以精炼、风趣的语言揭开了Oracle SQL高级编程的神秘面纱。所涵盖的内容涉及SQL核心、SQL执行、分析函数、联结、测试与质量保证等,并提供大量实用性建议,且总结出...
本技术专题主要介绍如何使用Oracle SQL Developer和其他开发工具,内容包括使用Oracle Database Home Page、在Oracle中使用SQL*Plus、如何用SQL Developer来操作Oracle数据库以及表列定义等等。
OracleSQLDeveloper,是用于Oracle的可视化管理工具,无需安装Oracle,解压就可以使用,但打开时需要指定本机JDK的位置即可。
本篇主要介绍Oracle SQL运行环境及SQL语法相关内容。通过本篇的学习,必须掌握ORACLE SQL的使用。如同一个文员必须掌握office的使用一样。 SQL,结构化查询语言,是用于访问关系型数据库的语言,它提供一系列的...
oracle sql 语法大全 oracle sql 语法大全