I am working on a project using oracle.The remote host pc ip address is 10.100.59.30 where my database exists.I want to connect the database from my computer(ip:10.100.59.150). How should I do it?Oracle listener is working fine.But Showing network adapter is not connecting.I checked the firewall.It is off.All is fine but database connection is not building up.I have tried every possible solution.Am I missing some silly things?I have tried with sqlplus username/password#hostA:1521 /XE in cmd.but not working.And I do not have oracle installed in my pc.
Do you have tnsnames.ora? Or here is AskTom answer how to connect to oracle without one.
Related
I am trying to connect to a remote Oracle db from my mac using DBeaver.
Dbeaver version I am using is: 5.1.3
I installed the ojdbc6.jar file from the below link:
http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
as instructed by the DBeaver tool. I added the above file in the driver manager window.
When I try to connect to the database I get the following error(dbeaver-debug.log):
Connection failed (oracle_thin-16161616-16161616)
2018-07-21 13:16:06.749 - org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
org.jkiss.dbeaver.model.exec.DBCException: Connection has timed out
at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:157)
at org.jkiss.dbeaver.ext.oracle.model.OracleDataSource.openConnection(OracleDataSource.java:133)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:86)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.initializeMainContext(JDBCRemoteInstance
If anyone has suggestions as to how I can debug this issue, would be highly appreciated.
Thank you.
Are you able to connect via other tools (like SQL Developer)? if no then please try that as well. There can be multiple reasons for connection timeout. It is also possible that port in remote system is not accessible.
I am currently accessing/connecting to a remote database through VPN and I have no issues querying on the remote database. I want to create a db-link to connect my local db to the remote database in order to join certain tables. Sadly, I am getting error ORA-12545.
This is my db-link code:
CREATE DATABASE LINK DB_LINK
CONNECT TO REMOTE_USER_NAME
IDENTIFIED BY PASSWORD
USING '(DESCRIPTION=(CONNECT_DATA=(SID=test_SID))(ADDRESS=(PROTOCOL=TCP)(HOST=HOST_NAME.com)(PORT=1521)))'
I don't have an Oracle client installed on my machine so I am using the full description. There are no issue accessing both our db and the remote db without an Oracle client installed so I assume this is not the problem.
My ping to the remote address returned TTL expired in transit even though the VPN is connected. This seems a bit weird but I am not entirely sure if this is the problem.
I must be missing a crucial step. Any advice is appreciated.
I've installed Oracle client in my machine, when I'm trying to connect to the oracle database server from Oracle SQL Developer am getting the following error:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
But am able to connect to the server using sql plus and TOAD as well from my machine. What is the issue if Toad connects to the server why cant my Oracle sql developer could not connect??
checked all the possible solutions like:
tns strings checking, telnet to the server and its port,
changing the oracle home in the sqldeveloper->tools->preferences->database->advanced tab.
None solved my issue. Is this the firewall issue?
If it is so how am able to connect using TOAD/sql plus ??
UPDATE: I'm connecting to the Oracle database server using the VPN.
Any help is much appreciated.
Thanks in advance.
Am a newbie to oracle, I've Oracle Database installed on my windows machine and I can connect to the database without any problem from my machine using the sqlPlus / SQL Developer. And I have a java application in my machine which needs to connect to the Database using JDBC driver. After downloading the ojdbc driver I can connect to the java application by providing the connection url as jdbc:oracle:thin:#127.0.0.1:1521:orcl
Now, I want to know how can I connect to my oracle database that is installed in my machine (ip address:10.0.xx.xx) from the java application which is running in another machine (ip address:10.0.yy.yy). BTW both the machines are connected in LAN.
Do I need to change anything in listener configuration or in tnsnames.ora file?
I checked these links for reference before posting this question:
How to connect to an Oracle DB from another system
also Cannot access oracle using sqlplus from another machine on the LAN
Please Suggest me how can I do this one. Thanks in advance.
The JDBC url has this form
jdbc:oracle:thin:#HOST:PORT:SID
So if you wanted to connect to an oracle server running on 10.1.2.3, on port 1521 (the default one), and on a database named 'stackoverflowdb' you'd use:
jdbc:oracle:thin:#10.1.2.3:1521:stackoverflowdb
I have to connect to a remote Oracle database. Connection will only work with a VPN access to the remote network. I have already setup the VPN, and that is working.
Remote team has passed TNS.ORA settings. I have hardly worked on configuring oracle and neither I am aware of the setup that I need to have on my machine. I just need to run few queries to test the data.
Can somebody guide me on the setup and the configuration I need to have on my windows 7 to connect to a remote Oracle database ?.
My first assumption was to download Oracle client. I downloaded Oracle Insta Client files, but I have no idea how to configure it to connect to a remote database. I couldn't even find any ORA file in the installed files of Insta client.
One you installed the instant client and installed it, you can conect to the remote database by using an easyconnect string. If you are in sqlplus you can do the following:
CONNECT username#[//]host[:port][/service_name][:server][/instance_name]
Lets assume your remote host is remote1 and the service_name is test (This can be retrieved from the tnsnames.ora)
connect username#//remote1/test