Install Oracle database management software SQL Developer in Ubuntu 14.04
This is the second article about building Oracle Development Environment logs.
Article 1: Build a PHP5 + Apache2 + Oracle environment in Ubuntu 14.04
This article will install the Oracle database manag
The Oracle installation configuration tutorial is shared with you for your reference, the details are as follows
1, installation
Oracle version: Oracle DatabaseG Release 2 (10.2.0.1)
Download Address:
Http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
Installation settin
The DECODE function is Oracle PL/SQL is one of the most powerful functions, and only Oracle SQL provides this function, and the SQL implementations of other database vendors do not yet have this function. What is the use of decode? Let's first construct an example, assuming
;ontable_name>(column_name);Composite Index:Create IndexI_deptno_job onEMP (deptno,job); —>index The DEPTNO, job column of the EMP table. Select * fromEmpwhereDeptno= the andJob='sals' -Walk the index. Select * fromEmpwhereDeptno= the ORJob='sals' -A full table scan will be performed. Do not go indexSelect * fromEmpwhereDeptno= the -Walk the index. Select * fromEmpwhereJob='sals' -Do a full table scan, do not go index.If there is an OR operator in the WHERE clause or a separate referenc
because you did not select or. In the following example, indexes are built on both loc_id and region.Efficient:SELECT loc_id, Loc_desc, RegionFrom locationWHERE loc_id = 10UNIONSELECT loc_id, Loc_desc, RegionFrom locationWHERE region = "MELBOURNE"Low efficiency:SELECT loc_id, Loc_desc, RegionFrom locationWHERE loc_id = ten OR region = "MELBOURNE"If you persist in using or, you need to return the least logged index column to the front.7. Replace in with exists instead of not exists instead of in
;Viii. creating tables, sequences, indexes, and views1. Table(1) Create a tableCREATE TABLE Student (ID int constraint STUDENT_ID_PK primary key,Status Varchar2 (40),Last_modified Date Default Sysdate);(2) Modify the tableAdding columnsALTER TABLE studentadd modified_by int;Modifying the data type of a columnAlter Table StudentModify status char (15);Delete ColumnAlter Table StudentDrop column status;2. Constraints(1) Adding a CHECK constraint(2) Add NOT NULL constraint(3) Add foreign KEY constr
(1) Select the most efficient table name order (valid only in the Rule-based optimizer):
The Oracle parser processes the table names in the FROM clause in Right-to-left order, the last table (driving table), which is written in the FROM clause, is processed first, and in the case where multiple tables are included in the FROM clause, you must select the table with the least number of records as the underlying table. If you have more than 3 table join
OraclePL/SQL calls Java to generate Excel (instance tutorial), oracleplexcel
There is a need to write an oracle stored procedure to generate an Excel file to the specified directory, but oracle's own API seems to be not powerful, therefore, Java can only be implemented through another more powerful language. There is a Java framework called POI, which is very us
What SQL statements Does oracle use to determine whether the table does not exist?
What SQL statements Does oracle use to determine whether the table does not exist?
The ORACLE tutorial is: what
The database connection code provided in this article is an asp.net and Oracle, SQL Server, and Access database class. If you are an asp.net developer, you will be able to use it. net can be connected to Oracle, SQL Server, and Access. If you use this database, you can directly use it. It also solves various database c
have a large temporary segment to maximize the performance of I/O. The partitions in the temporary section need to be swapped into memory for a hash join. At this time the cost is close to the full table Scan small table + partition number * Full table scan large table cost and.As for the two tables are partitioned. The advantage is the ability to use parallel query, where multiple processes join at the same time for different partitions and then merge.But complicated.When using a HASH join, th
Basic Oracle Tutorial: SQLPLUS Environment command. Commonly Used commands of sqlplus when an SQL statement is entered, SQL is cached in SQLPLUS. This cache is small and only one SQL statement can be allowed.
Basic Oracle
Oracle SQL Performance Optimization(1) Select the most efficient table name order (valid only in the rule-based optimizer):The Oracle parser processes the table names in the FROM clause in a right-to-left order, and the FROM clause is written in the final table (the underlying table, driving tables) will be processed first, and in the case where the FROM clause
Guide. In simple terms, the process includes the following steps:
Set up one or several SQL tuning sets. STS can be created in Oracle Enterprise Manager through an existing awr snapshot, saved snapshot set, or a defined SQL history period. They can also be created manually using the procedures in Dbms_sqltune.
Use the Pac_stgtab_sqlset procedure in Dbms_sqltun
"Sqlplus" and the Sqlplus prompt in the console does not have such a command because the environment variable path is not joined to the Sqlplus path. Add it this way: right-click on "Run SQL command line" and view the properties as follows
Copy the paths in the target, and then open the environment variablesSelect the path of the user variable, click Edit, and then at the end of the copy of the path to paste in, paste before you remember to ente
essentially unused.Mysql> SELECT * FROM student NATURAL JOIN class;+----+------+-----+---------+-------+| ID | name | Age | ClassId | CNAME |+----+------+-----+---------+-------+| 1 | S1 | | 1 | Class One | | 2 | S2 | | 1 | Class II | | 3 | S3 | | 2 | | +----+------+-----+---------+-------+3 rows in SetYou can see that there is only one column ID, because student is automatically merged with the same ID column in Class Two table, which is equivalent to the
Oracle
This is the SQL BASIC statement for the Oracle database,
SQL Plus execution passes the
------------------------------------------------------------------
Select Empno, To_char (Sal, ' 999,999.99 ') Sal from EMP;
SELECT DISTINCT deptno from EMP;
Select empno,ename,sal*0.5 from emp where deptno=10;
Select Empno|
Continue Zend Studio Tutorials after a series of tutorials on getting started with Zend Studio7, Zend Studio8 Chinese, Zend Studio debugging, and more. This time, I'll explain how to use Zend Studio8 SQL database resource Manager. As a powerful PHP development tool, Zend Studio provides powerful database source management and SQL statement operations to facilitate our centralized management of databases in
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.