Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect To oracle database #57

Closed
mondaldebanjan opened this issue Apr 4, 2018 · 10 comments
Closed

Connect To oracle database #57

mondaldebanjan opened this issue Apr 4, 2018 · 10 comments

Comments

@mondaldebanjan
Copy link

How to connect to oracle db?
What will be the url how to change the library?

@yogthos
Copy link
Member

yogthos commented Apr 4, 2018

You just have to give it an Oracle JDBC URL, e.g:

(conman/connect! {:jdbc-url "jdbc:oracle:thin:@myhost:1521:orcl"})

@mondaldebanjan
Copy link
Author

i have made the template according to +mysql
and changed the jdbc url
but when i run migrate
No suitable driver found for jdbc:oracle:thin.... it shows

@mondaldebanjan
Copy link
Author

where else i have to change ? and where i can put my driver?
Please help me here

@yogthos
Copy link
Member

yogthos commented Apr 4, 2018

You have to add the Oracle driver dependency in project.clj, unfortunately Oracle doesn't publish their drivers on public Maven repositories.

So, you'd have to download the driver from the Oracle site, and do a local install for it.

@mondaldebanjan
Copy link
Author

ok Thank you

@mondaldebanjan
Copy link
Author

now having an error while migrating:
at clojure.main.main(main.java:37)
Caused by: java.sql.BatchUpdateException: error occurred during batching: ORA-00902: invalid datatype

    at oracle.jdbc.driver.OracleStatement.executeBatch(OracleStatement.java:4615)
    at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:230)

@yogthos
Copy link
Member

yogthos commented Apr 4, 2018

That sounds like you have a type mismatch between the table column and the type of the data you're trying to set there. It does appear that you're able to connect to the db via conman though.

@mondaldebanjan
Copy link
Author

yes it is now connected :)

@yogthos
Copy link
Member

yogthos commented Apr 4, 2018

cool, I think we can close this one as the other problems don't appear to be conman related :)

@yogthos yogthos closed this as completed Apr 4, 2018
@mondaldebanjan
Copy link
Author

any update on this one ?
yogthos/migratus#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants