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

Bugfix arobase support in password #41

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions OracleDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@ def connection(self,threaded =True, stopIfError=False):
try:
if self.args['SYSDBA'] == True :
logging.debug("Connecting as SYSDBA to the database")
self.args['dbcon'] = cx_Oracle.connect(self.args['connectionStr'], mode=cx_Oracle.SYSDBA,threaded=threaded)
dsn_tns = cx_Oracle.makedsn(self.args['server'], self.args['port'], self.args['sid'])
self.args['dbcon'] = cx_Oracle.connect(user=self.args['user'], password=self.args['password'], mode=cx_Oracle.SYSDBA, dsn=dsn_tns,threaded=threaded)
elif self.args['SYSOPER'] == True :
logging.debug("Connecting as SYSOPER to the database")
self.args['dbcon'] = cx_Oracle.connect(self.args['connectionStr'], mode=cx_Oracle.SYSOPER,threaded=threaded)
dsn_tns = cx_Oracle.makedsn(self.args['server'], self.args['port'], self.args['sid'])
self.args['dbcon'] = cx_Oracle.connect(user=self.args['user'], password=self.args['password'], mode=cx_Oracle.SYSOPER, dsn=dsn_tns,threaded=threaded)
else :
self.args['dbcon'] = cx_Oracle.connect(self.args['connectionStr'],threaded=threaded)
dsn_tns = cx_Oracle.makedsn(self.args['server'], self.args['port'], self.args['sid'])
self.args['dbcon'] = cx_Oracle.connect(user=self.args['user'], password=self.args['password'], dsn=dsn_tns,threaded=threaded)
self.args['dbcon'].autocommit = True
if self.remoteOS == '' and self.oracleDatabaseversion=='' : self.loadInformationRemoteDatabase()
return True
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ Usage examples of ODAT:

Tested on Oracle Database __10g__, __11g__, __12c__ and __18c__.

__ODAT linux standalone__ version at [https://github.com/quentinhardy/odat/releases/](https://github.com/quentinhardy/odat/releases/). Notice it is recommended to use the development version (*git clone*).
~~(__Deprecated at this time__)~~
Compatible with both python 2.7 ([master branch](https://github.com/quentinhardy/odat/tree/master)) and __python 3__ ([master-python3 branch](https://github.com/quentinhardy/odat/tree/master-python3)).

__ODAT linux standalone__ version at [https://github.com/quentinhardy/odat/releases/](https://github.com/quentinhardy/odat/releases/). Notice it is recommended to use the development version (*git clone*), with the [master-python3 branch](https://github.com/quentinhardy/odat/tree/master-python3).

Changelog
====
Expand Down Expand Up @@ -159,7 +160,7 @@ __Standalone versions__ exist in order to don't have need to install dependencie
The ODAT standalone has been generated thanks to *pyinstaller*.

If you want to have the __development version__ installed on your computer, these following tools and dependencies are needed:
* Langage: Python 2.7
* Langage: Python 2.7 & Python 3
* Oracle dependancies:
* Instant Oracle basic
* Instant Oracle sdk
Expand Down