07 2021 档案

oracle整库统计库表数据量--存储过程
摘要:方案一: analyze: analyze table table_name compute statistics; 1、生成analyze的sql。 1 select 'analyze table '|| table_name || ' compute statistics; ' from use 阅读全文

posted @ 2021-07-22 20:55 Cooper_73 阅读(1568) 评论(0) 推荐(0)

oracle整库统计库表各个字段数据最大长度--存储过程
摘要:1 CREATE OR REPLACE PROCEDURE TABLES_COL_MAX AS 2 COUNT_SQL VARCHAR2(2000); 3 P_TABLE_NAME VARCHAR2(2000); 4 P_COL_NAME VARCHAR2(2000); 5 P_COL_TYPE V 阅读全文

posted @ 2021-07-22 20:51 Cooper_73 阅读(950) 评论(0) 推荐(0)

mysql数据库初始化脚本分组批量执行
摘要:1 #!/bin/bash 2 3 :<<! 4 例如:./imp.sh 01-Db_init gp01 5 6 ! 7 8 if [ ! $2 ];then 9 10 echo -e "\n请输入初始化数据库分组:如:./imp.sh 01-Db_init gp01 \n" 11 exit 0 1 阅读全文

posted @ 2021-07-16 15:25 Cooper_73 阅读(233) 评论(0) 推荐(0)

导航