1. Create a new tablespace newspaces (original tablespace oldspaces)2. Export data from the original tablespace (TEST.DMP), then import the previously exported data (TEST.DMP) in the new tablespace, and select Import from user to user3. Execute the
To view the execution status:Select the code to press F5 directly, or click Tools===>>explain PlanI. Considerations for indexing:Indexes are useful when any single query retrieves less than or equal to 10% of the total number of rows in the table.
First, create a userCreate User by Password -- username The name of the user created -- Password The password of the user createdSecond, assign permissionGrant to username -- username The user name to be assigned permission -- grant permissions to
First, the table space is described as followstemporary table Space : is in the large data volume sorting, the group operation is used, normal these are done in memory, but in the case of big data processing, memory is not enough to use the
REGEXP_SUBSTR Functions in OracleInstructions for using the REGEXP_SUBSTR function in Oracle:The topics are as follows:In Oracle, a statement is used to implement the ' 17,20,23 ' split into a collection of ' 17 ', ' 20 ', ' 23 '.The REGEXP_SUBSTR
1. According to rowID to divideSelect* fromT_xiaoxiwhererowIDinch(SelectRid from(SelectRowNum Rn,rid from(SelectrowID rid,cid fromt_xiaoxi ORDER BY cid Desc)whererownum10000)whereRn>9980) Order BY cid Desc; execution time 0.03 seconds2. By analysis
Create tablespace user1 datefile "size 20M//creating a table space named User1Autoextend scalability of on//data filesAutoextend off//offAutoextend on next 5m//Specify the growth range of the data fileAutoextend on next 5m maxsize 500MTo see if the
SetLinesize -SetPageSize $columnblocker format A10columnblockee format A10columnblocker_sql format A30columnblockee_sql format A30columnblocker_machine format A30columnblocker_program format A30columnblocker_event format A30columnblockee_machine
SELECT a.ID, B.iddFrom A, BWHERE a.ID (+) =b.iddEquivalent toSELECT a.ID, B.iddFrom A right OUTER JOIN B on (A.id=b.idd)Sql> select * from A; ID VAL---------- ---------- 1 A1 2 A2Sql> select * from B; IDD
1. Create a TriggerCreate or Replace Trigger trigger_name_xxxAfter delete or update or insertOn table_name_yyy for each row[Declare var_name_zzz TYPE_NAME_TTT;]BeginIf Delete Then.....;End If;If Update then.....;End If;If Insert Then.....;End If;End2
TermsFull database backup: Includes all data files and at least one control file (remember that all control files in the database are the same)Partial database backup: May include 0 or more tablespace, 0 or more data files, may or may not include
IT Ninja Turtles OracleDBA common query Enumeration
-1. query all objects in the systemSelect owner, object_name, object_type, created, last_ddl_time, timestamp, statusFrom dba_objectsWhere owner = upper ('Scott ')
-2. view all tables in the
Oracle Database Backup Recovery, inspection object settings and related recovery Overview
Database backup and recovery, inspection needs to pay attention to the object settings:
1. database Name and DBID; -- dbid is in v $ databaseSYS @ ORCL> select
IT Ninja Turtles oracleconnectby usage Review
First use the emp table of scott.The emp table has one field: empno (employee ID) and mgr (Superior manager ID)Below are all the data in the table
1
select *from emp start with
Oracle11g RAC enable and disable, set archiving summary, oracle11grac
Close
1. First shut down the database:Copy codeThe Code is as follows:[Oracle @ oeltan1 ~] $ Srvctl stop database-d tantest2. Disable the crs service again.[Copy codeThe Code is
Oracle backup terminology
Terms
Full database backup: includes all data files and at least one control file (remember that all control files in the database are the same)
Partial database backup: It may include zero or multiple tablespaces, zero or
Introduction to Oracle instance recovery and flashback
Instance recovery phase:1. data files are not synchronized
2. Roll Forward (redo)3. submitted and unsubmitted data in the file
4. Open the database
5. Roll Back (Restore undo)
6. submit data in
Oracle Performance Analysis 7: Use of Indexes
This section describes how to use indexes. First, it describes how to avoid using indexes in queries, then how to determine whether the optimizer uses indexes, and how to forcibly use indexes, finally,
Overview of Oracle Architecture
This document describes the architecture of oracle from the Internet.
1 oracle databases mainly consist of data file databases and database instance instances. The User links to the server process through the
Oracle Memory Structure
The memory structure of Oracle is divided into SGA and PGA. SGA is dynamically allocated. It is configured by the sga_max_size parameter and allocated when the oracle database instance is started, share an SGA for all session
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.