Today free to do nothing, deliberately collated some information from the Internet for future inspection.
First, the usual date data format
1. Get the last, two, three, four-digit year
Select To_char (sysdate, ' Y ') from dual; --Get the last one
1. Copy table structure and data:
Copy Code code as follows:
CREATE TABLE Table_name_new as SELECT * from Table_name_old
2. Copy only the table structure:
Copy Code code as follows:
CREATE TABLE Table_name_new
1. Turn off all Oracle services. Can be shut down in Windows Services Manager;2. Open the registry: Regedit Open the path:Hkey_local_machine\system\currentcontrolset\services\ removes all Oracle-initiated service names under this path, which
Cause
This error occurs when you do hibernate BULK Insert Org.hibernate.QueryTimeoutException:
The reason for the error is that the capacity of the table space is insufficient and the space capacity needs to be increased. The first thought was to
First, if it is just deleted, then there are two ways:
First with show parameter undo; command to view the database parameter undo_retention settings at that time.
The display is as follows:
Copy Code code as follows:
With two concurrent transactions accessing the same row of database tables, the following three problems may exist:
1, Fantasy read: Transaction T1 reads a statement that specifies the where condition, and returns the result set. At this point,
Syntax for adding fields: ALTER TABLE tablename Add (column datatype [default value][null/not null],....);
Modify the syntax of the field: ALTER TABLE tablename modify (column datatype [default value][null/not null],....);
Syntax for deleting a
The permission system of Oracle database is divided into system permissions and object permissions. System permissions (Database system privilege) allows users to perform a specific set of commands. For example, the CREATE TABLE permission allows a
In this case, the automatic growth column refers to the automatic growth of the primary key ID in a table.
Unlike MySQL, Oracle cannot set the automatic Growth column feature when create tables.
Oracle must create a sequence sequence to automate
The comment on command in Oracle is used to describe the table or field, and the syntax is as follows:
Copy Code code as follows:
COMMENT on
{TABLE [schema.]
{table | view}
| COLUMN [schema.]
{table. | view. |
Here are some of the hard working processes in the background. System Monitor,smon, Progress Monitor (process Monitor,pmon), database writer (db writer,dbwn), log recorder (logs WRITER,LGWR), Checkpoint process (Checkpoint process,ckpt)
1, Smon:
The concept of partitioned tables
Partitions are committed to resolving key issues that support large tables and indexes. It uses the method that they decompose into smaller and manageable slices called partitions (piece). Once a partition is
Kill Oracle Online users and use root to execute this script on Oracle's serverParameter description for this Oracle user
Copy Code code as follows:
#!/bin/sh
function _oracleplus () {
Su-oracle-c "$oraclehome/bin/sqlplus/nolog" Connect/
paging test
How do you split the result into pages and like ' limits ' in MySQL?
// ===========================================================
Tutorial by Neil Craig (neilc@netactive.co.za)
date:2001-06-05
With this example, I'll explain
In the development process, may use the Oracle sequence statement, this article takes the Oracle sequence statement how resets carries on the introduction, needs the friend to be possible to refer to under
Oracle Reset sequence Statement 1
SQL code
1. Determine whether data exists before inserting data
Set ANSI_NULLS on
go
SET quoted_identifier in
go
-============================================= -
-Author: -
Create Date: -
Description: -
-=======================================
This article describes the process of C # connecting to an Oracle database. With Oracle.DataAccess.dll in Instant client and odp.net, we can easily deploy. NET applications or sites without having to install Oracle clients. Next we'll introduce the
Table query:
Merge query: Use the Union keyword to remove duplicate rows that meet the criteria.
Copy Code code as follows:
Select Ename,sal,job from emp where sal > 2500 Union Select ename,sal,job from emp where job = ' MANAGER ';
Here is an example of how to implement the self increase of the fields in Oracle.
First, create a table superamin
Copy Code code as follows:
CREATE TABLE Superadmin (
ID number (one) primary key,
Name varchar (one) is not null
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