1. First query free space
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
2. Add Oracle tablespace
First, query the data file name, size, and path information. The statement is as follows:
select
-- Obtain the select TRUNC (SYSDATE) FROM dual; -- Obtain the 23: 59 minutes and 59 seconds of the current day (add one day and then minus one second based on the 00:00:00 of the current day) select trunc (SYSDATE) + 1-1/86400 FROM dual; -- the
Alter any cluster: modify the permissions of any cluster
Alter any index
Alter any role Modify permissions of any role
Alter any sequence
Alter any snapshot
Alter any table
Alter any trigger
Alter cluster Modify permissions on
Keywords: Oracle
Oracle with statement example
WITH a AS (SELECT * FROM bd_member where rownum B AS (SELECT * FROM tp_trade_card)Select A. MEMBER_NAME,B. CARD_NOFrom,BWhere A. BD_MEMBER_ID = B. BD_MEMBER_ID
Google Search: Oracle + with view to get
In normal project development, the paging stored procedure uses a large number of stored procedures. top is often used in the SQL Server paging stored procedure, and RowNum is often used in Oracle.
Now, there is a UserInfo table, where one field
/*
-- Function: Convert the string to the year, month, and day format, and delete the time, minute, and second.
-- Source: http://jorkin.reallydo.com/article.asp? Id = 529
-- Parameter:
Datechar varchar2
-- Oracle9i passed the test
*/
Create or
I. Improve database performance
1. Use explain plan to check SQL statement Performance
Specific operations:
Generate a plan_table table
Run rdbms \ admin \ utlxplain. SQL
Explain plan set statement_id = 'statement1 'into plan_table
For select * from
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ascii ('A') A, ascii ('A') A, ascii ('0') zero, ascii ('') space from dual;
A ZERO SPACE------------------------------------65 97 48
Oracle table partition and index partition Summary
To simplify the management of large tables in the database, for example, data warehouses are generally measured in terabytes. partition options are introduced after oracle8. partitions are separated
Oracle OS authentication and password files
1. OS AuthenticationAfter oracle is installed, OS authentication is enabled by default. The OS authentication mentioned here refers to the server-side OS authentication. OS authentication means that the
Reference 1. Explicit cursor
Explicit is relative to implicit cursor, that is, there is a clear declared cursor. The declaration of an explicit cursor is similar to the following (for detailed syntax, refer to plsql ref doc ):
Cursor cursor_name
1. Hardware requirements
1.1 memory at least 512 MB. Use the following command to check
Grep MemTotal/proc/meminfo
1.2 swap partition at least 1 GB
Grep SwapTotal/proc/meminfo
1.3/tmp directory idle zone at least 400 mb
Df-k/tmp 400 M
1.4 Hard Drive
Materialized views are similar to indexes in many aspects: materialized views are used to improve query performance, while materialized views are transparent to applications, adding or deleting materialized views does not affect the correctness and
Part 3 backup and recovery[Q] How to enable/disable Archiving[A] If archiving is enabled, ensure log_archive_start = true to enable automatic archiving. Otherwise, only manual archiving is supported. If archiving is disabled, set this parameter to
(I found it online. I cannot remember the original address. I will record it here and read it later)
Oracle Database customization is very powerful. Oracle not only allows users to customize their own functions, but also can customize their own
From today on, I started to prepare a system to learn about Oracle. In addition to meeting the urgent needs of my work, I also hope to have a good understanding of the profound and profound knowledge of Oracle Database.
Now, I used to write SQL
This document uses examples to teach you how to implement the select top n method in Oracle.1. implement select top n in Oracle:Since ORACLE does not support the select top statement, order by and ROWNUM are often used in ORACLE to query the select
I. Glossary (1) SGA: System Global Area is a basic component of Oracle Instance, which is allocated when the Instance is started. The System fully-local SGA consists of three parts: the Shared Pool, data buffer, and log buffer.(2) Shared Pool:
By default, the database locks the user after 10 failed attempts;
1. view the FAILED_LOGIN_ATTEMPTS Value
Select * from dba_profiles;
2. Change it to 30 alter profile default limit FAILED_LOGIN_ATTEMPTS 30;
3. Change it to an unlimited
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