Environment: Oracle10g, Red Hat 4, Oracle running in archive mode.
Simulation Scenario: The user01.dbf data file is corrupted, and the database recovery is disabled.
Procedure:
1. perform a full-database cold backup to back up control files, data
Using oracle control files to store large amounts of data into the database is much more efficient than SQL script files.A m data file, the ctl file is stored in about 20 mins, and the SQL script file takes about 2 hours. To use the ctl control file,
SQL> connect user name/Password
02 (successful, the connection is displayed .)
03
04/****** modify the http service port ******/
05 SQL> call dbms_xdb.cfg_update (updateXML (dbms_xdb.get _get (),
1) SQL * Plus login. SQL File
When you use SQL * PLUS to log on, SQL * PLUS reads and executes the script in the following order:
· $ Oracle_home/sqlplus/admin/glogin. SQL
· Login. SQL in the current directory, or set an environment variable
In Oracle, four file system mechanisms can be used to store data. (A database may contain all the following types of files)
· "Cooked" operating system (OS) File System
These files are stored in the OS file system. You can use the OS tool to
The alert file is located in the directory specified by the BACKGROUND_DUMP_DEST parameter and is named alert _ . log.
In addition, after 11 GB, the warning file also generates an xml version, which is located in the directory specified by
When PL/SQL developer is used to develop oracle stored procedures, a very confusing problem is that the stored procedures can be compiled after compilation, that is, there are errors after compilation, there is a small Red Cross in the name of
Two concepts are explained first:· Consistent read: the row to be modified is the Consistent read.· Current read: Get the block to actually update the row to be modified. The obtained result is the Current read.The tkprof report shows the
Oracle 10g installation documentation
OS: rhel5.4
Author: Lvan
Date: 2011/10/29
After reading many documents, I will summarize them after installation. It should be useful for beginners.
1. Check the installation environment
Binutils
Segments are the database objects that occupy the storage space. Each object that occupies the storage space is stored in a segment, such as tables, indexes, and rollback segments.
Segment type
1) Table segment
2) table partition or
SQL * LOADER is a data loading tool for ORACLE. It is usually used to migrate operating system files to ORACLE databases.
SQL * LOADER is large data
Repository selection method, because it provides the fastest way (DIRECT, PARALLEL ). Now, let's
Learning must follow the gradual rules. Otherwise, you will find that learning is getting harder and harder, because the previous basics do not understand.
You must learn how to create tables in basic oracle learning. But before creating a table,
Output query content to text
Set echo off pagesize 0 heading off feedback off termout off
Spool test. SQL
Select count (*) from user_tables;
Spool off
After the preceding script is executed, the query content is output to test. SQL.
The set
R & D colleagues said the database error during table creation: ORA-1536
[Oracle @ localhost ~] $ Oerr ora 1, 1536
01536,000 00, "space quota exceededfor tablespace '% S '"
// * Cause: The space quota for the segment owner in the tablespace has
/
ORACLE cursor Traversal
-- Created on 2011-10-9 by HUCHANGKUN declare -- Local variables here CURSOR C_EVENT is select t. eventname from T_Event t; temp T_Event.EVENTNAME % TYPE; begin -- for traversal cursor for temp in C_EVENT Loop dbms_output.put_
After a SQL statement is used to add a partition filter condition, the cost increases by adding a filter condition to the query Partition Table in 10.2.0.1.0. The cost increases, because this is an oracle bug. Let's test it below:
SQL> select * from
Oracle table common query Experiment (2) Common query experiment of Oracle table (1) http://www.bkjia.com/database/201309/242198.html
1. query the total names of all employees, SAL and COMM. Select ename, sal + nvl (comm, 0) "sal-and-comm" from emp;
After oracle modifies the character set, the database cannot be started to solve the recently modified character set experiment. The tragedy is that the database cannot be started after the modification.
SQL> alter system set nls_language =
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