The configuration of tomcat 5.x and tomcat 6.x connection pool is different. Here, the configuration process of tomcat 6.0 is recorded.
Container: tomcat 6.0
Database: oracle 10g
Procedure:
1,
Put the driver package ojdbc6.jar of the
In ORACLE, You can automatically create a unique index when creating a primary key constraint, or create a unique index first, and then create a primary key constraint based on this unique index. The latter method has the following advantages:
1./* + ALL_ROWS */ It indicates that the overhead-based optimization method is selected for the statement block, and the optimal throughput is obtained to minimize the resource consumption. For example: SELECT/* + ALL + _ ROWS */EMP_NO, EMP_NAM, DAT_
Project module: Survey and coupon Requirement: each questionnaire has three statuses: Start Time and End Time, And not started (status = 1) --> under investigation (2) --> ended Survey (3. The system is required to automatically determine whether
Calculate the total amountSelect sum (price * qty) from books; Query groups (the group by statement must be in select)Select sum (price * qty) from books group by pub; use Group by and having to replace where Incorrect case:This is not correct. As
Frequently used:Value assignment: [: =]Connection character: [|]Output: dbms_out.put_line ('some text '); 1. The example of the output of the application variable assignment is as follows:DeclareX varchar2 (10); -- declare a variableBeginX: = 'this
Summary of Oracle date timestamp Time FunctionsYyyy-mm-dd hh24: mi: ss. ff year-month-day hour: minute: Second. millisecond -- Last month, last yearSelect add_months (sysdate,-1) last_month, add_months (sysdate,-12) last_year from dual;-- Next month,
Computing Time Difference in Oracle is often used. You can use "date 1-date 2" and calculate it to obtain the time difference: day, hour, minute, or second.
For example:
Select
TO_DATE ('2017-02-20 17:45:04 ', 'yyyy-mm-dd hh24: mi: ss')-TO_DATE (
Author: skateTime: 2012/02/22 Oracle10g sysaux space increase and space recovery In Oracle10, The tablespace SYSAUX is introduced, and oracle stores statistics here. This is also to better optimize the system tablespace. We can use view V $
I recently summarized how to set the oracle primary key. paste it here and save it. There are two ways to set a primary key, one is auto-incrementing primary key, and the other is to generate a unique sequence.I. Auto-increment primary key
-- First
In Linux, how does one start multiple Oracle instances? I believe that many beginners of Oracle will encounter this type of problem. I will give a brief introduction below.
1. Switch Oracle users:
# Su oracle
2. Switch to the Oracle directory:
#
The database cannot use the archive logs of oracle when the set limit value is reached. The error message is: ORA-00257: archiver error. connect internal only, until freed. At this time, you can choose to move its log file to another place, delete
Sys_guid ()-a unique index in Oracle can use SYS_GUID () to generate a guid, which is equivalent to newid () in msSql (). In Oracle9i and Oracle 10g, SYS_GUID generates 32-bit data, for example, 234e45f0077881aae0430aa301161aa. However, the guid
Tables available: SQL> SELECT deptno, ename FROM emp ORDER BY deptno, ename; deptno ename ------ ---------- 10 CLARK 10 KING 10 MILLER 20 ADAMS 20 FORD 20 JONES 20 SCOTT 20 SMITH 30 ALLEN 30 blke 30 JAMES 30 MARTIN 30 TURNER 30 WARD 14 rows selected.
CURSOR is also called a CURSOR. It is often used in relational databases. In PL/SQL programs, you can use CURSOR and SELECT to query data in tables or views and read data row by row. Oracle cursors include display cursors and implicit cursors.
Today, when I used Oracle paging to query data, I encountered repeated data. Some data could not be found. I was very depressed and thought about it. I found the problematic paging statement: SQL code select * from (select row _. *, rownum _ from
Solve ORA-00257: archiver error. Connect internal only, until freed this issue is due to archiving logs full. Solution: SQL> select * from V $ FLASH_RECOVERY_AREA_USAGE; FILE_TYPE commandid NUMBER_OF_FILES ------------ commandid ---------------
In Oracle, how does one import the table structure under one user to another? Unix: exp \ 'sys/password as sysdba \ 'file =. dmp owner = Export user rows = Nimp \ 'sys/password as sysdba \ 'file =. dmp fromuser = Export user touser = import user in
I. Set operation operator UNION: (UNION) returns the UNION ALL records of the Two sets that remove duplicate values. (UNION) returns the records INTERSECT (intersection) of the Two sets that remove duplicate values) returns all records of the two
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