Oracle PL Sql Developer cannot find my tnsnames.ora file - plsqldeveloper

I have an Oracle tnsnames.ora file from my previous workplace. I want to pick it up with my newly installed PL SQL Developer on another computer. I have copied the file into ..ORACLE/product/11.2.0/client_32/NETWORK/ADMIN but PL SQL Developer cannot find it.
When it starts it is not showing me any choice of database.
In About->i->TNSNames I dont see any lines
I have found a number of advices to look for it in Tools->Preferences->Database->..., but I dont have a Database tab in my preferences.
How can I fix it?

If you are certain your tnsnames.ora file is correct (e.g. by testing the connection with the Oracle Net Config Assistant, or logging in successfully with SQLplus), and you are able to open the PLSQL Developer application, but you still can't connect to the database in PLSQL Developer, then follow these steps:
In PLSQL Developer (version 11.0) go to Help/Support Info
Click the TNS Names tab. If the path in PLSQL Developer is wrong it will be blank (no tns file found) or incorrect (wrong tns file in use)
On the Info tab scroll down to the TNS File entry and to see the path for the tns file PLSQL Developer is using. Very likely this is wrong.
To correct the path:
open a command prompt
navigate to the PLSQL Developer directory in Program Files
enter this command:
plsqldev.exe TNS_ADMIN=c:\your\tns\directory\path\here
*path is to the directory containing your tnsnames.ora file -
for me this is: c:\Oracle\product\11.2.0\client_1\network\admin
A new PLSQL Developer UI will open and you should be able to connect.
Make sure you have a Windows environment variable TNS_ADMIN set to the same path
On Windows 7 you go to Start, Control Panel, System, Advanced System Settings, Environment Variables to view/add/update environment variables

Which Oracle client are you using?
Oracle 64bit 11g client isn't support in PLSQL Developer. Try to install 32bits client.

I had the same problema, but as described in the manual.pdf, you have to:
You are using an Oracle Instant Client but have not set all required
environment variables:
PATH: Needs to include the Instant Client directory where oci.dll is located
TNS_ADMIN: Needs to point to the directory where tnsnames.ora is located.
NLS_LANG: Defines the language, territory, and character set for the client.
Regards

Check if tnsnames.ora not saved as text file with an additional hidden .txt extension. Windows File Explorer will not show it by deafult settings.

I recently had the problem of deleting the tnsnames.ora from the path where I had it, my solution was to create an environment variable called TNS_NAME with the value the path where the tnsnames.ora file is located and ready

Yes, many years later. But still useful.
PLSQLDEV: 14.0.6
InstantClient: 12c
Create an environment variable "ORA_HOME" pointing to your InstantClient installation.
Inside it create "Network" and "Admin" and put the TNSNames there.
It worked for me after trying all other solutions.

