ORACLE 统计文件后缀SQL查询语句 select lower(substr(file_name,instr(file_name, '.', -1),length(file_name))),count(*) from brofwk_attachment where instr(file_name,'.') >0 group by lower(substr(file_name,instr(file_name, '.', -1),length(file_name)));…
1. 统计数据文件.暂时文件.日志文件大小 select sum(bytes)/1024/1024/1024 as GB from dba_data_files; select sum(bytes)/1024/1024/1024 as GB from dba_temp_files; select sum(bytes)/1024/1024/1024 as GB from v$log; 2. 统计Oracle数据库文件占用空间 Total Size of the database= A+B+C se…
Oracle统计.分析和优化环境配置 创建批处理文件Login.bat 用于初始化设置系统环境 Login.bat @echo off title eoda mode con cols=140 color 85 set ORACLE_SID=muphy sqlplus eoda/foo 创建数据库脚本文件login.sql 用于初始化SQL*PLUS运行环境 define _editor=vim --设置编辑器为vim set serveroutput on size 1000000 --设置…