1: To SYSDBA login system, first create a userSql> Conn/assysdbaconnected.sql> Create user yshy identified by yshy; User created. SQL> grant connect to Yshy; Grant succeeded. SQL> grant resource to yshy; Grant succeeded. SQL> grant create synonym to
Now there is a need: a document table to be partitioned by month, and if it is on Oracle 10g, only one field can be added. The Oracle 11g is not the same, you can use virtual column processing.Sql> select * from V$version;BANNER----------------------
SQL statement for querying and deleting duplicate recordsTransferred from: http://www.cnblogs.com/252e/archive/2012/09/13/2682817.html1, look for redundant records in the table, duplicate records are based on a single field (ID) to determineSELECT *
Oracle database requires proficiency in the following1, the writing of stored procedures and cursors, cursors written in the stored procedure, triggers2, the function of the writing3. Backup and Recovery4. User and Rights Management5. Functions and
Create 3 new log groups
sql> ALTER DATABASE ADD LOGFILE GROUP 4 ('/u01/app/oracle/oradata/orcl/redo06.log ') SIZE 500M;sql> ALTER DATABASE ADD LOGFILE GROUP 5 ('/u01/app/oracle/oradata/orcl/redo05.log ') SIZE 500M; sql> ALTER DATABASE ADD
New TXT fileInsert the start statement, I here is 11g, you modify the name according to your own version, you can right-click on the computer-"management to find the Oracle service message properties, the namenet start ORACLESERVICEORCLnet start
When you add a record, HWM slowly moves up, but when you delete a record, HWM does not move down. Therefore, deleting large amounts of data with the delete from command can cause performance problems caused by HWM. The most straightforward way to
One, the ordering of child nodes of the department with child nodes, calling child stored procedurescreate OR REPLACE PROCEDURE "Pro_init_sort" Ascursor Cur_department_all is Select * FROM Tbl_department; Var_count number; Var_out_count number: = 0;
EXP/IMP/SQLPLUS/EXPDP/IMPDP are EXE files that are stored in the Oracle Bin directory where sqlplus is actually called exp/impexpdp/ IMPDP provides high-speed, parallel, and big data migrations for Oracle data if you have these files, you can use
This error occurs when multiple installations of Oracle are unsuccessful.Proper installation of Oracle is a prerequisite1, install the latest JDK, not jre!! (and with the environment variables, in the CMD test java-version and Javac-version can be
Http://www.cnblogs.com/david-zhang-index/archive/2012/04/10/2441015.html
Operations on Fields
Operation method
Update Field Name
ALTER TABLE table_name Rename column column_old to column_new;
For Oracle's rownum problem, a lot of data are said not to support >,>=,=,between...and, only with the above symbols (,>=,=,between. and will prompt SQL syntax error, but often do not find a record, but also appear to be inexplicable results, in
The main functions of the minus operation are: when two tables or two query results are performed,Returns a record in the first table/query result that is not the same as the second table/query result. For example: The first sheet
When Oracle implements paging, a rownum function needs to be introduced, and rownum can record an ID-like field.The following is a collection of several commonly used SQL paging algorithm, the database with the EMP in Oracle as an example. The query
To import the company's database into your own computer (you will need to enter commands under the command window)To export the base code for a database:Exp Zj_user_kf/[email protected]_4 file=d:\test3.dmp full=yImport Database: The first is to
1. Log in as dBA$ sqlplus sys/[email protected] as SYSDBA (under Command Window)You can also use PL/SQL2. Create a temporary table space1 Create Temporarytablespace jiashubing_temp2Tempfile'E:\app\USER\oradata\orcl\jiashubing_temp.dbf' 3 size
First create a test table and record the parsing statistics: 650) this.width=650; "Style=" border-bottom:0px; border-left:0px; border-top:0px; border-right:0px "title=" image "border=" 0 "alt=" image "src=" http://img1.51cto.com/attachment/201411/4/7
CREATE TABLE Test(NO number,VALUE VARCHAR2 (100),NAME VARCHAR2 (100));--------------------------------------INSERT INTO TestSELECT * FROM(Select ' 1 ', ' a ', ' Test 1 ' from dual UNION ALLSelect ' 1 ', ' B ', ' Test 2 ' from dual UNION ALLSelect ' 1
Centos6.5 install Oracle11gR2 (64-bit)Centos6.5 install Oracle11gR2 (64-bit) and centos6.5
(My virtual machine environment)
1. Download The centos6.5 installation package.
For example:2. Download the oracle installation package, which is not
Oracle _ Common grouping FunctionsZookeeper
Oracle _ Common grouping Functions① Grouping Function1. max (column): calculates the maximum value, which is not required for the data type. Any data type can be used.2. min (column): calculates the
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