1. It is best to use analysis functions.
Row_number () over (partition by col1 order by col2)
For example, if you want to retrieve-records, sort them by tname.
Select tname, tabtype from (Select tname, tabtype, row_number () over (order by
1.Write Data
In usePDOIf you useBindparam ()Without specifying the Data Type of the field or usingExecute (),PDOThe default value isStringType, and a default length is limited.
ThereforeClobType fields must be usedBindparam ()OrBindvalue
Queue
An enqueue is a shared memory structure that is always related to transactions and sessions. It is used to access database resources serially.
Queue type
There are many types of queues in Oracle. The following are common types:
1. Execute sp_addmediaserver in the query Analyzer
Use master
Go
Exec sp_addmediaserver
@ Server = 'ralph. lanstart', -- Name of the Oracle linked server
@ Srvproduct = 'oracle ', -- fixed
@ Provider = ''msdaora '', -- fixed
@
Purpose: The Escape keyword is often used to escape certain special characters, such as wildcards: '%' and '_', as the meaning of their original characters,
The defined escape character '\' is usually used, but other symbols can also be used
Summary of Oracle Database Development Optimization
Although the cost of hardware is already very low, the use of hardware performance can block problems caused by software performance issues to some extent, but this does not mean that the
Oracle databases have the following data types: sclare, composite, and reference ).1. scalar (char, number, varchar2, long, clob, blob, nclob, bfile, date)
Char (Num) is a fixed length of up to 2000 characters. The query efficiency of char is
1. Other processes
Archiver (arcn)
Oneor more archiver processes copy the redo log files to archival storage whenthey are full or a log switch occurs.
Recoverer (reco)
The recoverer process is used to resolvedistributed transactions that are
1. What is a ckpt process?
Purpose:
Send a signal to dbwn
Update Data File Header
Update Control File
At specific times, all modified databasebuffers in the system global area are written to the datafiles by dbwn. thisevent is called a
Today, with the help of the instance for configuring Oracle database connection, we will learn one way to read XML files (other reading methods will be introduced later)-using dom4j + XPath.
Dom4j is an open-source XML parsing package produced by
The Oracle Server maintains the redo Oracle log files to minimize the loss of data in the database in case of an uncontrolled shutdown.
Online redo Oracle log files are filled with redo records. A redo record, also called a redo entry, is made up of
create table lck (a number, b number);insert into lck values (1,2);insert into lck values (2,4);insert into lck values (3,6);insert into lck values (4,8);insert into lck values (5,3);insert into lck values (6,5);insert into lck values
The business description is as follows:
When inserting a table, you need to update the value of another field based on the value of one field. Of course, it can also be implemented through a program, but this field is only used for data exchange. It
When creating a job, where:
What -- stored procedure to be called during job execution;
Next date -- next job execution time;
Interval -- job execution interval. This parameter involves the value of next date. Next is calculated based on
-- ===================================================== II. PL/SQL programming-- ===================================================== ====================
1. Autonomous transactions: 8i or above, without affecting the master transaction.In the
Implementation Method 1:Create a sequence with a minimum value of 1 and a serial number with a maximum value of nomaxvalue that automatically Loops
Create sequence nameIncrement by 1Start with 1NomaxvalueNocycle;
When inserting data into a table,
In large databases, procedure is often called because of development needs. procedure is different in Oracle and sqlserver due to different syntaxes, but in debugging, is relatively difficult, especially in some error handling.
First, debug:
1. For
Original: zykj2000Email: zykj_2000@163.netBBS: http://bbs.513soft.net
Upgraded by doublelEmail:Blog: http://blog.csdn.net/doublel/
Upgradeer: northsnowEmail: northsnow@163.comBlog: http://blog.csdn.net/precipitant
First, the source code of the
I. No create session privilege1: create user beyondsanli identified by beyondsanli;Use beyondsanli normal to log on at this time and report no create sessionIn this case, you must use the System user to specify the session permission.2: grant create
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