File tnsnames.ora not found #1105
-
Hello, i am building an application that connects to a oracle database, to do that, i need to provide two files: tnsnames.ora and ewallet.pem.
the config_dir parameter points the directory where the tnsnames.ora is and the wallet_location points the diretory where the ewallet.pem is. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem is almost certainly that path name you're providing to your database files. If you're specifying the filenames as relative paths (and specifying "tnsnames.ora" by itself is a relative path), you are making an implicit assumption about the working directory when the code is running. The working directory of a running Briefcase app isn't guaranteed - it's highly platform dependent. All paths to data files need to be specified as absolute paths. If you're using Toga, the toga App object provides a |
Beta Was this translation helpful? Give feedback.
The problem is almost certainly that path name you're providing to your database files.
If you're specifying the filenames as relative paths (and specifying "tnsnames.ora" by itself is a relative path), you are making an implicit assumption about the working directory when the code is running. The working directory of a running Briefcase app isn't guaranteed - it's highly platform dependent. All paths to data files need to be specified as absolute paths.
If you're using Toga, the toga App object provides a
paths
attribute that can be used to find common useful locations on the filesystem (e.g.,self.paths.app
is a Path object describing the absolute path to the location of the app module)…