After all operations are completed, the connection to the database must be closed.
You can close the connection by using the close method of the Connection object:
conn.close();
Note
Usually, the close method is placed in the finally clause.
Products
High-quality database products to meet full lifecycle enterprise data management needs.
Resources
Various types of resources about OceanBase and the database industry
Docs
Rich content to meet the content demands of using products and solving product usage problems
OceanBase Connector/J
Download PDF
OceanBase, A Highly Scalable Database for Transactional, Analytical, and AI Workloads.
Resources
© OceanBase 2024. All rights reserved | Cloud Service Agreement | Privacy Policy | Legal | Security
After all operations are completed, the connection to the database must be closed.
You can close the connection by using the close method of the Connection object:
conn.close();
Note
Usually, the close method is placed in the finally clause.