1. Default login to cdb $sqlplus/as sysdbasql*plus:release 12.1.0.2.0 Production on Sat Jan 20 11:01 : 2018Copyright (c) 1982, Oracle. All rights reserved. Connected to an idle instance.2, start cdbsql> startuporacle instance started. Total System
In the previous article, I used a case to demonstrate how the selection is calculated for a field of numeric or string type. It also proves that when the selection of the field value is not the same, it will affect the CBO to choose the final
The Oracle driver first goes to the official website to download, after downloading, needs to install to the MAVEN local warehouse, then adds the dependency in the Pom.1 Download the Oracle Driver packOjdbc6-11.2.0.3.jar2 command line installation
CREATE TABLEADVICE (IDINT not NULL, ACTIVEINT DEFAULT 1 not NULL, TYPEINT not NULL, MSGVARCHAR2( +) not NULL, ADVICEVARCHAR2(4000) not NULL,PRIMARY KEY(ID),CONSTRAINTAdvice_uniUNIQUE(type,msg)) Tablespace MYDB; --Create a self-increment ID named:
The character functions are explained in the "Oracle Basic Queries" sectionFirst, the numerical function1, Round (returns the value after rounding)Format:round (x[,y])X, y, numeric expressions, if Y is not an integer, the y integer portion is
1. Querying all descendant nodes under a node (including parent nodes at all levels)1 // all descendant nodes with a query ID of 101, all levels of parent nodes, including 101 2 Select T.*from +='101'by = Prior ID2. Querying all descendant nodes
I. Overview of SQL Origins in the standard no longer repeat, mainly divided into ddl,dml,dclFor an introduction, refer to MySQL section : http://www.cnblogs.com/jiangbei/p/6696202.html Objective of this section:by studying this chapter, you will
Oracle database part moved to flash storage solution
1. Implementation requirements
2. Confirm the migration of tablespace information
3. Confirm Redo Information
4. Confirm the Undo information
5. Table space migration to
Prior to Oracle 9i, the sorting of Chinese was by default sorted by 2-binary encoding. Several new options were added at 9i:
Sort by Chinese pinyin: Schinese_pinyin_m
Sort by Chinese radicals: schinese_radical_m
Sort by Chinese
One, over () analysis functionsGroup Check before: SELECT * from Test t where (select COUNT (*) from Test a where t.type=a.type and T.scope>a.scope) --rank ()/dense_rank () over (partition by ...)SELECT * FROM (select T.*,rank () over (partition by
Numeric Functionsthe commonly used functions for handling numeric values are as follows :
No.
Function name
meaning
1
Digital round ( column | numbers [. ])
Returns the value
(+) in Oracle is a special usage, (+) represents an outer join, and is always placed on the side of a non-primary table.For example, left OUTER join:Select A.A,B.A from A left JOIN B on a.b=b.b;Equivalent toSelect A.A,B.A from a b where a.b = b.b (+)
Blogger tested on Oracle 11g R2 (test date: 2017.10.30):Log in to Oracle with SYS and execute the following two statements: Select * from WHERE like ' CONNECT '; -- Querying permissions for the Connect role Select * from WHERE
Operating system: Centos6.9 (64Bit)oracle:11g, 11.2.0.4.0 versionIP Address: 172.16.220.139Don't say much nonsense, the following records the installation process:1) Install the desktop environment[Email protected] ~]# yum-y groupinstall "X Window
When doing some comparative kernel research on Oracle, the dump command is used to dump the information in the database into the trace file. This article simply describes using the dump command to dump the information in a data block into a trace
Oracle's cluster management software and databases are very dependent on the private network, and many cluster problems can be attributed to the network level at the end.It is necessary to check the network information when there is a problem with
Select t.* from (select a. *, Row_number () over (partition by required to group fields order by update time desc) RW from table a) t = 1 Row_number () over (partition by col1 ORDER by col2) indicates that, according to col1
System environment Background: Lenovo IDEAPAD510;64BIT/64-bit system.Oracle virtual box:version 5.1.2 r108956;UNIX ISO Download:Previously installed the wrong ISO, has been error-like: This kernel requires a x86-64 cpu,but only detected an i686
Command for viewing the Oracle Database Name and Instance name, oracle Database Name instance
View Database Name
SQL> select name from v $ database;
NAME
---------
ORCL
SQL> desc v $ database;
Is the name empty? Type
--------------------------------
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