To_date formatDay:DD Number 12DY abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM Number 03Mon abbreviated MarMonth spelled out MarchYear:YY two digits 98YYYY four digits 1998 24-hour format of the time range: 0:00:00-
First, OCR
Check Ocrcheck
[Root@rac1 app]# Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:3
Total Space (Kbytes): 262120
Used Space (Kbytes): 2424
Available Space (Kbytes): 259696
id:1918230846
Device/file Name: +crs
First look at what columns v$session have
Sys@orcl>desc v$session
Name Null? Type
----------------------------------------- -------- ----------------------------
Saddr RAW (4)
SID number
serial# number
Audsid number
Paddr RAW (4)
user#
1. Keep for seven days
This is the only way to keep backups for seven days
Rman> Connect target/
Connected to target Database:dbsid (dbid=3100778490)
Rman> Configure retention Policy to recovery windows of 7 days;
2. Backup Scripts
First, the problem leads to
1. Suppose that when an online user buys a book, there is an order in the database with order number 001, of which the Status field is ' valid ' to indicate that the order is valid;
2. The backstage management inquires
When you perform a query operation, the row data is displayed by default in the order in which the row data is inserted, but in practice it is often necessary to sort the data to show more intuitive data, with the ORDER BY clause being used to sort
--Create Pfile file
sql> Create pfile = '/tmp/pfile ' from SPFile;
File created.
Sql> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0-production
With the partitioning, OLAP and Data Mining options
--Modify the
11g new Features _ partitioned tables are automatically created by time (Interval partitioning (MONTH, year)
Interval Partitioning (MONTH, year)
CREATE TABLE Sales6
(
SALES_ID number,
Sales_dt Date
)
Partition by range (SALES_DT)
Interval
Today, someone asked me a materialized view query rewrite problem, finally found that the problem and materialized view of the function is not much relationship, but the implicit conversion caused by the problem.
Let's illustrate the problem by
Case 2:
--Some data files are missing, recover data files (mount or open)
1) test environment
07:30:40 sql> CREATE TABLE test (ID int) tablespace test;
Table created.
07:30:52 sql> Conn/as SYSDBA
Connected.
07:30:57 sql>
07:30:57 sql> INSERT
or the test environment in the previous article:
sql> CREATE TABLE T1
2 (ID number, NAME VARCHAR2 (30));
Table created.
Sql> INSERT into T1
2 SELECT rownum, Tname
3 from TAB;
Created rows.
sql> CREATE TABLE T2
2 (ID number, NAME VARCHAR2 (30
1, write the script to generate the backup script
#cold Backcup
Remark set sql*plus variable to manipulate output//note
Set feedback off heading out verify off Trimspool off echo off
Set pagesize 0 linesize 200
Remark set Sql*plus user variable
Case 5: Restore the data file to a new location
1. Simulated environment
Sql> CREATE TABLE LXTB01 (id int) tablespace lx01;
sql> INSERT INTO LXTB01 values (1);
1 row created.
sql> INSERT INTO LXTB01 values (2);
1 row created.
Sql> select *
Oracle databases have two types of backup methods. The first class is a physical backup, this method realizes the complete recovery of the database, but the database must run in the return mode (the business database runs in the non-return mode),
Smon is an abbreviation for System Monitor. If the Oracle instance fails, any data that is not written to disk in the SGA will be lost. There are many situations that could cause an Oracle instance to fail, such as an operating system crash that
-- ' One,two,three,four,five,six,seven,eight,n Ine,zero ' as source_string from dual), --counts the number of substrings in a string, using ', ' -- T2. Source_substring_count), -- ' [^,]+ ', 1 Since the Regexp_count () method is new to Oracle 11g,
ORACLE RAC principle: In a single application environment, all servers use and manage the same database in order to spread the workload of each server, require at least two or more servers on the hardware, and require a shared storage device. It
Oracle Practice Exercises 1.0February 10, 2017 Friday 9:07:221, list the IT industry database types and user distribution2. List some products commonly used by Oracle Company3. Brief description of Oracle database software, databases, instances, and
1. Create a new table, set the ID as the primary keyFor example, the table name created is: Uf_receive_pay2. Set the ID of the primary key self-increment, through the sequence implementationCreate sequenceCREATE SEQUENCE Uf_receive_pay_seqINCREMENT
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