In the day-to-day maintenance of Oracle, the following two situations are frequently required for our DBA kill session:
1. App complained that their application hang live, in the database query that their session by other sessions block, at this
Paging Query format:
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM ) WHERE RN >= 21
The most inner query select * FROM table_name represents the original query statement without paging. RowNum = 21 control
The year-end settlement process in the 1.Oracle General ledger application is included in the open/closed procedure. When the user opens the first period of the new Year, the "Gloire" process in the open/Close program completes the work of
--19-1: Create a function with no parameters create OR REPLACE function cur_datetime return VARCHAR2 are BEGIN return To_char (sysdate, ' YYYY ' year ' MM ' month ' DD
"Day" Hh24″ when "MI" "SS" Seconds "');
End;
/--19-2: Create a function with
Because of the usual database backup and restore operations, To improve efficiency and save time, you have the following batch process. This is written for Oracle, can be used on different computers, because it will automatically read the current
oracle| Program | pagination | example
?
Include "/maya/inc/dbconn.php";
$sql = "Select Max (rownum) from xqhtest where id$stmt =ociparse ($gConn, $sql);
Ociexecute ($stmt);
Ocifetch ($stmt);
$rowcount =ociresult ($stmt, 1);
Ocifreestatement
Adding data records in asp.net+oracle and having automatic ID increments requires sequences and triggers to be set in Oracle, remember not to index, ASP. NET regardless of ID, as follows:
1, establish the sequence:
CREATE SEQUENCE
The use of Muliple block sizes provides DBAs with additional control over the UNIX disk i/0 subsystem. ORACLE's DBA should understand the fundamentals of some UNIX disk I/O.
Disk I/O is an important part of Oracle response time. reducing disk I/O
asp.net|oracle| Policies | Caching in Cache asp.net 2.0 provides support for SQL dependencies, meaning that when data in a table or row in a SQL Server database is changed, the page in the cache is invalidated, otherwise the page output can remain
Oracle
With the expansion of the site, MySQL is clearly unable to meet the demand, in many sites areWith large database Oracle, how to use PHP to access Oracle is becoming more important.I've talked about how I did it from a simple ierp system I
oracle| Data | database
In order to protect the integrity of the data we used a lot of methods, such as data table primary key constraints, external
Key constraints, triggers, and so on, what we're talking about today is when we're dealing with
oracle|server| Create
1. Rwserver-install REP01
2. In "Service", the start of the REP01 server to create the Conf file.
3. Open \reports\conf\rep01.conf
4. ADD path infomation, env infomation, such as:
"
Oracle
This is the SQL BASIC statement for the Oracle database,
SQL Plus execution passes the
------------------------------------------------------------------
Select Empno, To_char (Sal, ' 999,999.99 ') Sal from EMP;
SELECT DISTINCT deptno from
oracle| Performance | optimization
24. Analyze SQL statements with explain plan
EXPLAIN Plan is a good tool for analyzing SQL statements, and it can even parse statements without executing SQL. By analyzing, we can see how Oracle joins tables,
oracle| Program | stored procedure
In the actual project development we need to use VB (or other language tools) to call the Oracle package of stored procedures to return the result set. Here is an example of a call in the SMS operating platform to
Oracle
Connect to Oracle Database
submitted by
User Level
Date of submissionRavi shankarbeginner05/03/2001
Description of the Article
A simple program to show connecting to A Oracle database.
Source Code:
/****************************************
The following is the process of adding a new hard disk to the virtual machine and creating an LVM bare device to use with Oracle, and we learn together, there is not the right place to guide, thank you.
Linux system is AS4 update 7
Before the
Article reference: ORACLE 11g official documentation [managing Memory]Preface: before the establishment of the database cluster environment, the field maintenance personnel do not know when to change the manual memory management, and the parameter
The first step: Download the instant client package on the ORALCE official website to load the Oracle instantclient Basic packages. The address is as follows:
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