A friend came to me and said they couldn't start the database, the database started Ora-600[k2vcbk_2] Error, the database version is 11.2.0.2 RAC, the operating system is AIX 6.1sql> Recover database;Media recovery complete.sql> ALTER DATABASE open;ALTER DATABASE Open*ERROR at line 1:Ora-01092:oracle instance terminated. Disconnection forcedOra-00600:internal error code, arguments: [K2vcbk_2], [], [], [], [], [], [],[], [], [], [], []Process id:7930020Session id:49 Serial number:14761Database no
Filename
Original link:
Http://www.eygle.com/faq/How.To.Get.Tracefile.Name.htm
Trace files are generated when we use events such as sql_trace/10046 for process tracking. The trace file name consists of the following parts:
The following script user obtains the trace file name:
For Unix:
$ sqlplus "/as SYSDBA" Sql*plus:release 9.2.0.4.0-production on Fri Oct 8 12:08:09 2004Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to:oracle9i Enterprise Edition releas
all; -- Delete an expired archiveAll; After execution, exit Rman and restart the database. Attached (partial rman command):
Backup database is fully prepared for databases.
Delete obsolete remove stale backups based on backup policy
Delete Expired backup Deletes the failed backups
Delete Expired copy deletes the failed backup copy
Delete backup deletes all backups and uses it with caution. If you want to use it, it is recommended to back it up immediately
Por
various steps, how to relate, respectively, in which steps are time-consuming, what wait events, etc.These are the basics of optimization, knowing this and knowing how to optimize and troubleshoting ㈡ How to obtain a TRC file? Here are the main 3 ways① uses tracefile_identifier, such as:Alter session set Tracefile_identifier=\ ' Think\ '②oradebug, for more information, please refer to a blog before think: Oradebug③ uses the following script:[emailpro
study of SQL execution, the discovery backgroundErrors and so on.sql> ALTER SESSION SET sql_trace=true; Sql> SELECT * from SCOTT. EMP; sql> ALTER SESSION SET sql_trace =false;So how do I see the information at this point? Whether you're in sql*plus or PL/SQL developer tools, you can't see any information after you execute the above script, you can query the trace log information by using the following scriptSELECT T.value | | '/' | | LOWER (RTRIM (i.instance, CHR (0))) | | ' _ora_ ' | | P.spid
= sp_trace_create @ TraceID output, 0, N 'e:/DbLog/deadlockdetect ', @ maxfilesize, NULL-- Here e:/dblog/deadlockdetect is the file name (which can be modified by yourself). SQL will automatically add the. trc extension to the end.If (@ rc! = 0) goto error-- Set the tracking eventDeclare @ on bitSet @ on = 1-- In the following statement, 148 refers to the locks: deadlock graph event (see sys. trace_events), and 12 refers to the spid column (see sys.
A test environment of the customer, the host abnormal power failure, after the startup of the undo file damaged, unable to start, in the open stage error: errorsinfileu01apporaclediagrdbmscdrdbcdrdbtracecdrdb_ora_rj9.trc: ORA-01122: dataf
In a test environment of the customer, the host suffers an abnormal power failure. After the startup, the undo file is damaged and cannot be started. The following error is reported during the open stage: errors in f
;
SQL>Alter system set user_dump_dest = 'newdir ';
2. Start the SQL TRACE Utility
Disable SQL TRACE for sessions
SQL>Alter session set SQL _trace = true;
SQL>Alter session set SQL _trace = false;
SQL>Exec SYS. DBMS_SYSTEM.SET_ SQL _TRACE_IN_SESSION = (SID, SERIAL #, TRUE );
SQL>Exec SYS. DBMS_SYSTEM.SET_ SQL _TRACE_IN_SESSION = (SID, SERIAL #, FALSE );
Enable or disable SQL TRACE for a user instance
SQL>Alter system set SQL _trace = true;
SQL>Alter system set SQL _trace = false;
3. Use tkprof to
: SQLServer: LocksCounter: Number of Deadlocks/secInstance: _ TotalAn alarm is triggered when the counter meets the following conditions: higherValue: 0After 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 table at any time to display the deadlock information.
Method 2: Use server-side tracking.The specific implementation
. Otherwise, the newly inserted data is not written into the data file.
System altered.
#############
BYS @ bys3> alter system dump datafile 14 block min 1 block max 4;
System altered.
BYS @ bys3> select value from v $ diag_info where name like 'de % ';
VALUE
Bytes ----------------------------------------------------------------------------------------------------
/U01/diag/rdbms/bys3/bys3/trace/bys3_ora_12335.trc
BYS @ bys3> alter system dump datafil
ORA-01157 ORA-01110, ora01157ora01110
The test server after RMAN recovery, found that the alarm log file has the following error information ORA-01110: data file 206: '/u04/epps/oradata/temp02.dbf'
Errors in file /u01/app/oracle/admin/epps/bdump/epps_j000_12672.trc:
ORA-01157: cannot identify/lock data file 206 - see DBWR trace file
ORA-01110: data file 206: '/u04/epps/oradata/temp02.dbf'
Thu Apr 16 22:00:08 2015
Errors in file /u01/app/oracle
statement for the 10046 event.
10046 the difference between DBMS_XPLAN and AUTOTRACE is that, the execution plan clearly shows the logic consumed by each step (cr: consistent read) and physical read (pr: physical read) in the actual execution plan of the target SQL statement) and the time spent ).
To execute the execution plan of the target SQL statement obtained by using the 10046 event, perform the following three steps in sequence:Activate the 10046 event in the current SESSION. Execute the
. The preceding result shows that ubafil ubablk is 0, that is, there is no corresponding rollback block for this transaction -- only one row is occupied in the transaction table of the rollback segment header.
So how does direct path insertion provide rollback? You can solve this problem by observing the hwm changes in table B.
-- Find hwmhr @ orcl> select header_file, header_block from dba_segments where segment_name = 'B' in Table B '; header_file header_block ----------- ---------- 4 2571hr @
Last Thursday, a set of redo logs were added. After the alter system switch logfile was run, the database suddenly went down. Check the log and find the following error:
Errors in file F: "lczhis" dump "bdump" lczhis_arc0_2468.trc:
ORA-19504: failed to create file "F:" lczhis "ARCHIVE" arc00425055776657082840.arc"
ORA-27040: file create error, unable to Create File
OSD-04001: Invalid logical block size (operating system 512)
Arc0: Error 19504 creatin
= sp_trace_create @ TraceID output, 0, N 'e:/DbLog/deadlockdetect ', @ maxfilesize, NULL-- Here e:/dblog/deadlockdetect is the file name (which can be modified by yourself). SQL will automatically add the. trc extension to the end.If (@ rc! = 0) goto error-- Set the tracking eventDeclare @ on bitSet @ on = 1-- In the following statement, 148 refers to the locks: deadlock graph event (see sys. trace_events), and 12 refers to the spid column (see sys.
The concurrent manager Process of EBS, ebsconcurrent
First, use sqlplus to connect to the database and check the connection session.
select * from v$session where username='APPS' and program like 'sqlplus%';
View the session information of the current APPS user using sqlplus to connect to the database. We can see SID = 38, SERIAL # = 28631,
Then find out the process of this session:
select p.* from v$process p,v$session s where p.addr = s.paddr and s.sid = 38;See PID = 28, SPID = 5010. SERIAL
If the Oracle database hang crashes, system dump or hang analyze is performed on Oracle, which is an effective way to study and solve the problem. If you can connect to the database and perform operations, using oradebug is a simple and quick way.
Oraclehanganalyze function to diagnose dbhanging
Http://blog.csdn.net/tianlesoftware/article/details/6321961
Oracleoradebug command instructions
Http://blog.csdn.net/tianlesoftware/article/details/6525628
Sys @ anqing1 (Rac1)> oradebug setmypid
Sta
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.