This article mainly introduces the Oracle database of temporary table usage, I hope to be helpful to everyone's study and work.
One: Grammar webjx.com
In Oracle, you can create the following two types of temporary tables:
(1) Session-specific
Problem Description:
Today, in Saturday, I didn't expect to receive a call from a developer who said it was necessary to add an index field to the partition table (this is a large partition table with more than 1T of data more than 100 million rows,
Today encountered ORA-12560:TNS: Protocol adapter error problem, after a few efforts to solve the problem, and share with you.
There are three reasons for the problem with Ora-12560:tns: Protocol Adapter errors:
1. The monitoring service did not
Database Installation
After Oracle cluster installation, the next is the most important database installation, the entire database installation is not very difficult, the user as an Oracle user login RAC1 master node, the extracted file
@ set Oracle_home=d:\oracle\product\10.2.0\db_1 @rem echo%oracle_home% @ set ORACLE_SID=ORCL @rem echo%oracle_sid% @ set Nls_lang=simplified Chinese_china. ZHS16GBK @rem echo%nls_lang% @ set Path=%oracle_home%\bin @rem echo%PATH% @ set
Oracle's stored procedures and calls
Oracle Stored Procedure Syntax
Oracle's stored procedure syntax is as follows:
Create procedure stored procedure name (random)
is where you can define constants, variables, cursors, complex data types
Tomcat's server.xml configuration is as follows:
The error message is as follows:
Java.sql.SQLException:Io Exception:connection refused (description= (tmp=) (vsnnum=169870592) (err=12505) (error_
Stack= (Error= (code=12505) (emfi=4)))
Oracle Read the comments list, first three by the number of points, and then sorted in reverse order of creation time, required pagination:
The first way:
SELECT * FROM (select b.*, DECODE (rownum, 1, 1, 2, 2, 3, 3, 4) rankFrom (SELECT a.*From
Operation Details: https://www.cnblogs.com/xiaodf/p/6030102.html
Note: You need to create a table structure to be exported before exporting. An error occurs if the exported table does not exist in the database, and the data in the table repeats if
A recently done module involves 8 tables of joint query, because these 8 tables have a lot of master and Subordinate Table Association, the results of the use of fuzzy query results set a duplicate record. As follows:
The SQL statement executed is
Using Database oracle10g
The name of the database I am going to build is called db231 (three digits after the db+ number)
oracle_sid=db231
Oracle_base=f:\oracle\
Oracle_home=f:\oracle\product\10.2.0\db_1\
First, do not choose to install the
Workaround :
1, first look at the Oracle monitoring and Oracle services have been launched. To initiate Oracle listening:cmd command Line window, input lsnrctl start, enter that start listening.2, look at ORACLE's SID name, such as the creation of
ORACLE Advanced Function Application
--Grouping functions
1, ROLLUP
--Subtotal, total of statistical standard grouping and corresponding dimensions
The Oracle GROUP BY statement also supports rollup and cube statements in addition to the most basic
Data IndependencePersonally understand that early applications need data directly linked to the database table, if for some reason, need to modify the table structure, then it is likely to cause the application also yo make the appropriate changes.
Why should there be a constraint?Constraints: constraint is a keyword
Constraints are meant to prevent invalid or problematic data flow into a table, the term is-"maintain data consistency." Constraints are rules imposed on a table, conditions. If
Sequence (SEQUENCE)
A sequence is a database object that can be used to generate a unique integer. The main code value is generated automatically by using a sequence.
The value of a sequence is automatically generated by a special Oracle program, so
Sequence
--create sequence
Create sequence empseq
increment by the
start
with MaxValue Cycle
Nocache--needn ' t cache
--query sequence
Select Sequence_name,min_value,max_value,increment_by,last_ Number from
user_sequences-
-Find Next
Common date-type data types: Date and timestamp the storage in the database is fixed to 7 bytes.
1.
Get system time select Sysdate from dual; --time format depends on system settings
2.To convert a date to a character:Select To_char (sysdate, '
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