Oracle DBA常用脚本shell转换--查询隐含参数
概述
This project meant to provide useful scripts for DB maintance and management, to make work easier and interesting...
今天主要将Oracle查看隐含参数的脚本转换为shell脚本,仅供参考。
一、初始化脚本settdb.sh
use script settdb.sh for DB login details registry
二、实用脚本--show_implict_param.sh
#!/bin/bash echo "========================================查询数据库隐藏参数=================================================" sqlplus -S / as sysdba <<EOF set linesize 1000 pagesize 1000 col name for a60 col describ for a80 col value for a30 SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describ FROM SYS.x\$ksppi x, SYS.x\$ksppcv y WHERE x.indx = y.indx x.ksppinm LIKE '%$1%';; exit EOF
输出结果:
后面会分享更多devops和DBA方面内容,感兴趣的朋友可以关注下!
相关推荐
huha 2020-10-16
laisean 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
以梦为马不负韶华 2020-10-20
JohnYork 2020-10-16
Julyth 2020-10-16
applecarelte 2020-10-16
laisean 2020-09-27
flycappuccino 2020-09-27
liguojia 2020-09-27
wangzhaotongalex 2020-09-22
流年浅滩 2020-10-23
liujianhua 2020-10-22
woaimeinuo 2020-10-21
tufeiax 2020-09-03
laisean 2020-09-01
vvu 2020-09-16
libao 2020-09-16
Yyqingmofeige 2020-08-18
zhushixia 2020-08-17