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
1. operating system authentication (the user must belong to the ora_dba group and the connection is secure (see D: \ oracle \ product \ 10.2.0 \ db_1 \ Network \ admin \ sqlnet. does this row exist in the ora file: sqlnet. authentication_services =
PL/SQL does not use arrays. Its set data types are similar to those of arrays. In versions earlier than 7.3, there was only one set, called PL/SQL tables. After that, there were two sets of data types: Nested tables and varray. The number of
-- 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
Correspondence between access, SQL Server, and Oracle Data Types
The table below shows the ADO data type mapping between access, SQL Server, and Oracle:
Datatype Enum
Value
Access
Sqlserver
Oracle
Adbigint
20
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.
Original is located in: http://www.itpub.net/viewthread.php? Tid = 610297 & extra = page % 3D2% 26amp % 3 Bfilter % 3 Ddigest & page = 2
Splits 'a | B | C' stringABC
Create or replace function f_test (var_str in string) return t_ret_table isVar_out
Reprinted from: http://publish.it168.com/2005/1215/20051215001701.shtml
(1) OracleServiceSIDDatabase Service, which automatically starts and stops the database. If a database is installed, its default start type is automatic. The service process is
Document directory
Nvl () function
Recently, the company is working on Oracle database-related products. Here is a summary:
ISNULL () function
SyntaxISNULL (check_expression, replacement_value)Parameters Check_expressionWhether the expression
Oracle has a wide variety of hint types, which can be roughly divided into the following categories:Optimization methods and objectives: such as RULE, CHOOSE, FIRST_ROWS, and ALL_ROWS.Access path: such as INDEX, FULL, CLUSTER, and INDEX_FFS.Query
Translation and sorting: Liu Xiaotao time:
Abstract:This article describes the tablespace (the primary logical database structure of the Oracle database) and physical data files corresponding to each tablespace. For the convenience of introduction,
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:
This article will explain to you the Latch mechanism of Oracle. Latch is a plug-in for Kingsoft translation, locking and a specialized term called Latch. When I started to contact Oracle, I didn't quite understand why I didn't write Lock, aren't
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
Part 2: ORACLE Architecture[Q] which data types are available in ORACLE?[A] common data types include CHAR fixed-length character fields. The maximum length can be up to 2000 bytes. NCHAR multi-byte character sets have fixed-length character fields.
43.Use WHEREReplace ORDER
The order by clause only uses indexes under two strict conditions.
All columns in order by must be included in the same index and maintained in the ORDER of the index.
All columns in order by must be defined as non-empty.
Oracle uses the following command line in windows:Net startOracleserviceorcl // start the ORACLE service [oracleserviceorcl is the actual service name]Net stopOracleserviceorcl // stop the ORACLE serviceNet startOracleoradb10g_home1tnslistener //
Oracle's imp/exp component is a common tool. One of its operational principles is
Backward compatibility. The following are the usage rules and related tests summarized as follows:
Rule 1: earlier versions of exp/imp can be connected to database
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