Issue with SQL Plus - sql

I have a database that I am trying to connect to through SQL Plus. I run this command from the command line:
sqlplus username/password#//hostname:port/sid
I use this connection string instead of using tsnames. The error I keep getting is
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
The weird thing is that using the same connection information I can connect just fine through SQL Developer. I can see the tables, users, and everything else. Anyone know what could be going on?
P.S. I tried setting up tsnames but it just gave the same thing as using the connection string.

So my boss found the solution. Turns out the sid is different when connecting through SQL Plus then through SQL Developer. Seemingly in just this one case. I have no idea why this is but that was the reason. Very odd and I don't understand why.

Related

Cannot connect SQL Server with instance - SSMS

I have a very strange and very frustating problem:
I'm trying to connect to an remote SQL Server Database, and i gotta some errors, like:
I've tried to connect to an specific remote SQL that has only one instance (SQL Server 2008). When i use the correct connection string, with server address and instance name, o get the following error:
But when i remove the instance name, it works:
Calling with customer's service from this server, they said that this server has only one SQL, so it allows you to connect without instance.
But my real problem is that i'm trying to connect to another server that has more than only one instances of SQL, so i'm getting the same old error:
And if i remove the instance, i get login error, cos my user and passwd was not found at default sql server.
I have tried several changes:
I've changed my Management Studio from 2017 to 2014.
I've formatted my computer last night, trying to solve this problem,
but i still got the same errors
I've asked to some friends to connect to this same server, exacly
the same way that i'm trying, and they sucessfully connected.
I really dont know what I'm doing wrong. Somebody knows how to help?
Thank you.

SQL developer- the network adapter could not establish the connection

I am new to oracle database and i was trying to set up SQL developer.After installation when I open it and make a new connection it gives me "IO error: the network adapter could not establish the connection".I tried to look up for the solution everywhere but nothing worked.Can someone please explain me in detail hoe to fix this thing?
You have installed SQL Developer, the client.
It's effectively limited to working with files and offline data models.
If you want to do database work, you need a database.
Here's your options for getting started.
You have to start the listener with
lsnrctl start

Oracle SQL Developer 3.0.04 Freezes when viewing table data

I'm using Oracle SQL Developer 3.0.04. Trying to connect to a remote DB. Don't have any issues with database connection, it connects.
But when trying to view a selected tables rows a small progress bar within a small dialog box titled "Display Results" appears saying "Waiting for Checking if Object is Editable" and the progress is stuck. Cannot see any data of the selected table.
I tried to export the schema and data, but it freezed at once. So I closed SQL Developer.
Tried to attempt that again but now cannot even view the tables details.
Used TOAD in another machine and connected using that, no issue then the table listed all the data. Checked on the remote machine using putty and "sqlplus" to connect and the data showed as expected.
So that tells me that something in my local machine is wrong. Cannot connect using SQL Developer. Has anyone out there faced similar issue? please any idea on this matter?
Thanks
Did you try connecting to any other database, remote and local ? Does this happen with every database or only one connection? Perhaps something is wrong with that installation folder of SQL Developer, perhaps something got corrupt while it was stuck. Perhaps try to download the latest version of SQL Developer from this link and try again.

ColdFusion 8: Database Connection Reset Error

I have been getting these intermittent ColdFusion Database connection reset errors and was wondering if anyone had experience with this and had a particular solution that worked?
Here is the error:
Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server.
This doesn't happen with any particular query, the code breaks in different queries every time, returning a SQLState error 08s01. These query's logic are fine, no logic errors etc. I checked the network logs and there were no database server connection refusals at the time of the error. Once the first error occurs, it keeps happening for no more than a minute or so at random times of the day, every few days. I've googled this thing and so far anyone that has had this issue was only on CF6 or 7, which the fixes coldFusion put out are only for CF6 or 7.
Server configuration wise:
The ColdFusion server is version 8
The database server is SQL Server
2005 Standard
The database connections allowed
setting is set to unlimited on both
SQL Server and ColdFusion
Any help would be greatly appreciated, Thanks!
I'd personally try to update JDBC driver ( http://sourceforge.net/projects/jtds/ ) and add Validation Query if not already existing. I used once tool which was constantly checking TCP connections between servers, detecting even milisecond gap, check this tool http://www.colasoft.com/ping_tool/ .
Have you already resolved the issue?
I'm having the same problem on CF8 VPS, and after doing some research online I found this post:
http://www.mail-archive.com/cf-talk#houseoffusion.com/msg302264.html
It says it's related to some features on the network card and something on the SP2 for Win2k3 that messes it up. Don't know if that applies to you but just in case.

What does "The DBMS returned an unspecified error. The command code was 193." mean?

Anyone have an idea of what this means for MS SQL Server? I'm also calling this from ColdFusion, although I'm guessing that doesn't make any difference.
Google implies that error 193 is a problem with the service. Does this happen for every query, or just one? Can you connect from SQL Management Studio?
Are you using custom JDBC driver? Try the one that comes with CF.