Locked / password  by Mail

Hi,
# File name - Lock.sh #
# Description - Script which sends mail to DBA team #
# if any Locked Users found. #
#!/bin/ksh
export ORACLE_OWNER=oracle
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.3
export ORACLE_SID=PROD
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
export PATH=$PATH:$ORACLE_HOME/bin:
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/product/jlib
export LIBPATH=$ORACLE_HOME/lib
TMP_DIR="/u01/oracle/vn/lock"
EMAIL_ADDR="[email protected]"
sqlplus -s "/ as sysdba" >> $TMP_DIR <<EOF
set pages 100
set lines 180
set feedback off
col username format a14
col account_status format a16
col "Locked date" format a23
select username,account_Status ,to_char(lock_Date,'DD-MON-YYYY HH:MM:SS') "Locked Date" from dba_users where account_Status like '%LOCKED';
exit
EOF
# Send an Email,
if [ `cat $TMP_DIR|wc -l` -gt 0 ]
then
mail -s "Locked users Details in Prod on AS900" $EMAIL_ADDR < $TMP_DIR
rm $TMP_DIR
fi
We prepared script for find locked users.It is working fine.It runs every day.
I need some modifications *1, send mail only if the user locked. No need to send mail if the users not locked.*
2, I have to know whenever user change their password in their schema by mail.Bcz we have schemas which has permanent password.some times enduser /developer changed the password.so application is not working and esacalation occured.
I tried to use user_history$ which doesn't has much info.
3,Is it possible to know password changes by tirgger rather than use query ?
pls anyone help me out.
Thanks & Regards,
VN

user3266490 wrote:
Hi,
# File name - Lock.sh #
# Description - Script which sends mail to DBA team #
# if any Locked Users found. #
#!/bin/ksh
export ORACLE_OWNER=oracle
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.3
export ORACLE_SID=PROD
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib
export PATH=$PATH:$ORACLE_HOME/bin:
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/product/jlib
export LIBPATH=$ORACLE_HOME/lib
TMP_DIR="/u01/oracle/vn/lock"
EMAIL_ADDR="[email protected]"
sqlplus -s "/ as sysdba" >> $TMP_DIR <<EOF
set pages 100
set lines 180
set feedback off
col username format a14
col account_status format a16
col "Locked date" format a23
select username,account_Status ,to_char(lock_Date,'DD-MON-YYYY HH:MM:SS') "Locked Date" from dba_users where account_Status like '%LOCKED';
exit
EOF
# Send an Email,
if [ `cat $TMP_DIR|wc -l` -gt 0 ]
then
mail -s "Locked users Details in Prod on AS900" $EMAIL_ADDR < $TMP_DIR
rm $TMP_DIR
fi
We prepared script for find locked users.It is working fine.It runs every day.
I need some modifications *1, send mail only if the user locked. No need to send mail if the users not locked.*
2, I have to know whenever user change their password in their schema by mail.Bcz we have schemas which has permanent password.some times enduser /developer changed the password.so application is not working and esacalation occured.
I tried to use user_history$ which doesn't has much info.query sys.user$.ctime
>
>
3,Is it possible to know password changes by tirgger rather than use query ?
no
It is BAD to modify/create objects owned by SYS

