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

Using OCI and TNS_ADMIN getting "ORA-28759: failure to open file" #13

Closed
martindsouza opened this issue Sep 27, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@martindsouza
Copy link
Owner

martindsouza commented Sep 27, 2020

When trying to connect to an OCI (Oracle cloud) environment with the wallet getting the following error: ORA-28759: failure to open file

@martindsouza martindsouza self-assigned this Sep 27, 2020
@martindsouza
Copy link
Owner Author

Solution: This is in the wallet's sqlnet.ora file.

Old:
WALLET_LOCATION = (SOURCE = (METHOD = file) (METHOD_DATA = (DIRECTORY="?/network/admin")))

New (fix):
WALLET_LOCATION = (SOURCE = (METHOD = file) (METHOD_DATA = (DIRECTORY="$TNS_ADMIN")))

@martindsouza martindsouza added the bug Something isn't working label Jan 4, 2021
@martindsouza
Copy link
Owner Author

Fixed. Did not automatically update the sqlnet.ora file in case user wanted other changes. Could do this in the future.

@martindsouza
Copy link
Owner Author

Could automate using sed:

sed -i .bak "s|?/network/admin|\$TNS_ADMIN|g" $TNS_ADMIN/sqlnet.ora

@gsilvers
Copy link

owe you guys a dollar for this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants