Connecting sql developer to oracle 11g from lubuntu to centos - sql

I have Installed sql-developer on Lubuntu and I want to connect sql-developer to oracle 11g, oracle 11g installed in another system(Centos)and sql-developer installed(Lubuntu) while testing the connectivity from sql-developer via tns service name its showing error as "Status -Test Failed: IO Error The Network Adapter Couldn't establish the connection". TNSPING is working for service names and ping ip-address is also working in destination sever where we have installed oracle 11g database.
Please let me know to resolve this issue.
Thanks,
Ranjithkumar

Could you please provide your TNS-Names File or the configuration of your SQL-Developer? The Error seems to occur because of a false Host-Definition. Be sure that you put in the right SID or Service name.
If you assume that your configuration must be right, please Check your DNS- and firewall-Settings. Further you can change into the Oracle-Bin Folder and execute the "tnsping" binary with the Host as Parameter.

Related

SQL Server service can not execute in centos

I want to install SQL Server on centOs.
I initial this service by command
sudo /opt/mssql/bin/mssql-conf setup
When I get status of service, I get this error:
Failed to start Microsoft SQL Server Database Engine
/var/opt/mssql/log/
I checked this location to see errors from SQL Server, but this location is empty.
Can you help me?
Larnu, Thank you For Answer
Answer:
SQL Server isn't supported on CentOS; I recommend using a supported
operating system.
I tried hard to solve this problem but I did not find a way and I decided to change my os

Error while connecting to Oracle Endpoint in Qlik replicate "cannot load libclntsh.so.11.1"

The replicate server is installed on Linux and i am trying to connect to a oracle database as source which is on a different server. While testing the connection i am getting the attached error message. The libclntsh.so is already defined in the oracle server machine. Kindly let me know the root cause of this.
You need to install the oracle client (you can download the rpm from technet) on the attunity replicate server and set the environment variable LD_LIBRARY_PATH.

ORA-12543: TNS:destination host unreachable

I'm trying to study query optimization using SQL command line. When I'm about to connect to the database, I got this error. It's my first time to use the SQL command line. Ive installed Oracle database 11g express edition. The database I'm trying to access is also installed on my computer. I have a proxy network settings in my computer, which I already removed and the same error occurred. I'm using a desktop PC with W7 - 64bit OS. I'm using a wireless USB adapter to connect to the internet. I tried tnsping on my machine and returned the following lines:
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
COL=TCP)(HOST=192.168.0.20)(PORT=1521)))
OK (70 msec)
Also can you have a check to see if you have set up a loopback adapter if your os is windows. Check and follow this link
http://www.oracledistilled.com/windows/configuring-the-loopback-adapter-on-microsoft-windows/

Oracle - Apache PL/SQL Gateway Module - mod_owa - access remote server

I have an Ubuntu 13.10 VM that I've created using Vagrant. This is meant to be a local development environment for a remote application using Oracle 11g and Oracle Fusion Middleware 11g.
What I want to do is, clone the application's code repository into the local VM and "route" the requests that are made on the local VM through the server where the application is hosted (DEV), so I won't need to install the database on the local VM together with all it's packages and procedures and also Oracle Middleware.
I came across Apache PL/SQL Gateway Module (https://oss.oracle.com/projects/mod_owa/dist/documentation/modowa.htm) which it's a substitute for Oracle Middleware.
I've installed and configured mod_owa on the VM, but when I restarted Apache I got the following error:
apache2: Syntax error on line 234 of /etc/apache2/apache2.conf:
Syntax error on line 1 of /etc/apache2/conf.d/mod_owa.conf:
Cannot load /usr/lib/apache2/modules/mod_owa.so into server: libclntsh.so.11.1:
cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
The above error makes me think that I still need to install Oracle 11g on the VM. Is there a way to bypass that error and make use of the remote server (DEV)?
I'm late to the party, but yes you need Oracle client installed on your apache server.
You need instant client with OCI (Basic): http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
Then to simplify your running environment:
As root:
Create a file oracle.conf under /etc/ld.so.conf.d
Single line in that file with a reference you oracle lib directory (oracle client home/lib)
run ldconfig
And you should be good to go.

Cannot connect to localhost SQL Server 2005

I just installed SQL Server 2005 SP2 on Vista and am attempting to connect to my object explorer in Management Studio. When doing so I get the following error:
Cannot connect to localhost.
A network-related or instance-specific
error occurred while establishing a
connection to SQL Server. The server
was not found or was not accessible.
Verify that the instance name is
correct and that SQL Server is
configured to allow remote
connections. (provider: Named Pipes
Provider, error: 40 - Could not open a
connection to SQL Server) (Microsoft
SQL Server, Error: 2)
I am using the following credentials:
Server type: Database Engine; Server name: localhost; Authentication: Windows Authentication
I am just using SQL Server for a local application. I have tried using 127.0.0.1, my comp name, "." and localhost. I have searched and tried every relevant help topic I could find. I have reinstalled, turned on IIS (just a guess), updated to latest service packs all around, run as admin, etc.
What am I missing here?
JJ
Did you run the User Provisioning Tool for Vista? See KB929907 You may be unable to perform most database operations after you log on to an instance of SQL Server 2005 Express Edition Service Pack 1 on a Windows Vista-based computer
Try using (local)
Also if you have an instance name you can try myComputerName\instanceName
You're missing the instance name. You don't just connect to localhost, but to any of the following (assuming that your machine is called dago and your instance sqlexpress):
localhost\sqlexpress
dago\sqlexpress
.\sqlexpress
I am not using express. It turns out I had a "client" version of SQL Server installed. I didn't even know there was a client version. I ran the full install and added the sa user as Windows Authentication wasn't working for me (next goal). I am connecting via "localhost" (just localhost), so I don't fully understand what the instance suggestion was all about.
Basically the solution was to get the full version installed. My bad. Easy fix.
JJ