Oracle database queries basic data

------------------------------------------------------------------Find out the EMP tableSELECT * from EMP;--Select all information for employees in department 30SELECT * from emp where deptno = 30;--The number of the employee who listed the position

Oracle Installation Notes

The virtual machine probably needs 60-80g of hard disk space, then the memory starts at 4G1. The first is the installation of operating system Rredhat, in the installation process to pay attention to each step to be optimistic, to choose with a GUI

How Oracle Sets the maximum number of connections

View Session:SELECT * FROM v$session where username are not nullSelect Username,count (username) from v$session where username isn't null GROUP by usernameCurrent number of connections:Select COUNT (*) from v$processView settings for the number of

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 Shutdown Audit Feature

[Email protected] ~]# su-oracle[Email protected] ~]$ Sqlplus/as SYSDBASql*plus:release 11.2.0.3.0 Production on Wed Jul 12 09:54:57 2017Copyright (c) 1982, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0

Oracle Simple Learning Notes

Create user 1 CREATE USER by password; //This is the simplest user-created SQL statement. 2 CREATE USER by default Temporary temp; //Increase the SQL statement that specifies the tablespace. Assigning User Rights 1

JDBC Link Oracle Database

Package Test;import java.sql.*; public class Jdbc_test {//ORCL is the database name in the Oracle database, and localhost indicates that the Oracle database connecting to the native//1521 is the port number of the connection private stat IC

Primary knowledge database and Oracle database

First, the basic concept of the databaseIi. Examples of databasesIII. Features of OracleIv. Oracle VersionV. Installation of Oracle ConsiderationsVI. Introduction to SQLVII. SELECT statementsFirst, the basic concept of the databaseDatabase (DATABASE,

Getting Started with Oracle table spaces and tables instructions

Oracle database-Common operations directivesView port number DirectivesNetstat–aClear screen:Sql> Clear Scre; SQL> Host CLS;Table SpaceCREATE TABLE Spacesql> Create tablespace tc20 datafile 'e:\tc20_data_dbf' size 20m autoextend on Next 5m maxsize

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 trunc () function

The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2013-01-06 today's date is 2013-01-062.select trunc (sysdate, ' mm ') from dual--2013-01-01 returns the first day of the

Oracle Second step creates table spaces, users, authorizations

windows+r→ type Sqlplus, enter the installed Oracle Database Super Administrator account password to log in. Show:Success.To create a table space:To create a user and default tablespace:Authorize the user to create a database operation:Code:sql>

Oracle View user Information

1. View All Users:SELECT * from Dba_users;SELECT * from All_users;SELECT * from User_users;2. View user or role system permissions (System permissions that are directly assigned to a user or role):SELECT * from Dba_sys_privs; SELECT * from

Oracle table data query for getting Started (iii)

Oracle Table Complex Query--sub-queryWhat is a subquery?A subquery is a SELECT statement embedded in another SQL statement, also called a nested query.Single-line subqueryA single-line subquery is a subquery statement that returns only one row of

Cleanup of temporal table spaces in Oracle

IamlaosongThe Oracle temporary tablespace is used primarily for querying and storing some buffer data.The primary reason for the temporary table space consumption is the need to sort the intermediate results of the query. the primary role of the

Java:oracle ()

--MAX,MIN,SUM,AVG,COUNT,NVL (,)--Aggregate function--Max: Max value--Max can take the maximum value of the number, or the maximum value of the string (alphabetical order), according to the actual meaning of the scene, it is best to appear in a SQL

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

How to teach you to start Oracle's two related services quickly with a cmd command

After you have installed the Oracle database.It will start the service by default.In order to save the computer resources, we have to adjust it to manual.We have to manually after the Oracle database will have to go to the service inside one to

Total Pages: 2147 1 .... 1158 1159 1160 1161 1162 .... 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.