Despite repeated caution, there is a human error deleting the database file. Simple steps, perhaps the key moment can be a big help.Environment: CENTOS 6.5Analog error Operation: The database is in normal operation, the manual direct RM dropped the data file. --1. Test environment Situation: $ Cat/etc/redhat-releasecentos Release 6.5 (Final) select file_name from dba_data_files;/u01/app/oracle/ oradata/orcl
ORACLE application optimization: Please avoid SQL processing in a large number of cyclic logic, oracle Optimization
I encountered a case a while ago: a colleague said that a previously running package was suddenly much slower than before and the execution time was very long, in the evening, the job calls this package and does not run
different parallel processing methods. What is the real difference between them? Www.Chinaz.com
Parallel access problems
There are several problems with parallel access. In the simplest case, more than one user may query the same data at the same time. In this case, the database operation goal is very simple: to provide users with fast data access as much as possible. This is not a problem for our comm
the return value VAR salary number; exec:salary:=get_sal (7369); PRINT salary; Mode two: Call function directly in SQL statement SELECT get_sal (7369) from DUAL; way three: Use Dbms_output call function SET serveroutput on EXEC Dbms_output.put_line (' Wages are: ' | | get_sal (7369));Delete functions drop function get_sal;
Create a PackageA package is a PL/SQL structure that can store related o
static form? Instead of dynamic god analysis associated with the actual system and data? I remember one year I attended a database technology conference. I was shocked by the speech of a foreign performance optimization master. His speech focused on the correlation between performance optimization and application data. Throughout the speech, he did not show an SQL
Microsoft (China) Co., Ltd. announces: March 2001, Microsoft SQL Server 2000 continuously obtains three in the United States
Awards, highly scalable data warehousing, business intelligence features are recognized; April 2001 Microsoft SQL Server 2000
The industry edition and Windows Datacenter Server have shown the latest in a series of industrial tests, includin
can create three procedures, each using dynamic SQL, to achieve:Process one:Create or replace procedure create_table asBeginExecute immediate ' CREATE TABLE emp (ID number,name varchar2 (Ten), salary number;) '; --Dynamic SQL for DDL statementsINSERT into EMP values (+, ' Jacky ', 5600);INSERT into EMP values (101, ' Rose ', 3000);INSERT INTO EMP values (102, ' John ', 4500);End create_table;Process two:Cr
Oracle queries and compiles data dictionaries, and oracle compiles dictionaries
If you need to write a data dictionary during project delivery, you can use the following method to first run a line-by-line SQL statement.
Select. TABLE_NAME AS table name,. COLUMN_NAME AS fiel
Oracle local management comparison data dictionary management tablespace, oracle dictionary
Locally vs. Dictionary Managed Tablespaces
Organized from: http://www.orafaq.com/node/3.
When Oracleallocates space to a segment (like a table or index), a group of contiguousfree blocks, called an extent, is added to the segment. metadata regardingextent allocation and u
growth note-chasing DBA (3): importing and exporting data on antiques becomes a problem
Blue growth note-chasing DBA (4): recalling the sorrow of teenagers, and exploring oracle Installation (10g and 11g in Linux)
Blue growth note-chasing DBA (5): Not talking about technology or business, annoying Application Systems
Blue growth note-chasing DBA (6): doing things and being human: Small technology, great hu
Oracle uses AWR's SQL ordered by Gets and SQL ordered by Reads to diagnose problems
I have read many database reports before, and have encountered two serious performance problems recently. They are very representative, so I recorded them.
Once, the Oracle process is reported to get the CPU of the database server to 10
Oracle Performance Analysis 1: Enabling SQL tracking and obtaining trace files when Oracle queries encounter efficiency problems, we often need to understand the problem so as to provide solutions to the problem. Oracle provides the trace information for SQL Execution, inclu
Oracle SQL Language DDL and Object Management-beyond OCP proficient in Oracle Video tutorial training 27This course introduces:Oracle Video tutorial, wind Brother this set of Oracle Tutorial training is the Oracle SQL language DDL
triggersA. Enabling and disabling triggers: When to prohibit: Prohibit data import and exportsql> ALTER TRIGGER aiu_itemfile DISABLE;sql> ALTER TRIGGER aiu_itemfile ENABLE;B. recompiling a trigger: After a database object has changedC. Deleting a triggersql> DROP TRIGGER Aiu_itemfile;19. Triggers and stored proceduresTrigger Stored proceduresWrite no parameter, return value has parameter, return value (par
Tags: also sysdba DDR ext semantics not--data returnWe all know that every SQL statement in Oracle needs to be parsed before it executes, where it is divided into soft parsing and hard parsing. There are two types of SQL statements in Oracle, one for DDL statements (
, you only need to specify "nocycle" to perform any query operation. There is also a pseudo column related to this keyword -- connect_by_iscycle,If the content of a Father's Day point is referenced in the current row and a loop occurs in the tree, "1" is displayed in the pseudo column of the row; otherwise, "0" is displayed ".
The start with .. connect by clause can be used to select data that has a hierarchical relationship(Usually some sort of paren
database as described below, and manually spread these changes to the slave database.
Torename the datafile in the primary database, take the tablespace offline:1. Rename the data file in the master database and take the tablespace offline first:SQL> ALTER TABLESPACE tbs_4 OFFLINE;
Exit from the SQL prompt and issue an operating system command, such as the following UNIXmvCommand, to rename the datafile
SQL optimization should be adjusted from five aspects:1. Remove unnecessary full table scans for large tables2. cache full table scan for small tables3. Verify the use of optimized Indexes4. Verify the optimized Connection Technology5. minimize the Cost of the Execution Plan
SQL statement:Is the only way to operate databases (data;70% ~ 90% of database resources;
either succeed or fail
B. Transaction Features: ACID: atomicity, consistency, isolation, and permanent persistence
C. Transaction Control Process
Start transaction
The first SQL statement is automatically executed.
Execute SQL
Multiple SQL statements may be executed.
Submit or roll back
Commit or rollback
D. the concept of a lock: A lock is a mechanism used by a
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.