First, OracleOracle Server has Oracle Instace and Oracle Database
Instance is composed of memory structure and background process.
Memory structure includes shared pool, SGA (System Global area).
The SGA includes: Database buffer cache and Redo log
Oracle Database backup:
--Keep the backup record of the most recent week;= = = Text:= = Start ==============
Copy Code code as follows:
Echo Set backup file Folder ...
Set "Tbuf=e:\cway\backup"
echo Sets the backup file name (named
1. Create, configure, or delete databases by running Oracle database Configuration Assistant (You can also enter DBCA at the command line);2. Building a database using a command-line approach3. Create, configure, or delete a database by running a
Therefore, in the daily maintenance of the database, if only two times to encounter ORA-01555 errors, generally ignored, but if you often encounter this error, you need to make some adjustments to avoid the recurrence of this error.
1. Why are ORA-0
The role switching between Data guard master and subordinate libraries is divided into the following two kinds:1) SwitchoverSwithchover are usually artificial and planned for role swaps, such as upgrades. It is usually lossless, that is, there will
The relationship between the tables is more complex, the amount of data is much more, delete absolutely will be a big problem. So we experimented with several solutions, and now we have a summary.
method One: Set cascading deletes when creating
SQL statements for querying and deleting duplicate records
1, look for redundant records in the table, duplicate records are based on a single field (Peopleid) to judgeSELECT * from People
where Peopleid in (select Peopleid from People GROUP by
Companies need to deal with a number of reports, the need to use the percentage, to retain 2 decimal places, only with round and TRUNC functions can be implemented (round (_data,2), but the format is not very neat, the format is not strictly
1. Determine whether data exists before inserting data
Set ANSI_NULLS on
go
SET quoted_identifier in
go
-============================================= -
-Author: -
Create Date: -
Description: -
-=======================================
Prompt when deleting users in Oracle: Oracle cannot delete current connection users can use the following statement
SQL code
Sql>
Copy Code code as follows:
Select username,sid,serial# from V$session;
USERNAME SID serial#
---------------
Round (X[,y])
"Function" returns the rounded value
Parameter x,y, numeric expression, if Y is not an integer, intercepts the y-integer portion, if y>0 is rounded to Y-decimal, and if Y is less than 0, rounded to the decimal point to the left.
"Back"
1. Create a Test table:
Copy Code code as follows:
DROP SEQUENCE student_sequence;
CREATE SEQUENCE student_sequence START with 10000 INCREMENT by 1;
DROP TABLE students;CREATE TABLE Students (ID Number (5) PRIMARY KEY,First_Name
Linux system Oracle will often appear garbled, whether it is installed or used in the process will appear in Chinese garbled. This is because some fonts are missing from the Linux system, and as long as these fonts are installed, it solves the
In the day-to-day work of a DBA, it is often possible to unlock an Oracle user. This article gives an approach to Oracle user unlocking at the command line, which can be done with a few simple unlock statements. The following is a specific process:
1, view the currently unlocked object
Example: A table AA lock is executed with a select * from AA for update;
Way one: Through SQL query
Select ' Alter system kill session ', ' ' | | Trim (t2.sid) | | | Trim (t2.serial#) | |
From V$locked_object t1
First understand the concept of the scheme, and then understand the relationship between the scheme and the database.
Let's take a look at their definition:
Copy Code code as follows:
A
schema is a collection of the database
SQL SELECT statement Complete order of execution:1. The FROM clause assembles data from different data sources;
2. The WHERE clause filters the record rows based on the specified criteria;
3. The GROUP BY clause divides the data into multiple
Before Oracle9i, Chinese is sorted according to binary encoding. In oracle9i, according to pinyin, radical, stroke sorting function.1, set the Nls_sort parameter valueSchinese_radical_m sorted by radical (first order), stroke (second order) schinese_
Parsing Oracle's method for select locking and query for locksOracle to select Lock method
Copy Code code as follows:
CREATE TABLE Test (a number,b number);
INSERT into test values (1,2);
INSERT into test values (3,4);
INSERT into test
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