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 as sysdba #4

Open
RE5PECT opened this issue Apr 22, 2018 · 3 comments
Open

connect as sysdba #4

RE5PECT opened this issue Apr 22, 2018 · 3 comments

Comments

@RE5PECT
Copy link

RE5PECT commented Apr 22, 2018

There is a way that i can connect to sqlplus as a sysdba?

@danielhodder
Copy link

You can run the sqlplus command explicitly which allows you to specify the connect string however you like:

docker run --rm -i sflyr/sqlplus /bin/bash -c '/instantclient_11_2/sqlplus "user/pass@//server:1521/xe as sysdba"'

Just be careful of the quotes so the whole connection string becomes a single argument.

@GitHub30
Copy link

GitHub30 commented Aug 27, 2018

docker run -e URL="$user/$password@//$server:1521/$sid as sysdba" -ti sflyr/sqlplus

@danielhodder
Copy link

The only time that doesn't work is if you're using environment variables to find the Oracle server. Mostly if you're using the --link option.

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