Differences between Oracle-Decode () and case statements:
Example:
1. Case statement:
Select case sign (5-5)
When 1 then 'is positive'
When-1 then 'is negative'
Else 'is 0' end
From dual;
Background implementation:
If (sign (5-5) =
RedHat 5 configure xmanager (xdm ):
The difference between rhel5 and RHEL4 is that there is no/etc/X11/mcm/directory in rhel5, And the configuration file of rhel5 is put here/usr/share/TPD/ults. comf, which may be a problem for everyone.
Make
Record in table: user_constraints
Select
A. Owner,
--
Primary Key owner
A. table_name,
--
Primary Key table
B. column_name,
--
Primary Key Column
C. Owner,
--
Foreign key owner
C. table_name,
--
First install the two software. Then modify
Tnsnames. ora file to add a database.
Modify as follows:
Add:
demo = (description = (address = (Protocol = TCP) (host = 10.0.3.162) (Port = 1521) (CONNECT_DATA = (Server = dedicated)
-- Create a data table space Create Tablespace ciciloggingdatafile ' /Usr/lib/Oracle/Xe/oradata/Cici. DBF ' Size 32 mautoextend On Extent management local; -- Create a user and specify a tablespace Create User Cici identified By
Nonsense written in front
Since the work needs to be frequently used in Oracle stored procedures, arrays are an inevitable element, so let's take a look at how Oracle stored procedures use arrays to a low level ....
The array is a data type. You
Database Application Software often saves multiple and related entity information in the same table. For example, the purchased parts and locally produced parts are both parts, and the managers and workers are employees. Although multiple entity
1. Waiting for monitoring cases:Select event, sum (decode (wait_time, 1) Prev, sum (decode (wait_time, 0) curr, count (*)From v $ session_waitGroup by event order by 4;2. rollback segment contention:Select name, waits, gets, Waits/gets ratio from V $
From: http://www.dezai.cn/blog/article.asp? Id = 248
OracleProgramA package consists of a packet header and a package body (also known as a package description and a package body). It is a type of variable cursor that combines multiple programmer
I recently summarized how to set the Oracle primary key. paste it here and save it. There are two ways to set a primary key, one is auto-incrementing primary key, and the other is to generate a unique sequence. I. Auto-increment primary key
--
The command set of Oracle clusterware can be divided into the following four types:
Node layer: osnodes
Network Layer: oifcfg
Cluster layer: crsctl, ocrcheck, ocrdump, ocrconfig
Application Layer: srvctl, onsctl, crs_stat
Node
InOracleThe command and object names are case-insensitive, becauseOracleWhen processing a statement, convert all the names and commands into uppercase letters.
However, the characters in a string, whether compared or sorted, are case sensitive.
Question 1:Which process is responsible for hard parsing?In addition to low hit rate, what are the other causes of unreasonable Shared Pool settings?
When it comes to soft parsing and hard parsingOraclePairSQL. When you issue an SQL statement
Select * from employees EMP where EMP. Salary = 3000
If statement
Begin
If (10> 50) then
Dbms_output.put_line ('da Yu ');
Else
Dbms_output.put_line ('Bu Da Yu ');
End if;
End;
Select * from employees EMP where EMP. employee_id = 119
Where
EMP.
After learning how to use ibatis over the past few days, I suddenly used fuzzy queries and dynamic multi-condition queries. I tried it for a long time based on my own ideas and did not solve this problem.
The first problem is fuzzy query. At the
Oracle 10g server and client installedProgramAnd create a database instance orcl.
Installation: 1. Install ArcSDE 9.2 for Oracle 10g by default. 2. perform post installation. Step 1 select complete for installation. In the dialog box that
Basic knowledge related to table fragments:
What is waterline? (High water mark )?
----------------------------
All the Oracle segments (segments here, for ease of understanding, we recommend that you use segment as a synonym for the table) have
I have never paid attention to the data storage methods in Oracle, because most of them use metadata stored in Oracle relational databases. Today, I happened to see a description about Oracle 11g data definition, which is collected as follows:
1.
Simple development of PL/SQL stored procedures
Paging of stored procedure using dynamic SQL
procedure proc_goods_search_count(p_type number, p_keywords varchar2, p_number 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