Generally after the completion of the import oracle.jdbc.driver.*; Statement, you will find an error. This requires:
First, add JDBC driver to Classpath
Two methods. One is graphical, computer-attribute-Advanced Settings-environment variable-edit
Programmers who are involved in programming may encounter an Oracle URL that is not valid when connecting to Oracle, and the following small compilation teaches Oracle to view the instance name method to help you solve this problem.
Oracle View
The following is a detailed analysis of several methods for obtaining execution plans in Oracle, which can be referred to under
1. Estimated implementation plan-Explain plansExplain Plan takes the SQL statement as input, gets the execution plans
1. In Oracle:
Select org_id
From organizations
Start with org_id=: org_id
Connect by Prior org_id=supervision_org_id
ORDER BY supervision_org_id
2. SQL Functiong:
Functionno Subfunctionno Subfunctiontype
Systemadmin Privilege 0
Systemadmin
Select DISTINCT (t.f_resume_id| | T.f_resume_status), T.f_resume_status,t.f_resume_status,t.f_recruit_channel,
t.f_small_channel_id
From CSS. T_resume_info T where T.f_resume_status in (80011,80012)
Distinct multiple fields, and of course the
To implement data synchronization in this way by insert into the table data in the current library table Select Remote Library, the Oracle service is configured, and both remote and local services are Oracle
Insert data in the current library?
Execute the same statement on two databases
Select code_id code,code_value Name
From code_value_t t
where code_id like ' 0_ '
and Class_code =
ORDER BY code_id
A normal, another but the error ORA-01722, the same field type, the same database
1. The origin of the problem
When the Oracle database field value is less than 1 decimal, processing with the char type loses 0 of the preceding decimal point
For example, 0.35 becomes. 35
2. Solution: Format digital display with To_char function
In peacetime development, we often encounter data tables in the duplication of data, then how to solve it? Here are two cases of data-weight method, one, complete duplication of data to weight, two, part of the field data duplication to heavy.
A
Select Logid,userid,logtime,url,description, (case operatetype when operatetype = 0 Then ' Add ' when operatetype=1 then ' modify ' Else ' delete ' end case] from log????
1. Case
Select Logid,userid,logtime,url,description, (
Case
When
How the Oracle database collects ORA-00904 errors in the execution plan and resolution of the specified SQL
(Copyright notice, I original or translated articles for reprint, such as reprinted for Personal learning, please specify the source;
Oracle does not distinguish between tables or indexes in the table space, all the tables and indexes can be placed in the same table space when the amount of data is relatively small, but as the volume of data increases, it is best to store the
oracle| controls the database system for a period of time, many parameters need to be adjusted, some parameters can be adjusted in the $oracle_home/dbs/initxxx.ora file, and some parameters must be adjusted in ORACLE's control file. For example,
oracle| Data | database
How Oracle databases are started and closed
First, several start-up ways:
1, Startup Nomount
Non-installation startup, this way to launch executable: Rebuild control file, rebuild database
Start instance, that is, start the
oracle| Data | database | Conversion in the database development process, you may encounter Oracle and VB date type mismatch, can not directly compare the problem. VB and there is no special function can be converted to Oracle date, this problem
Many users in a database instance of the Redo01~03.log three redo log deleted, there will be no normal landing database phenomenon, the following example is the specific recovery process, hoping to solve the problem for everyone:
One:
c:/>sqlplus /
1. When querying, use the name of the column as much as possible;2. When the sub-query and multi-table query can achieve the goal, try to use multi-table query;3. In a set operation, if the collection contains null, it cannot be in, but can be used
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