Oracle Database Learning Note 3

SELECT * from Stuent;ALTER TABLE student Add Stu_card char (18)--PRIMARY KEY constraint: Non-null, unique PRIMARY keyALTER TABLE student ADD constraintPk_stuid primary KEY (STU_ID)--Check the constrained check ck_xxxALTER TABLE student ADD

Oracle View locked tables and locks

--The following are the related tablesSELECT * from V$lock;SELECT * from V$sqlarea;SELECT * from V$session;SELECT * from V$process;SELECT * from V$locked_object;SELECT * from All_objects;SELECT * from v$session_wait;--View the locked tableSelect

Oracle work notes, non-recurring updates

  This blog for work, see the technical issues of the solution notes, Welcome to reprint, reproduced please indicate the source, thank you ~    Update Time: 2017-07-12  1. When reading the Clob field value, the Oracle Datagram data type is

(iii) Oracle Learning NOTE--SQL statement

0. The Scott User default table describesScott user tables directory contains four tables1. Insert (INSERT) statementTo insert data into a specified column:Insert into Values ("xx");Insert all column data:Insert into Values (x,'xx','lll');2.

Oracle (Create data file)

--Create a data fileCreateTablespace--Create a table space and create a data file at the same timeCreate TemporaryTablespace--Create a temporary data file while creating a temporary table spaceAlterTablespace ...AddDataFile--to add a data file to a

O3.oracle Some simple setup references after installation

sql>startup;Sql> select * from V$version; View version numberSql> SELECT * from dba_profiles s WHERE s.profile= ' DEFAULT ' and resource_name= ' password_life_time '; View password expiration settings for a specified profile (such as default)Sql>

Use of Oracle Functions (III)

--function1.oracle self-to_date,to_number standard function2. Custom Functions--Custom Function syntax1 CREATE OR REPLACE FUNCTIONfunction_name2 [(PARAMETERS [MODEL]datatype ...) ]3 RETURNDataType is| as4 [local_variable_declarations, .....]5 BEGIN6

A little memo about Oracle

What the database can't avoid is processing the dataScenario: Invoice information, many company employees in the transaction, fill in the invoice information is the same, so the company employees often want to call the unified invoice information,

Oracle Paging Query

Oracle Paging query statements make one of our most commonly used statements, as described below, for the use of Oracle paging query statements, and if you are interested in this aspect, you may wish to take a look.Oracle Paging query statements can

Plsql develope connecting Oracle database Configuration

First, before we talk about Plsql develope connect to Oracle database configuration, let's talk about what to do if you don't have to plsql develope to connect to the Oracle database, which is to install the Oracle database natively, but this is a

The mapping file for hibernate when using the Oracle database and the MySQL database. Different hbm.xml

Assume that you are using an Oracle database. So hibernate's mapping file. Hbm.xml For example the following:This ID is not generated by the database itself, it needs to be noted, and the fields must correspond to the entity class, and the

Caching of Oracle Sequences

In the high concurrency database system, the cache of sequences should be adjusted correspondingly. Now look at the definition of a high-concurrency sequence of the database itself. When we send a request to the database, listen to the reception,

Oracle database Development Face Questions

Recently participated in a number of interviews, summed up the competition in the Oracle development post most frequently asked what questions:1, delete and truncate difference? 1) Truncate is a DDL statement. Delete is a DML statement;2) Truncate

Oracle Hardening Exercises

Write a simple query statement1. Display all the information of the Department tableSelect * FROM Dept;2. Show department number, department nameSelectdeptno,dname from Dept;3. Displays the connection for the following fields and strings: Employee

Oracle Querying for duplicate data

Oracle Querying for duplicate dataSELECT * FROM table where condition and weight field not in(Select Judgment weight field from table where Condition group By field has count (*) > 1)Delete duplicate data according to ROWID, keep aDelete from table

The difference between MySQL and Oracle

1. Oracle is a large database and MySQL is a small and medium-sized database, Oracle has a market share of only about 20% 40%,mysql, while MySQL is open source and Oracle is very expensive.2. Oracle supports high concurrency, large traffic, and is

Fast synchronization of Oracle Dblinik tables

Create Public database link Link_mm_devConnect to STL identified by FosssitUsing ' (DESCRIPTION =(Address_list =(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.10.111) (PORT = 1521)))(Connect_data =(service_name = FOSSDBSB)))‘;--1 Link_mm_dev dblink

Oracle Dynamic Display Log

1. View the log file location.[email protected]>select inst_id,name,value from V$diag_info;inst_id NAME VALUE---------- -------------------- --------------------------------------------------1 Diag Enabled TRUE1 ADR base/u01/app/oracle1 ADR Home/u01/

Introduction to ORACLE creation of the self-increment field method-oracle sequence

One of the biggest headaches is having a primary key problem when inserting data into a table.Since the primary key cannot be repeated, you have to define a rule by itself to generate a value assigned to the primary key without repeating it.Now it's

Oracle Foundation Merge into

The merge into statement is a new syntax for merging update and INSERT statements in oracle9i.Through the merge statement, the other table is queried based on the join criteria of a single table or multi-table union query, and an update on the join

Total Pages: 2147 1 .... 1438 1439 1440 1441 1442 .... 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.