A variety of ways to remove duplicate data on the Web are not seen in this way:
DELETE from Prod_grid_inc
WHERE ROWID in (SELECT B.row_id2
From (SELECT ROWID Row_id2,
A.*,
Row_number () over (PARTITION by a.prod_id ORDER by A.insert_date DESC)
Oracle databases should be both familiar and unfamiliar to our auditors, familiar with the fact that in computer-assisted audits, it is often necessary to export data from an Oracle database in an audited unit and then import it into your computer's
I. Structure of the database
Second, Oracle memory structure
III. structure of the process
1. User process: Start when the database user requests to connect to the Oracle server
2. Server process: You can
The following is a detailed analysis of the use of DBMS_METADATA.GET_DDL in Oracle, the need for friends under the reference
DBMS_METADATA.GET_DDL () is used to get the DDL for the object, as follows. Note: In Sqlplus, to better demonstrate the DDL,
Using Pl/sql developer to enter the user name and password when logging in to the Scott user, it is wrong to ora-28000:the the solution of the account is locked-.
Solutions
Method One
1 Access with login with Admin ID
2 View the Users node of
In peacetime development, we often encounter data tables in the duplication of data, then how to solve it? Here are two cases of data-weight method, one, complete duplication of data to weight, two, part of the field data duplication to heavy.
A
Oracle can be equipped with more than one database, and only need to open a listener on it, for multiple databases as long as the appropriate service name can be configured to connect.
I'm using Oracle 8.1.7 Enterprise edition,os is Windows Server,
One of the best features of Oracle 10g is the consultant Framework (Advisory framework), a collection of tuning consultants that can help you make the most of your database. One of the consultants,--sql Access Advisor (Access Advisor), recommends
A lot of friends only use the Oracle deletion, but in many cases, he will find the reinstall, point to the next installation of the interface disappeared, often reluctantly had to reload the system, in fact, only your database did not delete clean,
1.TRUNC (for dates)
The date value that the Trunc function truncates for the specified element.
Its specific syntax format is as follows:
TRUNC (Date[,fmt])
which
Date value
FMT the date format, which is truncated by the specified element
When writing a stored procedure in Oracle, a large SQL statement is sometimes used, but when viewed with the Pl/sql tool test you cannot see the SQL, and the discovery can be handled through an Oracle physical temporary table.
Add
We all know that the index can improve the rate of elimination of the ranking, but the actual use of the situation is often abused, not only waste resources, but also the index has a negative effect. Often people are not aware of such errors,
Many users in a database instance of the Redo01~03.log three redo log deleted, there will be no normal landing database phenomenon, the following example is the specific recovery process, hoping to solve the problem for everyone:
One:
c:/>sqlplus /
1. The following statements are used to query which objects are locked:
The code is as follows
Select object_name,machine,s.sid,s.serial#From V$locked_object l,dba_objects O, v$session swhere l.object_id = o.object_id
Prefix nature:The prefix of a composite index is that the index is used only if the first field of the composite index appears in the predicate condition of the SQL statement.If the composite index is (ename,job,mgr), you can use a composite index
--The date data type is still obtained after interceptionSelect Trunc (sysdate) from dual;--2017-03-13 00:00:00Select Trunc (sysdate+1) from dual;--2017-03-14 00:00:00 plus one daySelect Trunc (sysdate, ' yyyy ') from dual;--2017-01-01
Use Plsql to create a user and authorize (graphical interface)
Log in to the database with the SYS user (or have DBA authority [not yet know the exact difference, but can use])
Locate users in the list of objects on the left, right-click
Tool: PlsqlSteps:Log in to Plsql, open the table, then click Tools--Export user objects, select the exported content to specify the export location, OK650) this.width=650; "src="
Index Establishment Principles
Determine whether the operation against the table is a large number of query operations or a large number of additions and deletions.
Try to build an index to help a particular query. Check your own SQL
1. Write the program to list the required columns than direct write select * More intuitive. In this way, the performance of row data retrieval is the same, and the performance of column data retrieval is improved; When you select the required
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