1. Use "|" to connect multiple fields and merge them into a column.
2. Shielding duplicate rows
3. the pseudo column in Oracle is like a table column, but it is not stored in the table
Rownum> 3 because it cannot be found for the first
Principle of Bitmap IndexingAdvantages of Bitmap indexes1. Quick statisticsBecause Bitmap indexes only store 0 and 1 fingers, the space occupied by Bitmap indexes is very small, and operations such as count (*) are very fast.2. Efficient ad hoc
1. Basic Principles
Oracle logs: To improve hard disk write efficiency, Oracle uses a data buffer in the memory to store data and writes it to the disk (DBWR) after a certain amount or a certain amount of time ).
In this case, if a fault such as
There are four types of SQL languages: Data Query Language DQL and data manipulation language DML,
Data Definition Language DDL and data control language DCL.1. Data Query Language DQLThe basic structure of Data Query Language DQL is composed of
The principle of consistent read is that the query record is determined by the time point of the query. Even if the query record changes later, the data at that point should be obtained based on the pre-image record of rollback and persistence. How
1.1 symptom Description: failed to log on to the database. The system displays the following error message:% Sqlplus/as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 6 10:39:23 2009
Copyright (c) 1982, 2007, Oracle. All Rights
1.1 symptom: the database cannot be logged on after it is shut down abnormally. Check and close all Oracle processes, and then log on to the database again. Logon Failed. the following error message is displayed:% Sqlplus/as sysdba
SQL*Plus: Release
Declare partial logic part other exception handling part; PL/SQL block syntax
Common Oracle Exception Handling
Name
Description
Other
Including all exceptions (maximum exceptions)
Today, I has added a datafile of an tablespace with 'alter tablespace tbs_name add datafile' + DATA '8g '. I have Ed a critical warning that the data guard standby machine done which cocould not synchronous the data after a period time.
I viewed the
View Current Database
name V$ SYS_CONTEXT(,) dual;
Username, default_tablespace user_users;
Check the default tablespace of the current user.
User_sys_privs;
View permissions of the current user
Username, default_tablespace user_users;
View the
1. Set the master database to force loging mode.
5:48:54 sys @ felix SQL> alter database force logging;
-- Verification:
16:10:00 sys @ felix SQL & gt; selectforce_logging from v $ database;
FORCE _
------
YES
Check the Master/Slave database
Oracle considers null to be the largest.
Sort in ascending order. By default, the null value is placed behind.
Sort in descending order. By default, the null value is ranked first.
How to change the null value:
(1) Use the nvl function or decode
I haven't come up for a long time. Is it a little idle today? I have studied the returned result set of the oracle stored procedure.
In combination with oracle temporary tables, using stored procedures to return data to the result set can solve the
After I restart my computer recently, I open two oracle-related services but cannot connect to them.
Sometimes open Z producer? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vcmFjbGW3/release + zvHXtMysyLTP1Mq + release +
Statistical information is very useful. Without it, the SQL optimizer is like a clever man! A good and efficient SQL Execution Plan depends on real statistics. However, in some cases, for example, to compare the execution plans of the production
Processing certain data requires reading data from Oracle
Because there is not much Data, it is simple and convenient to directly use System. Data. OracleClient
Add references, write SQL statements in one breath, and report an error immediately
Indexing is efficient for querying a small number of databases in a large amount of data, but it is negative for DML operations: ① It has the greatest negative impact on insert operations, the more indexes the table has, the more indexes it updates,
-- Create a tableCreate table sale_report (Sale_date date not null,Sale_item VARCHAR (2) not null,Sale_money DECIMAL (10, 2) not null,Primary key (sale_date, sale_item));
-- Test DataDECLAREV_begin_day DATE;V_end_day DATE;BEGINV_begin_day: = TO_DATE
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