1, the design of the banking system of the two Tables
create TABLE T_user (
accountnum varchar2 () primary key,
username varchar2 (),
Password VARCHAR2 (6),
balance number (8,2),
datetime date default sysdate
);
CREATE TABLE t_history (
hid
To improve performance, we have tried a number of ways or scenarios that the Oracle database itself has provided, mainly including:
Shared server mode (MTS)Cluster technology (clustering) RACPartitionParallel processing (mainly parallel
Directory=========================================1.Oracle Date function2. Date plus minus3. Month Plus and minus4. Year Plus and minus5. Ask for the last day of the month6. Ask for the first day of the month7. For the next one weeks
Introductory
Oracle Stored procedures:
Grammar:CREATE [OR REPLACE] PROCEDURE procedure_name(Arg1 [Mode1] datatype1,arg2 [Mode2] datatype2,...)is [as]Pl/sql Block;Mode is used to specify the input and output parameters: In is an input parameter, out is an output
Today, while writing the stored procedure, I found a very strange problem, stored in the process of a simple select dynamic SQL statement. After writing, execute this stored procedure, always prompt ora-00942:table or view does not exist (ERROR-942
Solution: If this warning appears, the table space is not enough, you should add data files to the tablespace or increase the size of the data file that is already in the table space.
More detailed: Cannot create
Cold backup of your database. You are on the server side, using the SVRMGRL commandSvrmgrl> Connect internal;Svrmgrl> SHUTDOWN IMMEDIATE; --or NORMALSvrmgrl> STARTUP MOUNT;svrmgrl> ALTER DATABASE datafile '/ORACLE/ORADATA/ORCL/USERS01.DBF ' offline
1. Basic StructureCREATE OR REPLACE PROCEDURE Stored procedure name(Parameter 1 in number,Parameter 2 in number) isVariable 1 INTEGER: = 0;Variable 2 DATE;BEGIN
End Stored Procedure name2.SELECT into STATEMENTBy saving the results of a select query
Oracle/plsql: Primary key (Primary key) usage 1 Goals
Examples explain how to create, delete, disable, and open primary keys.
2 Preface-What is a primary key
In Oracle, a primary key refers to a single data table column or union of data table
Oracle | Pl/sql Unique index (unique Constraint) usage 1 target
Demonstrates how to create, delete, disable, and use a uniqueness constraint with an example.
2 What is a uniqueness constraint.
A uniqueness constraint refers to a constraint in a
A simple Ibatis introductory example with Oracle and Java tests
Directory structure:
1. Import Ibatis and Oracle drivers.
2. Create Class Person.java
Package com.ibeats;Import Java.util.Date;
public class Person {private int id;Private String
1. Date-time interval operation
Current time minus 7 minutes of time
Select Sysdate,sysdate-interval ' 7 ' MINUTE from dual
The current time minus 7 hours of time
Select Sysdate-interval ' 7 ' hour from dual
The current time minus 7 days
Select
The purpose of trigger development: to ensure that databases meet specific business rules and enterprise logic, you can use triggers, constraints, subroutines. BecauseConstraints are the simplest and performance, the selected constraints, if the
This article is from the "Happy F" blog, please be sure to keep this source http://gaoxingf.blog.51cto.com/612518/121138
Common commands for Oracle databases under Linux
Executed under Oracle users:
$ sqlplus system/manager @ file.sql Execute SQL
type of index:B-Tree IndexBitmap indexHash indexIndex Choreography TableReverse Key indexFunction-based indexingPartitioned indexLocal and global indexes
Limit Index ( index invalidation )
The reasons for the failure of Oracle indexes are many:
To export a table space:
Exp "System/manager as SYSDBA" Transport_tablesapce=y tablespaces= (XXXX) file=d:\users.dmp;--------------------------------------------------------------------------------------------------------------- ---import, export
Q: What is null.
A: When we do not know what the specific data is, it is unknown, you can use NULL,
We call it null, and in Oracle, the table column length with a null value is zero.
Oracle allows NULL fields for any one data type, except for the
Table of Contents detailed
DirectoryContent/Root directory, everything starts here/binA binary file (program) that contains the necessary system startup and operation/bootContains the Linux kernel, the initial RAM disk image (used by
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