Can Oracle Express run with a different runtime or jdk other than the value set by JAVA_HOME - oracle-xe

I've installed Oracle XE.
When I ran sqldeveloper.exe against it, sqldeveloper.exe ran "slow" against my local XE database AND remote Oracle database engines.
I found this answer:
sqldeveloper taking too long to load the content of a DB
After I made that fix, sqldeveloper.exe ran pretty dern good against the REMOTE oracle database engine.
However, running it against the local XE, it still runs poorly.
My machine environment variable to set to a Zulu install and cannot be changed (company policy)
JAVA_HOME=C:\Program Files\Zulu\zulu-8
So my question is.. can I alter which JDK oracle.exe runs with?
Here is my version:
c:\mycustomfolder\oracle\product\18.0.0\dbhomexe\bin\ORACLE.EXE XE
I found this .conf file
C:\mycustomfolder\Oracle\product\18.0.0\dbhomeXE\schagent.conf
but don't see any place to override the JDK runner, like I found for sqldeveloper.exe.

The database ships its own JDK to use - you should NOT change that...now, generally, running queries against the XE database will NOT invoke any Java code in the db. If running SQL Developer against the XE on your machine is slow, try increasing the amount of memory for the XE database itself (SGA).

Related

Can't access to .accdb database when deployed. VB.net / MVC app

