constraint type Constraint_type in table all_constraints:C (check constraint on a table)--constraints, such as not Null,checkP (primary key)--primary keyU (unique key)-Unique key constraintR (referential integrity)--foreign key--The following two
1. Tools: Download Oracle Client Address:Http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html such asSelect the corresponding version,Http://www.oracle.com/technetwork/topics/winsoft-085727.html find the corresponding
What does Oracle forget about Sys/system/scott user's password?A. Forget the login password for users other than SYS and system users.Login with SYS (or system) User: CONN Sys/pass_word as SYSDBA;Use the following statement to modify the user's
One, a stored procedure with a cursor There are two types of cursors as arguments: 1. Declaring the system cursor type Sys_refcursor1) The cursor acts as a parameter to the stored procedure:--A stored procedure with a cursor create OR REPLACE
What is a stored procedure?A stored procedure (Procedure) is a set of SQL statements that are compiled to complete a particular function, stored in a database, and executed by specifying the name of the stored procedure and giving parameters.Stored
First, the indexIndexes are a quick way to access data to improve database performance. Indexing makes it possible for a database program to find the data it needs without having to scan the entire table, like a book's directory, to quickly find the
First, TriggerA trigger is a block of code that executes automatically when a particular event occurs. For example, a record is added to the log table each time an action is made to add or delete an employee table. triggers and stored procedures are
Date functionSysdate-- Current system Time Select from dual;EXTRACT-- get Current year Select Extract (year from from-- years Select Extract ( month from from– month Select Extract (Day from- - DayTo_date--Convert a string to a dateSELECTTo_date (
I. DML data Manipulation languagePrimarily used to retrieve, insert, and modify database information. It is the most commonly used SQL command, such as insert (insert), UPDATE, select (select), delete (remove). 1. Insert Insertion Statement:Grammar:
first, how to effectively use the data dictionary Oracle's data dictionary is one of the most important parts of a database, which is generated as a result of the database, and changes as the database changes, reflecting some of the tables and
Sqlplus/ asSYSDBA; (sqlplus user name/Password@ip: Port: DB instance assysdba;)SetLinesize +;(set how many columns to display, pagesize: -; How many records per page)Select * fromnls_database_parameters; (nls_language)Select *
First, create a tableGrammar:CREATE TABLE [schema.] Table(column Datatype[,column datatype[,...]);DescriptionCREATE TABLE: A keyword for creating tables.Schema: Represents the owner of the object, which is the name of the schema, and if the user
A Redo log file is corrupted and the database is open; As a conSequence, database operations is stopped because archiving cannot coNtinue. What does would do to solve the problem?A. Clear the Redo log GroupB. Perform redo log file importC. Perform
In order for the PL/SQL function to return multiple rows of data, it must be done by returning a REF CURSOR or a data collection. This case of REF CURSOR is limited to the data that can be selected from the query, and the entire collection must be
Subquery 2 (Use subquery in HAVING clause), having clause
The main function of the HAVING clause is to filter the grouped data. If a subquery in HAVING indicates that grouping filtering is required, data in a single row and a single column is
Index (learning notes), index learning notes
The tablespace can be omitted.
B-Tree Index
Reverse Key Index
Function Index
Bitmap Index
Delete Index
B-Tree Index
Example 1,Create a table and use the PL/SQL data generator to import 0.1 million
Guide for installing OracleXE on CentOS
Introduction: Installing oracle xe on Centos is mainly used for learning and testing. Although simple, it involves many steps and details.
1. Download Oracle XE
Access the
Oracle performance optimization operation 18: whether to use full table scan or index
Like all tips, the last trick will go back to the starting point. Finally, let's discuss whether to create an index, maybe it is faster to perform a full table
Lock (learning notes), learning notes
Row-level locking and table-level locking:
Row-Level Lock:
When you execute, INSERT, UPDATE, DELETE, and select for update statements,
ORACLE will implicitly implement the locking of records. If the transaction
Research on ORACLENOLOGGING
Anyone familiar with oracle knows that by setting oracle's nologging option, some operations can be completed quickly, and the risk is that database backup may fail. There are many nologging operations that can be used.
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