Similar Messages

  • I forgotten my bit locker password and recovery key.i need help .................

    i lost my bit locker password and i lost recovery key,i need help ..please help ......such important things are there in my e drive....pls mail me [email address redacted]

    Unfortunately if you lose the password and the recovery key you are not able to decrypt and access the information, that is the sole purpose of BitLocker.
    Blogging about Windows for IT pros at
    www.theexperienceblog.com

  • 3.0 Application Locking - Password

    Does anyone know if the new 3.0 software will allow applications (mail, texts, photos) to be locked (password protected) on an individual basis? I'm TIRED of unlocking my phone just to make a phone call. It would also be nice to be able to show someone my phone, let them play with it, look at it, use it, and know they cannot go into certain applications and look at my confidential information.
    Anyone?

    No. It's available through the App Store:
    http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=292591480&mt=8
    It only works with Hotmail and Windows Live Mail, though.

  • IPad2 locked out of Mail

    When I clicked on a new email memo, my ipad went to a new screen that says "Welcome to Mail" then lists all different email platforms starting w iCloud. When I entered my login info for iCloud, the message says, "that user name already has an an iCloud account." I am locked out of Mail. It is working on my iPhone.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Reset ********* password plz mail *********

    Good morning ! reset ******** password plz mail *********
    <Personal Information Edited by Host>

    What exactly is causing this? Have you forgotten your own password? if so, follow the instructions I gave you above.
    Or is this a second-hand phone which is asking for someone else's password? If a second-hand iOS device has been 'Activation locked' then only the previous owner can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you are unable to contact him to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all. Apple cannot unlock it for you.
    You should if possible return it to wherever you bought it and ask for a refund as in this event the device is completely useless.
    No-one is going to Skype you.

  • I LOSE BIT LOCKER PASSWORD

    Hi,
    I loss bit locker password on Dell i-5 laptop, and I also made fresh installation of windows 8. I also loss backup file of BitLocker Recovery Key. 
    I contain many personal data i.e family pics, movies, and official data. So please help me that I open my drive and recover my data.
    Waiting for favorable Help.

    I'm afraid .. Things will not get going well if you have lost recovery key + password..You have to export it while you are turning
    bitlocker on.. If the key and the password is lost, no recovery
    I suggest you to type the passwords as you can remember.. and try commonly used passwords by you..
    "LOST
    bitlocker key?? Can you believe that its the time to reinstall your os again??. Painful but this is true.. If you loose the key there is no way,other than formatting and reinstalling os.. That is why you really really need to keep the key in a safe place"
    http://www.pcandtablet.com/windows-8-errors-and-crashes/279/i-have-lost-my-windows-8-bitlocker-key-now-i-cant-boot-how-can-i-recover-my-data.html
    http://windows.microsoft.com/en-us/windows-8/bitlocker-recovery-keys-faq  
    Hetti Arachchige V Aravinda | Network & System Administrator (B.Sc, Microsoft Small Business Specialist, MCP, MCTS, MCSA, MCSE,MCITP, CCNA, CEH, MBCS)

  • HT4528 if i forgot my lock password how can i unlock my phone

    If i forgot my lock password on the main screen how can i unlock the phone

    You will need to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try recovery mode.
    Read this: http://support.apple.com/kb/ht4097

  • When ipod starts up, shows usb cable to connect to itunes then asks for my lock password but cannot get into ipod to put in password.  any ideas?

    when ipod starts up, shows usb cable to connect to itunes then asks for my lock password but cannot get into ipod to put in password.  any ideas?

    You may need to connect the iPod in Recovery Mode and then restore it via iTunes.  See this article for instructions on getting your iPod into Recovery Mode.;
    http://support.apple.com/kb/ht1808
    B-rock

  • Hard reset Nokia N97 without knowing lock password

    I received this phone from our inventory at work.  I am not sure who used it before me.  But, I do not know the lock pass code.  How can I hard reset it without knowing the lock password.  Everything I try, I am prompted for the lock password except one attempt.  I held in the up arrow, shift key and back arrow while powering on.  This did some type of reset.  But, the lock password still is not 12345.
    So, either the lock password for Nokia N97 is not 12345 by default, or this is not a true hard reset?
    Any ideas?

    You could try changing the sim, it may be a sim lock code and not a phone lock code, I have my sim locked but if I change for spare sim the phone doesn't require a code it just starts ! Worth a try ?
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Recently changed my password for mail, can still read my mail, but the drop down keeps appearing, asking for my password and saying it's incorrect. Totally confused. 

    I Recently changed the password for mail, on iMac. I can still read my mail, but the drop down keeps appearing, asking for my password, then telling me it's incorrect. Totally confused. 

    If your password is accepted, and Mail connects to the account, but you're prompted for the password repeatedly, take each of the following steps that you haven't already tried. Note: these steps don't apply if the server rejects the password. That's a different problem.
    Step 1
    When prompted for the password, check the box marked Remember this password in my keychain.
    Step 2
    Check that the keychain is working.
    Step 3
    Check that the default keychain is unlocked.

  • Administrator account locked/password was changed

    Hi All,
    Administrator account locked/password was changed. Is there any way to see the logs to see when this happened or by whom?
    Any way to lock this down then  it can't be changed by another administrator account? Limit it so it can only be seen/changed by  some people like A or B?
    Regards
    Trilochan

    Hi,
    I am able to see the log but we are having trouble reading them. They are not very straightforward i got some inforamtion about what a log contains in following link but the format is different from here.
    http://help.sap.com/saphelp_nw04/helpdata/en/03/37dc4c25e4344db2935f0d502af295/frameset.htm
    We are getting the log in this format so not able to find when and by whom.
    #1.5 #0017A438CB3C00240000023400001F1C00047F7D19D6AFB9#1266075187981#/System/Security/Usermanagement#sap.com/irj#com.sap.security.core.persistence#Guest#0####15e3ebd018b511df8b390017a438cb3c#SAPEngine_Application_Thread[impl:3]_0##0#0#Warning#1#com.sap.security.core.persistence#Java###Authentication failed on LDAP server: back end message #1#[LDAP: error code 49 - Invalid Credentials]#
    #1.5 #0017A438CB3C00240000023500001F1C00047F7D19D79CBB#1266075188044#/System/Security/Audit#sap.com/irj#com.sap.security.core.util.SecurityAudit#Guest#0####15e3ebd018b511df8b390017a438cb3c#SAPEngine_Application_Thread[impl:3]_0##0#0#Warning#1#com.sap.security.core.util.SecurityAudit#Plain###Guest     | LOGIN.ERROR     | NONE = null     |      | Login Method=[default], UserID=[jb99532], IP Address=[64.25.25.7], Reason=[Authentication did not succeed.]#
    #1.5 #0017A438CB3C001D000001E700001F1C00047F7D1D2D5575#1266075243998#/System/Security/Audit#sap.com/irj#com.sap.security.core.util.SecurityAudit#Guest#0####37476fe018b511dfc25b0017a438cb3c#SAPEngine_Application_Thread[impl:3]_16##0#0#Warning#1#com.sap.security.core.util.SecurityAudit#Plain###Guest     | USERACCOUNT.MODIFY     | USERACCOUNT = UACC.CORP_LDAP.066277700     |      | SET_ATTRIBUTE: lastpasswordchange=[0001266075243920], SET_ATTRIBUTE: passwordchangerequired=[false]#
    Regards
    Trilochan

  • Password e-mail when not requested

    I just received the password e-mail without having requested it. Probably just someone trying to get their own and putting in the wrong userid.
    I can easily see some infrequent user saying "did I sign up as jhudson, jhudson1, joehudson, or what? I'll put them all in and see which one works".
    But since it could possibly be a security breach, with someone trying sql injection to get passwords and ids e-mailed to themselves, etc., I wanted to report it.
    No reply required. Just wanted to let you know.
    -- jim

    But you typically need an authenticated server to send when you are not connected to that particular network.
    It is already setup in the phone (presumably during activation). It can be turned on or off, but the settings can't be changed.
    Host Name: gprs.fido.ca
    Authentication: Password
    Server Port: 25
    So if Rogers tech support didn't know this, its probably because they don't support it.
    It is not unusual for them to not know the details of a particular phone.
    I note some Rogers locations just use yahoo for mail. I think Yahoo does support authenticated SMTP.
    Rogers uses Yahoo to handle their mail. They do use password authentication.

  • Remove Password from Mail

    Whenever I click on the mail icon to get email, it asks me for a password. Then, sporadically and unpredictably, while I am using mail it will ask me again for the password (and again, and again). I don't want Mail to be passworded, although I password my computer to wake it. Can someone help me turn off the password to Mail? Thanks

    I had been using Telus for several years when I started to get the exact same issue with Mail prompting me for my IMAP password three or four times a day. It turned out that it was a problem at Telus's end. A call to their tech support line confirmed that they were having an issue and that it would be resolved in a few days. It was.
    I've only made two changes lately;
    1) I reset my SMTP for a while as I was on the road but then set it back to the original config.
    2) I downloaded 10.6.4 update.
    That and my own experience with my ISP leads me to believe your problem is with your ISP and not your Mac.

  • Password protecting mail

    Hi, just wondering if there is a way to password protect mail?  Our iPad is shared in our home with my children who keep deleting messages and sending stuff so was wondering how to protect mail so they can't get in.  Thanks!

    The Mail app can't currently be protected via Settings > General > Restictions, but there is this work-around. Alternatively you could see if there are any third-party email apps have a password option, or you could access your account via Safari (you could create a homescreen shortcut for your account's login page)

  • Can you have different passwords for mail account and ICloud?

    Can you have different passwords for mail account and ICloud?

    Yes - you want to go under Notifications, Mail.   Set each acct the way you want.

Maybe you are looking for