Hi All,
We can use, below code to create a function in SCALA to connect to Oracle Database and call this function on your main SCALA by passing the parameter.
Please be sure to install the necessary drivers - oracle JDBC pool drivers
|
def connJdbc
(oracleUser: String,oraclePassword: String,oracleURL: String):
java.sql.Connection = { val ods =
new OracleDataSource()
ods.setUser(oracleUser)
ods.setURL(oracleURL)
ods.setPassword(oraclePassword)
ods.getConnection() } } |
Thank For sharing Valuable Information
ReplyDeleteMsbi Online Course
Msbi Online Training
A comprehensive salesforce admin course
ReplyDeleteequips you with the skills to manage users, customize objects, automate workflows, and maintain data security within the Salesforce platform.
power bi online training
ReplyDeletehelps professionals master data visualization, reporting, and dashboard creation using real-time business data. With structured modules and hands-on projects, power bi online training enables learners to build interactive reports and gain practical analytics skills for career growth.
Advance your data visualization skills with a comprehensive tableau course online
ReplyDeletedesigned for beginners and professionals alike. Learn to create interactive dashboards, analyze real-world datasets, and gain job-ready expertise from the comfort of your home.
This comment has been removed by the author.
ReplyDeletepower bi classes online
ReplyDeletehelp you master data visualization, dashboards, and business intelligence skills from the comfort of your home.
Advance your career with expert-led salesforce administrator classes
ReplyDeletedesigned to help you master user management, automation, and data security. These hands-on salesforce administrator classes prepare you for certification and real-world CRM success.