Oracle 11g-LockTarget:1. Understanding the concept of locking2. Mastering the use of select for update3. understand the meaning of different locksThe concept of Lock:1. A lock is a mechanism that the database uses to control concurrent access to
1, delete the duplicate data of a table the same table_name usedDELETEFrom table_name AWHERE rowid > (SELECT min (rowid)From table_name bWHERE b.id = a.id and B.name=a.name);2. Export all information of a userExp scott/[email protected]File=d:/scott.
/*The following code is the display width setting for the EMP Table/dept table/salgrade table*/Col empno for 9999;Col ename for A10;Col job for A10;Col Mgr for 9999;Col hiredate for A12;Col Sal for 9999;Col Comm for 9999;Col deptno for 99;Col dname
In a project, a backup of a data table, or a backup of a data table structure, is often required so that it can be done with SQL statements.1. Copy the table structure and its data:CREATE TABLE Table_name_new as SELECT * from Table_name_old2. Copy
I've never used Oracle. Today finally installed, said I installed the process, feeling still a little toss.One, I installed the Oracle version 9, the total size downloaded from the Internet 1.3G. is a three compressed package.First, after extracting
function: Use an SQL statement to insert or update the operation, if there is an update, if it does not exist, insertGrammar:MERGE intotable_name t1using (Table|View|sub_query) T2 on(Joincondition) whenMatched Then UPDATEtable_nameSETCol1=..,
Query and delete duplicate records of SQL statement 1, find redundant records in the table, duplicate records are based on a single field (ID) to determineSelect * from where inch (selectfromgroupby hascount>1 )2, delete redundant records in the
Process- -- database - ObjectProcess -Server -User - ObjectProcess -database -User - Schema - ObjectMySQL, Oracle, Db2Have not done Oracle multi-instance, DB2 is also just touching, plain understandingMySQL this way is very early most people
We have created two users for the system: com and comtest. The former stores the formal database data and the latter stores the test database data. They all have a table named taw_rm_user, which stores the basic user information of the system. I
1. ORA-12541: TNS: No listener
Cause: the listener is not started or damaged. If it is the former, run the net start OracleOraHome10gTNSListener command (the name may be different). If it is the latter, you can add a listener to the "Listener
1. Modify the oracle system configuration file:/etc/oratab
Vi/etc/oratab
Orcl:/opt/oracle/product/10.2.0/db_1: Y
2. Create an oracle STARTUP script under/etc/init. d/. The content is as follows:
#! /Bin/sh# Chkconfig: 35 80 10# Description:
GG configure Oracle synchronization to SQLServerPrepare a test table for the source and target end. Oracle Source: drop table ggmgr. t1; create table ggmgr. t1 (id int primary key, name varchar2 (50), time date );Sqlserver target end: begin
Test the importance of OLR in oracle 11g cluster
Called an Oracle Local Registry (OLR): each node in a cluster has a local registry for node-specific resources
Test 1: Simulate the loss of an olr exception:
First, set the olr renam[Root @ vmrac2
Oracle 11g ocr redundancy configuration
During the 11g installation process, only one dg can be specified by default for storage: crs, votingHowever, oracle officially recommends that you configure the settings as follows:
1. When no image is
Introduction to Oracle elastic uard
I. Basic principles of DataGuard
When a transaction changes the data in the production database, the Oracle database records the change in an online redo log file. You can configure the log Writing Process in the
Repeat the case:
Dbca database creation, SID: metro-metro with lower-case Instance name when manual database creation
......
[Oracle @ org54 ~] $ Export ORACLE_SID = METRO -- manually inject SID because no environment variable is set[Oracle @ org54 ~
I used to share the RMAN backup script column in my blog. I used RMAN to back up the file to a local path, and then uploaded the backup file to the FTP server through FTP. Next, we will briefly introduce another RMAN backup solution. Below is a
Oracle11g RAC construction in linux (iv) III. Configure shared storage configuration ASM management preparation
1) OCRDISK: stores CRS resource configuration information
2) VOTEDISK: The arbitration disk, which records the node status.
3) DataDisk:
Often used in the development of Oralce database, use may encounter a variety of errors, such as: ORA-00933: SQL command is not properly ended, ORA-009242, etc, this record accumulation is very helpful for you. Today we will record some problems
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