Oracle has two permissions:
System privileges: operations performed by the user may affect the data dictionary;
Object privileges: operations performed by users may affect data;
System Privilege:
There are more than 200 system permissions. Common
Summary of Oracle transmission tablespace migration data
Note: users must be created before the tablespace is migrated. Otherwise, the migration will fail.
Sometimes, we need to migrate relatively large data across platforms (10 Gb supports
Oracle time format conversion Exception Handling Function
Create Or Replace FunctionF_FORMAT_DATE (v_date varchar2, formatVarchar)
/*
Time Format processing format
*/
Return Date
As
V_endDateDate;
V_rn varchar2 (2 );
V_LAST_DATE
Oracle PL/SQL Nested Table Test Code:
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
ConnectedAsXxpo
SQL> CREATE OR REPLACE TYPE color_tab_t AS TABLE OF VARCHAR2 (30 );
2/
Type created
SQL>
SQL> CREATE TABLE
ROLLUP literally means to roll to, used in group by can play a cumulative sum role:
If no ROLLUP exists, the following query sums the groups by department_id and job_id:
SELECT department_id, job_id, SUM (salary)
FROM employees
WHERE
1. master database check and settings
Assume that the new service is named ORCL_TAF.LK.
SQL> exec dbms_service.create_service (service_name => 'orcl _ TAF. LK ', network_name => 'orcl _ TAF. LK ');SQL> exec dbms_service.start_service (service_name =>
Most of the time, the operating system is Windows, and Liunx is rarely understood.During this time, an image system requires that all applications be deployed on the RedHat system. In this way, there are two software usage problems: 1. Database 2.
Environment Oracle 9 Release 2
User sys
Test Table Name ATTRIBUTE_TRANSFORMATIONS $
Tables and views in the used data dictionary
USER_TAB_COLUMNS: basic organization information of the User table
User_constraints: basic user constraint
1. Overview
Oracle introduces Redo log for data recovery
Related Oracle processes: redo the log write process (LGWR)
Related data dictionaries v $ log, v $ logfile
Author permission: sys, system permission
2. View redo log information
View redo log
Summary:Direct path insertion directly allocates space outside the high waterline, bypasses the data buffer, and directly inserts data into the data file where the table is located.Direct path insertion does not generate Redo and Undo logs and
I browsed the official Oracle webpage and unofficial ppt pages and briefly understood the high availability solution provided by Oracle.
There are three main types:
1. RAC
RAC, Real Application Clusters
Multiple Oracle servers form a shared
During application development, it is common to sort data according to certain rules and then retrieve the first few data records. In Oracle, order by is commonly used to obtain data smaller than rownum. However, if you are not familiar with Oracle,
1. TRUNC Function
1. TRUNC (for dates)
The date value intercepted by the TRUNC function for the specified element.The syntax format is as follows:TRUNC (date [, fmt])Where:Date: A date value.Fmt date format, which is truncated by the specified
I. system environment:
CentOS 1, 5.5
Host (MASTER): 192.168.0.10
SLAVE (SLAVE): 192.168.0.20
Install Mysql in yum on slave
# Yum install-y mysql-server
Do not enable the mysql service. Copy the/etc/my. cnf file on the master to the/etc directory on
Function: concatenates a column in a specified query SQL statement into a string separated by a specified character.
Deficiency: because the return value of the function is varchar2, And the commonly concatenated string is used to query SQL (because
Question: Today, I receive a set of Database JOB exception alerts on the monitoring system. Here I will record the solution process and share it with you!
Alert Log:
Tue Dec 13 04:00:03 2011Errors in file/opt/Oracle/diag/rdbms/ndmcb/trace/ndmcb_j000_
The role of undo tablespace and redo log files in Oracle is very important. This article focuses on the role and features of undo rollback segments, and briefly introduces the differences between undo and redo and their respective roles:
1. Features
The database instance is disabled.Startup nomount database instance starts to the First Stage
(Steps:1. Search for the parameter file spfile . ora. If no, search for spfile. ora. If no, find init . ora.2. Allocate SGA3. Start the background process4.
The control file is a very important file. Only when the instance reads the control file can it be mounted. One principle of DBA is multi-channel control files. Today I did an experiment and learned this.
The Code is as follows:
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