Oracle indexes are organized and stored in the form of a Balance Tree: stores the value of the index column and a part of the rowid of the row (file number, block number, row number)
The following is an example:
1, Create Table Test (ID int, name
A tablespace can belong to only one database.
Each database must have at least one control file (we recommend that you store three files on different disks)
Each database has at least one tablespace (system tablespace)
The purpose of creating a
This is an operation to export all objects under the user's ebmall to the ebmall. dmp file under the test directory. The recorded log file is ebmall. log.
Expdp xxyy/xxyyp schemas = ebmall directory = test dumpfile = ebmall. dmp logfile = ebmall.
Index plays an important role in Oracle SQL-TUNNING, index is divided into B-TREE index, bitmap Index two categories, but need to emphasize particularly is the index organization table, clustering these two most Special Indexes! Where the most used
1. Set the initialization parameter job_queue_processes.SQL> alter system set job_queue_processes = N; (n> 0)Job_queue_processes: the maximum value is 1000. View the Job Queue background processSQL> select name, description from V $ bgprocess; 2.
--------------------------------------------- Export file for user boss1214 ---- Created by user on, 9:34:30 ---------------------------------------------
Spool str_sum_ SQL .log
PromptPrompt creating type str_sum_objPrompt =PromptCreate or replace
If the processes settings are too large, Oracle cannot be enabled.
ORA-27303: Additional information: Invalid shared CTX
ORA-27146: Post/Wait initialization failed
ORA-27300: OS system dependent operation: semget failed with status: 28
ORA-27301: OS
Use PL/SQL to read and write blob objects
1. Write files to blobSQL> Create Table iihero_blob (FIDIntPrimary Key, fnameVarchar(32), F BLOB );
The table has been created.
SQL> Conn/As sysdbaConnected.SQL> Create or replace directory blobdir as 'd:
Concept of a game subject:A cursor is a memory Workspace of SQL, which is defined by the system or user as a variable. The cursor is used to temporarily store data blocks extracted from the database. In some cases, you need to transfer the data from
String functions:
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;A A zero space-------------------------
42. chartorowidConvert character data type to rowid typeSQL> select rowid, rowidtochar (rowid), ename from Scott. EMP;
Rowid rowidtochar (rowid) ename----------------------------------------------Aaaafkaacaaaaeqaaa SmithAaaafkaacaaaaeqaab
Oracle parameter file (1)In Oracle databases, parameter files contain all database configuration information, which is very important. I think that if you want to manage Oracle well, you must be well aware of the parameters and parameter files.
I. Features of SQL LoaderOracle has many tools for data migration, backup, and recovery. However, each tool has its own characteristics.For example, exp and IMP can be used to export and export data in the database, which is a good tool for database
Common Oracle Import and Export commands
Run this command in "Start Menu> RUN> cmd ".
One-stop data export (exp.exe)
1. Export the database orcl completely, username system, and password accp to the d: \ daochu. dmp file.Exp system/ACCP @ orcl
Environment: ora10g rhel5.8Description: bbed is called data block browsing and editing. Deep Learning of Oracle block and disaster recovery in special circumstances.1. Compile the connection:CD $ ORACLE_HOME/rdbms/libMake-F ins_rdbms.mk $
1. query the records of the row
Select Sal from EMP where rownum = 1; // query the first row of records.
Select Sal from EMP where rownum = 5; // The fifth row record cannot be queried because rownum is always queried from 1, therefore, this
Include the SQL statement in select (...) from dual.
Logic description:
Currency + header opening date associated exchange rate maintenance (original currency code, effective date range), get conversion rate,
Then, the amount is converted to the
Modifying a project involves modifying many tables in Oracle (including adding, deleting fields, and modifying comments ). As no records are recorded at the beginning, the tables that have been modified are missing during the test. Later, I found
There are several startup methods:
1. startup nomount
Non-installation startup. In this mode, you can execute: re-build the control file and re-build the database.
Read the init. ora file and start the instance, that is, start the SGA and
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