Two classic examples of Oracle triggershttp://blog.csdn.net/justdo2008/article/details/4137779"Case One"Topic:--Trigger:--Add employee information, serial number as auto number (generated by sequence),--and determine if the wage is less than 0,
Many friends in the development project not everyone with a database, but a separate host as a development database server, so that our developers need to connect it. The first is to enter Oracle's Net mananger; The next step is to make a
SOURCE End: Oracle 11.1.0.7Target end:Oracle 11.2.0.4A recent data migration case encountered in the case of a VIEW after the data migration completed by the VALID State changed to INVALID. the VIEW creation statement obtained from the source
In general, it is not recommended to assign DBA authority after an Oracle normal user is created. So what permissions are generally assigned?First of all, an Oracle general user, our general requirements are:1. Be able to create the table structure,
Oracle Multi-Table Query 1 put multiple data into one fieldSelect Id,zhzxm,fzhzxm,ltrim (Max (Sys_connect_by_path (XM, ', ')), ', ') XMFrom (Select Id,zhzxm,fzhzxm,xm,row_number () over (partition by ID ORDER by LRSJ) RN--mark the same
Introduction to flashback flash back in oracle
1. You must set the undo retention time to be large enough to reconstruct the data that needs to be flashed back.
Alter system set UNDO_RETENTION =
The seconds value is the number of seconds for
Batch import data to Oracle databases
SQL * LOADER is large data
Repository selection method, because it provides the fastest way (DIRECT, PARALLEL ). Now, let's leave aside its theory and use instances to make
You can quickly learn how to use SQL *
Significance of Oraclecreateindexon (colname, 0)
Today, I saw an index, create index index_name tableanme (colname, 0). It's strange that I have never seen it before. After tests, it was found that it was an item relative to the Union Index and it
Oracle time function exploration, oracle Exploration
I have recently used time functions. I want to take a note here to record my income and hope it will be helpful to you.
1. For a time such as sysdate: 14:16:03, how can I get only the year, month,
Use of Oracleexp/imp Import Export tool-1
The exp export tool compresses data backup in the database into a binary system file, which can be migrated between different operating systems.
The imp import tool imports binary system files generated by
Oracle data type-2
5. NUMBERIt is used to store zero, positive, fixed-length negative, and floating point numbers. The NUMBER data type can be set to NUMBER (P, S)
Format to define the precision and range of numbers. Here: p indicates the
Oracle Data Type-1In Oracle databases, each relational table consists of multiple columns. Assign a specific data type to each column to define the data type that will be stored in this column.
1. CHARA maximum of 2000 characters or bytes can be
ORA-02287: sequence numbers (sequencenumbernotallowedhere) are not allowed here to avoid and enforce implementation
Scenario 1:
SELECT id,name FROM (select SEQ_B_LOG_ID.NEXTVAL id , 'elong_deo' name from dual);
Scenario 2:
Insert into B
Oracle will you really use the ltrim/rtrim function?
The common usage is to remove spaces. How many people do not know that they can actually remove spaces? It has the ltrim () and ltrim (x, y) methods.
------- Remove spaces on both sides, left
Use OCCI to access the Oracle database (4)
1. When executing Environment * env = Environment: createEnvironment ();, an exception is thrown, the Code is a ORA-32104, but there is no error message
The reason is that the library used does not
Summary of ORACLEFLASHBACKDATABASE
Flashback database is a very important feature of oracle databases. Compared with the function of retrieving historical versions of table data through undo and executing logical error recovery, flashback database
Personal notes-oracle
Sequence
select * from user_sequences select last_number from user_sequences where sequence_name='T_JGXX_POLY_SEQ';alter sequence T_JGXX_POLY_SEQ increment by 1;SELECT T_JGXX_POLY_SEQ.NEXTVAL FROM DUAL;
Meger
merge into
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