查看分区数据量,查看全库数据量 USE information_schema; SELECT PARTITION_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME = 'sale_data'; SELECT table_name,table_rows FROM TABLES WHERE TABLE_SCHEMA = 'db_name' ORDER BY table_rows DESC ; http://my
$sqlplus/nolog #使用PLSQL进入oracleSQL>conn/as sysdba #进入sysdba权限CREATE DIRECTORY datadir1 AS '/home/oracle/dump_dir'; #数据库定义目录变量 mkdir -p /home/oracle/dump_dir #宿主机创建创建系统真实目录GRANT READ,WRITE ON DIRECTORY datadir1 TO xxx ; GRANT READ,WRITE ON DIREC
在scott用户下面,搜索含有'要找的值'的数据的表和字段穷举法: declare v_Sql ); v_count number; begin for xx in (select t.OWNER, t.TABLE_NAME, t.COLUMN_NAME from dba_tab_columns t where t.OWNER = 'scott') loop begin v_Sql := 'select count(1) from ' || xx.owner || '.' || xx.table