Check the script for the ORACLE warning File

Source: Internet
Author: User

Check the script for the ORACLE warning File

Check the important information within two days:

Vi alter_error.sh

Echo "Check Alter Error: "cat $ TRACE/alert _ $ ORACLE_SID.log | grep-E ^ ORA-\ | Reconfig \ | abort \ | Shut \ | ^ Start \ | error \ | Instance \ | Suspend \ | resuming \ | Deadlock \ | "'date" + % B % d "'" \ | "'date-d last-day" + % B % d "'"

Configure Environment Variables

Vi/home/oracle/. bash_profile

Export ORACLE_BASE =/u01/app

Export ORACLE_HOME = $ ORACLE_BASE/product/11gR2/db

Export ORACLE_SID = shark

Export SERVICE_NAMES = erp

Export DBUNAME = sharkdb

Export TRACE = $ ORACLE_BASE/diag/rdbms/$ DBUNAME/$ ORACLE_SID/trace
Compress alarm files

Mv_alterlog.sh

Mv $ TRACE/alert _ $ ORACLE_SID.log $ TRACE/bak_alter _ $ ORACLE_SID. 'date + % F _ % H'. log

Ls-lh $ TRACE/bak_alter _ $ ORACLE_SID. 'date must have f_1_h'.log.gz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.