To study Oracle databases, it is too cumbersome to install Oracle, so think about saving things and use Oracle in Docker as an exercise.
Search Oracle Database mirroring files using the sudo docker search Oracle command, where a related mirror has
Show all employee names in lowercase to show the names of all employees in uppercase format. Displays the name of the employee who is exactly 5 characters. Displays the first three characters of all employee names. Displays the names of all
Table size with two meanings in OracleOne is the amount of physical space allocated to a table, regardless of whether space is used or not. You can get the number of bytes in this query:Select Segment_name, bytesFrom User_segmentswhere segment_type =
To introduce the character function first:Case Related:1.
Select lower (' Hellow '), Upper (' Hehhlo '), Initcap (' Oello ') from
dual;--dual empty table.
Results:
Hellow Hehhlo Oello
and Case Independent:1.
SELECT trim (' h ' from ' hellowhh '),
Sequence: A database object provided by Oacle to produce a series of unique digits.
L provide a unique numeric value automatically
L Shared objects
L primarily used to provide primary key values
L Loading sequence values into memory can improve
Download the appropriate version via Oracle's official website: http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc14-dversion=10.2.0.1.0-dpackaging=jar-dfile=
Create directory gives us the flexibility to read and write files in an Oracle database, greatly improving the ease of use and scalability of Oracle. The syntax is: CREATE [OR REPLACE] Directory directory as ' pathname '; This case is specifically
2 transaction isolation levels supported by Oracle Read committed and Serializable
The Read committed is the default isolation level.
Isolation levels (Isolation level)
The isolation level defines the degree of isolation between transactions and
Advantages:
1. Precompiled, optimized, and highly efficient. Avoids the inefficiency of SQL statements being transmitted over the network and then interpreted.2. If the company has a dedicated DBA, the write stored procedure can be done by the
Function: The application of the corresponding SQL statements, can be convenient and quick query Oracle database specified users of all user table description, quickly know what each data table is to do, easy to write documents and
Oracle function gets Chinese Pinyin first letter
/*------Increase: yl--*/
Use of Nlssort functions in Oracle
Nlssort (), used for language sorting
Pinyin
SELECT * from Team orders by Nlssort (sort field name, ' Nls_sort = Schinese_pinyin_m
Author: eygle
Source: Http://www.eygle.com/blog
Date: October 27, 2005
This article link: http://www.eygle.com/archives/2005/10/oracle_howto_kill_session.html
«why my server down? | Blog Home | Oracle HowTo: How to start and close oem» in
DML (Data Manipulation Language): Used to retrieve or modify data.
DML includes: SELECT: for retrieving data;
INSERT: For adding data to the database;
UPDATE: Used to modify existing data from the database
Delete: Used to delete data from the
Oracle Archive mode and non-archive mode Setup
Oracle's Log archive model effectively protects against instance and disk failures, is essential in database failure recovery, and needs to be set to archive mode as the Oracle initial installation mode
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
The original project is Ssh+sql Server2005, now move the system to the oracle11g, is going to generate database tables, the results start Tomcat Server, the console error, some tables can not be created, the wrong message is as follows: 16:23:24,896
For SQL spool data, it is best to define the format yourself to facilitate direct import of the program, SQL statements such as:Select Taskindex| | | | commonindex| | | | tasktype| | | | To_number (To_char (sysdate, ' YYYYMMDD ')) from
Oracle Date Conversion
Conversion functions
The biggest relationship with date operations is two conversion functions: To_date (), To_char ()
The to_date () action converts a character type to a date type in a certain format:
Specific usage: to_date
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