The connection with Oracle database in Java application
Author: 洪建
In the Java EE application development, the application and the database connection establishment is one of the problems that we often encounter. Here I talk about connecting Oracle
Method 1: Yesterday in order to manage some information of the database, the first time with Toad for Oracle this software. Did not expect to encounter the first use: "Can" T initialize OCI. Error-1 ".
This error is identified because there is no
oracle10g RAC Shutdown and Boot Step 1: db (all instances), OS and server need to be shut down. A. First stop oracle10g Environment $ lsnrctl Stop (stops listening on each node, also can operate with Srvctl)
Or
$ srvctl Stop listener-n host1 (Stop
1 Right-click the "Computer"--> manage--> Services and application--> services and deactivate all Oracle-related services (preceded by Oracle, such as ORACLEDBCONSOLEORCL).
2 start--> All Programs-->oracle-->oracle Install products-->universal
I. Classification of Cursors
The Oracle database provides two types of cursors, static and dynamic, while static cursors are divided into hermit cursors and explicit cursors, and dynamic cursors are classified as weak and strongly typed. Second,
As developers are excited to turn the JAVA8 Toolkit to JAVA9, Oracle's chief executive proposes to limit two versions of compatibility.
In an email from the OPENJDK mailing list in the afternoon of Monday, Mark Reinhold, chief architect of the
The understanding of "one" to Oracle_sid
--------------------------------------------------------------------------------The role of SIDS in Oracle is similar to that of a "switch variable"---directs Oracle to read and load the appropriate parameter
1 method of Rollback after Oracle submits data with Pl/sql
1, if the database table, does not support the flash-back functionALTER TABLE A enable row movement;2, query Delete data point of time data (that is, flash back to the point before the
In the daily study of the database, we found that the default temporary table space of the company production database is up to 30G, the utilization rate is 100%, and the usage rate is 100% after being adjusted to 32G, which causes the disk space
First, the terminology of backupTurn off and on (cold and hot standby consistent and non-consistent backups) open backups can only be in archive modeAll and local local backups can only be in archive mode.Full and incremental backup incremental
situation one: log in using Sqlplus:Enter the password of the user name normally, will be error, because SYS is a super administrator outside the database, so when we log into enter a password: password +as sysdba (for example: 123456 as SYSDBA)
1. TRANSLATE syntax: TRANSLATE (Char, from, tousage: Returns a string that replaces each character that appears in the From, with the corresponding character in to. If the from is longer than the to string, then the characters that are
The main steps used by SQL Tunning Advisor:1 Setting up Tunning task2 Execute Task3 showing tunning results4 Follow the recommendations to run the appropriate tuning method----Advisor Authorization1 creating tasks based on SQL textFUNCTION
Impact of Oracle's acquisition of sun on groovy/grails
The first thing we feel is that there should be a good impact.
Oracle has long supported the Java platform. This is not an alternative to Oracle, but an inevitable choice as a competitor
Using the JDBC-ODBC bridge to connect to the Oracle database and JDBC driver is almost the same, so we don't have to set the environment variable. There are two key statements for connecting to the database in JDBC:
Class. forname ("oracle. JDBC.
Return result of the CHR function: Return string, which contains the specified characterCodeRelated characters.
The CHR ("0") is a string of 0 characters.
CHR ("1 ")
CHR ("2 ")
CHR ("3 ")
CHR ("4 ")
CHR ("5 ")
CHR ("6 ")
CHR ("7")
It was freezing, and I stayed at home and read "Mastering Oracle SQL" 2nd. I found that Oracle is still very powerful, and there are two hundred optical functions. It is difficult to simulate the Object-Oriented Query languages, in particular,
[Oracle entry series] Chapter 2 _ Functions -- v512 studio Editor: Xuan Yu
Function
Nvl () function
Count () function
Case expression
My blog
Date type
Nvl2 () function
Dedode () function
Having clause
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