UPDATE
1, the first backup data (security, improve performance).
2, batch update, small batch submission, to prevent the lock table.
3, if the updated automatically indexed, the amount of updated data is very large, the first to cancel the
The content of this article• Software Environment• Simple demonstration of Oracle database concurrency causing row-level locksThis article provides a simple demonstration of row-level locks that are caused by concurrency for table primary keys.
Accidentally heard of the Oracle database snapshot, the word I had a listen to be stunned, do not know what this is, and then spent a little time to study the next, the following is my summary of learning through the network
Snapshots are primarily
The Index organization table (IOT) can store not only the data, but also the indexes established for the table. The data in the Index organization table is arranged according to the order of the primary key, which increases the speed of the access.
Scott user's password is not correct, enter administrator user, modify Scott user password can
or modify the password like this:
In the Run Bar Knock: Sqlplus (space)/nolog carriage return
Then knock in the pop-up box: Conn Sys/password as SYSDBA
SQL statements for querying and deleting duplicate records1, look for redundant records in the table, duplicate records are based on a single field (ID) to judgeSELECT * FROM table where ID in (select Id from table GROUP by ID have count (Id) > 1)
To build an Oracle, there will be many schemas below, and no data under each schema is affected.
Feel and MySQL library concept is very similar, now use the database management system is in fact so divided, MySQL with the ip+port+ library
Select To_char (sysdate, ' yyyy-mm-dd hh24:mi:ss '), To_char (Trunc (sysdate), ' Yyyy-mm-dd Hh24:mi:ss ') from dual T;--sysdate and Trunc (sysdate) are not the same sysdate on the day of zero 0 minutes 0 seconds equals trunc (sysdate) Select Trunc
1. View the top 10 SQL statements with the most total consumed timeSELECT * FROM (select v.sql_id, V.child_number, V.sql_text, V.elapsed_time, V.cpu_time, V.disk_reads, Rank () Over (o Rder by v.elapsed_time Desc) Elapsed_rank from V$sql v) a where
Some points to note about Oracle compatibility with MySQL: To_char: Convert to String type :to_char (1234.5, ' $9999.9 '), result :$1234.5 To_date: Convert to date type :to_date (' 1980-01-01 ', ' yyyy-mm-dd '), result :01-1 month
Oracle Practice Exercises 1.0February 10, 2017 Friday 9:07:221, list the IT industry database types and user distribution2. List some products commonly used by Oracle Company3. Brief description of Oracle database software, databases, instances, and
Cursor (cursor) Concept Introductionis a result set (used when a query or other operation returns multiple results)Define a cursorCursor C1 is a select ename from EMP;To take a value from the cursorOpen cursor:--open C1; (Open cursor execution query)
Oracle's reverse engineering refers to importing databases in Oracle, or, of course, databases in SQL Server into PD, which requires a link to a database and then reverse-engineered operations.First step: Establish a link to the
Create test directories and files on the database host$mkdir/test$CD/test$echo "Test Subject" >> subject.html$echo "Test ok!" >> mail.htmlDefines the file path (which is all on the database host) and authorizes$sqlplus User/[email
Working with Oracle has been a long time, often listening to 10046 of incidents, especially when it comes to SQL tuning. What is the 10046 incident, first of all, a brief introduction.1, what is the 10046 eventThe 10046 event is a tool that Oracle
Oracle sqlplus Export Query ResultsThe results of exporting a query under Sqlplus are saved to a local SQL file, which can be used in the following ways:1. Connect database : sqlplus xmq/[email protected]:1521/DB2, Export SQL Script : set Feedback
Another space caused by the murder was also I met: in the TNSNames. Ora file in a new configuration, the configuration is estimated to be the copy of others directly pasted up, and then found that with PL/SQL connection has been an error, after the
Ylbtech-oracle:oracle simple backup and restore-import and export
Oracle is safe to operate without a good backup and recovery mechanism because we are not DBAs. So we don't talk too much about DBAs ' backup and recovery. As programmer
Directory + 1. Overview of database Security control policies + 2. User Management + 3. Resource Restriction and password management + 4. Rights Management + 5. Role Management + 6. Audit 1. Overview of database Security control policies Security
--Simple conditional judgment if–then--write a procedure that can enter an employee's name and, if the employee's salary is less than 2000, increase the employee's salary by 10%. Create or Replace procedure Sp_pro6 (spname varchar2) is--Define V_sal
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