1. Background:Operators and more or less will encounter analysis problems, analysis of failures, often encountered some difficult problems, we will go to deeper experts for help. Whether you're a second-line expert or an Oracle Global service
@echo offEcho ================================================Automated backup scripts for Oracle databases in the Echo Windows environmentEcho 1. Use the current date to name the backup file.Echo 2. Automatically delete backups up to 7 days
Oracle query table information, including table name, field name, field type, primary key, FOREIGN key Uniqueness constraint information, index information query SQL as follows, we hope to help:1, check out all the user tablesSELECT * FROM
The most significant relationship with the date operation is two conversion functions: To_date (), To_char ()The To_date () function converts a character type to a date type in a certain format:Specific usage: to_date (' 2004-11-27 ', ' yyyy-mm-dd ')
Oracle website DownloadHttp://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.htmlOracle InstallationThe download consists of two compressed packages:
Original address: http://blog.csdn.net/u011721927/article/details/39228001First, syntax and rationale for update statements1.GrammarSingle tableUPDATEtable name set column name = new value WHERE column name = value such as:
Issue background
Applicable situation:
Operating system: Redhat 6.5Database: Oracle 11g R2Problem Description: The primary repository cannot be recovered and started or loses the main failover after the
Advantages
Creation and deletion of Oracle databases CREATE DATABASE statement 2011-08-28 16:42:48Category: OracleFirst, the conceptAn Oracle database, the most basic composition (logic):
(1) system table Space 1--# for storage of "Data dictionary"
(2)
Manual hot Standby (open library status)Backup control Files:ALTER DATABASE backup Controlfile to '/U01/ORADATA/PROD/CON.BAK1 ';Back up the data file (use PL/SQL for batch processing, paste the query results to run)BeginFor I in (select
Oracle Notes (12) collections, sequencesFirst, the collectionIn the operation of mathematics there is the concept of intersection, difference, and, complement, and in the data query also exists this concept, there are several connection symbols:
The purpose of this test is to export the Rman backup from the production database and then restore it in the test database1, copy Backup to the appropriate directory2, enter RmanRman target \3. Close the databaseShutdown4, start the database in
---restore content starts---Content excerpted from the networkOracle's numeric types are int,number,float,decimal,numberic and so on.Number Type
definition
Definition Format number (Precision,scale)
The precision represents a valid
Oracle uses SQL statements to modify field types1. If there is no data in the tableSQL code
123
altertable 表名 modify (字段名1 类型,字段名2 类型,字段名3 类型.....) alter table student modify(id number(4));---将student表中id字段改为number,长度4 alter
SUBSTR (string, intercept start position, intercept length)//return intercepted wordsubstr (' Hello World ', 0, 1)//return result is ' H ' * start with a string of length 1 from the first charactersubstr (' Hello World ', 1, 1)//Returns the result
Recent company to do system database upgrade, mainly by the original SQL database upgrade Oracle database, for the utility system with Tens database, migration is not easy, optical data synchronization will take a long time, let alone to modify the
The following steps are as follows: C:> sqlplus Please enter your username: sys input password: SYS as SYSDBA//NOTE: The password entered here must follow the as SYSDBA. sql> alter user Scott account unlock; The user has changed. Sql>
Familiar with Oracle machine environment and Oracle client configuration; Master and use the DDL language to establish, modify, and delete database tables, primary keys, FOREIGN KEY constraint relationships, and indexes.
(Build database table)
1,oracle installation is complete when you create a DB instance, the Sys,system,scott is generated automatically2,sys user Super Administrator with highest Oracle privileges, SYSDBA role with CREATE DATABASE permission, default password
How to restore a database using legacy Oracle tablespace files after oracle11g the operating systemRecently due to a system reload, when restoring a DMP backup file, the system is not functioning due to data reasons (the table did not export all
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