this is my first post I am having some trouble with an app, in Visual Studio I can run it on Debug without any issue and everything works correctly, but when I deploy it using IIS I can access any page except of the ones where there is an interaction with an access database. If I search through virtual directory I can download the file without an issue.
Do you have any recommendation?
Are you running x32 or x64 iis? (Usually it x64).
Of course on your desktop, then Visual Studio defaults to x32, and that would explain why the Access database engine (ACE) works. You likely should force your project to x32 or x64 (and then ensure that you have a x64 bit version of the ACE (Access) istalled on your developer machie. You then want to ensure that you launching the x64 bit version of IIS.
You don’t need Access installed on your server, but you will need the ACE database engine – and the most easy way to ensure that data engine is installed is simply installing the Access runtime on that server.
Give that the standard ACE database engine download is x32, then I would look into this issue. You could (should) be able to resolve the issue by installing a x64 bit Access runtime on that server – this would also suggest a possible update to your connection strings. And I would check/test the connection string you are using once you resolve the x64 bit version of Access. The path name in your connection string will ALWAYS be a absolute path (not a relative one).

Accessing Database from FireMonkey app on MAC

According to Embarcadero's docwiki, it is possible to setup unixODBC on a MAC and compile an app that connects to a database and run it on a MAC. The instruction shows how to compile the unixODBC but does not show how to create the required database drivers, which means no database connection can be setup. Has anyone been able to successfully do this?
FYI, I am trying to connect to a Sybase ASE database. I can create the 64 bit version of unixODBC and drivers using the instruction found here and use isql to run some queries against the database, but that is useless because applications created with RAD Studio are 32 bit (for MAC). and 32 bit apps cannot use 64 bit unixODBC.
Thank you
Sam

How to deploy Powerbuilder application with ODBC connection?

my application works fine on the computer where I made it but on another
machines it displays error: "Transaction not connected".
I installed pack created by Runtime Packager and added a couple
of DLLs to the application path on the target machine. Still the same
problem.
My question is if I should use dnsless connection to make it work?
Or maybe inform the target PC about the required ODBC configuration?
If yes - how to do that?
I read a lot about odbc.ini, system variables, registry entries etc.
but now I got it all mixed up and have no clue what to do.
I'll be very grateful for your help.
Kris.
Personnally, I use DSN. So, the only thing the PowerBuilder knows is the DSN name. On that base, I establish the connection.
On the target PC, I configure ODBC with this very same DSN name and the necessary drivers. This way, you have some flexibility in the deployment. For instance, I can develop using DSN 'db', referring on my developper's machine to database 'dev' or the server 'server_dev' and deploy on a target machine where 'db' refers to 'prod' database on server 'productionServ'.
Compatibility issues aside, it can even be that the first one is MySQL and the other onee Oracle.
It is anyway crucial to install the drivers allowing you to access the desired database on the target machine and, if you use DSN, to configure it.
Since you said you got confused with odbc.ini & registry, lets start from there.
Assuming the required ODBC connection is configured in your computer (as you said),
Open registry editor (Win+R, regedit) in your computer.
Go to path "HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI". NOte: "HKEY_LOCAL_MACHINE" can be used for multi-user computers.
Right click on your "ODBC Connection" and export. Save the file(*.reg). (opening this file in notepad will give you some ideas on how it is configured.)
Also do the same for "HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources\". Merge both files into one (open the *.reg files in notepad and merge the text).
Now you have the following options to setup the ODBC in your target machine(s):
This file(*.reg) can be executed on the target machine (beware, the drivers path might be different in the target machines.).
If you have an installer, try to include code to write the registry values from the installer.
Use PB function RegistrySet() to create your own ODBC connection if it does NOT exists.
Brief of what we are trying: Export registry entries (as a *.reg file) from the development machine and create similar registry entries on target machines using any of the 3 methods listed above.

Neo4j 2.1.1 concern - consistency check of community edition db

Following on from the information found in the blog post titled 'Neo4j 2.1.2 – Maintenance Release', I thought I should check the consistency of a database that has been upgraded to Neo4j 2.1.1.
My set up: Neo4j community edition running on Windows Server 2012 R2 - the binary distribution running as a Windows service (NOT the windows desktop launcher executable).
In the blog post it talks about using the backup tool included with the enterprise version of Neo4j so I have downloaded an evaluation copy (2.1.4) so have access to Neo4jBackup.bat. I cannot however, get a backup to run. No matter what I try I get
Couldn't connect to '127.0.0.1:6362'
or a variation thereof.
I am running
.\bin\Neo4jBackup.bat -from localhost -to D:\DataBackups\Neo4j\check
I have tried specifying a port, specifying IP address, using single://localhost. After consulting the manual more closely I have also amended my config to add
# Enable online backups to be taken from this database.
online_backup_enabled=true
# Port to listen to for incoming backup requests.
online_backup_server=127.0.0.1:6362
Still I receive the same error. I am clearly being a moron. What am I doing wrong? Help!
The question boils down to 'how do I back up a community edition database as alluded to in this Neo4j blog post?
OK so yes. I am a moron. It just came to me. You need to open the database with the enterprise edition!
For anyone who is overcome with a moment of stupidity, like me
Copy the database you wish to check (graph.db by default) to the data directory of your evaluation copy of Neo4j
Start up Neo4j (you may or may not need a store upgrade)
Run .\bin\Neo4jBackup.bat -from localhost -to [your desired backup location]
Sit back and await the results
Feel free to mock/throw rotten vegetables etc at me....! :)
Starting with the 2.1 line (somewhere around 2.1.5 I think) the consistency checker was moved from the enterprise edition to the community edition. It is therefore now possible to check a DB with the community edition too. In the root of the neo4j server directory run:
java -cp 'lib/*' org.neo4j.consistency.ConsistencyCheckTool data/graph.db
Note that this is not an offical API (it's undocumented).

Unable to get Neo4j to run

I searched for an answer to this, but was unable to find anyone else having the same problem.
This is the first time I've tried to use Neo4j.
I'm running on Windows Server 2008 R2 Standard.
I downloaded and unzipped Neo4j Community 1.8.2 for Windows.
In a command window, I switched to the bin folder and ran Neo4j.bat.
I received the following message in the command window: Unable to locate jvm. Could not find HKLM\SOFTWARE\JavaSoft\Java Runtime Environment/CurrentVersion entry in windows registry.
I verified that I have the latest JVM.
I verified that the above registry key is not present in the location shown, but I did find it at HKLM\Wow6432Node\JavaSoft\Java Runtime Environment/CurrentVersion.
How should I proceed?
Thanks for any direction!
I Fixed this problem by making a new environment variable JAVA_HOME and pointing it to my Java installation folder
C:\Program Files (x86)\Java\jre7\bin
try to set up the java PATH variable to the correct path. tutorial here:
http://java.com/en/download/help/path.xml
than, newest java are i think by 2 version newer than the original java for neo4j 1.8.2. a remind myself some problems with such versioning few months ago - i solved it by running neo4j in the newest versions of 1.9.0x
I installed JRE version 6 on my machine and this cleared the problem. (I previously had version 7 on the machine.)
Set the JAVA_HOME path in your environment variables.

Resources