The db_recovery_file_dest_size parameter is used to limit the total size of files that can be stored in the Flash recovery area. Once the db_recovery_file_dest_size parameter is set to a non-zero value, it is "difficult" to restore to the default
Usage conditions:For Linux or Solaris machines, we recommend doule buffer cache in AWR, and db file sequential read is the top wait event.
Size:2-10 times the buffer cache. It cannot be less than 2 times. If ASMM is used, 2-10 times the
The Alter database processing process is not as scary as alter table, and the processing logic is clear. Sort the information as follows:
1. Check whether the database name is valid
Call check_db_name () (table. cc: 2876) to check whether the
The following prompt message is displayed in the mysql Log file, which is related to the federated engine. This option is added during compilation but is not enabled in the configuration file, for more information about the federated engine, see the
Continuous Oracle statistics based on the same data
Create table test (Id number (20 ),Val NUMBER (20))Insert into test values (1, 5 );Insert into test values (2, 10 );Insert into test values (3, 10 );Insert into test values (4, 10 );Insert into
I haven't written any logs for a long time!
I have summarized some knowledge points in my work recently. Here I will record them:
This article is about the automatic analysis of Oracle 11g. In 11g, automatic analysis is significantly different
Dynamic SQL syntax
Only when running can Oracle check whether its format is correct
The INTO and USING clauses are optional.
If the SQL statement is a query statement, we can use the INTO clause.
The INTO statement is used to receive the record
An article library contains two tables: category and article. There are 10 classified data entries in category. There are 0.2 million articles in articles. There is a "article_category" field in article that corresponds to the "category_id" field in
Oracle does not have auto-incrementing primary keys like Mysql and SQLSERVERHowever, you can use other methods to replace the automatic primary key method, including sequence creation and trigger creation.Here we will focus on sequence
Wildcard description
_ Match with any single character
% Matches a string that contains one or more characters.
[] Matches any single character in a specific range (for example, [a-f]) or a specific set (for example, [abcdef.
[^] Matches any
I1. Start: the fields in the SQL code exported through powderDesiger are all in lower case and then directly imported to Oracle.
2. bug: The table structure cannot be modified (in PL/SQL Developer) --- including adding deletion and modification...
3.
Backup Control File
Alter database backup controlfileto '/bk/ctl. bk ';
SQL>Alter system switch logfile;
Alter system switch logfile
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
SQL> conn/as sysdba
Connected to an idle
1. Basic Application of Stored Procedures
1. Create a stored procedure (SQL window)
Create or replace procedure update_staffAsBeginUpdate staff set name = 'xy ';Commit;End update_staff;
The stored procedure is suitable for updating operations,
-- View the number of sessionsSelect count (*) from v $ session;-- View the number of processesSelect count (*) from v $ process;-- View the number of concurrent connections of the databaseSelect * from v $ session where status = 'active ';-- View
The front-end can select multiple different conditions under the same field, which involves the problem of SQL statement concatenation.
The following is a method for processing query conditions using regular expressions. It is the simplest method I
It is easier to add a disk image to ASM using DBCA on node 1. Two new directories are created: ARCHLOG and BACKUP. Node 2 cannot be loaded!
[Oracle @ node2bdump] $ export ORACLE_SID = + ASM2
[Oracle @ node2bdump] $ asmcmd
ASMCMD> ll
Commands:
-------
Usually, data storage needs to specify the case sensitivity of string fields. MySQL Default queries are not case sensitive. However, as user information, once the user name is repeated, it will waste a lot of resources. In addition, it is difficult
1. view the size of all tablespaces
SQL> select tablespace_name, sum (bytes)/1024/1024 from dba_data_files2 group by tablespace_name;
2. view the idle tablespace sizeSQL> select tablespace_name, sum (bytes)/1024/1024 from dba_free_space2 group by
I encountered a problem when I learned how to add Foreign keys to the database today.
I first created two tables, orders and order_items. The storage engine is InnoDB and all of them have the orderid attribute (the same type), but I use the command
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