45 Very useful Oracle query statementsBin black tea Children's shoes published in 2014-1-22 13:13 4 hours ago, 38 back/3213 read, the last answer: 1 minutes ago
Here we introduce 40+ a very useful Oracle query, mainly covers the date operation, get
Busy time. Get Some records ...
The data table connections are:1, Inner Connection (natural connection): Only two table matching rows can appear in the result set2. External connection: including(1) Left OUTER join (the table on the left is
About the Ash:v$session view is the most important dynamic performance view because it is dynamic, so once disconnected, the information previously recorded in V$session is lost, so in order to preserve these historical information, a
Solution:
1. After the installation of Oracle, first to modify the character set.
To modify the character set, use the command-line line to log on to Oracle, and then use Sqlplus to connect to Oracle, at which point configuring the Oracle profile is
Excerpts from the video, so it might be a bit messy.
Oracle Core Competencies
Scalability Reliability Manageability Manageability 1, fine-tuning how Oracle uses memory 2, how often Oracle writes data to diskIntroduction to Oracle Architecture
How should the Oracle deadlock problem be resolved? Many people may have such a question, the following is to introduce you to the Oracle deadlock processing methods for your reference learning.
In general, it is OK to submit a statement that
Oracle Parallelism (concept)
Concept
Serial execution: when serial execution, the SQL statement is handled by one server process (running on only one CPU), so the resources that the SQL statement can use are CPU-bound, excluding asynchronous I/O
Detailed version:
Logminer is a tool that every DBA should be familiar with, when one day you need to do incomplete recovery due to the user's misoperation, because you are not sure which time to do this operation, so this is very difficult to
--Start
Let's take a look at the definition of two tables:
--User
CREATE TABLE EMPLOYEE
(USERID number (9,0) not NULL,---User ID
companyid number (9,0),--- Company ID
telno VARCHAR2 (a)---subscriber phone
);
ALTER TABLE "EMPLOYEE"
A stored procedure is developed in the project to provide a data source for the report. and the program business logic needs to have a function to judge the data source, the beginning is to use the concatenation of SQL in the stored procedure of the
methods for Oracle to recover deleted tables or table records
article Category: Database
One: Recovery of tables
For accidentally deleted tables, as long as you do not use the Purge permanent deletion option, then recover from the flash back zone
to facilitate learning and testing, all examples are created under Oracle's own user Scott.
The SELECT statement in Oracle can use the start with ... connect by prior ... clause to implement recursive query, connect by is used in structured
--Start
First, we prepare the test data.
CREATE TABLE TEST
(
NAME VARCHAR2,
birthday DATE
);
INSERT into TEST VALUES (' John ', DATE ' 2014-12-14 ');
INSERT into TEST VALUES (' Dick ', DATE ' 2013-12-14 ');
INSERT into TEST VALUES (' Harry ',
DBA_XXX requires permission to view, otherwise there will be no errors in reports and views
1. Query All users (username, tablespace information)
SELECT * from Dba_users;
SELECT * from All_users;
Current User
select * from User_users;
2. View
It is often encountered in production to import a larger number of table values into a local text file. There are many kinds of methods, the more commonly used is the spool command: to output data files that conform to the required format, you only
Oracle9i introduces the merge command, which enables you to perform both inserts and U on a table in an SQL statement
PDA
tes operation. The merge command selects rows from one or more data sources to upd
ATI
ng or inserting to one or more
The 3 files Listener.ora, Tnsnames.ora, and Sqlnet.ora are the 3 primary files for the configuration of the Oracle network, where Listener.ora is associated with the database server side, and Tnsnames.ora and Sqlnet.ora these 2 files are not only
[ERR] ora-00001:unique constraint (...) violated
Violates a unique constraint, a field with a unique constraint, no duplicates, can be a space, and a space can only appear once. such as the primary key of the data
[ERR] ORA-00904: "XXX": Invalid
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