1. added the oinstall user group and dba user group, added Oracle users, and added them to these two user groups. The default group is the dba user group;2. Set oracle user environment variables
Command:Vi ~ /. Profile (". "indicates hidden files, h-
1. install MySQL database first download MySQL from the MySQL official website, and then enter the directory of the downloaded Installation File, run the following command to install, where the MySQL-server-community-5.1.56-1.rhel5.i386.rpm is just
Oracle analysis function over and Window Function
I. analysis function overOracle provides analysis functions starting from 8.1.6. analysis functions are used to calculate a group-based aggregate value. What is different from aggregation
Summary: In data migrate, the constraints on some tables are always bothering us, making migratet difficult. How can we use the attributes of constraints to solve these problems? This article describes in detail the four attributes of constraints:
1. Block Cleanout description
Previous test references:
Effece ITL (Interested Transaction List) Description
OracleBlock scn/commit scn/cleanout scn description
Block clean out refers to changing the data in a block from dirty to clean. It is
SQLiteIs a lightweight database that compliesACIDAssociationRelational Database Service (RDS) is already used in many embedded products. It occupies very low resources and may only require several hundredKThe memory is enough. It
Test code:
DECLARE
TYPE list_of_names_t is table of VARCHAR2 (100) index by PLS_INTEGER;
Happyfamily list_of_names_t;
Rochelle row PLS_INTEGER;
BEGIN
-- Build table data which indexIsNot consecutive.
Happyfamily (2020202020): ='Lil';
Fig (-1
The index corresponding to a primary key becomes garbled.
For SQL plus query:
SQL> select INDEX_NAME, INDEX_TYPE, TABLE_NAME, UNIQUENESS from user_indexes where
2 table_name = 'oo _ OMS_USER ';
The index name has three rows and is garbled:
XP @
#@
R
Restore: restore recover recoveryFirst use the restore database command to restore to the backup point through the backup file, and then use the recover database command to restore to the time point when the media is damaged through the archive log
-- The following is an example of MySQL statement for concatenating strings:
-- Assign values to the variables to be spliced
SET @ VARNAME = 'lil ';
-- Concatenate a string, where? Is the parameter for executing the concatenated string statement,
Procedure:
1. Create a temporary tablespace for transit
2. Delete the original temporary tablespace
3. re-create it.
Operation Command:
Create a temporary tablespace
Create temporary tablespace temp2
Tempfile '/u01/oradata/orcl/temp02.dbf'
Scott is a demo user who helps you learn how to use Oracle
The hr user is an example user. It is generated after "Sample Database" is selected during database creation. It is used to simulate the database of the Human Resources Department.
SYSDBA is
Data File recoveryRestore accidentally lost data files after being closed in the open stateBesidesSystem tablespace data file (mount)Besides,Other data files can be restored in the open (mount) state.. Restoring data files in the open state can
Patch Pack: p6810189_10204_Linux-x86.isoAfter mounting and unzipping, run./runInstaller-debugThe following error is reported:-------------------------------------------------------Initializing Java Virtual Machine from/tmp/OraInstall2011-08-25_06-52-
Source code: xx. pc
/*
Function: demonstrates the Oracle scroll cursor operation.
Considerations when defining a cursor:
1. The declare cursor statement must be the first statement to use the CURSOR.
2. The cursor name is an identifier
Note that in Linux bash, this is certainly not supported in Windows .. However, you can try to write a bat batch file to achieve the same effect!
To run the mysql file,If you have logged on to mysql, you can directly run: source filename. SQL In the
When Oracle 9.04 is installed on Ubuntu Server 10.2, the all_no_orcl error occurs.Open the log file as prompted and find the following error:Information: Creating/opt/oracle/lib/liborasdkbase. so.10.2
Information: gcc:Information:/usr/lib/libstdc ++
In Oracle 10 Gb, if we did not select an installation example when creating an instance, we can also create it using the script under $ ORACLE_HOME/demo/schema after creating the instance. For details about the creation method, the official
I. creation process
Create Or Replace ProcedureP_rebuild_all_index(Tablespace_nameIn Varchar2)AsSqltVarchar(200);BeginForIdxIn(SelectIndex_name, tablespace_name, statusFromUser_indexesWhereTablespace_name=Tablespace_nameAndStatus='VALID' And
1. Concept of an instance
An instance is an Oracle software in the running state, mainly composed of a memory structure and some processes. In Oracle, each database has at least one corresponding instance. A single instance can only open and use one
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