EBS中如何后台批量更改Profiles的值

EBS中如何后台批量更改Profiles的值

(版权声明,本人原创或者翻译的文章如需转载,如转载用于个人学习,请注明出处;否则请与本人联系,违者必究)

自己写来管理自己负责维护的EBS instance,经常有人设置了一些调试用的profile忘记关闭,结果导致服务器性能变差,可用空间变小,所以写了这个脚本。

1.如果要增加修改的profile, 需要同时在l_profNames 增加变量名, 在 l_profNewVal增加变量值。

2.l_profSpeUser, 如果只更改一个用户的profile值,就需要设置这个用户名,必须大写,而且这个值拥有最高优先级。

3.l_profSpeResp, 如果只更改一个职责的profile值,就需要设置这个职责名,而且这个值拥有第二高优先级。

4.l_profSpeApp, 如果只更改一个应用的profile值,就需要设置这个用户名,必须大写,而且这个值拥有第三最高优先级。

5.如果即不指明用户,职责和应用,那就对所有层次更新所有层次的profiles。

6.l_profExceptUser, 如果对所有层次更新profiles,那么这里指定的用户会被忽略,不会被更新,用户名要大写。

7.l_profIncludeSite,如果对所有层次更新profiles的时候,这个变量指明会不会更新站点层次的值。'N'是不更新,'Y'是更新。

/**
*  Batch update profile values from back end. Mainly used to
*  enable/disable debug profiles on dev instance
*  Author:tavor
*  Date:2014-01-08
*  Revision:1
*******************************************************************************************
**** IF YOU ARE NOT INSTANCE OWNER/ADMINISTRATOR, PLEASE BE CAREFUL TO RUN THIS SCRIPT***** 
*******************************************************************************************    
*  1.If need to add more profile, need to specify profile name in l_profNames
*    and new value in l_profNewVal.
*  2.l_profSpeUser is the user we just update profile for him/her, and this has highest priority.
*  3.l_profSpeResp is the resp we just update profile for it, and this has less higher priority.
*  4.l_profSpeApp is the App we just update profile for it, and this has less the third high priority.
*  5.If l_profSpeUser, l_profSpeResp and l_profSpeApp are all null, then we will update profiles for 
*    all resp, user and app level.
*  6.l_profExceptUser, If we update profiles for all levels, we wil
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值