The goal of Oracle indexing is to avoid full table scans and improve query efficiency, but in some cases it is counterproductive.For example, there are millions data in a table, indexes a field, but there is no improvement in query performance,
Default User of Oracle: System,sys,scott;
1: View login username: Show user;2: View data dictionary: dba_users;3: Table Space Overview: Logical storage space for the database; Data dictionary is a database provided by the table, the user to
The principle of selecting a primary key:
Minimum sex
Choose to use a single key as the primary key
Stability
Try selecting a column with fewer values to update as the primary key
1. Creating a data table (CREATE
first, the recovery of the tablefor the mistakenly deleted table, as long as not using the Purge permanent delete option, then recover from the flash back area hope is quite large. The general steps are:1. Query the deleted table from Flash
First, the principle of efficient SQL statement
In where = relational operation
Avoid using functions in relational operations, unless you use a function to make an index
Try not to implicitly convert data types, data types must
ORACLE Learning notes ORACLE Staging tables and versions storage structure for ORACLE tables: control the structure of the file:Data files:the structure of the BLOCK:Table Delete Comparison:The storage structure of the row:The line is tightly stored
1.2. Open http://maven.jahia.org/maven2/Step by step to findThe version I needhttps://devtools.jahia.com/nexus/content/groups/maven-jahia-org/com/oracle/ojdbc5/11.2.0.2.0/3. Download the above two files and remember to rename the jar file and remove
Reference material "Oracle in Layman's"Interest + diligence + Persistence + method ≈ SuccessFour rules of DBA survival1. The backup is heavier than everything else;2. Think twice;3.RM is dangerous;4. You have to make the specification;Chapter One:
First, the indexThe data in the table is unordered, so it is called the heap table, which means that the data is stored randomly. Because the data is stored randomly, a full table scan is required when querying. The index is the order of the
Asked a question yesterday by a colleague, the question is the if logic block in the Oracle stored procedureTell him about it:Create or Replace procedureTestifelsif (Numb Number) is begin ifNumb= 1 ThenDbms_output.put_line (1); Else ifNumb=
Yesterday encountered a problem, record, SQL is as follows: SelectTt.* from ( Selectu.chapter_id as"Chapterid", Case whenu.chapter_id=u.f_id ThenU.chapter_nameElse '123' End as"Chaptername",U.update_time as"UpdateTime" fromt_user_info u)
The code for calling the Oracle stored procedure in C # looks like this:1 usingSystem;2 usingSystem.Collections.Generic;3 usingSystem.Collections.ObjectModel;4 usingSystem.ComponentModel;5 usingSystem.Configuration;6 usingSystem.Data;7
A year of DBA work, experience is still shallow, but encountered problems can always be solved, today, I met a more wonderful problem.Operation and maintenance personnel told me that after the afternoon ETL has been stuck did not continue, then I
There should be no corresponding method for the time being, so I use my own good method to modify/* Modify the original field name to name_tmp, change the field you want to change the name to a useless/temporary field */Alter table name Rename
What is a tablespace?The Oracle database contains logical and physical structures.The physical structure of a database refers to a set of operating system files that make up a database.The logical structure of a database refers to a set of logical
The way to use bulk binding (bulk binding). When looping through SQL statements that execute a bound variable, a large number of context switches occur in PL/SQL and in the engines (switches). With bulk binding, data can be batched from the Plsql
Question one:When you run Runinstaller, specify the path of compression. /stage/components/oracle.jdk/1.5.0.17.0/1/datafiles "is invalid. The decompression command failed. Please check the Oraparam.ini.Check that there are no JDK files in the
Recursive operation of Oracle (tree operation) Start with org_id = ' 1 ' Connect by prior parent_id=son_id 1. Preface Oracle's recursive operation, in our web page directory structure will be used frequently, is said to be the interview often out
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