Oracle Delete the archivelog file correctly
After the archive mode is enabled, Oracle will generate many archivelog files under the specified archive Directory, which is not cleared regularly by default and takes a long time, this folder occupies
The first three paradigm of database design is that the independent table structure must have a unique primary key to identify the table data.SQL Server (duoOn the platform. Manually encode the primary key in the table and set it as an
The initial password can be used for four accounts: SYS system sysman Dbsnmp.
Two important concepts: servers and Instances
The server is not only a physical concept, but also a system process. The DBA often maintains the objects in the instance.
After finishing the project yesterday, I asked the test to test it. The test said that paging query does not seem to work. After Turning to page 4th, the data results will be the same.
At that time, I was puzzled. It was impossible. The paging
1. Modify the Oracle system configuration file and change n to Y:
Sudo VI/etc/oratab
Orcl:/Oracle/ORACLE_HOME: YBlogs:/Oracle/ORACLE_HOME: Y
Note:
/Etc/oratab format: Sid: ORACLE_HOME: AutoSet n to Y (uppercase). Only in this way can
Recently, writing Oracle stored procedures is different from SQL. in SQL, select statements can return result sets. in Oracle statements, pointers (cursors) are used to write SQL statements, a little uncomfortable. yesterday, I wrote a test stored
Since oracle is always compared with Microsoft's SQL Server, and sometimes confused, I am determined to summarize the stored procedures of the two mainstream databases. Speaking of stored procedures, what are the advantages of stored
There is an important thing in Oracle: package. (In this articleCodeAll are implemented in the EMP table in Scott)
Reference others' definitions-a package is a database object that logically related to the PL/SQL type, object, and
In Oracle databases, there is a concept: tablespace. Table spaces are logical components of databases. Physically, database data is stored in data files. Logically, databases are stored inIn a tablespace, a tablespace is composed of one or more data
AsProgramClerk, Oracle database is what we must learn. Below I will summarize my basic knowledge and hope to share and learn!
After the database is installed, we will get a default database. The default name of my database is orcl and we will get
Oracle beginner backup problems (two problems)
Question 1: I want to learn how to use RMAN to back up and restore a database. I can see from the Internet and books that the log_mode of the database is required.
It is in archivelog mode, and my
ArticleDirectory
2. Usage of case when in different positions in the statement
1. The case when expression has two forms:
-- Simple case Functions Case Sex When ' 1 ' Then ' Male ' When ' 2 ' Then '
Http://orafaq.com/wiki/ SQL _Trace
Tracing an entire database
To enable SQL tracing for the entire database, execute:
Alter system set SQL _trace = true scope = memory;
To stop, execute:
Alter system set SQL _trace = false scope = memory;
Limit cannot be used for Oracle paging query.1. Select * From table_name where rownum> begin and rownum 2. SQL = "select * from table"Con. preparecall ("select * from (select. *, rownum R from ("+ SQL +") A where rownum "+ (intPage-1)* Intpagesize )
Without backup, copy the cold backup and install oracle9.2.0.1,
Controlfile version 9.2.0.0.0 does not match Oracle version 9.2.0.0.0.
I tried many methods and it was useless. I had to recreate the control file:
Create controlfile reuse
Oracle does not support the select top syntax, but you can use the following method to retrieve the first few records:
(1). Obtain the minimum 10 records. The following statements are available:Select ID, name, rownum from (select ID, name from
I. Objective of PL/SQL
Structured Query Language (SQL) is a common language used to access relational databases. It is a fourth-generation language (4gl) and its execution features are non-procedural, that is, you do not need to specify the
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