In Oracle Database Operations, we sometimes use lock table queries and unlock and kill processes. How do we implement these operations? This article mainly introduces this part.
Locked Table queryCodeThere are the following forms:
Select count (*)
Synonym: literally, it means an alias, which is similar to the view function in Oracle Database. Is a ing relationship. You can remotely operate databases.
1. Create a synonym statement:
Create public synonym table_name for
1. If Oracle 9i is installed, the default value in the National charset is al16utf16.
If you want to change al16utf16 to utf8
Follow the previous method
Update SYS. Props $
Set Value $ = 'utf8' where name = ''nls _ nchar_characterset '';
The charset
Select substr (memo, (instr (memo, ':',-1,1) + 1) from sfa_order_item where trunc (gmt_modified) = trunc (sysdate)
I personally understand some simple subtr usage
Substr ('field name', 3) Here it means to extract this field from the third digit
Source: Network/Editor: getting started with programming: Unknown
When writing a program, a newbie must be brave and patient. If he doesn't understand it, he must read the book, check the information on the Internet, ask his friends,
A materialized view is a database object that contains a query result. It is a local copy of remote data or is used to generate a summary table based on the sum of data tables. Materialized View stores data based on remote tables, also known as
Create or replace procedure UpdatePhoto (v_id in integer, v_binaryPhoto in blob) isBeginUpdate usersinfo u set u. photo = v_binaryPhoto where u. id = v_id;End UpdatePhoto;
/
Using System;Using System. Collections. Generic;Using System.
/*
-- Function: Convert the string to the year, month, and day format, and delete the time, minute, and second.
-- Source: http://jorkin.reallydo.com/article.asp? Id = 529
-- Parameter:
Datechar varchar2
-- Oracle9i passed the test
*/
Create or
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ascii ('A') A, ascii ('A') A, ascii ('0') zero, ascii ('') space from dual;
A ZERO SPACE------------------------------------65 97 48
Partition Table:When the amount of data in a table increases, the speed of data query slows down, and the performance of applications degrades. In this case, you should consider partitioning the table. After the table is partitioned, the logical
Today, I don't know what's going on. I just took the machine out of the domain and prepared to handle the control of oracle11g.
At first, I did not care much about it. I searched for some information on the Internet and followed it. Then I did
Common Oracle Database colleagues know that Oracle often encounters some inexplicable errors, resulting in the database cannot be started or used properly.
After solving these problems, we found the root cause of the problem, that is, when we
To install Oracle,
Familiarize yourself with and learn about oracle in advance.
Your own system is Windows 7 flagship edition,
When installing Oracle 11g Enterprise Edition,
The following error is prompted during the "product-specific
1. DMP file (imp/EXP)
The DMP file is backward compatible, indicating that the new version can read the old version of DMP.
For DMP file rules: the Export version of the DMP file must be smaller than or equal to the Import version of the DMP file.
Solution Process
1) understand the basic information
The previous night, around, shut down RAC, restarted the minicomputer, restarted RAC, and found that four instances in two RAC groups started normally, and the other RAC instances failed to start
31. Forced index failure
If two or more indexes have the same level, you can force the ORACLE optimizer to use one of them (using it, the number of retrieved records is small ).
Example:
SELECT ENAME
FROM EMP
Where empno = 7935
And deptno + 0 =
4.Select the most efficient table name sequence (Valid only in the rule-based Optimizer)
ORACLEThe parser processes FROMTable name in the clauseTherefore, the base table driving table written in the FROM clause will be processed first. when the
I. Glossary (1) SGA: System Global Area is a basic component of Oracle Instance, which is allocated when the Instance is started. The System fully-local SGA consists of three parts: the Shared Pool, data buffer, and log buffer.(2) Shared Pool:
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