Oracle 10g r2 rac database modification archive to ASM1. Create related space directories on asmExport ORACLE_SID = + ASM1AsmcmdMkdir arch1 arch2ASMCMD> pwd+ DATA/RACDB/archiveASMCMD> lsArch1/Arch2/ASMCMD>2. modify a node in the mount status[Oracle @
Super User problems:
Use admin
# Adding or modifying user passwords
Db. addUser ('admin', 'pwd ')
# Viewing the user list
Db. system. users. find ()
# User Authentication
Db. auth ('admin', 'pwd ')
# Deleting a user
Db. removeUser
In applications, a table's primary key is often paid with an automatically increasing number, for example, the sequence of Oracle, and the expected primary key value after insertion. The following describes the related methods.
1. Use the returning
1. installation environment:
OS: Linux x86 CentOS 6.0DB: Oracle11g R1NETWORK: LAN
Ii. Installation Steps
1. Check required packagesRun rpm-q to check whether the following packages have been installed and whether the version meets the
Backup files can be customized in the following formats:
% C Number of copies of backup slices
% D Database Name
% D the day in the month (DD)
% M is in the month of the year (MM)
% F a unique name based on DBID, in the form of a
I. What is a grouping function?
The grouping function acts on a group of data and returns a value for a group of data.
Ii. Grouping function types
Avg, count, max, min, stddev (standard variance), sum.
Function Name
Function Description
In the Oracle 10g world, partition tables are divided into five types: range, hash, list, range-hash, and range-list. In oracle 11g, it has evolved to the 3*3 partition combination type to meet more application scenarios! However, no matter under
Usage and exceptions of optical mark in Oracle
1. Use of cursor without Parameters
SQL>Declare
2CursorClIs Select*FromEmp;
3 emp_row emp % rowtype;
4Begin
5OpenCl;
6 loop
7FetchClIntoEmp_row;
8 exitWhenCl % notfound;
9
1. view the size of all tablespaces
SQL> select tablespace_name, sum (bytes)/1024/1024 M from dba_data_files group by tablespace_name;
2. Used tablespace sizeSQL> select tablespace_name, sum (bytes)/1024/1024 M from dba_free_space group by
Keywords: Oracle to_char, to_number, and to_date usage
TO_CHAR converts a date or number to a string.TO_DATE converts a string to a date type conversion function in the database.TO_NUMBER converts a character to a number
TO_CHARUse the TO_CHAR
Today, I will explain the new features of Oracle 11g Database-virtual Columns
Introduction
In the old Oracle version, when we need expressions or some calculation formulas, we will create a database view. If we need to use indexes on this view, we
The control file records important information about the DATABASE, including the DATABASE identifier (the DB_NAME parameter or the name used when the create database statement is used) name and location of data files and redo log files, timestamp of
Master database:192.168.0.11
Alternative master database:192.168.0.12
Slave database:192.168.0.13
Monitoring machine:192.168.0.10
First, installMysql(Invigilator'sMysqlDo not install it first ).
I usePercona server(OneMysql. It is said
In the standard of SQL, the transaction isolation level is divided into the following four types:1. Read uncommitted)2. Read committed)3. Repeatable read)4. Serializable)However, PostgreSQL versions earlier than 9.1 only implement two of them: Read
I. Prerequisites for Migration:1. The operating system meets the installation conditions of the Oracle database version.2. database versions are consistent
2. operations on the source database:
1. Check whether the database is archived. If not,
We have the following requirement: create two users in the database. User A creates some views and directly accesses the tables in one mode in the database, and access tables in other databases through the database link. Another user B can access
MySQL provides the master-slave replication function, which is similar to Oracle's slave uard. However, configuration and management are far simpler than slave uard, and there is no so-called physical slave database or logical slave database, there
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