1. Creation of three filesExp.list content:user name and password forOracle DatabasePwdExp.log is primarily used to store log information when the database is automatically backed upexp.sh#!/bin/SH#找到数据库的路径export oracle_base=/u01/app/Oracleexport
ASM is a load-balanced storage policy where additional disk data is migrated on average to the new disk, and deleting the disk will write the deleted disk data back to the other disk on average1. The same disk group if it is on a raid, the fewer
First, some conceptsDefined:Primary Key-uniquely identifies a record, cannot be duplicated, is not allowed to be emptyForeign key--the foreign key of the table is the primary key of another table, the foreign key can have duplicate, can be a null
Triggers are stored as separate objects in the database, and unlike stored procedures, stored procedures start running through other programs, and triggers are started by an event. 1. Trigger characteristics 1> triggers are automatically run when an
To view the Oracle database character set:Sql> Select Userenv (' language ') from dual;USERENV (' LANGUAGE ')--------------------------------------------------------------------------------American_america. we8mswin1252sql> shutdown immediate;sql>
Structure operations on a tableAdd increaseALTER TABLE name drop (column character type (length));Modify ChangeDESC Dept; Look up the table structureOperations on recordsSelect Column name from table name where condition checkUpdate student Set
First step (Connect to Oracle):In the DOS interface (below is the DOS interface operation) input: Sqlplus sang/12345 (here User name and password to write casually) @orcl as SysdbaSecond step (create user and authorize):Create user user1 (user name)
First, the System environment settings1. Modify Host NameVim/etc/sysconfig/networkHostname oracledb2. Add IP and host name correspondingVim/etc/hosts192.168.1.128 OracleDB3. Installing dependent PackagesYum-y install gcc gcc-c++ make binutils compat-
Three types of collection operations are available in Oracle: and (UNION), intersection (INTERSECT), poor (minus)
UNION: Combine the results of multiple queries into one query result and remove duplicate values
UNION All:
Note the point:1: A sequence can be shared by multiple tables.2: The number sequence generated by sequence shared by multiple tables is always continuous and does not start again.3: If the sequence is no longer used, delete it.SELECT * from DAYSBFJ.
Original Address--http://blog.csdn.net/qq525099302/article/details/47253641SELECT * FROM b_role_authority as of timestamp to_timestamp(‘2015-07-25‘,‘yyyy-mm-dd‘)Note: The table structure changes after the invalid, can only query for a period of time
Oracle's SQL statement optimizationOptimization of SQL statements1. The Oracle optimizer cannot use indexes when using is NULL or is not NULL in the WHERE clause.2. For connected columns, even if the most one is a static value, the optimizer does
1 administrator identity into the CMD environment, execute the DBCA command, in the boot of the popup window, complete the instance creation2 if the appropriate character set is not selected during the creation process (preferably with the default
Vertical table and horizontal table, vertical table horizontal table
Vertical vs horizontal
The following example shows the traditional horizontal table structure:
Table HR
ID
Surname
Name
Department
Gender
Oracle Display object space usage show_space
Tom wrote a script to view the object space usage of the Oracle database.The following shows how to use it:
-Tool source code
CREATE OR REPLACE PROCEDURE show_space(p_segname IN VARCHAR2,
Oracle10g does not support the continue Solution
The solution is as follows:: Jump using goto
DECLARE done BOOLEAN; begin for I IN 1 .. 50 LOOP IF done THEN GOTO end_loop; END IF;
> -- Not allowed unless an executable statement follows NULL; -
In oracle, how does one obtain the local IP address and the domain name based on the IP address?----- Resolve the ip addressSQL> select utl_inaddr.get_host_address ('Google. com') from dual;UTL_INADDR.GET_HOST_ADDRESS ('Google. com ')----------------
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