ODP app working for Oracle clients 10 and 11 - odp.net

I want to my app to work for target machines where the Oracle client could be 10 or 11.
Is it possible to do it with ODP?
If in my app I reference Oracle.DataAccess.dll from my dev machine (i have ORA client11) - my app works only on target machines with client 11...
If I reference ODP from my client 10 - the app works only for machines with ORA client 10.
Is it possible to develop application(with ODP) which will work for both Oracle client versions 10, 11? I am asking for ORA client versions, not DB versions.
Thanks!

I think the safest is to build on the lower of the two versions (so 2.102.2.20 or whatever of Oracle.DataAccess.dll).
In case of machines where the higher version is installed you can install a policy into the GAC (Global Assembly Cache). This policy file redirects applications that reference 2.102.2.20 to use the new version of ODP.NET (11.xxx.x.x).
With a normal Oracle Client installation this policy file should already be in your GAC, but if it's not, you should be able to find it in ORACLE_HOME\odp.net\PublisherPolicy\2.x.
You should be able to drag these policy files into your GAC (Start > Run > %systemroot%\assembly).
As long as the correct policy is in place your app built with version 10 should also run on the machine that has Oracle Client 11 installed.
Note: You can also create such a policy file yourself; take a look at this for more details

Related

IBM MobileFirst Platform iFix doesn't update the version displayed in Operations Console

I've just updated my IBM MobileFirst Platform Server from 8.0.0.00-20160822-2140 with the latest iFix 8.0.0.0-MFPF-Server-IF201702201900
However, after a successful update, the server is still showing the same old version in the IBM MobileFirst Platform Operations Console.
Does it means it's still not updated with the latest iFix?
I've double confirmed that the fix is indeed installed:
Do I need to update those superseded iFix first before upgrading to the latest iFix?
Vivin above is correct. Installation Manager merely puts the files on disk. You must now update your database by running the Server Configuration Tool, or whatever method you used when your server was first configured. Since the version number is stored in the database, the old version number will appear in the Operations Console until the database update is performed.
Able to get it to work after running cd /opt/IBM/MobileFirst_Platform_Server/shortcuts
sudo ./configuration-tool.sh again and restart the server. Didn't know there's a need to do so after updating the iFix. Is this common?
You can Download the MobileFirst Developer Kit Installer (IF20170220-1900) for Customer and Evaluators copy direct from
https://mobilefirstplatform.ibmcloud.com/downloads/
Now check Product Version:

Automatically install programs to vm

I've got a question about VMs and installing programs.
I've got a vsphere 6.0 running on my server and I try to automatically create new VMs (or use clean installed snapshots) an then automatically install software on these VMs.
e.g.:
A user wishes to create a new Windows 7 with xampp installed and firefox + thunderbird + eclipse. The VM will be created and during the first start these programs will be installed.
Is this possible or are there any tools that can help?
Or can I use the VMware API to realize this?
Thank you very much.
There is no way that Vsphere can do these installations that I know of. In fact I don't know of a way to install an application to a running windows box remotely - you can imagine the security implications of that.
There is an easy way to do this however.
I would build my windows VM, install all the required applications (leaving them as configured or not depending on your needs) then convert the VM into a template and then deploy new vms based on that template. Then you have your windows vms ready to go with the installed applications.

Can't get WinAppDeployCmd for Appx deployment to work

During the App Packaging and Deployment for Universal Windows Apps presentation (fast forward to 00:36:00) one specific command line utility - WinAppDeployCmd - was used for deployment Windows 10 Universal application to the phone running Windows 10 Mobile. This utility could be found here:
"c:\Program Files (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe"
But every time I'm trying to deploy sample .appx package to the Lunia 635 phone with Windows Mobile v10.0.12562.84 or Surface 3 device with Windows 10 Pro Insider Preview (all devices on the same network as my dev machine) - I'm getting the same "connection failed" error:
Windows App Deployment Tool Version
10.0.0.0 Copyright (c) Microsoft
Corporation. All rights reserved.
Opening connection to device at '192.168.1.139'.
0x80131500 - Connection Failed
0x800705B4 - Timed out waiting for
network events.
Just in case - I could ping both of the devices from my dev machine without problem and can also deploy to any of them from VS2015RC (also tried with renamed WinAppDeployCmd.exe - to make sure that VS2015RC doing deployment somehow differently without using this tool).
So, I'm wondering - are there anyone who succeeded with app deployment using WinAppDeployCmd.exe?
This is a known issue in the current release. There is no workaround and it will light up in a future Windows 10 Insider Preview SDK and tools release.
https://social.msdn.microsoft.com/Forums/en-US/5c8d6f20-699c-4da2-9460-f73e89bf27c3/known-issue-cannot-sideload-applications-using-winappdeploycmd-windows-10-insider-preview-sdk-and?forum=Win10SDKToolsIssues
I have succeeded to deploy an .appx using the WinAppDeployCmd command line tool. Probably the issue have been correct at the latest versions.
For the ones that are not familiar with this tool, it allows you to deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, doesn't have the app source code or if you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
This happened to me once when the USB socket was faulty and Windows compained about the device not being recognized. I switched sockets and everything worked. So make sure you try other sockets (or even a different computer, to rule out the specific machine).
This tool let's you install but does not run the app after install like it did the first version in windows 8.1

IBM MobileFirst Platform Studio SQL Adapter User Password in Encrypted format

I'm Using IBM SQLAdapter for storing updating user information.. but I want to store password in database in encrypted format. and displaying password shown in decrepted format.. how can i do this using IBM MobileFirst Stdio
If you will read the error message, you'll see it's not related to your installed Java version nor to the Eclipse version you're using.
I've tried myself on Mac OS X 10.10.1 and Eclipse Kepler SR2. The installation from the Marketplace was successful. Note that the installed artifacts are the same whether you use Windows, Linux or Mac.
It was very slow, though, so it could be it something 'bad' happened during it.
This may also be due to either a network problem or temporary cache problem on the servers.
What you can do:
Wait and try again later,
Or download this Studio .zip file. Then, in Eclipse > Help > Install new software... > Add > Archive, and select the downloaded .zip file.

Connect to Oracle 11g using VS2010.net Drivers/Cleints

Hey all i am trying to redistribute my app that uses Oracle 11g:
Imports Oracle.DataAccess.Client
The problem i am having is that it will not run on a machine that doesnt seem to have the correct drivers that its looking for. When i install ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio on the test VM it works just fine but thats a 230+mb file to download and install! Not to mention that if the user already has Oracle 10/11g on their machine that it may mess up their current connections/etc by installing that setup file.
Is there another setup package that i can install that only has the Oracle Data Provider for .NET 2.0 11.2.0.2.0 or whatever its needing from that ODAC 11.2 Release 3 file.
So any help about what i need to go about fixing this problem would be great! :)
Thanks,
David
assuming you are on a 32bit environment you ought to be able to use the
ODAC112021Xcopy_32bit.zip 50.5 MB (53,019,552 bytes)
the corresponding 64-bit
ODAC112021Xcopy_x64.zip - 53.3 MB (55,955,853 bytes)
the files are smaller than the ODT tools but they work. Here is a dated (but it should get you on the correct track) how-to