Using like '%', Oracle performs a full table scan, which consumes a considerable amount of system resources. This allows you to use full-text retrieval of oracle to increase the query speed.
SQL>Select*FromV $ versionWhereRownum = 1;
BANNER
---
Pay attention to the following points when starting and disabling Oracle RAC:
1. Check shared devicesIi. Automatically Start RAC and check related processesIii. manually start RAC4. Check the crs, ASM, and database logs during startup.
1. Check
User-managed backup refers to the use of OS commands to back up physical database files.
Back up databaseDatabase Consistency backup: After the database is closed, the physical files of the database are backed up. At this time, the scn values of the
In the evening, Shidi yy said that he had a table with more than 90 fields, and all the fields should be listed. If you copy them one by one, it would be too much trouble, I wrote a small script.
/*
Lists all fields in the specified table.
1. Calculation of the table's occupied space
Select S. SEGMENT_NAME, DECODE (SUM (BYTES), NULL, 0, SUM (BYTES)/1024/1024) Mbytes
From DBA_SEGMENTS S
Where S. SEGMENT_NAME = 'mtl _ MATERIAL_TRANSACTIONS '-- table name
And S. SEGMENT_TYPE =
This article discusses the situations where the index should have been established due to negligence or Incomplete consideration.
Select distinct sp. OBJECT_NAME, round (ds. bytes/1024/1024, 2) MB, num_rows, last_analyzedFrom v $ SQL _plan sp, v $
It is said that there is no relationship between the Write Program and the sequence of database table fields, but it is only known after the actual project is done. For database users, the field sequence of database tables may be cumbersome, for
My colleague said that the query encountered a strange problem. Two tables did not return results after performing the not in operation. Normally, there should be returned results.
I. Problem Reproduction
In general, the reproduction of the problem
When I first came into contact with Oracle, I created a before delete trigger, but always reported "Warning: The created trigger has a compilation error". Finally, I found that the statement in the trigger did not write a semicolon.
The following
---------------------------------
--Create a new user
---------------------------------
Create user hahaya
Identified by hahaya
Default tablespace users
Temporary tablespace temp;
---------------------------------
--ToHahayaUser authorization
-------
Environment: CentOS 5.6X64 Oracle 10G Clusterware database
This step has been tossing for a long time. First
After a long time
I finally found the reason.
I thought that the rsh service is not required for as5 or later versions. Therefore, the
The Orcale Data Warehouse command uses exp.exeto restore the Data Warehouse command imp.exe
I. Back up the database -- exp
Format: exp username/password @ database owner = owner file = C: \ xxx. dmp
Eg1: the database TEST is completely exported.
1. Glossary and conventions
Table space: Provides the logical structure of the space used by the database. Its physical structure is a data file. A table space can contain multiple data files.
Local table space management (LMT): a new table space
Dbca encountered this error when it reached 14%. After a netizen prompts me to check whether all libaio has been installed and check the installation of the next package:
[Root @ R1 bdump] # rpm-qa | grep libaio
Libaio-0.3.106-5
However, the
1. Start the CSS service first
# Cd/db/Oracle/product/bin/
#./Localconfig addSuccessfully accumulated necessary OCR keys.Creating OCR keys for user 'root', privgrp 'sys '..Operation successful.Configuration for local CSS has been initialized
Adding
The following are common scripts for Oracle DBAs.
1. Check data buffer and shared zone hit rate
Declare
Reads_value number (15 );
Direct_value number (15 );
Lob_value number (15 );
Consical_value number (15 );
Db_value number (15 );
X number;
For a long time, masters have told us that Oracle's NULL and 0 are different. What is the difference. When I practiced it, I forgot the warnings.
Yesterday I made a report. The customer said how to add the details differently from the value of the
In Greenplum, it is difficult to obtain the field names after execution of any SQL statement.
For example, when writing a common tool, you can use the copy command to export an SQL statement to text, but the text exported by the name of each field
You may encounter this situation. This week, we will analyze some data in the database of the previous week to obtain the corresponding analysis data. We can write a stored procedure in the database and call it every week.
Record
1. A method that
@ Echo off@ Title Oracle simple data backup tool: StartBackupDataClsEcho.Echo Oracle simple data backup toolEcho.Set nowDate = % date :~ 0, 4% % date :~ 5, 2% % date :~ 8, 2%Set/p oraHost = enter the address of the Oracle server (192.168.0.2 by
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