In-depth research on the materialized view (mview) of Oracle II
In-depth research on the materialized view (mview) of Oracle II
Turn: http://www.anysql.net/oracle/reorg_master_table.html
After a materialized view log (materialized view log)
Oracle is installed on the local machine, and the machine starts up every time it starts up. The machine starts up for half a day. Set it to manual start. Services. MSC is required each time and start one by one, which is troublesome.
It is much
1. Log On with the system and SYS accounts
2. Create a userCreate User Username identified by PWD default tablespace users;Create username, password PWD, and allocate table space.
3. Authorize a userGrant connect, resource to username; (other
D:/Oracle/product/10.2.0/db_2/Network/admin
6. Modify the tnsnames. ora file D:/Oracle/product/10.2.0/db_2/Network/admin/tnsnames. ora in the Oracle installation path and addXxx =(Description =(Address_list =(Address = (Protocol = TCP) (host = 19
Insert data using a subquery
Create Table emp2 (myid number (4), myname varchar2 (50), mydept number (5 ));
Insert into emp2 (myid, myname, mydept) Select empno, ename, deptno from EMP where deptno = 10;
Update Data Using subqueries
// create a temporary tablespace create temporary tablespace test_temp tempfile 'e: /Oracle/product/10.2.0/oradata/testserver/test_temp01.dbf ' size 32 m autoextend on next 32 m maxsize 2048 m extent management local; // create a data table
1. Automatically increasing data type ProcessingMySQL has a data type that increases automatically. When you insert a record, you do not need to operate on this field. The data value is automatically obtained. Oracle does not have an auto-increasing
Just the day before yesterday, our system did not know why, and we could not store the database for the data. After restarting, we simply couldn't enter the database. Now it's okay, since the pages are not
It must be because of Tomcat problems
Address: http://database.51cto.com/art/201010/231598.htm
Oracle image storage is a feature that we often need to implement. The following describes how to use the stored procedure to store images in Oracle. If you have encountered any problems
Oracle searches for the stored procedure name based on the Stored Procedure content
Address: http://hi.baidu.com/chenchendf/item/28c9a1f404f1e449932af2c9
In Oracle, the source code of an object can be in the user_source data dictionary.
1. You
In the Oracle world, you can use:
1) Case expression or
2) decode Function
To realize logical judgment. Oracle's decode function is very powerful. If you use it flexibly, you can avoid multiple scans to improve query performance. While case is the
In Oracle development, the conditional expressions between If and then are full of "art" and require us to discover and appreciate them.
Appreciation 1: Three-value Logic
If an expression contains a null value, what is the final result of the
Table Name and column naming rules
1. It must start with a letter2. The length cannot exceed 30 characters3. Oracle reserved words cannot be used4, can only use A-Z, A-Z, 0-9, $, # and so on
Data Type
Character Type:Char can query up to 2000
View the table structure:Desc table name;
Cancel duplicate columns in distinct.
Set timing on; show operation time
Insert into users (userid, username, userpass) Select * from users;Insert into student (XH, XM, sex, birthday, Sal, classid) Select *
All codes are tested in SQL * Plus of Oracle 9i. Follow these steps to create independent files.
1. Create your own user file (Table owner ).
Prompt -------------------------------------;Prompt this part is to setup Object Creator .;Prompt ----------
Oracle has two functions: Lead and lag, both of which are used to calculate the offset analysis functions. The two functions share the same usage.
The Oracle official documentation explains:
LEADIs an analytic function. It provides access to more
When my colleague retrieved the database, it was Oracle 10 Gb. The previous deletion method was Delete. I do not know whether to use trancate.
The SCN (System Change number) is spelled as system change number, which is a very important data
Using python to simulate Oracle sqlplus
The team plans to develop the database service platform and needs to use some server script development. To understand python, they have set a small requirement for simulating sqlplus and then implement it.
My
Share an unexpected Oracle Database Host Performance Test Result
Recently, I have been doing some research on Oracle SQL Performance quantification. It is very complicated to implement more accurate SQL Performance quantification, and I have been
SQL * loader is large dataRepository selection method, because it provides the fastest way (direct, parallel ). Now, let's leave aside its theory and use instances to makeYou can quickly learn how to use SQL * loader.First, let's get to know SQL *
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.