First, JSP connection oracle8/8i/9i database (with thin mode)Testoracle.jsp is as follows:String url= "Jdbc:oracle:thin: @localhost: 1521:ORCL";ORCL for the SID of your databaseString user= "Scott";String password= "Tiger";Connection conn=
1, with database software (such as: MySQL) to create a database, the database registered with the database name is just the data created
Library, if it is a data source name, ODBC configuration is required.
2, the driver will be placed in the
js| Data | database
First, JSP connection oracle8/8i/9i database (with thin mode)
Testoracle.jsp is as follows:
String url= "Jdbc:oracle:thin: @localhost: 1521:ORCL";
ORCL for the SID of your database
String user= "Scott";
String password= "
1. The third Way is the most recommended!/** * Note that the database connected in 1.url must exist, such as Hello must exist, otherwise the error * 2.user and password is fixed, can not be written username or pass, otherwise error * @author Ckang *
JDBC Driver downloads and connections for various databases
Various database Drivers
Database name
Description
Mysql
http://www.mysql.com/products/connector/j/
Shipped. But need to
One, JSP connection oracle8/8i/9i database (with thin mode)Testoracle.jsp as follows:String url= "Jdbc:oracle:thin: @localhost: 1521:ORCL";ORCL for the SID of your databaseString user= "Scott";String password= "Tiger";Connection conn=
Many new JSP beginners often ask how to connect to the database. Why are there errors? Therefore, I wrote an article here for your reference. In fact, it is not a good practice to put all the database logic in JSP, but it is helpful for beginners to
I. jsp connection to oracle8/8i/9i Database (in thin Mode)Testoracle. jsp is as follows:String url = "JDBC: oracle: thin :@ localhost: 1521: orcl ";// Orcl is the SID of your databaseString user = "Scott ";String Password = "tiger ";Connection conn =
I. jsp connection to oracle8/8i/9i Database (in thin Mode)
Testoracle. jsp is as follows:String url = "JDBC: oracle: thin :@ localhost: 1521: orcl ";// Orcl is the SID of your databaseString user = "Scott ";String Password = "tiger ";Connection conn
I. jsp connection to oracle8/8i/9i Database (in thin Mode) Testoracle. jsp is as follows:String url = "jdbc: oracle: thin :@ localhost: 1521: orcl ";// Orcl is the SID of your databaseString user = "scott ";String password = "tiger ";Connection conn
Java database connection (JDBC) is composed of a group of classes and interfaces written in Java programming language. JDBC provides a standard API for tools/database developers to write database applications using pure Java APIs. However, the
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.