Improves query efficiency by specifying an index for Oracle queries

One 16 million data table-text message upstream table TBL_SMS_MOStructure:Create table TBL_SMS_MO(SMS_ID NUMBER,MO_ID VARCHAR2 (50 ),MOBILE VARCHAR2 (11 ),SPNUMBER VARCHAR2 (20 ),MESSAGE VARCHAR2 (150 ),TRADE_CODE VARCHAR2 (20 ),LINK_ID VARCHAR2 (50

Oracle 9i restore the deleted table with RMAN

In actual work, developers often accidentally delete an important table. At this time, they will find the Administrator to retrieve the deleted table. The specific scenarios are as follows:1. Developers:SQL> conn usr1/usr1Connected.SQL> create table

Oracle classical query trainer Article 4

This article will discuss and share with you some common classic queries of oracle SQL. You are welcome to add them. You can also share some classic queries. In this article, if you think there is any better solution to every problem, you are

Research on full-text retrieval of Oracle (full 8)

3.9 highlight Not to highlight the content, but to return the position of all hit words in the document and the length of the hit words. In this way, the user obtains the length and offset of the content to be highlighted while obtaining the

Oracle correctly deletes the archivelog File

  Oracle correctly deletes the archivelog File After the archive mode is enabled, Oracle will generate many archivelog files under the specified archive Directory, which is not cleared regularly by default and takes a long time, this folder occupies

Use rownum in Oracle

In Oracle, rownum is the sequence number generated when data is retrieved. Therefore, you must pay attention to the specified rowmun rows of data to be sorted.   SQL> select rownum, id, name from student order by name;   ROWNUM ID NAME   3 200003 Li

ORA-12516 Solution

When the client uses pl/SQL dev to connect to the database, a prompt (dedicated server mode) is displayed during login ).ERROR:ORA-12516: TNS: listener cocould not find available handlerMatching protocolStackWhen modifying the parameters, it is

Oracle number type

NUMBER Type Details:Oracle number datatype Syntax: NUMBER [(precision [, scale])]Short for: precision --> pScale --> s NUMBER (p, s)Range: 1 Data storage range:-1.0e-130 Saved in the machine range: 1 ~ 22 bytes Valid: the number of digits from the

Changing the Oracle11g user password is case insensitive

Connect:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> show parameter sec_case_sensitive_logonNAME TYPE VALUE--------------------------------------

Oracle Character Set and maximum number of connections

1. What is the oracle character set?The Oracle character set is a collection of symbols for the interpretation of byte data. It can be divided into different sizes and have an inclusive relationship. ORACLE supports the national language

Java oracle oci connection

When a Java program connects to the oracle database, the oci driver has better performance than the thin driver. The main difference is that the oracle client does not need to be installed when the thin driver is used, but the oracle client must be

Oracle hands-on series (2)

-------- 9. list all employees whose salaries are higher than the company's average salaries. ----------Select ename from emp where sal> (select avg (sal) from emp );9.1 list all employees whose salaries are higher than the average salaries of their

When Does oracle use the to_date function?

First, let's take A look at the data type. For comparison, use the> =; for comparison, use the to_date function to convert the data type of field B, and specify the format as needed;A LOGON_TIME DATEB KPI_VALUE VARCHAR2 (400)The following are

Case when expression

Case when expression 1. case when expression has two forms -- Simple Case function CASE sex WHEN '1' then' male 'when' 2' then' female 'else' other 'ends -- Case search function CASEWHEN sex = '1' then' male 'When sex = '2' then' female 'else'

Remove duplicate table data from oracle

Oracle removes duplicate table data. During the project process today, duplicate records exist in the Database Table, and duplicate data needs to be removed during display. After half a day, rank () over (partition by grouping field order by sorting

Use dbms_metadata.get_ddl to view DDL statements

Use dbms_metadata.get_ddl to view DDL statements. When you want to view a table or table space DDL, you can use the dbms_metadata.get_ddl package to view the DDL statements. The get_ddl function detailed parameter GET_DDL function in the

Oracle performance optimization (SQL)

Oracle performance optimization (SQL) uses the IN operator as few as possible. Basically, all IN operators can be replaced by EXISTS. You can use not exists or external join + instead of the not in operator. When Oracle executes the IN subquery, it

Spfile and user environment variables and export

Spfile and user environment variables and export RAC database environment variable settings [oracle@rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 31 12:45:01 2012 Copyright (c) 1982, 2005, Oracle. All rights

Oracle operators and null values

There was a problem with the statistics of Oracle operators and null values. The situation is as follows: Select id, name, addr from table where addr <> 'shanghai ';  When this statement is executed, the returned data volume is very small. Then,

How to delete data files accidentally

Delete a data file accidentally. delete a data file in non-archive mode. In order to minimize the risk, force open the database. We first delete a data file, and now open the database [html] SQL> shutdown abort; ORACLE instance shut down. SQL>

Total Pages: 2147 1 .... 1908 1909 1910 1911 1912 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.