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
Connecting oracle 11g r2 asm instances when you start connecting to ASM, the 10G approach is not connected to the ASM connection is idle instance [[email protected] ~]# su - oracle[[email protected] ~]$ export oracle_sid=+asm2[[email protected] ~]
The common Oracle paging query implementation methods are three, respectively, through RowNum, ROWID, or analysis function implementation, this article will be in my Project User_info table of the sub-table as an example, a brief description of the
This is the description of Oracle's backreference of regular expressionsAs you can see from the definition, a substring is included in the form of () in the matching expression, and can be referenced in the form of \? later. \1 corresponds to the
1. syntax for the WITH statementOracle introduced the WITH statement in 9i. The WITH statement is used to name the subquery in the query statement, which can then be referenced elsewhere in the query statement. The statement format is as follows:1
Creating an Oracle Index: CREATE INDEX DEFECT_SUBMIT_DATE_IDX on DEFECT (submit_date);Create INDEX Defect_dbid_submit_date_idx on DEFECT (DBID, submit_date); Delete indexes: Drop index DEFECT_SUBMIT_DATE_IDX; Set monitoring index: ALTER index DEFECT_
There are three ways to write a script that ends with a percentage sign in Oracle.
Data
The goal is to get the data row with ID = 4443. There are three methods to record it:
First, substr:
SELECT * from test where substr (NOTE,-1) = CHR (37 );
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
2014-05-31 BaoXinjian In Capgemini
I. Summary
The character mode Report developed by Oracle Report Builder becomes a system Report.
Advantages
Graphical development is adopted, which is intuitive
Powerful Wizard available
Do not use
Startup succeeded. After a long time, DBA Xiao Li closed his computer and used boiling water to soak himself in a bowl of old altar pickled cabbage noodles. Chinese DBAs prefer to pull curtains and enjoy the unique food in the dark. Senior DBAs
Oracle case when usage ----- This article is prepared by netizens, 1. The case when expression has two forms:
-- Simple Case FunctionCASE sexWHEN '1' THEN 'male'WHEN '2' THEN 'female'ELSE 'others' END-- Case search functionCASEWHEN sex = '1' THEN
When synchronizing Oracle Data to sqlserver, you must first create a table on sqlserver.
If we do not synchronize complex fields, we only consider the following four data types.Ing from Oracle to SQLServer: int-> int number-> decimal () number (p, s)
-- Accumulate SQL statements used in work
ORACLE also has a type that can be input as a stored procedure or function.
See create.
Usage
Create or replace type name AS OBJECT
For example
Create or replace type T_OBJ AS OBJECT
Usage:
Type
Today is. If you encounter a lib problem today, record it again. This is a case and a process of solving the problem.
When we use sqlplus to log on to a unix database, problems such as: xxxxxx bad ELF interpreter: No such file or directory may occur.
1. The average, maximum, minimum salary, and number of people in each department are listed in ascending order by Department number.SELECT deptno AS department number, AVG (sal) AS average salary, MAX (sal) AS highest salary, MIN (sal) AS minimum
1. Which departments have more people than department 20.Select deptno, COUNT (*) FROM EMPGROUP BY DEPTNOHaving count (*)>(Select count (*) FROM EMPWhere deptno = 20);2. Who is SMITH's leader (non-associated subquery ).SELECT ENAMEFROM EMPWhere
The ASM security section describes various security configuration topics related to ASM, such as configuring userids and groupids required by ASM, and permissions for ASM, such as SYSOPER, SYSDBA, and SYSASM, finally, there is the ORACLE password
Today is July 26,. the blog that has been away for N years will continue to be used today. I have been busy leaving my job recently, and I have not paid for my new job, so I am not so stable at the beginning. Learning requires a calm and secure mind.
AWRDD is used to compare two AWR snapshots for different periods of performance.
Run the following statement to obtain AWRDD:
@? /Rdbms/admin/awrddrpt. sql2025 23 February 20 14 12026 23 February 20 14 12027 23 February 20 14 12028 23 February 20 1
ADDM checks and analyzes the data obtained by AWR to identify possible problems in the Oracle database and provides optimization suggestions.
The method for obtaining ADDM is as follows:
@?/rdbms/admin/addmrpt.sqlThe following is an example:
-- Step
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