--Standby Library StandbyFour Redolog of the main library were previously 50M sizesSql>ALTER DATABASE recover managed standby database cancel;Database altered.sql> ALTER DATABASE Add standby logfile Group One (' +data/orcldg/onlinelog/standby_group_1
1. Initial data:Sql> select * from A; ID NAME--------------------------------------------1 1sql> select * from B; ID NAME--------------------------------------------1 2
1. Open Sqlplus Login User
> System as Sysdba
>****
2, create a temporary table space
Create Temporary 'D:\else\oracle\tablespace\vtm\vtmtemp.dbf' on Next 50m maxsize 20480mextent Management
CREATE TABLE T (student_id number,course VARCHAR2 (Ten), score number);INSERT into t values (1, ' language ', 80);INSERT into t values (1, ' math ', 85);INSERT into t values (2, ' language ', 90);INSERT into t values (2, ' math ', 88);INSERT into t
1. The first step,First look at the storage path of the variable space--View Tablespace file pathSelect Tablespace_name,file_id,bytes/1024/1024,file_name From Dba_data_files order by file_id;2. Execute create temporal tablespace statement
One1) Download Oracle client: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html2) Download Plsql:Note: Install Plsql if the corresponding instantclient for 32 bits is under 32 bits, Plsql if the corresponding
The physical structure of Oracle includes: parameter files, control files, data files, redo log files, archive files, password file composition.1.1 Parameter fileIncludes a number of settings that affect the capabilities of the Oracle DB instance,
1. Distinct usage:SELECT distiNCT a.name, a.student_id, a.sex from TABLE STUDENTThis SQL statement is from the Student table query name, school number, gender, but distinct query rule is as long as there is a difference, is eligible.Example: source
DROP TABLE TEST PURGE;CREATE TABLE TEST (po_number VARCHAR2 (+), Product_Name VARCHAR2 (+), quantity number);INSERT into TEST VALUES (' CJ201300048 ', ' tp-link network switch TP-1024DT ', 2);INSERT into TEST VALUES (' CJ201300049 ', ' 4-way/Trenton
Object statistics Describe how data is stored in a database, and the query optimizer uses these statistics to make the right decisions. There are three types of object statistics in Oracle: Table statistics, column statistics, and index statistics.
Share SQL scripts that check whether foreign keys are indexed in Oracle, oraclesql
Copy codeThe Code is as follows:Column columns format a30 word_wrappedCOLUMN tablename format a15 word_wrappedCOLUMN constraint_name format a15 word_wrappedSELECT
View the running SQL process script sharing in Oracle, oraclesql
Oracle show processlist
Copy codeThe Code is as follows:Set linesize 400;Set pagesize 400;Col SQL _text format a100;Col machine format a25;Col username format a15;SELECT a. username, a.
Usage of Aggregate functions count, max, min, sum, avg, and NVL in oracleUsage of Aggregate functions count, max, min, sum, avg, and NVL in oracle
The grouping function aggregate function performs computation on a column in a group of rows and
OraclePL/SQL Composite data type
Composite data types can be roughly divided into two types. The first type is record type, which is suitable for processing single row and multiple columns of data, a bit similar to VO in java; the first type is set
Handling Method for Rapid growth of oracle archive logs
Oracle archive logs are generally generated by dml statements, so the increase speed should be too frequent by dml.
First, query the generation of the following daily archives:
Select trunc
Oracle Data ProcessingDML Language &: address character; (PrepareStament) Batch Processing: insert -------- insert employees of Department 10 to a new table at a time; Do not write values statements; the Value List in the subquery should correspond
Install Oracle11gR2 in RedhatLinux
Official documents: http://docs.oracle.com/cd/E11882_01/nav/portal_11.htm
1: Basic Environment
Redhat Enterprise Linux 6.132bit
Memory: 1 GB
Disk Space: 30 GB
2: Check the packages required for Oracle 11G. If 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