If Oracle is set to be inaccessible for a certain period of time, the connection will be automatically closed, so that when Java accesses Oracle again, an IO exception will occur.Solution: Add the following configuration information to the spring
Install the Oracle Instant Client in windows and use PL/SQL developer.
Test System: Windows 7 Home Basic.
(1) install Oracle Instant Client
For installation of Oracle Instant Client, see post http://blog.csdn.net/zklth/article/details/7190035
ArticleDirectory
Use pseudo-column rownum
Use analysis functions
Use minus
Use pseudo-column rownum
Query the first 10 records
Select * From t_user t where rownum
Rank the first three records by student ID
Select * from
The following SQL statements include:
Create a table and specify the tablespace
Add Table remarks add field remarks
Add Constraints
Add Index
Assign and revoke permissions
-- Create TableCreate Table user name. Table Name(Field 1 number (19) not
From: http://www.javaeye.com/topic/215571
In the sqlmap configuration file of ibatisSelectkeyElement hasTypeAttribute, which can be specifiedPreOrPostIndicates that (Pre) Or generate later (Post).
Oracle settingsXML Code
Id =
I have previously installed a database named 10.1.0. After deleting the database named 10.1.0 and re-installing the database named 10.2.0, I started oracleoradb10g_home1tnslistener and reported an error.
Error: --------------------------- services --
As a new feature of Oracle 11g, rat aims to evaluate data performance. When we upgrade or modify some configurations for the database, we can compare the performance before and after the changes when changing the database server, so that the
34 SQL Optimizations
We should not only write SQL statements, but also write SQL statements with excellent performance. The following sections will help the author learn, extract, and summarize some materials to share with you!
(1) select the
Trigger is similar to procedure and function, but it cannot be displayed and called. It can only be triggered by an event and then automatically called by Oracle. generally, you can create a trigger for a table or view and trigger a trigger when you
An index is a database object used to accelerate database queries.
The principle is to reduce the IO operations of the query to accelerate.
Index types:• Clustered index: sort and store the data rows according to the key values of the data rows in
The prerequisite for Oracle's information lifecycle management tool Ilma is Apex.Apex is installed by default in Oracle 11g Release 2. It is not enabled after installation. You can use the following method to enable it.SQL> show userUser is
To test the robustness of the application, Deliberately interrupt the Pro * C program that is normally connected, so as to observe their performance.
The test method is as follows: 1. When compiling the Pro * C application, add cpool = No or cpool =
I. Case Study
A database has two tables about employee information, salary, and department information of a company. They are EMP and dept tables. The structure of the two tables is as follows:
The requirements are as follows:
1. Create a
----------------------------------------------------------------------------
---- This is andkylee's personal originality. Please repost it with respect to the author's Labor achievements;
---- The original source must be specified for
1. asset type
Asset type: capitalization, CIP, and Billing
Capitalization: refers to the assets that need to be calculated for depreciation.
CIP: it is an asset under construction and requires no depreciation. Depreciation starts after it is
Brief Introduction
InstallShield has built-in support for MySQL and Oracle. However, this function is implemented through ODBC and has strict requirements on the SQL script format. Therefore, an error is often reported when the script that has been
Today, from last week, I finally got rid of my problem! I'm proud of it.Oracle 10g Database is installed on my computer. After configuring the variables, use PL/SQL to operate everything. after installing Oracle 10g client again, the problem arises,
Last_day: returns the date of the last day of the month that contains the date parameter.Select last_day (sysdate) from dual;
Last_day (sysdate)
-------------------
2008/02/29 11:24:04
SQL> select last_day (date '2017-02-15 ') from dual;
Generate the guid type in Oracle -- sys_guid () function
Oracle8i introduces sys_guid, which has many advantages over the traditional sequence used by Oracle administrators. A sequence generator simply creates a series of integers starting from a
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