How ORACLE gets the execution plan

6 ways to get the execution plan (detailed steps have been explained in the comments section at the beginning of each example):1. Explain plan for acquisition;2. Set autotrace on;3. Statistics_level=all;4. Direct access via Dbms_xplan.display_cursor

Use of Sys_connect_by_path functions in Oracle

In Oracle, the primary function of the Sys_connect_by_path function is to differentiate all child nodes under a parent node by a character, and then connect to display in a single column. Sys_connect_by_path (field name, connection between 2 fields),

Use of Oracle Primary functions

--1. Character functions--upper (String|column) can turn characters into uppercaseSelect Upper (' Helloword ') from dual;Select Upper (ename) from EMP;--lower (String|column) converts the specified string to lowercaseSelect lower (' Helloword ')

Oracle Tuning Memory Size

Set before 11g: Sga_target11g version setup: Memory_target (auto-allocate SGA and PGA size)To view memory current memory size:Sql> Show Parameter SGASql>show parameter Memory_targetStatement:alter system set MEMORY_TARGET=4G Scope=spfile; Restart

Oracle Control files

In Oracle, the control file is the file used when the database is mounted, the control file is lost or corrupted, and the instance crashes, where the parameter file records the location of the control file;After the instance starts to Nomount, if

Oracle database Import and export steps

Database backup (Export):First: Connect DBA database method: Connect database with SYSDBA, user name: sys password: OracleThe first method:Sqlplus/nologConn Sys/[email protected] as SysdbaThe second method:Sqlplus Sys/[email protected] as SysdbaI.

Oracle database--creation and management of tables

I. Related content1. Master the use of OEM tools to create, modify, and delete tables.2. Master the use of SQL statements to create, modify, and delete tables.3. Master the use of SQL statements to insert, modify, and delete data.4. Understand the

Oracle creates table spaces, creates users, and authorizes, views permissions

Create a temporary table spaceCREATE temporary tablespace test_temptempfile ' C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf ' SIZE 32MAUTOEXTEND ONNEXT 32M MAXSIZE 2048MEXTENT MANAGEMENT LOCAL;Create a user table spaceCREATE tablespace

Three main paradigms of Oracle

The database design paradigm is a very important concept, but this important degree is only suitable for reference. Using the database design paradigm, you can make the data table better to save the data, because the reasonable design, if the data

Oracle Encounters deadlock Kill process

Java program Operation database, encounter deadlock: java.sql.sqlexception:ora-00060: Deadlock detected while waiting for resourceSteps to resolve:1. Find the Oralce Object (table) for the deadlock:Select object_name,machine,s.sid,s.serial#From

Oracle sends Mail

1. Create a stored procedure for sending messagesCREATE OR REPLACE PROCEDURE send_mail (p_recipient VARCHAR2,--Mail recipientP_subject VARCHAR2,--Mail headerp_message VARCHAR2--Message body) is--The following four variables should be assigned

2. Oracle Memory structure

The system global Area (SGA), also called the shared global zone. 1. Data buffer (Cache):Used to store data read from a disk data file for all users to share. After the user modifies the data, the modified data is first saved in the database

Oracle Common SQL Time functions

1. Query the current date and timeSelect from dual;2. Check the last day of this monthSelect from dual;3. How many months before and after querySelect add_months (sysdate, from dual;4. Check the specific date of the week of the following week

Data alignment in Oracle

1, to have a unique index or primary key as a precondition, reduce the number of data conflicts, such as the example of red places: 2, when there is in the query, try to use exists, this can improve query efficiency: CREATE TABLE tf_f_user_diff1

Oracle Foundation One

1. StringIt is case-sensitive and should be quoted when used.When specifying aliases, quotation marks can be added or not added.When you have spaces or special characters, you must enclose them in quotation marks.When you do not enclose the

Calculate percentages with Oracle statements

To the company on the first day, there is nothing to do, the manager said today need to make the report, need to write a few Oracle statements, used to query all types of people under themember number and proportion of the total population.

Setting table fields in an Oracle database is an automatic sequence

--Create a sequenceCreateSequence Zonecode_seq Start with 1Increment by 1; --Create a triggerCreate or Replace TriggerZonecode_trigger beforeInsert onorg_hospitalzone_dict forEach rowbegin SelectZonecode_seq.nextval into: New. Hosp_zonecode

Oracle Scheduled cleanup log operations

Below is a description of the Scheduled cleanup archive log file operation under Oracle.Assumption: The archive log is full and the archive log is emptied as follows.First step: Create a Rman_del.txt file under C driveStep two: Do a batch file named:

Google fights Oracle, did not think so dirty!

Oracle and Google have returned to court, a dispute that began in 2010, when Oracle first sued that "Google uses 37 Java APIs (application interfaces) in the Android operating system." The original verdict in the case was in favor of Google, but the

Oracle strange result survey memo, oracle memo

Oracle strange result survey memo, oracle memo Recently, I need to maintain an ASP. Net program developed more than a decade ago. I encountered various strange problems and recorded the following problems that are hard to find:   Question 1: The

Total Pages: 2147 1 .... 2014 2015 2016 2017 2018 .... 2147 Go to: GO

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.