Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 394 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
wallet_location in ODP Managed Provider config has no effect

Hello all
Has anyone had any luck specifying the location of an Oracle Wallet in the configuration of the managed provider. I can get Oracle Wallets working with both the managed provider and the unmanaged one, but only by specifying wallet_location in sqlnet.ora.
The setting in e.g. the configuration for managed provider does not seem to have any effect. My working example stops to work if i remove wallet_location from sqlnet.ora. c:\snot\wallet includes ewallet.p12, cwallet.sso, ewallet.lck, and cwallet.lck These were made using mkstore -create and mkstore -createcredential. The wallet works, if just sqlnet.ora references it, but I would rather prefer this configuration to be app-specific.
Here is my config, just for reference:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<oracle.manageddataaccess.client>
<version number="4.121.2.0">
<settings>
<setting name="WALLET_LOCATION" value="(SOURCE = (METHOD = FILE)(METHOD_DATA =(DIRECTORY = c:\snot\wallet)))"/>
<setting name="TNS_ADMIN" value="c:\snot" />
</settings>
</version>
</oracle.manageddataaccess.client>
</configuration>
Regards Niels Jespersen
Best Answer
-
Added details, found out that wallet_override fooled me.
If sqlnet.wallet_override = true is in sqlnet.ora then wallet_location in the config seems to work. Now I just need support for wallet_override in the .net config. That is not there, as of now, is it?
Regards Niels
Answers
-
Are you seeing any ODP.NET or Oracle errors, such as ORA-01017 invalid password?
Is this for ODP.NET from ODAC 12c Release 4?
-
If I point tns_admin in my configuration to a location, where sqlnet.ora has a wallet_location, it reads username, password from the wallet and logs on. If tns_admin points to a location where sqlnet.ora has no wallet_location, then logon fails with ORA-1017, as it tries external logon and my windows user has no counterpart on Oracle that is identified externally. Since tns_admin is interpreted correctly, I conclude that my configuration-file is read ok.
Yes, this is ODAC 12c Release 4. The Productversion of Oracle.managedDataAccess.dll is 4.121.2.20150926 ODAC RELEASE 4.
I am on Windows 7 Enterprise x64, and my .net-project is compiled as x64. ODAC is installed/configured both as x86 and x64.
-
Added details, found out that wallet_override fooled me.
If sqlnet.wallet_override = true is in sqlnet.ora then wallet_location in the config seems to work. Now I just need support for wallet_override in the .net config. That is not there, as of now, is it?
Regards Niels
-
-
Thank you for helping me get to the bottom of this. I will consider if I dare put wallet_override=true in a sqlnet.ora shared between 600 users. I may end up doing that and hoping it it will not break anything (I don't think it will).
I consider this resolved.
Regards Niels Jespersen
-
I need to correct myself. WALLET_OVERRIDE is supported. Oracle just hasn't documented it yet. That will be done with the next iteration of the doc.
The config file should like the following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<oracle.manageddataaccess.client>
<version number="*">
<settings>
<setting name="sqlnet.WALLET_OVERRIDE" value="true"/>
</settings>
</version>
</oracle.manageddataaccess.client>
</configuration>
-
Wow. Cool. I will try this out.
/Niels
-
Wallet.override works like a charm. Great!
Best Regards Niels Jespersen