You most certainly have a databases tab in sql developer (all versions I've used in the past have this). Maybe check again? Perhaps, you're looking in the wrong location.
On a mac, the preferences is under "Oracle SQL Developer" (top left) -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
On windows (going from memory so might have to search if this isn't correct)
Tools -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
See this image

Related

Make MySQL accessible remotely, installed on a windows PC

I was wondering if someone could help showing detailed steps (if possible) to make MySQL accessible remotely. Example: PC 1 has MySQL installed (DB server) on it and PC 2 can now ask PC 1 for data using either PHP, Python etc.
First, I would like to give credits to the people who assisted me when doing this. I will outline how I managed to get this to work. This was done on a machine running Windows 10. The steps are outlined below:
Installing MySQL and Location my.ini file
After installing MySQL server and workbench. Windows store my.ini file on a hidden location other than that of the MySQL installation location.
C:\ProgramData\MySQL\MySQL Server 5.7
This location can be view only when you have enabled windows to show hidden files. This is achieved with the following steps:
Navigate to Control Panel
Click on Appearance and Personalization
Under File Explore Options, click on show hidden files and folders
Under the view tab, Advanced settings, look for the option hidden files and folder and select the show hidden files, folders and drives and click ok.
Navigate to C:\ and you should see the ProgramData folder
Copy this file onto MySQL installation folder
Navigate to
C:\ProgramData\MySQL\MySQL Server 5.7
and copy the file to
C:\Program Files\MySQL\MySQL Server 5.7
Configure MySQL for remote access
open my.in file using your preferred editor and look for the line and remove the # in front of it to uncomment it:
bind-address=0.0.0.0
if the line is not there then add it manually save and restart MySQL or the machine.
Activating Telnet
The computer must have the telnet activity-activated, to achieve this the do the following steps:
Navigate to Control Panel -> Programs -> Programs and Features and under this section click on Turn Windows features on or off
Look for Telnet Client and check it
Click Ok, and done now telnet is active.
On the MySQL, workbench creates a new SQL connection and use the IP address you used on my.in file and you should be set to go.
Now test this by writing a simple PHP or Python script to connect to your MySQL server.

How to create a DSN file for an Access Database

I've created an activity logger in Access which will be used by people in a different site.
In one I built previously it also had a DSN file to enable the second site users to use it, but I can't for the life of me remember how you go about creating one of these.
Could someone please run me through how it is done?
Under Windows 10, search for "ODBC Data Sources" and choose the 32-bit version. You can then choose System and File DSNs.

PhpStorm - working on a remote server

I have never used PhpStorm before for remote development because I used to work locally.
I am wondering if there is a method to set PhpStorm to work in such a way so it will be identical, in terms of functionality, to local development?
At least, debugging and jumping to functions/variables declaration across the whole project?
Tried to google it but found nothing. Maybe someone knows?
There are two ways to work with remote server development :
With a physically server
With a Virtual Machine locally
Those 2 ways are identical workflow parameters for working with this.
In PHPStorm the main area for parameters workflow deployement on remote server is : PHPStorm > Settings > Build, Execution, Deployement > Deployement
In this area you config the connection on your remote server (you before must config access on your remote server). SFTP is the best way to use this connection.
Most important to select where you want to send/push your modified code with Root path. Upload manually or use the sync auto functionality of PHPStorm use this parameter.
Mappings tabs is not very important you can keep this without change except for 'Deployement path on server' which just type '/' character if you have selected the good 'Root Path' in tab before.
For starting you can forget the Excluded Paths tab. after if you work on symfony framework you use this to exclude the vendor directory.
Don't forget to set the options 'use as Default' if you want to upload or sync auto more fastly and friendly.
Now you must parameters and config correctly your remote server for server be able to run the code which send it with PHPStorm. Dependly on your framework or other technologies you use.
Finally you have :
PHPStorm config OK for send correctly your modification code (auto or manually)
remote server config OK for executing and running correctly the code you are before sending from PHPStorm to your server remote
WARNING : you never run your website into your local OS.
IMPORTANT : config a web server on your remote server and don't forget to install layer for PHP executing script.

Neo4j doesn't obey my database location setting

When open up the Neo4j Community Edition program, it gives me an option to choose my database location.
I chose the path D:\Program Files (x86)\Neo4j.
When I look at the database information in the browser, I find that this is not where the database is actually located.
It seems to ignore my choice and always put the database in C:\Users\Peter\Documents\Neo4j\default.graphdb. Is there a way I can actually change the database location?
I just tested it and it worked for me.
I chose the new directory directly after install though. But also after choosing a different directory it honored my selection.
Did you have an old installation or a fresh install?

Where would PhpMyAdmin be installed on my system?

I'm trying to connect to MySQL using Netbeans. In Step 6 of this guide on how to do so, it says:
In the Path/URL to admin tool field, type or browse to the location of your MySQL Administration application such as the MySQL Admin Tool, PhpMyAdmin, or other web-based administration tools.
Note: mysqladmin is the MySQL admin tool found in the bin folder of the MySQL installation directory. It is a command-line tool and not ideal for use with the IDE.
So I need to find the location of the admin tool I'm using. I have PhpMyAdmin as part of the Uniform Server, so I tried to use that. But I can't find it. I manually DFS'd the UniServerX directory and couldn't find one single file which relates to PhpMyAdmin. There was a directory called "PhpMyAdmin" containing a bunch of files, none of which looked like the right ones. I did a search, and could only turn up that directory.
This is the full directory for PhpMyAdmin:
This is the form I'm trying to fill in on Netbeans:
I tried selecting "db.opt", but that wasn't the right file according to Netbeans. What should I be putting in this form? Which file singularly corresponds to PhpMyAdmin, and where should I be able to find it on my system if I have UniServer installed?
PhpMyAdmin is a web interface for managing a MySQL database. I think what you are looking for is something like one of these (try them in your browser): http://localhost/phpMyAdmin/ or http://localhost/apanel/phpMyAdmin/
The path in NetBeans can be configured to whatever you would like, you can even leave it blank. Its just a shortcut to open the admin console.
I would suggest setting it to UniController.exe (its in the top level folder of the UniServer installation). Through that tool, you can start/stop the server, and it has a button to open the PhpMyAdmin console.