Oracle consistent Read principle

Start by understanding 2 concepts:1. SCN (System change number), one will only increase the numbers that do not decrease, exist in the Oracle smallest unit block, and the SCN will increment when a block changes.2. The database rollback segment

Oracle query in over (partition by ...) Usage

Cases:Rank () over (partition by deptno ORDER by Sal desc) rank Explain:Deptno--Department, SAL--wagesOver : on what condition.partition by E.deptno: divided by department number (partition).ORDER BY e.sal Desc: Sort by salary from high to low

MySQL Import data into Oracle

MySQL imports data into Oracle.To build an Oracle table:CREATETABLE"Gg_user" ("USERID"VARCHAR2 (255 BYTE)NotNull, "Ispart"VARCHAR2 (255 BYTE)DEFAULTNull, "Actualpositionid"Number (11)DEFAULTNull, "Beginworktime"TIMESTAMP (0)DEFAULTNull,

ORACLE RAC Database modification name

1. Close an instance[Email protected] ~]$ Sqlplus/as sysdbasql> shutdown immediate;2. Back up the SPFile filesql> create pfile= '/home/oracle/acct1.pfile ' from SPFile;3. Modify the Pfile file Cluster_database to False*.cluster_database=false4. Use

Oracle Build table [self-increment sequence]

Create a table1 Create TableVacationsday2 (3Fldid Number( A) not NULL,4Fldnamevarchar2( $),5 fldbegindata Date,6 fldenddata Date,7Fldselectid Number(Ten)8);Create sequence self-increment 1 create SEQUENCE vacationsday_sequence 2 INCREMENT by 1

Oracle Table Space Management related

Here is an example of my own test environment:1. The tablespace's block_size is 8192 bytes, or 8KBytes. From the data dictionary, the max_size is 2147483645, which is about 15.9TBytes.2. When creating a tablespace, you can choose Bigfile or

Unlock Oracle-locked tables

1. Open a session Session1Sql>select SID from V$mystat where Rownum=1;Sid158Sql>create table T (x int primary key);Table createdSql>insert into t values (1);Commitsql>update T1 set t=10 where x=1;2. Open a session againSql>select SID from V$mystat

Linux Builds Oracle database

dba

1. Preparing software hardware requirements before installationOperating system: CentOS 6.4 (32bit)Oracle Database version: Oracle 10g (10201_database_linux32.zip)Minimum Memory: 1G (check command: #grep memtotal/proc/meminfo)Minimum swap:2g (check

oracle--Control Transactions

One, roll back to the retention point Use the savepoint statement to create a savepoint in the current transaction. Use the ROLLBACK to savepoint statement to roll back to the saved point that was created. Second, the data state

Activation and cancellation of Oracle audits

Audit audit users to see what the user is doing, and Oracle will store audit trail results in OS files or databasesActivating auditsConn/as SYSDBAShow parameter audit_sys_operations; View Audit parametersAlter system set AUDIT_SYS_OPERATIONS=TRUE

Management of Oracle Tablespace

1. CREATE TABLE SpaceCREATE tablespace Tbs_tr_dataDataFile '/oradata/rtbs_tr_data_001.dbf 'SIZE 64GEXTENT MANAGEMENT LOCALSEGMENT SPACE MANAGEMENT AUTO ONLINE;ALTER tablespace Tbs_tr_dataADD datafile '/oradata/rtbs_tr_data_002.dbf 'SIZE

The process of installing Oracle under Linux

1. Linux InstallationMainly do not set the home partition of the special large2. Install some of the necessary packages.Yum Install-y binutils.x86_64 elfutils-libelf-devel.x86_64 Compat-libstdc++- -. x86_64 Compat-libcap1.x86_64 gcc.x86_64 gcc-c++.

Oracle Connection Query

-Cross connection (produces Cartesian product)SELECT * from the EMP Cross join dept;--Natural connection (can automatically match related fields and eliminate Cartesian product)SELECT * FROM EMP Natural JOIN dept;--join ... The using,using clause is

Oracle Database Delete Archive

Delete the archive log script as follows:[Email protected] oracle]$ vim Del_archive.log#!/bin/bashExport Oracle_sid=oggmaster--instance Name/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman Log=/var/log/archive_orcl.log Connect Target/Crosscheck

How does an Oracle database Delete redundant duplicate data ?, Oracle Database

How does an Oracle database Delete redundant duplicate data ?, Oracle Database This problem is often encountered in Oracle. There is a table a, where multiple data with different IDs but the same information exists. The requirement is to delete

Explain the steps for implementing seamless migration of virtual machines through Oracle Ravello cloud service, oracleravello

Explain the steps for implementing seamless migration of virtual machines through Oracle Ravello cloud service, oracleravello What is Ravello? Seamlessly deploy existing data center loads based on VMware or KVM to the Oracle cloud infrastructure,

How can I view the table space usage of an oracle database ?, Oracle Database

How can I view the table space usage of an oracle database ?, Oracle Database -- 1G = 1024 MB -- 1 M = 1024KB -- 1 K = 1024 Bytes -- 1 M = 11048576 Bytes -- 1G = 1024*11048576 Bytes = 11313741824 Bytes SELECT a. tablespace_name "tablespace

Oracle trigger demo sharing, oracle trigger demo

Oracle trigger demo sharing, oracle trigger demo -- Trigger -- Statement-Level Trigger (executed only once) -- Trigger occurs before adding Create or replace trigger tg1after inserton emp01declare n int; begin select count (*) into n from emp01;

Oracle PL/SQL basic syntax summary, oracle basic syntax

Oracle PL/SQL basic syntax summary, oracle basic syntax Basic Oracle PL/SQL Syntax: Declare (optional, declaring a variable or cursor) Begin (required, where the statement is executed) Exception) End; (required. The semicolon cannot be omitted from

Installation and use of the oracle11g Database

Installation and use of the oracle11g Database I installed oracle databases twice at school, but I never learned how to use them. What is missing is creating user tablespaces. Temporary tablespace -- data table space -- authorize the user

Total Pages: 2147 1 .... 1990 1991 1992 1993 1994 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.