This note is used to learn constraints, which are everywhere in the table. For example, data in a table cannot be empty or the table id must be set as the primary key.
Constraint type:
Primary key: The primary key represents a unique identifier in
Project requirements:
Count the attendance rate of each inspector (USER_ID) for the current month and query related fields
Sign-In rate formula: the unit is inspection personnel,
(Total number of inspection points in all the points sign in this
Preparations before installation:
1. Download the oracle Installation Package
Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
It must be noted that the current official website only provides installation files
I have learned several types of databases, such as mssqlserver and sqlite. Some basic logical and physical structures are similar. However, when I was in contact with oracle, I was confused about some concepts, here are some differences in the
1.1 symptom description when an SQL command containing double quotation marks is executed to update the data table information, the system displays the following error message:For example:SQL> update group_table set grouppswd = "adbaadadf" where
Oracle 11g RMAN recovery from different machines (linux to windows)
Determine the data file, log file, and tempfile information of the original database.
Select group #, status, type, member from v $ logfile;Col name format a65Select file #, name,
1. Delete service commandsThe specific operation method is: start -- run -- cmd, and enter the cmd command lineEnter the SC delete service name.Example: SC delete serv-u ServerQuery service input command: SC query service nameExample: SC query
The primary and Foreign keys have two major features:
1) The primary key itself is a unique index, ensuring the uniqueness of the column where the primary key is located;
2) The foreign key column must have corresponding records in the primary key
1.1 symptom Description: Data Import failed. The system displays the following error message:
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real
Database DesignDesign principles1. Familiar with requirements2. comply with development specificationsNaming rulesDefine the relationship between entities and Data TablesNo, that is, no primary key or foreign key.3. Audit Database Design4. Features
DatabaseCreate Datebade command1. Open the configuration and port tool-database Coffigyration Assistant2. Select create database-follow the prompts
Database Storage StructurePhysical storage structure: displayed storage unitData File: Table, index
1.1 symptom Description: failed to log on to the database. The system displays the following error message:% Sqlplus/as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Feb 5 14:42:29 2009
Copyright (c) 1982, 2007, Oracle. All rights
Bug 10121589 ORA-600 [kjbmp rlst: shadow] can occur in RAC
Affects:Product (Component) Oracle Server (Rdbms)Range of versions believed to be affected Versions BELOW 12.1Versions confirmed as being affected11.2.0.1Platforms affected Generic (all/most
Our previous queries are all based on one table. How can we query data from two or more tables? This note is used to learn multi-table queries.
Basic syntax:
Select * | (specific column name, column name 1, column name 2)
From table 1 alias 1,
In the previous query, the result is all records in the table. If you want to only display records that meet certain conditions, you must use conditional query or a restricted query.
Basic Syntax of conditional query:
SELECT * | (specific column
1. Install centos 6.5
2. Install the library required by ora
3. Modify the centos Kernel
4. create user groups and directory structures
5. Install ora11g2r
6. Install the SQL plus paging program and help patch
7. self-starting script
8. Common
1. Create groups and users
In linux, open the terminal and log on as the root user. Enter the following command:
Groupadd dba // Add the dba group useradd-g dba-m oracle // Add the username as oracle and add the user to the dba group passwd oracle //
Preparation: first shut down the ORACLE database and listen, the specific method can see: http://blog.csdn.net/zxnlmj/article/details/23096877
1. Modify the HOSTS file and add the ing between JTWF and the local IP Address:
[root@JTWF home]# gedit
Today is 2014-04-03. Let's take a look at a problem today.
Environment Introduction:
Gi version: 11.2.0.4.0
Database version: 11.2.0.4.0
Oracle linux: Linux Server release 6.4
RAC dual-node ASM + restart-alone ASM
Problem description:
When you start
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