Recently, a machine equipped with Rhel5.3 40G memory has an Oracle database, the database of the SGA set to 20G, when running a business, a peak of business, find swap frequent swap, CPU 100%,load is very high, basically reflected in insufficient
Oracle subroutine parameter patterns are mainly in,out,nocopy,in and out can be combined, out and nocopy can also be used in combination.
In is mainly used for incoming parameters, can be variables, constants, expressions, within the subroutine can
If I hadn't used the Oracle lead this time, I wouldn't have found anything so useful.
Oracle statistical analysis function lead
Syntax structure:
Leads (value_expr [, Offset][,default]) over ([Query_partition_clause] ORDER by
1, open cmd, enter Sqlplu
2, enter the username you remember password: Scott/tiger
3, Conn/as SYSDBA//As the operating system administrator login, do not need to provide password
4, show user// Displays the current user
example: User is "SYS"
5,
error encoding : Ora-01033:oracle initialization or shutdown in progress
description of the fault: because the database file ([NAME]) was moved. DMP)/log files, etc., causing a ORA-01033 error in the database connection.
Failure Analysis : There is
With Tab as (select T.object_pid, T.mesh, round (x, 8) x, round (y, 8) y, round (z, 3) z , id from had_object_box_pole T, table (Sdo_util.
Getvertices (T.geometry)), Tab1 as (select T.object_pid, T.mesh, T.x, T.y, T.z, T.id, COUNT (*) over (
The data is based on an Oracle database Scott/tiger the EMP (employee) and dept (departmental) tables under the demo account:
CREATE TABLE DEPT
(
DEPTNO number (2) NOT null primary key,
dname VARCHAR2 (),
LOC VARCHAR2 ( )
)
CREATE
Oracle database Start and stopLog in as an Oracle userAfter logging in, enter the following command:Oracle-> Sqlplus/nologSql*plus:release 9.2.0.1.0-production on Monday April 26 09:42:00 2004Copyright (c) 1982, 2002>>, Oracle Corporation. All
First execute Sqlplus/as sysdba with Oracle user, enter Sqlplus,Then first look at what data files are currently available sql> select name from V$datafile; And then we see a/u01/app/oracle/oradata/sid/test.dbf in the results.Then close the database
When the partition1. Tables larger than 2GB2. With 10 million records above, the more data that is contained in the table, the slower the SQL operation will be executed.3. A table that will contain a large amount of data.4. A table that can be used
1. Check the listening status Lsnrctl status2. Start monitoring Lsnrctl start3. Turn off monitoring lsnrctl stop4. Log on as a database administrator Sqlplus/as Sysdba5. Manually start the database sql> STARTUP6. Close the database Sql>shutdown
Last quarter all months:SELECTTo_char (Add_months (Add_months (TRUNC (Sysdate,'YYYY'), A* 3),-ROWNUM),'yyyymm') Last_q from(SELECTTo_char (Sysdate,'Q')-1A fromDUAL) CONNECT byROWNUM 3 ORDER by 1;All months of the quarter: SELECTTo_char
1. First set the Full_name (full path) of one-level menuupdate S_DEPARTMENT t set t.full_name = ‘XX集团‘ where fid=‘-1‘;2, set the level two menu Full_nameupdate ( select a.dep_name,a.full_name,b.dep_name dd,b.full_name cc from
This case database (12.1.0.2) is installed on the file system, so you only need to deinstall the database. Prerequisites: (1) Close the database, shutdown immediate; (2) Turn off monitoring, Lsnrctl stop (3) Finally, deinstall database
Null value operation:NULL means null.First, the situation:1: Any field in the table can be a null value by default.2:not NULL indicates non-NULL, is a field with a constraint set to a non-null constraint, must have a valid value, and cannot be empty.
(a) What is a constraintConstraint is a mandatory requirement at the table levelThere are five types of constraints:
NOT null: Non-empty
Unique: the only
PRIMARY Key: Primary key
FOREIGN Key: Foreign key
Check: Checking
First, the generated table with the database query tool, the table name needs to add double quotation marks to be able to query otherwise prompt table or view does not exist The database table creation statement generated by EF is by default double-
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