switch online logs to make the database checkpoint
Sys @ ORCL> alter system archive log current;
System altered.
2.2 generate a script for recreating the control file
Sys @ ORCL> alter database backup controlfile to trace resetlogs;
Database altered.
2.3 shut down the database. You must close the database cleanly. You cannot shutdown abort.
Sys @ ORCL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.Sys @ ORCL> exitDisconnected from Oracle Database 10g Enterprise
Operational-dimensional DBA reflects production Oracle database storage drop down Oracle database failure failed to start error: ora-00600[2131] Ora-07445[kdxlin1. Start report ora-00600[2131] ErrorFri Nov 06 14:50:59 2015ALTER DATABASE MOUNTThis is instance was the MountFri Nov 06 14:50:59 2015ALTER SYSTEM SET local_listener= ' (address= (PROTOCOL=TCP) (host=192.168.4.4) (port=1521)) ' Scope=memory sid= ' Oracleplus1 ';note:loaded Library:systemSuccess:diskgroup DATA was mountedNote:dependency
the trail is complete, I will see the trail file in this directory, however, when I open it, I find that there are many trace files in it, and I don't know which file I used, so next, I will return to SQL * Plus to query the process ID of the session where the trail is executed, because the file name format of the trail file is (instance name_ora _ process ID. TRC), My Instance name is orcl, so I run the query to determine the process ID. Before the
α = 0.05
2. Calculate the theoretical number (TRC). The formula is as follows:
TRC = Nr. nc/n formula (20.13)
In the formula, TRC indicates the theoretical number of the lattice in Column C of row R. Nr indicates the Union count of the theoretical number, NC indicates the Union count of the column with the theoretical number, and N indicates the total nu
alive, the process will not execute the close () function on the trace file.
The process still holds the file descriptor pointing to the trace file.
The trace file name includes the pid of the process,
Therefore, unless the process is restarted, we cannot disable file descriptor or create a new file with a new or old file name.
This does not mean that in an emergency, you cannot access this trace file.
After the trace file is deleted, as long as the file descriptor is still open, you can get
The client software cannot connect to the server. The following error message is sent when you view the database log information:
Tue Jun 25 25 12:02:52 CST 2013
Errors in file/home/Oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.trc:
ORA-00600: internal error code, arguments: [2662], [0], [91108808], [0], [91133612], [12605758], [], []
Tue Jun 25 25 12:02:55 CST 2013
Errors in file/home/oracle/orabase/admin/ORACLE/bdump/oracle_q000_3529.
are stored in the udump directory. In Oracle10g, The udump path is $ ORACLE_HOME/admin/SID/udump, while the Oracle11g path is quite different. You can view the user_dump_dest parameter to locate the specific location of the udump directory.
SQL> show parameter user_dump_dest
NAME TYPE VALUE-----------------------------------------------------------------------------User_dump_dest string/u01/app/oracle/diag/rdbms/bkjia/HOEGH/traceSQL>Then, we use the ls command to find the recently generated TRA
Analysis of ORA-04030 in alert logs
Yesterday I went to a customer to do inspection, encountered a classic ora-04030 error, alert Log is as follows:
Tue Oct 28 09:57:46 2014Errors in file/Oracle/app/oracle/diag/rdbms/wmsdb/trace/wmsdb_ora_33358038.trc (incident = 177302 ):ORA-04030: out of process memory when trying to allocate 118808 bytes (QERHJ hash-joi, kllcqas: kllslibs)Incident details in:/oracle/app/oracle/diag/rdbms/wmsdb/incident/incdir_17730
server (s )...
ORACLE_BASE from environment =/u01/app/oracle
Wed Jul 08 21:59:39 2015
Alter database mount
Wed Jul 08 21:59:43 2015
Successful mount of redo thread 1, with mount id 2105928075
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: alter database mount
Wed Jul 08 22:11:45 2015
Time drift detected. Please check VKTM trace file for more details.
Wed Jul 08 22:11:59 2015
Alter database open
Wed Jul 08 22:11:59 2015
Errors in file/u01/app/oracle/diag/rdbms/HOEGH
The disk space of the DG slave database is full, leading to the failure to create an archive.Last Friday, I went to a customer to perform database inspection. It was the database of a 10 Gb NC System on Windows 2008 and configured with DG. However, I found the database error during inspection:Tue Nov 11 10:13:57 2014LNS: Standby redo logfile selected for thread 1 sequence 3945 for destination LOG_ARCHIVE_DEST_2Tue Nov 11 10:14:29 2014 Errors in file d: \ oracle \ product \ 10.2.0 \ admin \ nc \
:
Name: you can name it by yourself. Here we use deadlockalertType: Select "SQL server performance condition alarm"Object: sqlserver: locksCounter: Number of deadlocks/secInstance: _ totalAn alarm is triggered when the counter meets the following conditions: higherValue: 0
After the configuration is complete, it should be shown in:
On the "response" tab, select "execute job" and select the new job (deadlockjob) in step 3)
So far, we have completed all the steps. Later, you can query the deadlock
where au_lname = 'green'Select * from authors where au_lname = 'carson'
After standardization, the preceding statement is as follows:
Select * from authors where au_lname = {STR}Select * from authors where au_lname = {STR}Select * from authors where au_lname = {STR}
With standardized statements, it is no longer difficult to calculate the access mode of the database system. When running read80trace, I usually use the following command line:
Read80trace-F-dmydb-imytrace.
: you can name it by yourself. Here we use deadlockalertType: Select "SQL server performance condition alarm"Object: sqlserver: locksCounter: Number of deadlocks/secInstance: _ totalAn alarm is triggered when the counter meets the following conditions: higherValue: 0
After the configuration is complete, it should be shown in:
On the "response" tab, select "execute job" and select the new job (deadlockjob) in step 3)
So far, we have completed all the steps. Later, you can query the deadlocklog ta
log_archive_dest_10 = 'location = use_db_recovery_file_dest. Therefore, if you have modified log_archive_dest_n to save the archived log to another location, you can also modify this parameter to continue to use the flash recovery zone.
The Flash recovery zones of multiple databases can be specified to the same location, but db_name cannot be the same, or db_unique_name is different.
The Flash recovery zone of RAC must be located on a shared disk and can be accessed by all instances.
6. spac
XML-formatted files are not friendly to view under the character interfaceAnd, even more puzzling, the XML file is stored in the default location of previous version alert. So the text latticeWhere is the alert file of the type? Take a look at the dynamic view V$diag_info.Sql> select * from V$diag_info;
inst_id NAME VALUE---------- ------------------------------ ----------------------------------------1 Diag Enabled TRUE1 ADR base/oracle1 ADR HOME/ORACLE/DIAG/RDBMS/ORCL/ORCL1 Diag trace/oracle/
(this part of the information from the Oracle8i,trace file can be found from the www.eygle.com)
Click here to download: HSBI_ORA_4614.TRC
The first part (equivalent to Level 1):
LIBRARY CACHE STATISTICS:
Gets hit ratio pins hit ratio reloads invalids namespace
---------- --------- ---------- --------- ---------- ---------- ---------
619658171 0.9999160 2193292112 0.9999511 9404 380
79698558 0.9998832 424614847 0.9999108 13589 0 tabl/prcd/type
163399
, load parameter file
Delete the original library control file (if the control file is included in the copy)
Modify the contents of a/U01/APP/ORACLE/ADMIN/LEO/UDUMP/LEO_ORA_25621.TRC file
Objective: We replicate the new library LEO2 with the original library, Leo.
1. Generate controlfile Create script and write to trace file
sys@leo> ALTER DATABASE backup Controlfile to trace;
2. Execute lookup trace file statement, get current trace file path
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.