Skip to Main Content

Programming Languages & Frameworks

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

OracleDB in Next.js

user545194Oct 29 2024

Since Next.js is very popular now, it would be good to know how to set up a connection to the Oracle database in Next.js. I am using TypeScript.

Is there any documentation specifically for OracleDB and Next.js?

Thanks!

Comments

dvohra21 Nov 1 2024

Use the Oracle Database Driver for Node.js

https://github.com/oracle/node-oracledb/

The Node.js driver may used for Next.js as well.

Detail at https://cjones-oracle.medium.com/using-node-oracledb-thick-mode-in-next-js-d74a40421a7e

https://github.com/oracle/node-oracledb/blob/main/examples/webapp.js

user545194 Nov 4 2024

Thanks to all for your feedback! I'll have a look at the samples and docs.

For a live sample, please check the test.zip file uploaded by the user in
https://github.com/oracle/node-oracledb/issues/1691

and also check the comment for configuring next.config.(m)js file:
https://github.com/oracle/node-oracledb/issues/1691#issuecomment-2317659776

user545194 Nov 6 2024

Thanks again! Will add this to the config.

1 - 5

Post Details

Added on Oct 29 2024
5 comments
631 views