Prerequisites
1. the Linux environment already exists. Oracle has been installed.
This demo Runtime Environment
Local Environment RedHat linux as 4, ORACLE 10GLocal Database sid orcl, ip: 127.0.0.1, User name: kingbi, password: kingbi, table
1. Use two layers of nesting
SELECT *FROM (select a. *, ROWNUM RNFROM (SELECT * FROM edw_t100_bal_all)Where rownum Where rn> = 21;
2. Use between... and ..
SELECT *FROM (select a. *, rownum rn from (SELECT * FROM edw_t100_bal_all))Where rn
L relationship between extent and segment
The number of Oracle blocks for each extent is determined by the extent size/DB_BLOCK_SIZE. The extent size is determined by the initial, next, determine parameters such as pctincrease.
The number of extents
You can view the current configuration through dba_hist_wr_control. The current awr is a data snapshot every hour, and the retention time is 7 days.
SYS @ peng SQL> select * from dba_hist_wr_control; DBID SNAP_INTERVAL RETENTION
Create the table tmp_tab and use the sequence seqId with the primary key id
Create sequence: create sequence seqId start with 1 increment by 1;
Create table space: create table tmp_tab (id integer constraint seq1 primary key, col1 varchar2 (10),
// Let's take a look at the authorized binary tree below. The actual point is a diagram (complex diagram ):Sys/\Test001 (dba) test002 (dba)/\\T1 t2 t3--// As shown in the preceding Binary Tree, assume that both test001 and test002 are granted dba
MySQL table structure
Id name parent_id
---------------------------
1 Home 0
2 About 1
3 Contact 1
4 Legal 2
5 Privacy 4
6 Products 1
7 Support 1
The MySQL code is as follows:
SELECT T2.id, T2.name
FROM (
SELECT
@ RAS _ id,
(SELECT@
1. First install a Library:
Sudo apt-cache search libaioSudo apt-get install libaio-dev
2. Add users and user groups after installation:
Sudo groupadd mysqlSudo useradd-r-g mysql
3. decompress the mysql package:
Cd localSudo tar zvfx service1/mysql-5
1. Stored Procedure for inserting a large amount of test dataCREATE OR REPLACE PROCEDURE INSERTAMOUNTTEST(ST_NUM in number,ED_NUM IN NUMBER)ISBEGINDeclareI number;BeginFOR I IN ST_NUM..ED_NUM LOOPInsert into tb values (I, I, '3', '3', '3', 100, '0 ')
#! /Bin/sh# Define the strcture of tableTABLE = "(username char (50) not null, password char (20) not null, uid char (10) not null, gid char (10) not null, maildir char (100) not null, domain char (20) not null, active char (1) default '1 ');"#
Oracle's commit is to submit data (here the release lock is not the lock table). Before the commit, all the operations in front of you are updated with the memory and are not updated to the physical file.
From the user's perspective, the execution
DM database is a chinese database and is said to be compatible with Oracle. I personally migrated my data from Oracle11g to the database of dream 6.0 and encountered some problems:
1. Incorrect field nameAlthough dm SQL is compatible with the Case
1. Automatic Backup
You can use the exp method (provided that you have the export permission) and write a script for the operating system. If you have a windows system, you can write a bat file and use exp to export it, then, add BAT to the
Recently, an Oracle 10 Gb database was installed. When dbca created the database, the character set was not selected or the database was incorrectly selected. After the data was imported, all Chinese characters were garbled (funny, chinese garbled
What should I do if the exported file is too large to be stored in the file system? An effective solution on Unix is to create a named pipe.
Export data files through pipelines
Root@www.bkjia.com ~ $ Mknod exppipe p
Root@www.bkjia.com ~ $ Exp
After Oracle 10.2.0.1 is upgraded to 10.2.0.4, an error occurs in the EM console. This is because the authorization of the enterprise manager database control component and the CA certificate has expired. The official solution is to apply Patch 83502
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