Connection sqlplus not like MySQL can turn history, by installing Rlwrap1, installation rlwrap-0.37.tar.gzTar zxvf rlwrap-0.37.tar.gzCD rlwrap-0.37./configure#yum List|grep termcap#yum List|grep ReadLine#yum-y Install libtermcap-devel readline-devel.
--like fuzzy Query, wildcard: '% ' means substituting one or more characters, ' _ ' in place of one characterSELECT * from v_test where v_name like ' _bce% ';Escape character: You can escape a wildcard ('% ', ' _ ') as a character, rather than the
I. Getting Started with SQL PlusSql*plus is one of the most commonly used tools, with strong features, mainly:1. Database maintenance, such as startup, shutdown, etc., which is generally operated on the server.2. Execute the SQL statement to execute/
Group by Enhancement sql> Select Deptno,job,sum (SAL) from the EMP Group by deptno,jobsql> +sql> Select Deptno,sum (SAL) from EMP GROUP BY deptnosql> +sql> Select sum (sal) from empsql> sql> ===sql> sql> Select Deptno,job,sum (SAL) fro M EMP GROUP
--View all deleted tablesSELECT * from Dba_recyclebin where droptime > ' 2017-04-11:12:00:00 '--Restore a single tableFLASHBACK TABLE HT_BM to before DROP;--Batch recovery, login with sqlplus, use commandSpool D:/flashback.sql;Select ' Flashback
As mentioned on the phone, OracleThe internal optimizer is based on a series of internalThe algorithm is based on statistical information on the table to generateThe line plan. For a particularly complex SQL languageOracle's optimizer has a chance
1.Link CommandConnection command:Connsql>Conn system/manager; connect the system user with the password manager Disconnect command:discsql>Disc SystemChange Password command:passwordsql>Password System/manager;Then enter the old password before
Tag: Create table operation query value Val where Rtu err catDual is a virtual table that makes up the syntax rules for SELECT, and Oracle guarantees that there will always be only one record in dual. We can use it to do a lot of things, as follows:1
It is too slow to update the data with a cursor, and after a series of queries in the same table is deleted, the insertions are likely to be overloaded, so it is important to process the data in batches, and here are some of the functional
First, Parallel1. UseForcibly enables parallelism to execute the current SQL. This version can be used after Oracle 9i, and the previous version does not have an environment to test now. That said, with this description, you can forcibly enable the
SGA (System global Area), a share of the shared memory area that is shared by some of the associated processes of Oracle, is allocated in memory. such as Dbwn,pmon.The SGA is divided into the following components:1. Cache area2. Redo Log Buffers3.
Oracle recursive queries (single table with multilevel hierarchy)Http://www.cnblogs.com/walk-the-Line/p/4882866.html-- Find all child nodes under all first layers (including) select m.*,level from with='1' by = m.parent;Oracle Connect by usageHttp:
Method/Step
First, you should make sure that you have a server that has Oracle installed. And this server is on the same network as the computer that is connecting it (in general, in a local area network, if the server is in the public
1. IntroductionProcedures are used to perform specific operations, when the process is established, you can specify either an input parameter (in) or an output parameter (out), you can pass the data to the execution section by using the input
--Grade ranking tabledrop table GraderecordCREATE TABLE Graderecord (Sno VARCHAR2 (10),Sname varchar2 (20),Dormitory VARCHAR2 (5),Grade int)Partition by range (grade) (Partition Bujige values less than (60),Partition Jige values less than
(1)Alter system set log_archive_dest_n= ' location=d:\ an existing directory '; ----expectedHowever, if "D:\ an existing directory" is not a valid directory, then "d:\ an existing directory" will be archived to the D packing directory, "an existing
Before thought is the system reason, has made the reload system t^t because listens many schoolmates to say that Oracle some difficult to install, did not find the main reason to start reloading, this is really a waste of time.Baidu reason, if in
Method One:Sql> explain plan for select name from a A, where a.id=b.id; Sql> select * FROM table (Dbms_xplan. DISPLAY);Method Two:Sql> set autotrace on explain; Open execution plan sql> select name from a, b where a.id=b.id;When you are finished,
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