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