I use the MyEclipse 6.0 version, Oracle is the 10g version, the following problems occurred during the connection
Java.sql.sqlexception:ora-00604:error occurred at recursive SQL Level 1Ora-12705:cannot Access NLS data files or invalid environment
Recently, an Oracle-related optimization has been done to a project, from the original 1-minute query time, optimized to only 1 seconds (joint query on 1 million records).
In general, the so-called query optimization, mainly to create indexes,
%type//If the declared variable is mapped directly to a column in the database, you can use the%type keyword to set the variable//anchor to this column. What is the benefit of doing so? For example://declare v_ename scott.emp.ename%type; This method
Search the network, about the Oracle garbled discussion a lot, but did not find a prescription for the disease.
To explain the situation first, the reader can reproduce the problem according to the instructions:
In Oracle9i, there is a table test1
Reference Source: http://download.csdn.net/detail/guoquanyou/3614666
Add table Student to Oracle database
CREATE TABLE Student (STUDENT_ID Number (6) is not NULL PRIMARY KEY,Student_name VARCHAR2 (Ten) is not NULL,Student_age Number (2) Not
Oracle Generation Random Number:
Select To_char (sysdate, ' YYYYMMDD ') | | Lpad (Round (Dbms_random.value (1,999999999)), 9,0) from dual;
To_char (sysdate, ' YYYYMMDD ') is a date, that is, the date of the current day,
|| is the
Transactions in Oracle
A set of SQL statement operations to become a transaction, the database management system must ensure the atomic (atomicity), consistency (consistency), isolation (isolation) and persistence (durability) of this set of
Yesterday, the head was assigned a task, mainly to write a trigger, used in one of the tables in a field update, the same table will also modify another field.
I yesterday that tangled ah!! For a long time, the main is not played before the trigger,
With Oracle for several years, we've all heard about some of the day-to-day development and optimization techniques, and simply list
1: Query performance for Tanku
To see the amount of data, query conditions, whether hit the primary key, index, if
In Oracle, there are times when you need to update another table with one table. The following are examples of implementations:
1. Create a table test_a
CREATE TABLE Test_a (ID Number (19),Name VARCHAR2 (20),Age Number (3))
2. Insert some data
Oracle hierarchy query (connect by) is used in structured queries, and here's a basic syntax for Oracle hierarchy queries, which hopefully gives you a deeper understanding of Oracle hierarchy queries.
SELECT statements in Oracle can use the start
B-tree Index
A B-Tree index has only one root node, which is actually the topmost branch node in the tree.
You can use the following figure to describe the structure of the B-tree index. where b represents the branch node, and L represents the leaf
1. Create test table and serial number
[SQL] view plain copy print? CREATE TABLE Job_test (ID integer,add_time date);
SQL] View Plaincopyprint?
Create sequence seq_tm_idMinValue 1MaxValue 99999Start with 61Increment by 1Cache 20; 2, the creation
1. Basic grammar
This is a must, what select,insert,update,where and so on. Mastering this knowledge can basically do some work with validation and testing. Target positioning Yu YUNWI or testing.
2. Preparation of stored procedures
To know how
Functions in Oracle
Functions in Oracle are part of subroutines and packages, and functions are similar to procedures and are named Pl/sql blocks stored in a database. The main feature of a function is that it must return a value. Specify the
No output parameters:
DeclareJobno number;BeginDbms_job.submit (Jobno,What => ' sp_alert_info; '--sp_dayend as the name of the stored procedure--interval => ' TRUNC (sysdate) + 1 + 17/(24) '--Define time intervalInterval => ' TRUNC (sysdate, '
--Execute the following statement in the user table that needs to be exported to ensure that the empty table is also allocated segment. Currently using login Plsql, execute the following statement
DECLARE
CURSOR empty_tables is
SELECT
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