1. UsersUsers in Oracle are divided into two major categories1) when the Oracle database server is created, users that are automatically created by the system are called system users , such as Sys.2) users created by the system users, called
Overview:The flashback technology is part of Oracle's powerful database backup recovery mechanism, which provides fast and minimal recovery (most of the flashback functionality can be done in the database online state) When a logical error occurs in
Review what is a transaction?An indivisible sub-operation forms a whole, which either executes successfully or fails all. Example: TransferReview Why do you use transactions?If you do not have a transaction, for example, a user may have increased
Disclaimer: Scott or HR call username/scheme name/space nameScott--tigerHR-----LionQuery who the current user isShow user;650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/1A/wKiom1fUF4jBIjRCAAAPoOM61GI926.jpg "title=" 004. JPG "alt="
Hand first need to download oracle11g patch installation package, generally only paid users to obtain the installation package, other users can not get, how to do?Omnipotent Internet can do, can use http://www.wangpansou.cn/all other users put in
For the database, the most common operation is probably the query, a variety of complex queries often to engage us exhausted. Of course, this is nothing. However, for some multi-table queries, we often have no clue, do not know how to operate. Below
dotconnect for OracleDotconnect for Oracle is a data generator control that provides direct Oracle database connectivity for the Microsoft. NET Framework. It is completely based on ADO. net method, so you can use standard ADO entirely. NET data
Get ready
Col empno for 9999;col ename for A10;col job for A10;col Mgr for 9999;col hiredate for A12;col sal for 9999;col Comm for 9 999;col Deptno for 99;col tname for A40;set pagesize 80;
--Create a new table xxx_emp,
1.select:Syntax:SELECT [DISTINCT] {*,column [alias],...}From tableNote: [] the contents of the content represent the optional* represents all Columnsthe DISTINCT keyword can only be followed by the select keywordSpecify the column to query behind
Creating test tables and data
123456789
createtabletest(namevarchar2(10));insertintotest values(‘2-15‘);insert intotest values(‘2-33‘);insertintotest values(‘2-3‘);insertintotest values
--Query the SQL statement that Oracle is executing and the user who executes the statement[SQL]View Plain copy
select b.sid oracleid,
b.username Login Oracle user name, Li class= "alt" >B.SERIAL#,
spid
Query Employee information in department 20th or department 30th using the set operationSELECT * from emp where deptno = 20unionselect * from emp where deptno = 30;650) this.width=650; "src="
User management, mainly to explain the SQL classification of DCL. DCL Data Data control statements, mainly have grant (grant) and revoke (recycling) two commands.--SYS LoginConn SYS/Orcl assysdba;--Create user dog, password Wangwang, at which time
SQL statement for querying and deleting duplicate records1, look for redundant records in the table, duplicate records are based on a single field (ID) to determineselect * FROM table where Id in (select ID from table group Byid have count (Id) > 1)
To establish the tablespace and the user's steps:UserCreate:Create user username identified by "password"; Authorization:Grant create session to user name; Grant create table to user name; Grant create tablespace to user name; Grant Create view to
Oracle InstallationFirst switch to root user, execute Xhost +Then switch to Oracle User and execute export display=:0.0Garbled execution Export Lang=us_enHere are some common questions to tell you about the following two situations:One is a locally
Three major types and implicit data type conversions in Oracle(1) varchar2 variable length/char fixed length-->number, for example: ' 123 '->123(2) Varchar2/char-->date, for example: ' 2 May-April -15 ', ' 2 May-April-15 '(3)
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