Top-n, sort by a rule, and then take the first N rows of data.
RowNum: Pseudo-columns, the data table itself does not have such a column, is the Oracle database for each data table plus columns, you can identify line number, by default, rownum by
How Oracle obtains system current time Select To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual; Oracle gets a time of year, quarter, month, week , the function of the day select to_char (sysdate, ' yyyy ') from dual; --year Select
Reprint Address: https://www.cnblogs.com/congcidaishangjiamianju/p/8045804.htmlThis article from the following aspects to collate the concept and operation of the partition table: 1. Table space and the concept of partitioned Table 2. Table
1. The system defaults to several users:
sys--– Network management user with the highest database administration privileges
system--Local Admin user with permissions secondary to SYS
Scott ——-a normal user and is locked (not available) by default
By
Handle exceeding the maximum number of open cursors exception (Ora-01000:maximum open cursors exceeded)
Ora-01000_maximum_open_cursors_exceeded_
The Ora-01000:maximum open cursors exceeded exception is often encountered when executing the following
Sql> Conn/as SYSDBAConnected to a idle instance.Sql> StartupOracle instance started.
Total System Global area 276824064 bytesFixed Size 778736 bytesVariable Size 137371152 bytesDatabase buffers 138412032 bytesRedo buffers 262144
Solution:
1. After the installation of Oracle, first to modify the character set.
To modify the character set, use the command-line line to log on to Oracle, and then use Sqlplus to connect to Oracle, at which point configuring the Oracle profile is
I. Defining what a subquery is
When a query is a condition of another query, it is called a subqueryYou can add a subquery anywhere in the SQL. two. When to use subqueries
Use it when the problem cannot be solved in one step.
For example: query
Group By Type field, sort by code, and remove the first record from each group
Method One:
Select Type,min (code) from Group_infoGroup By type;
Note: The columns following the select are included in the GROUP BY clause, or with aggregate
In one of the tables in Oralce, an address field contains full-width characters that need to be converted to half-width characters for further processing.
Table Name: A
Fields that include full-width characters: Address
Edit table structure, add a
Oracle TNS Brief
What is TNS?TNS is part of Oracle NET, dedicated to managing and configuring Oracle databases and client connections, and in most cases the client and the database must be configured with TNS, and of course, in a few cases, the
Database Run mode
Dedicated server mode shared server mode ...
Dedicated Server mode
Each session has a dedicated process for its services for only a few client-connected servers or OLTP (online transaction processing systems)
The cursors, user
First, say the question
In the development process, you encounter situations where Oracle DDL statements and DML statements need to be handled in one transaction, either successfully or fail. For this problem, databases such as SQL Server can be
46. Abnormal
(1)
DECLARE v_temp number (4);
Begin select empno into V_temp from emp where deptno = ten;
Exception when too_many_rows then
dbms_output.put_line (' Too Many records ');
When others then
dbms_output.put_line ('
To_date format (in time: 2007-11-02 13:45:25 for example)
Year:YY two digits two-digit year display value: 07YYY three digits three-digit year display value: 007YYYY four digits four-digit year display value: 2007
Month:MM number two-bit month
Oracle 10g new features-code obfuscation
Author: Fuyuncat
Source: www.HelloDBA.com
Oracle 9i Previously, a command ' warp ' was provided to encrypt the code. But it's command-line, it's script-oriented. In 10g, Oracle Package DBMS_DDL
Start RAC
The manual start is initiated in the order of has, cluster, database, with the following specific commands:
Start has (high availability Services), must be the root user
[Email protected] ~]# Crsctl start
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