Summary of Small and Medium-sized ORACLE production tools, oracle practice

Source: Internet
Author: User

Summary of Small and Medium-sized ORACLE production tools, oracle practice

In daily production, data sources are often diverse. Let's talk about the amount of data in excel today, because many development languages now support exporting data to excel, however, some nonstandard practices may lead to the generation of unrecognized special characters? When special characters appear in the string, the actual audio is not great, but when special characters appear in the numeric field, this will affect the actual production. In this case, it will be very difficult to identify the special characters, because we cannot identify the specific characters, so we need to change our thinking, find out the standard data, and then use the universal data set out the standard data set. The rest is the data set that contains special characters. How can we find the standard data? It seems very difficult, it seems that there is a function that can solve the problem through regular expressions. Haha, it is really feasible and decisive. The specific usage method is as follows: select * from value_data p where p. line_num not in (select t. line_num from value_data t where REGEXP_LIKE (t. sale_num, '(^ [+-]? \ D {0 ,}\.? \ D {0 ,}$ )'))

In daily production, database sessions deadlocks may also occur due to improper design or operation. At this time, the database will wait, at this time, the competition between database sessions will seriously affect the actual business processing. Therefore, you must close the deadlock session quickly and accurately,

Select sess. sid,
Sess. serial #,
Lo. oracle_username,
Lo. OS _user_name,
Ao. object_name,
Lo. locked_mode
From v $ locked_object lo,
Dba_objects ao,
V $ session sess
Where ao. object_id = lo. object_id and lo. session_id = sess. sid;

Alter system kill session '46, 53 ';

With the above two operations, you can quickly and accurately close the deadlock session.

Database paging, which should be used by everyone. Record it. select * from (select rownum no, t. line_num, t. ven_cust from value_data t) where no> 1 and no <11

Related Article

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.