Check the ORACLE warning File Script and oracle warning script

Source: Internet
Author: User

Check the ORACLE warning File Script and oracle warning script

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
Gzip-1 $ TRACE/bak_alter _ $ ORACLE_SID. 'date + % F _ % H'. log

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


Role and storage location of oracle warning Log File ALERTLOG

Record System logs, such as log switching records and system events such as modifying system parameters.
The location is in the path specified by the background_dump_dest parameter, which is generally % ORACLE_BASE % \ admin \ % ORACLE_SID % \ bdump

SQL Script File Execution in oracle

Enter the Directory
Use @ aa. SQL; press ENTER

Related Article

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.