Label:Database for SQL Server to do performance testing, in the Internet to find a lot of is introduced RML utilities, at that time on the Internet to see some other people's test results, feel this tool is magical, so dark determination must take the tool master, the next time to introduce my RML Utilities the way to study.The first step: Learning SQL Server Automatic tool profile, this tool is very powerful, it can record a certain period of time, the server executes the SQL statement details,
View System LogsSELECT * FROM Sys.tracesView SQL Profile dump file
First, use SQL profile to monitor the database and export it to TRC.
Copy to the database server, EG.D:\SQLDATA\TRACE\201611290881.TRC
The following statement in the SQL query looks
--select cpu,textdata,reads,writesSELECT *From:: fn_trace_gettable (' d:\sqldata\trace\201611290881.t
Tags: cut where within interrupt format process count off cellFirst, the following bug is seen in alert log:
Dbms_stats:gather_stats_job encountered errors. Check the trace file.Errors in FILE/ORACLE/DIAG/RDBMS/PHALR/PHALR/TRACE/PHALR_J001_5306.TRC:Ora-20011:approximate NDV failed:ora-29913:error in executing odciexttableopen calloutKup-11024:this External table can only is accessed from within a Data Pump job.
View TRC fi
The installation of Oracle Rac,grid and Oracle on AIX 7100-02-03-1334 is complete. But DBCA built the database crash, the following is the building of the Alert.log, the database reported ora-07445 error, DBCA log can be found in the CREATE database error. No matching documents were found on MOS, try using other methods. /ORAAPP/ORACLE/DIAG/RDBMS/RMBTODB/RMBTODB1/TRACE/ALERT_RMBTODB1.LOGMMNL started with pid=26, OS id=7733452 Exception [Type:sigill, illegal opcode] [addr:0x103e2afa0] [pc:0x103e2
An error message was encountered when deleting files in bulk on the AIX platform:Ksh:/usr/bin/rm:0403-027 The parameter list is too longReason:This occurs mainly because the AIX kernel parameter Ncargs control, the command line cache has the limitLsattr-el sys0-a NcargsNcargs 6 arg/env list size in 4K byte blocks TrueModify the Ncargs valueChdev-l sys0-a ncargs=64SYS0 changedWorkaround:Bulk Delete $oracle_base/adminFiles= ' ls-l/oracle/admin/$ORACLE _sid/bdump |grep
the physical reading of the case);2. cannot determine how many rows have been processed;3. cannot tell how many times the table has been accessed. 10046traceStep 1:alter session SET events ' 10046 Trace name context forever,level 12 '; (turn on tracking)Step 2: Execute your statementStep 3:alter session SET events ' 10046 Trace name context off '; (turn off tracking)Step 4: Find the files generated after the traceStep 5:tkprof trc file destination fi
, you can determine which file under the directory is the most recent file, depending on when the file was modified.Sql> Show parameter user_dump_dest;NAME TYPE VALUE------------------------------------ ----------- ------------------------------User_dump_dest string D:oracleadminora9iudumpYou can also use the following SQL to determine the file name:Select D.value| | | | Lower (RTrim (i.instance, Chr (0))) | | _ora_ ' | | p.spid| | '. TRC ' Trace_file
Label: Customer a test environment, the host abnormal power outage, after startup found that undo file corruption, unable to start, in the open stage error as follows: Errors in FILE/U01/APP/ORACLE/DIAG/RDBMS/CDRDB/CDRDB/TRACE/CDRDB_ORA_4109.TRC: Ora-01122:database File 3 failed verification check Ora-01110:data file 3: '/U01/APP/ORACLE/ORADATA/CDRDB/UNDOTBS01.DBF ' Ora-01210:data file header is media corrupt ORA-1122 signalled During:alter DATABASE O
explain.Trace file Processing (tkprof)The traceable TRC file can be found in the Diagnostic_dest directory, but the TRC file generated by the direct trace is not readable enough and needs to be handled by an Oracle-provided tool, which is tkprof.For example we generate a TRC file name here called ORCL_ORA_1234_WJF.TRC.Then we need to execute the following comman
to: Alert log of Instance 1:---------Mon Dec 19:43:05 IPC Send timeout detected. Sender:ospid 26318 receiver:inst 2 binc 554466600 ospid 29940 IPC Send Timeout to 2.0 Inc. 8 for MSG type 65521 from Opid Mon Dec 19:43:07 Communications reconfiguration:instance_number 2 Mon Dec (19:43:07) Trace dumping is P Erforming id=[cdmp_20091207194307] Waiting for Clusterware split-brain resolution Mon DEC (19:53:07) evicting Instan Ce 2 from cluster waiting-instances to leave:2 ... alert log of instance
ORA-19809/ORA-19809: limit exceeded for recovery files problem processing today encountered this problem, alert Log error information is as follows: in fact, the problem is very simple, put the archive fra space is full, as a result, the archive fails, and oracle suspends. Note that db_recovery_file_dest is only a logical limitation. The fra directory may have space left, but oracle will not be used. Pay more attention to fra usage. You can use v $ flash_recovery_area_usage to view fra usage. So
the ADRCI utility, you can also view the name of the trace file in the ADR and delete warning logs with and without the XML tag.
You can also use V $ DIAG_INFO to list important ADR locations.
Use the tree Command to view the directory structure:
[18:11 oracle @ dave/u01/app/oracle/diag] $ tree
.
| -- Asm
| -- Clients
| -- Crs
| -- Diagtool
| -- Lsnrctl
| -- Netcman
| -- Ofm
| -- Rdbms
| '-- Dave
| -- Dave
| -- Alert
| '-- Log. xml
| -- Cdump
| -- Core_16650
| -- Core_18804
| '-- Core_60
directory. And displays the process information to open the directory or file. Lsof director/filenamelsof/data/logs/jboss/cbsysApp01a/server. log ########## linux does not release space after deleting files ################# a server is found today the home space is full, so I want to clear useless files. when I delete the files, I find that the available space has not changed OS: centos4.7: I found the current disk space usage: [root @ ticketb ~] # Df-hFilesystem Size Used Avail Use % Mounted
contains multiple structural changes (for example, adding a tablespace, changing the tablespace or data file status, adding a new online redo log, and renaming a file ), RMAN performs automatic backup of the control file only once. In 11gR2, the control file is automatically backed up by the MMON slave process within several minutes after the structure change, which improves performance. Therefore, it is normal to obtain the automatic backup of control files after several minutes of structural
/shvdb1/trace/shvdb1_ora_9240854.trc (incident = 48601 ):ORA-00600: internal error code, arguments: [kssadd: null parent], [], [], [], [], [], [], [], [], [], []Incident details in:/space/sys_software/oracle/app/diag/rdbms/shvdb/shvdb1/incident/incdir_48601/shvdb1_ora_9240854_i48601.trcUse ADRCI or Support Workbench to package the incident.See Note 411.1 at My Oracle Support for error and packaging details.Fri Nov 30 18:02:44 2012Dumping diagnostic da
@ localhost ~] $. Bash_profile
7. View System Environment Variables
The effect is always effective.
8. Go to $ ORACLE_HOME/dbs to view the directories with orcl.
9. Change the file name orcr =, nihao, ORCL =, and NIHAO. The command is as follows:
10. Generate and view the password file again.
11. log on to the database and view the Instance name. The result shows that the sid has changed from orcl to nihao.
You do not need to log out. Start the second part and change the database name dbname.
as DBWR, LGWR, and SMON. The background trace file is generated based on the running status of the background process. The background trace file is also saved in the directory specified by the BACKGROUND_DUMP_DEST parameter. The file format is siddbwr. trc and sidsmon. trc. Another type is the user trace file generated by the user process connected to Oracle. These files are generated only when errors occu
authors where au_lname = 'white' select * from authors where au_lname = 'green' select * from authors where au_lname = 'carson' after standardization, the preceding statement looks like this: 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.trc
The-F switch does not genera
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.