Oracle10g provides the recycle bin function similar to the operating system. When you drop a table, you only need to rename it and put the table and associated objects such as index and constraint in the recycle bin. If you find that the table is
Basic Oracle Stored Procedure syntax
1. Basic StructureCreate or replace procedure(Parameter 1 in number,Parameter 2 in number) IsVariable 1 integer: = 0;Variable 2 date;Begin
End stored procedure name
2. Select into statementSave the result
OracleThis bowl of rice is not good. How many risks are there and how many suggestions are there. 1. Incomplete time point-based
Restore, You need to brainwash the control file, tear off the account book (redo log), re-print the account book, this
1 oradebug Introduction
Oradebug is mainly used by Oracle Support staff. Although it was very early, it is rarely recorded on the Oracle official website. It is an SQL * Plus command line tool. You can log on with sysdba permissions without
OffThe essence of database technology is standardized data storage through Relational Tables.
Information Retrieval and processing through various table connection technologies and various types of indexing technologies
Here think is willing to join
Environment:
SQL> select * from v$version where rownum=1;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdSQL> !uname -r2.6.18-308.el5xen
The fundamental function
Next to the previous article.
③ Dike DDL commit transactions
DDL pseudo code display:BeginCommit;DDL-StatementCommit;ExceptionWhen othersThen rollback;End;Therefore, DDL is always submitted, even if the submission fails. DDL is submitted at the
1 dd
Simulate Physical Bad blocks
SQL> select * from V $ database_block_partition uption; No rows selectedsql> select * from V $ backup_partition uption; No rows selectedsql> select * from V $ copy_partition uption; no rows selectedsql> Create
The rules are as follows:
According to this rule, there are only three types of outputs: uppercase, lowercase, and uppercaseThe test is as follows:
sys@ORCL> select to_char(sysdate,'Month') from dual;TO_CHAR(SYSDATE,'MONTH')---------------------
1
Prepare the test environment:SQL> Create Table C as select * from Dept;
Table created.
SQL> select * from C;
Deptno dname Loc-------------------------------------10 Accounting New York20 research Dallas30 sales Chicago40 operations Boston
SQL>
This index topic has not seen the sun for a long time, I think it is special, unhappy, so I have this article
It is rumored that B * tree indexes are often used in the application development stage as "cannon fodder", while in the maintenance
Backup definition.The fundamental purpose of backup is to restore. If needed, it can be recovered, that is, backup. For example, archive log file is a backup of online redo log file.
The validity of the backup.Eygle said on its blog: "The system
Whether we use dbca for database creation or manual creation. After the database creation task is completed, three parameters are very important for future production and use. Generally, we need to open them.The first one is log_checkpoints_to_alert.
The merge statement is a new syntax of Oracle9i, used to merge update and insert statements. The insert statement cannot be executed when update is performed on the matching connection conditions. This syntax only requires one full table scan to
We know that every RDBMS has its own characteristics in SQL. So today, let's take a look at what features Oracle has.
Meaning.
Feature 1:Oracle analysis functions and window functions:Syntax:
Function_name (, ...)Over ( )For example:Sum (SAL) over
1,Among them, the most common is update T1 Set B = (select B from T2 where t1.a = t2.a );However, pay attention to the impact of null values,If you are afraid of the impact of null values, write itUpdate T1 set tname = (select sname from T2 where t1.
Summary of rownum usage in Oracle! (Excellent) for the rownum problem of Oracle, many materials are not supported>,> =, =, between... and, only the above symbols can be used (,> =, =, .. and will prompt SQL syntax errors, but often cannot find a
The previous two articles introduced how to use collection and update collection. This article will introduce how to generate a new collection and add data to it.Procedure insert_object (d in dept_array, D2 out dept_array) is
Begin
-- First way to
Document directory
1: close ---> nomount status
2: nomount --> Mount status
3: monnt --> open
Important references
Oracle contains three basic files:
1: Data File)2: Control File)
3: Online redo log file)
Concepts of Oracle Database files:
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