Oracle's use of the SUBSTR functionGets a string that specifies the starting position and length of the string substr (string, start_position,[length] )Such as:SUBSTR ('This is a test', 6, 2) wouldreturn ' is'SUBSTR ('This is a test', 6) wouldreturn
----1.createandloadfromoraquery command and open 6 threadsCommand>createandloadfromoraquery scott.t1 6 SELECT * from SCOTT.T1;----2. Complete data import with built-in commandsCommand>call tttableschemafromoraqueryget (' Scott ', ' T1 ', ' SELECT *
Stream is an extended application of Oracle's Message Queuing (also known as Oracle Advanced Queue) technology. Oracle's Message Queuing addresses event management through a publish/subscribe approach. Stream replication is just a data sharing
Problem environmentfp:precise901+oracle11gAgent:oracle Linux Server Release 6.4, oracle11g (RAC)Problem descriptionPatrol found precise agent instance 2 monitoring failed to collect dataVerify error: Error in collector startupAnalysis process1,
Oracle automatically acquires row and table locks for DML operations, and the type of operation determines the behavior of the lock, which summarizes the situation of the DML operation Lock:
SQL Statement
Row Locks
Table
SQL statements that are paged and sorted in Oracle using RowNumPreviously, paging was used to use such SQL statements: select* from (selectt.*,rownum row_num from mytable t order byt.id) b whereb.row_num between 1 and10 It is found that because the
Today, when the project starts to access a database, it appearsORA-12505, Tns:listener does not currently know of SID given in Connect Desc.Look back, my database is configured as:Driverclassname=oracle.jdbc.driver.oracledriverurl=jdbc:oracle:thin:@1
1.OverviewOracle "CONNECT by" is a hierarchical query clause that is typically used for queries in tree or hierarchical result sets2. How to use 2.1. Via Connect byGenerating SequencesOracle constructs the number of days in a monthSelectTo_date ('200
When the amount of data in the table is increasing, the query data slows down and the performance of the application degrades, so you should consider partitioning the table. After the table is partitioned, the logical table is still a complete table,
Oracle does not lock data if only select is used in Oracle. When the data is being modified by another process, the results obtained by using Select are not up to date.This requires a for update, and when Oracle finds that a record that satisfies
For complex where condition combinations, where contains multiple indexed fields, consider the use of if statements to discuss the situation;At the same time, remove unnecessary external parameter conditions, reduce complexity, in order to use
In the Oracle default installation, a Scott user has been created with the default password: Tiger, which has four tables:Employee table (EMP), departmental table (DEPT), Payroll registration form and bonus table. Many of the next operations are
Troubleshooting of SQL plus logon failures caused by su switching in OracleProblem description:The oracle database in the production environment suddenly fails to log on, and the oracle database in the rlwrap production environment suddenly fails to
OracleRAC cluster SCAN description
1 SCAN Overview
Some netizens posted a message on my Blog saying that I didn't write SCAN configuration in my RAC setup. This was supposed to have been written before, But I just searched for it and did not
Oracle Advanced Query
1. eliminate duplicate rowsIf several rows are the same in the Oracle query results, you can use DISTINCT to remove duplicate rows.
Code Demonstration: Remove duplicate rows in DISTINCT
SQL> SELECT DISTINCT DEPTNO FROM EMP;
How to detach an oracle11g Client
1. Disable oracle service: Go to computer management. In the service, find all services starting with oracle, right-click and choose stop.
2. In the Start Menu, find the Universal Installer, run Oracle Universal
Oracle & #160; 11 & #160; password set to never expireFollow these steps:1. Check the user's proifle, which is generally default:SQL> SELECT username, PROFILE FROM dba_users;2. view the password validity period settings of the specified profile
Trigger 4 (learning notes), trigger learning notesREFERENCING clause:Use ": new. field "or": old. if the field is not clearly marked, you can use the REFERENCING clause to set the alias for the two identifiers. For example, you can set ": new" to
Join Operation (learning notes) and Join Operation learning notes
There are two connection operations for data tables in the database:
Internal Connection:It is also said that the condition for equi join to eliminate Cartesian Product in where is
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