Oracle's basic operations

1. Create user (requires DBA authority to log in)Create user username identified by password;After you create a user, you authorize it, and if you do not authorize it, you will not be able to log in to the database or do anything:Grant

Oracle Learning records eight + table queries

1. Descartes SetSELECT * from EMP, dept;2. Equivalent connectionSelect ename, Job from EMP, deptwhere Emp.deptno=dept.deptno;3. Non-equivalent connectionSelect ename, grade from EMP, SalgradeWhere Sal between Losal and Hisal;Actually, I don't quite

Oracle Foundation-Index

1. What does the index do?Answer: The index is used in the database to improve query efficiency.Add: Too many indexes can significantly reduce the efficiency of DML statements, and the principle of indexing is to build on fields that are frequently

Oracle uses a data pump to import and export some tables

1, export the name of a table (here will export sequences and function and other content)EXPDP Test/test@orcl schemas=Test DumpFile=test.dmp DIRECTORY=Db_bak EXCLUDE=TABLE: \ "not in \ (\'a\') \"2, export the name is not a table (remove not and we

Oracle Statistical information Collection

Statistical information Collection1: Create Analysis Table$ cd $ORACLE _home/rdbms/admin$ sqlplus/as SYSDBA > @utlxplan. SQL2: For convenience, you can create a synonym table ( by default only the SYS user can use )sql> create public synonym

Oracle Learning record two creation tables and other operational exercises

After the first chapter of the basic data operation instructions are practiced, some operations of the database are performed. Create a table class has two columns: numbers and names: CREATE table Class (numbers number, names char (20));This

Oracle CLOB like

CREATE TABLE Products (ProductID Number (TEN) is not NULL,Name VARCHAR2 (255),Description CLOB);Query statement:Select T.productid, t.name from Products twhere Dbms_lob.instr (t.description, ' AAA ', 1, 1) > 0;In Oracle, you can use the InStr

ORACLE consistent Read principle record

What is consistent reading?Consistent reading refers to a change in the middle that is ignored from the moment of query.Examples ShowFor example, I have two accounts, a, B. A has 1000 pieces and B has 1000 fast. When I query the query speed is

Oracle Learning record five Centos6.4 64bit installation of Oracle

Error logging: Invalid source path '. /stage/components/oracle.jdk/1.5.0.17.0/1/datafiles ' specified for unzip. This error should be I only unzipped the first compressed package, not decompression the second one.2. Another problem is that

Oracle Archive Mode related Archivelog

Tag:oracle    archive    archive   archivelog    Turn on archive mode> Archive log list;> Shutdown Immediate;> Startup mount> ALTER DATABASE Archivelog> ALTER DATABASE open;> Archive log list;View Archive mode while still looking at archive storage

Spring+mybatis+oracle ORA-00923: Expected from keyword not found

An error encountered during the use of spring+mybatis+oracle.Finally see the online sharing to solve this problem, mark.The main problem is that the configuration of the mybatis is problematic. I'm going to copy it right here.Original link:

Use of the Oracle trunc () function

The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2011-3-18 today's date is 2011-3-182.select trunc (sysdate, ' mm ') from dual--2011-3-1 returns the first day of the month.3.select

Oracle intercepts strings and lookup strings

The Oracle Intercept character (SUBSTR), which retrieves the character position (instr), when the then else End statement uses the favoriteCommon functions: Substr and InStr1.SUBSTR (String,start_position,[length]) to substring, return

Oracle (i)

Oracle has to start two services:1.oracleserver***. (' * ' means that the database name is also known as an "instance" and a service represents a database)2.oracleoradb11g_home1tnslistener. (only start this to connect to the database via JDBC)Oracle

Oracle scheduled execution of stored procedures

Scheduled execution of stored procedures in peacetime development often used, years ago when they did a, because the time relationship has not been able to record, is now recorded.First, a complete example is used to implement the stored procedure

Oracle's Merge Usage

The merge is used to select some data from one table to update or INSERT into another table. The way in which you end up with an update or an insert depends on the condition in the statement. Here's a quick example: SQL> Create TableMerge_test1 (A

[Ubuntu14.04] Build a PHP5 + Apache2 + Oracle environment

[Ubuntu14.04] Build a PHP5 + Apache2 + Oracle environment RT A recently developed project where the database uses oracle. Oracle itself supports Red Hat, which is not good for ubuntu. If ubuntu needs to install oracle, the system itself needs to do

Oracle Auto-start

Oracle Auto-start By default, Oracle databases in Linux do not start on their own, but many times we need to start the Database on their own, so we need to set the settings as follows: System Environment: CentOS 6.5 ORACLE version: 10.2 1.

Official Oracle and oracle website

Official Oracle and oracle website We have encountered such a requirement: to input a String for the method, such as "User ID0, user ID1, user ID2... ", then return a result set based on these IDs as a data table for query by others.SELECT * from

Oracle startup and Shutdown

Oracle startup and ShutdownOracle004 oracle-related program startup and shutdown: Disable: EM, ISQLPLUS --> listener --> database isqlplusctl stop, emctl stop dbconsole --> lsnrctl stop --> there are two ways: 1. dbstop 2. sqlplus as/sysdb -->

Total Pages: 2147 1 .... 2043 2044 2045 2046 2047 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.