How to use ORACLE sequence:
An Oracle sequence is a database item that can generate an integer sequence. It is usually used to fill in a numeric primary key column.
1. Create sequence:
Create sequence sequence_name
[Start with start_num]
Example:
(1) query data in the users table.
Select U. ID, U. realname, U. Sex from users U;
The query result is as follows:
Id realname sex1 10082 pine xx2 10084 Lin XX 13 10087 West xx4 10100 Hu xx5 10102 dragon XX 1......
OracleCondition branch usage
A. If... then
B. If... then... Else
C. If... then... elsif .... Else
Instance1
Question: When writing a process, you can enter an employee name if the employee's salary is lower2000To increase the
Case: The salesperson's salary in the Scott. EMP table can only increase, but cannot decrease
Code:
Create or replace trigger tr_emp_updBeforeUpdate of SalOn EMPFor each row
--
Triggered only when the salesperson is updated
When
(Old.
InProgramWhen defining variables, constants, and parameters, you must specify the PL/SQL data type for them. When compiling PL/SQL programs, you can use the scalar type, composite type, reference type, and lob (largeObject.
The most common
In large-scale project development, common databases are Oracle databases. However, an Oracle client requires a large disk. After installation, two functions are basically used: TNS Configuration Service name and sqlplus. During development, toad
The management of database files in sqlserver is relatively simple. The main concepts include:
1. File Group. Storage Allocation unit of database objects. The purpose is to accommodate more database files and expand space.
2. File. File Group
Oo4o is a com-based component of native Oracle access provided by Oracle for Windows. It is directly based on the Local OCI and is a set of model objects similar to ADO accessing the Oracle database.
Oraserverclass: represents the physical
Oledb for Oracle driver in Microsoft MDAC-- Process parameter: estimated: Location binding
The driver supports the latest Oracle8i level and is no longer updated
Use this driver. You can only use the ODBC Stored Procedure Call method:
The official statement of the db_create_file_dest parameter is to enable management based on Oracle-managed files (OMF. OMF Management of Redo, control, temp, undo, and data files
My understanding is that it is neither safe nor nice to let Oracle
OEM: Oracle Enterprise Manager. Graphical, integrated, B/S-based management tools
1. Create:
Emca-config dbcontrol DB-repos create
2. Delete
Emca-deconfig dbcontrol DB-repos drop
First execution error
The second execution can be completed
Although the configuration of physica standby in Oracle's DG solution is relatively simple, it is a little complicated.
In the end, DBPhyiscal standby constantly applies redo logs to synchronize with primary.. The so-called advantage is that
Dbid is the unique representation of the ownership of the Oracle database file component. It is the ID of various ORACLE data files. Oracle creates a database with a random 10-digit string, similar to "1977880105".
It can use the applications
How Should Oracle control files be understood?
In my opinion, the control file records a state of the Oracle database. Like the Windows System Restoration function, it recordsValid, transaction, and specific status. It is also a database, which
I. Overview:
Exp and IMP tools are logical Import and Export tools provided by Oracle all the time --- original!
Ii. Basic usage
Exp user/password @ TNS [full | Owner | tables | tablespaces | transport_tablespace] file = rows =
IMP
-- Create a temporary table to obtain the value of the Long TYPE: high_value Drop Table Syscom_tab_partition_temp purge; Create Table Prm8_user.syscom_tab_partition_temp (table_name Varchar2 ( 30 ), Partition_position Int , Partition_name
Oracle Data Dictionary
Let me give you an example of the dictionary. What do we rely on for reading and writing? You will say: Word! Then I ask you, what is your word ?! At this time, you can only explain the statements in the dictionary (Xinhua
It can be understood that using RMAN to create a duplicate database is essentially the same as using dbca to create a database. The expression is different.
To succeed, the key conditions are as follows:
1. RMAN is a pseudo-server tool: it can
I. Processes (6-OS limit) 40
Determines the number of processes that can be opened by all operating systems on Windows for parallel connection to Oracle (this process should be the number of all sub-processes opened by the Oracle instance process
Utl_mail Introduction
The utl_mail utility package is a new tool for sending emails in Oracle10g. Easy to use.
Utl_mail installation and configuration
By default, Oracle10g does not install this package. You can run the following script to
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