1. Date interval operation
Current Time minus 7 minutes
Select sysdate, sysdate-interval '7' minute from dual
Current Time minus 7 hours
Select sysdate-interval '7' hour from dual
Current Time minus 7 days
Select sysdate-interval '7' day
The default location of listener log files in UNIX systems is $ ORACLE_HOME/Network/log.
In Windows, the default location of the listener log file is % ORACLE_HOME %/Network/log.
The server trace file is usually located in % ORACLE_HOME
I. Oracle transaction control:1. A series of operations that constitute a single logical unit of work are called transactions.2. Database Transaction composition:1. 0 ~ Multiple DML statements2. One DDL (Data Define Language) Statement3. One DCL
-- PagingSelect * from (select t1.ename, rownum rn from (select * from emp) t1 where rownum = 6;
-- Develop a packageCreate or replace package tespackageType test_cursor is ref cursor;End tespackage;
-- Paging Stored ProcedureCreate or replace
How to remotely determine
Oracle
DatabaseOf
InstallPlatform
Select * from v $ version;
View table space usage
Select sum (bytes)/(1024*1024) as free_space, tablespace_nameFrom dba_free_spaceGroup by tablespace_name;
Select a. TABLESPACE_NAME, A.
SQL definition: SQL is a general data processing language specification for databases. It can perform the following functions: extract and query data, insert and modify data, and delete data, and generate and modify database objects, database
I. Introduction to adding CSV files to ORACLE
Add data to tables on my ORACLE server.Before proceeding to the final operation, create the text file input. ctl in the directory where prize_vs.csv is located. The content is:Load dataInfile
Rank, dense_rank, row_number, and group ranking partition
Rank
Dense_rank
Row_number: the ranking adopts a unique sequence number continuous value, for example, 1, 2, 4
Partition: Limit the ranking to a group
Format:
Row_number () over (partition
You can create a composite index in Oracle, that is, an index that contains two or more columns at the same time. Oracle has the following features in the use of composite indexes:
1. When a rule-based optimizer (RBO) is used, the index is used only
Below v $ lock. type is 10.1, but most of them should be applicable to versions earlier than 10.1, especially 9.2. Record it for later use.
The following table shows the 138 lock types that are reported by V $ LOCK_TYPE in Oracle 10.1:
PrerequisitesShared memory: shared memory segment:A memory area can be read by different processes. Oracle uses it to form sga. Oracle uses the following three methods to create an sga zone:1. Use a single shared memory segment.2. Use multiple
Oracle9i starts to provide a flashback query so that consistent data at a time point in the past can be found as needed, which is implemented through Undo. This function has a lot of limitations, that is, the undo of related transactions cannot be
4. AccessOracleProcess/function (1)
Stored procedures are often used when SQL Server is used as a program,OracleYou can also use the process or function.OracleThe process does not seem to have a return value, and the function that has a return value
I. In, out, and in out modes
In Oracle, procedures and functions can both have parameters. The parameter type can be specified as in, out, or in out.
The three parameters are described as follows:
(1) in Mode
In mode is passed by reference. During
MySQL and Oracle are familiar to everyone. This article will give them a stress test.
1: Server Environment
Operating System: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
CPU: Intel (R) Xeon (R) CPU E5607 @ 2.27 GHz 8-core
Memory: 16
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