Alibabacloud.com offers a wide variety of articles about oracle jdbc oracleconnection, easily find your oracle jdbc oracleconnection information here online.
The RAC configuration is as follows:
Node1: IP address 192.168.60.132, Instance name: Rac1, Host Name: Rac1
Node2: IP address 192.168.60.144, Instance name: rac2, Host Name: rac2
The RAC service name is oratest.
My application server is Apache + Tomcat
The configuration process is as follows:
1. After searching, we found that there are many connection RAC methods and copied the following jdbcurl:
JDBC:
Label:Java Connection to Oracle database JDBC (Java Data Base Connectivity,java database connection), then how do we use Java to connect the database? importjava.sql.connection;
importjava.sql.drivermanager;
importjava.sql.preparedstatement;
importjava.sql.resultset;
importjava.sql.sqlexception; publicclassjdbc{Publicstaticvoidmain (String[]args) {//1. Importing jar Packages Project name---->buidpath-----
triggersA. Enabling and disabling triggers: When to prohibit: Prohibit data import and exportsql> ALTER TRIGGER aiu_itemfile DISABLE;sql> ALTER TRIGGER aiu_itemfile ENABLE;B. recompiling a trigger: After a database object has changedC. Deleting a triggersql> DROP TRIGGER Aiu_itemfile;19. Triggers and stored proceduresTrigger Stored proceduresWrite no parameter, return value has parameter, return value (parameter)Write cannot commit or rollback canCall-way events occur automatically when called
oracle| Source Code
People who have used JDBC even ORACLE will know the fact that we need the library file Classes12.zip exists in the $oracle_home/jdbc/lib directory (but there are still some rookie often in the forum to seek this library files, really hard) But few know that ORAC
Tags: CPM baidu ext tar installation start warehouse user color1. Due to Oracle licensing issues, MAVEN3 does not provide Oracle JDBC driver, and in order to apply the Oracle JDBC driver in a MAVEN project, it must be manually added to the local warehouse , which uses
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.
How to process Oracle BLOB fields in JDBC
Source: Java resources Source: Hao congping
How to process Oracle BLOB fields in JDBCWhy should I write this article?I encountered this problem in my project some time ago. It took me two days to solve the Blob problem. I have also tried various methods introduced on the Internet. They all use the s
Conventions: 1. If java. lang. unsatisfiedLinkError: do_open, you need to set DriverManager. modify the url of the getConnection () method to jdbc: oracle: thin: @ 127.0.0.1: 1521: oradb. The specific cause is unknown. 2. If java occurs. SQL. SQLException: Unsupported Character Set: oracle-characte
Conventions: 1. If java. lang. unsatisfiedLinkError: do_open, you
Java database connection (JDBC) APIs are a series of interfaces that allow Java programmers to access databases. Different developers have different interfaces. After using JDBC from Oracle for many years, I have accumulated many skills that allow us to better utilize the system performance and implement more functions.1. Use the Thin driver in client software de
Java database connection JDBC) APIs are a series of interfaces that allow Java programmers to access the database. Different developers have different interfaces. After using JDBC from Oracle for many years, I have accumulated many skills that allow us to better utilize the system performance and implement more functions.1. Use the Thin driver in client software
Due to Oracle licensing issues, MAVEN3 does not provide Oracle JDBC driver, in order to apply Oracle JDBC driver to the MAVEN project, it must be added to the local repository manually.
1. Download the corresponding version through the official
name private static String classname= " Oracle.jdbc.driver.OracleDriver " ; Url private static String url="Jdbc:oracle:thin : @192.168.2.2:1521:java46 " ; Connect to database user name private static String username= "Scott" ;Password to connect to the database private static String password= "NIIT" ;Declares aConnection private static Connection Connection = Null; The method is statically decorated to form a static code block, and the value is loaded oncePubl
There are usually four connection methods to choose from. Here I only use two of themI use tomcat under win98The server is winnt and Oracle is installedMy class path is: D: omcatwebappsROOTWEB-INFclassesyourpackageJsp path: D: omcatweb‑rootCall path: http: // 127.0.0.1: 8080/connOracle. jsp(You can't do it. You can try my path ^_^)1. Use the JDBC_ODBC bridge to connectFirst, remember to create an ODBC connection in the system data source. ^ _ ^ (you c
There are usually four connection methods to choose from. Here I only use two of themI use tomcat under win98The server is winnt and Oracle is installedMy class path is: D: omcatwebappsROOTWEB-INFclassesyourpackageJsp path: D: omcatweb‑rootCall path: http: // 127.0.0.1: 8080/connOracle. jsp(You can't do it. You can try my path ^_^)1. Use the JDBC_ODBC bridge to connectFirst, remember to create an ODBC Connection in the system data source. ^ _ ^ (y
Use JDBC to modify the Oracle sequence step in batches
Scenario
After the data migration is complete, you need to reset the sequence in the database ,.
Method
Three Common Methods
Delete-recreate
In this way, Simple Sequence reconstruction will affect the business logic processing and cannot adapt to the inconsistency of original sequence Parameter rules. However, if the sequence parameters are consistent,
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.