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
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
1.1 full database backup of Database DataNote: This operation requires you to start the database.
Switch to the oracle user and create the backup directory on the OS side:
Mkdir/oracle/backup
Log on to the oracle database and create a backup
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
Step 1: Create a table.Copy codeThe Code is as follows:Create table Test_Table(ID number (11) primary key,Name varchar (50) not null,Value1 varchar (50) not null) Step 2: Create an auto-incrementing sequence to provide the call function.Copy codeThe
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
To synchronize the table data in the select remote database using insert into, configure the oracle service. The remote and local services are both oracle
1. Insert data into the current database
Create public database link remotedb connect to
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
1. Name of the planned tablespace: yournameTablespace data file storage location:/u01/app/oracle/oradata/orcl/(select file_name from dba_data_files ;)Username/password: yourname/yournameNote: The tablespace name, user name, and password are
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
1. Shut down the database as usualThen% SvrmgrlSVRMGRL> connect internalSVRMGRL> startup mount [database_name];SVRMGRL> alter database [database_name] archivelog;SVRMGRL> archive log list;SVRMGRL> alter database open;
2. Set the archive process to
1. move the cursor to the beginning of the content you want to copy.2. Press the left mouse button with the right index finger3. Drag the mouse to the other corner of the content to be copied, just like the method used to select the content in Word.4
Oracle service-oriented architecture
Leading Enterprises are using Service-Oriented Architecture SOA to reduce the complexity of their applications and IT environments. SOA can promote the development of modular business services, these services can
The author uses Oracle 7.3 database and HP-UNIX system.
Since the Oracle data format is different from the general microcomputer format, Oracle data cannot be directly called. Although Developer 2000, a front-end development tool provided by Oracle,
Since Oracle does not provide tools for Real-Time Message output, Oracle database developers always have to face the challenge of real-time monitoring of their reserve process execution. They must use dbms_output.put_line to call and return the
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