Case 1--restores a table in the past at some point in time
1, based on the point of time
Sql> Select Username,scn,timestamp,sql_redo from v$logmnr_contents where seg_name= ' TB01 ';
USERNAME SCN TIMESTAMP Sql_redo
--------------- ---------- -----
Oracle Control files
is a binary file, the initialization size is specified by the CREATE database, and you can use Rman backup
The structure information of the current database is recorded, as well as the information of the data file and log file,
Oracle databases, as a product of managing data, must be able to recognize the administrative commands (often called SQL statements) submitted by the user to respond. The process of recognizing is called the process of parsing an SQL statement, and
An Oracle stored procedure consists of three parts: a procedure declaration, a procedure part, and a stored procedure exception.
Oracle stored procedures can have parameter-free stored procedures and parameter-stored procedures.
Procedure syntax
Since Oracle database backups are available in three ways, each with different recovery characteristics, you should integrate database and file system backups, integrate logical and physical backups.
First, backup strategy
1. At the operating
1. Create a sequence
-- Create sequence create sequence INNERID minvalue 1 maxvalue 99999999999999 start with 1 increment by 1 cache 20 order;
2.--innerid.currval refers to the current sequence
--INNERID.nextval 指下一个序列 insert into admin values
Physical Standby and logical standby
Log application services are divided into two types, one is the physical standby redo applications, similar to media recovery, its advantage is fast, but 10g case standby must be in the Mount State, Unable to
The parameters discussed in this article are:
Log_archive_dest
Log_archive_dest_n
Log_archive_start
Db_recovery_file_dest
Oracle version:
Sql> select * from V$version;
BANNER
-------------------------------------------------------------------
V$parameter
Oracle parameter modification is more complex, some of the parameters can be modified at the session level, some must be modified at the system level, some parameters are modified immediately after the effective (do not need to reboot),
1. When you use the Where, group BY, and having clauses in a SELECT statement, they function and execute in the following order:
(1) Where is used to filter the data object specified by from
(2) Group by for grouping the results of the Where
(3)
--New test table
Create Tablespace Test
DataFile ' E:\APP\ADMINISTRATOR\ORADATA\ORCL\test01. DBF '
Size 500m
Autoextend on
Next 100m MaxSize Unlimited
Extent Management Local Autoallocate
Segment Space management auto;
CREATE TABLE T1
(
/*
Before creating a tablespace under the server directory/optoracle/oradata/etld, manually build the Etld directory and use root to give the Etld directory the appropriate permissions, such as 777
*/
--Create a table space
Create Tablespace Tbs_
There are 3 kinds of analytic functions commonly used by Oracle for sorting, rank (), Dense_rank (), row_number ();
The test table is as follows:
1, rank () Jump ranking
With temp as
(
Select T_id,t_age, rank (t_age desc) sec from AAA
)
1. RAID definition
RAID, full name Redundant array of inexpensive disks, Chinese name is redundant array of inexpensive disks. RAID can be divided into soft raid and hard raid, soft raid is the software to achieve multiple hard disk redundancy.
Many times the local test environment does not simulate all of the performance problems of the customer's production system, it may take only a few minutes in a local environment, but it often runs for hours on the client side, and this time, in
Enter the sqeuence of the order by, which should be "desc" or "ASC"
If you enter two order by, v_order_field= "a[sequence" and ORDER by B "
CREATE OR REPLACE PROCEDURE tablepage_select (v_page_size int,--the size a page of listv_current_page int,--
MySQL: How to transfer millions data from Oracle to MySQLhttp://blog.csdn.net/hwhua1986/article/details/53257427Oracle to MySQL migration steps and a variety of considerationsHttp://www.2cto.com/database/201305/210248.htmlMySQL vs. Oracle diff data
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