Although the ORM mapping is used in the project, the optimization of the Oracle system is very valuable, and here is a summary of the frequently used statements from the perspective of the SQL statement.1. Optimizations in the From field:Oracle
Specifically tested under Windows R2 under the Oracle 11g, Service Manager database service, ORACLESERVICE+SID service: Start service =startup; stop service =shutdown immediate; Restart service = Shutdown immediate, then startup; If the Oracle.exe
These terms in the predicate information sections indicate when the data source is reduced. Simply, access means only retrieve those records meeting the condition and ignore others. Filter means AfterYou already got the data, go through them all and
Like after% position does not go index problemcreate table t2 as select * from dba_objects;——创建表create index idx_t2_name on t2(object_name);——创建索引set autotrace on ——开启执行计划跟踪select * from t2 where object_name like ‘DE%‘;——走索引select * from t2 where
--create triggers and action examplesCreate or Replace TriggerTribeforeDelete onEMP--What needs to be done before deleting the EMP table data is written according to your own business, before is done before, after is what to do afterDeclareT_result
First, IntroductionIn Oracle, start with connect by (prior) is used to query the data of the tree structure. Where start with Conditon gives the data search scope, the condition of the recursive query is given by the connect by, and the prior
First, the principle
Cold backup
The process of completing all physical system file copies in a closed state, also known as offline backupSuitable for non-archive mode, the database is in a consistent state
StepsStart
First, the principle
Cold backup
The process of completing all physical system file copies in a closed state, also known as offline backupSuitable for non-archive mode, the database is in a consistent state
StepsStart
ORA-12514 TNS: listener does not currently know of service requested in connect descriptor solution,
Step 1:
Query the database service name in the database
Select value from v $ parameter where name = 'service _ names'
Step 2:
Port is the
Mybatis foreach batch data insertion: difference between Oracle and MySQL, mybatisforeachThe main difference lies in the setting of the separator attribute in the foreach label:
When separator is set to ",", the final code format of the
How can I solve the problem that Navicat cannot connect to Oracle ?, Navicatoracle
When the database connection information is correct, it may be caused by the Navicat oci file. Here is about the problem that Navicat cannot connect to Oracle. For
How can I obtain all the index creation statements in ORACLE ?, Oracle index creation statement
How can I obtain all the index creation statements in ORACLE?
Set pagesize 0
Sets long 90000
Set feedback off
Set echo off
Spool all_index. SQL
SELECT
How can I check whether the oracle database is started in archive mode ?, Oracle Archiving
[1]
1. select name, log_mode from v $ database;
NAME LOG_MODE
------------------------------------------
QUERY NOARCHIVELOG
2. Use the archive log list
Oracle Optimization Methods and Techniques1. Status Quo description
Long SQL Execution time and slow Data Query
2. Problem object
SQL statement execution (especially multi-Table multi-condition association query data)
3. Theoretical knowledge
1.
Solve the problem that Oracle11g cannot export empty tables. oracle11g exports empty tablesORACLE 11g export database file backup using the exp command, it is found that only a part of the table can be exported and no error is prompted, the solution
After the ORACLE11g system is reinstalled, follow the dbf recovery database tutorial, oracle11gdbf
1. install an oracle environment consistent with the original system, including version, data name sid, Instance name, path, and database code
2.
Solution to Oracle user locking
1. log on to and unlock the account with the dba role. First, set the specific time format to view the specific time.
SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24: mi: ss ';
Session altered.
2. view the
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