Oracle case when usage1. The case when expression has two forms:
-- Simple Case FunctionCASE sexWHEN '1' THEN 'male'WHEN '2' THEN 'female'ELSE 'others' END-- Case search functionCASEWHEN sex = '1' THEN 'male'WHEN sex = '2' THEN 'female'ELSE 'others'
In order to test the stored procedure, I went around and did it. Here I will talk about what I thought when I received the task and started.
Method 1:
At first, I thought that I could use C # To directly call the stored procedure, and then use
1. Install jdk
# Cd/u01 (store the jdk file in this directory)
# Chmod a + x jdk-6u41-linux-i586.bin
#./Chmod a + x jdk-6u41-linux-i586.bin (prompt authorization instructions, q Skip, then enter yes, wait for the installation to complete)
2.
Oracle Database logs are called redo logs. All data changes are recorded in redo logs, which can be used to repair damaged databases. Large Databases use logs. The benefits of this design are the same.
Redo logs are grouped. A database must have at
In oracle, only select statements in read-only transactions cannot have DML statements. All queries can only view the data before the transaction starts. Next I will introduce you to the Oracle read-only transaction test instance.
We know that
Tens of thousands of rows of records have been inserted for three seconds. I think tens of thousands of data records can be displayed faster. What's more, it's an oracle database. Let's take a look.
-- Create a test table
The Code is as
First, we will introduce some commands to back up and restore oracle databases without using scripts.Oracle Data Backup:Step 1. Back up user data.1. Use the database administrator account in linux to connect to the linux terminal.2. Execute the
I. Reasons Why empty tables cannot be exported1. By default, no segment is assigned to the empty table at Oracle11g. Therefore, when you use exp to export the Oracle11g database, the empty table is not exported.
2. After the
Direct questionView Current Database Mode
Connect to the database and enter the following command:Copy codeThe Code is as follows:SQL> archive log list; You can view the current database mode. If "Database Log mode is not archive mode", you need to
10046 event can be used for tracking
[oracle@ggos ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Fri Dec 20 19:48:00 2013Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to an idle instance.SQL> startup
This is a bit twisted solution, but works. basically you first need to convert LOB (in these example I refer to CLOB, BLOB is similar but you will probably not use varchar2) to multiple varchar2 (4000) on remote server-for example CLOB with size 8100
When tuning an Oracle database, each component has its own set of statistics. to look at the system as a whole, it is necessary to have a common scale for comparisons. for this reason, most Oracle Database advisories and reports describe statistics
In the actual optimization work, it is an important method to change the full table scan of the large tables in the execution plan into an index scan. When tuning a large table, it is inevitable to try to create an index, this is not very good. It
Database Operations are similar, such as mysql, oracle, and sqlserve operations.
The first step is to load the driver package.
Step 2: connect to the database through the connection path
Step 3 is the operation .. The following is basically the
In Oracle, to improve SQL Execution efficiency, You need to reduce hard parsing to achieve shared cursor sharing. The most common method is to bind variables, however, in many cases, variable binding cannot be used at the initial stage due to
No character set is set when Oracle11g is installed on Centos6.5. The default Operating System character set is used: WE8MSWIN1252 and ZHS16GBK is used.
[Oracle @ xserver ~] $ Sqlplus/as sysdbaSQL * Plus: Release 11.2.0.1.0 Production on Sat Dec 28 1
Whether the number of real-time connections to a database is stable is an indicator of whether a set of IT systems are stable.This data should be collected and followed when a new system is launched or not strictly tested.I wrote a simple stored
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