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

Error: 'Options' object has no attribute 'service' with oracle connection #32

Open
maialithar opened this issue Jul 16, 2014 · 2 comments

Comments

@maialithar
Copy link

I have configured plugin like that in user settings):

{
    "sql_exec.commands": {
        "oracle" : "sqlplus"
    }, 
    "connections": {
        "name": {
            "type": "oracle",
            "host": "hostnamee",
            "port": port_number,
            "username": "user",
            "password": "pass",
            "database": "sid",
            "service": "sid"
        }
    }
}

But when I try to run any query (select sysdate from dual;) I get this in output window:

Traceback (most recent call last):
  File "SQLExec in C:\[path]\Sublime Text 3\Installed Packages\SQLExec.sublime-package", line 172, in executeQuery
  File "SQLExec in C:\[path]\Sublime Text 3\Installed Packages\SQLExec.sublime-package", line 29, in execute
  File "SQLExec in C:\[path]\Sublime Text 3\Installed Packages\SQLExec.sublime-package", line 16, in _getCommand
  File "SQLExec in C:\[path]\Sublime Text 3\Installed Packages\SQLExec.sublime-package", line 13, in _buildCommand
AttributeError: 'Options' object has no attribute 'service'

Any help would be much appreciated!

@Carpette
Copy link

Exact same problem here, i'd like to know if you've find something to passby this issue

@meganlkm
Copy link

I had to edit the args property in the sgbd/oracle.sqlexec file. This is what I changed it to:

"args": "{options.username}/{options.password}@{options.host}:{options.port}/{options.service}"

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

3 participants