Connecting to Db from a client
Hi All,
am very new to Oracle.
I have a db server that is up and running.
I installed client on another pc.
After configuring the Client using the oracle net manger , I tried to test my connection, but it gave me the error message:
ORA-12541: TNS: No listner.
I was able to test the connection from the server pc to the db, but cannot from the client.
I am using 10g and on win xp.
Your help will be highly appreciated.
NB: I checked the listner status in the DB and every thing seemed alright.
thanks all
On your database server check if listener is running.
lsnrctl status
On your PC client side double check if you got hostname and port entered correctly. compare with listener status output
Similar Messages
-
Cannot connect to database from a client machine (ORA-12154)
Hi,
I have installed Oracle XE Server on one of my machines and Oracle XE Client on another. When I try to connect to the server from the client using command line, error ORA-12154 is displayed. I am pasting the data of my .ora files so that you can point out the errors if any in these files.
Listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
Sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
Tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abo-server.abosoftware.org)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
I will be very happy if anyone can suggest me a solution.
Thanks & Regards,
HarshadHarshad,
CONNECT system/[email protected]
This was not what I asked you to try, this cannot work ;).
I asked you to try :
connect system/[email protected]:1521/XE
I have also tried accessing the database homepage remotely using the url
http://abo-server.abosoftware.org:8080/apex
Per default only local access (from the same machine) is allowed via http.
You can change that either via the GUI (log in as SYSTEM):
Home>Administration>Manage HTTP Access
OR
connect as SYSTEM via sqlplus and run:
SQL>exec dbms_xdb.setListenerLocalAccess(false);###
It is documented at
http://download-west.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABIJBHJ
And yes, you need to open both ports 1521 and 8080 to access it remotely.
~Dietmar. -
Error while trying to connect to weblogic from remote client
Hi
I was trying to connect to JMX MBeanserver from a aremote client using some sample code that was posted. Ive tried even the samples that I found in the Admin Guide itself. Im not certain if any server configuration is needed. Ive tried the below with all three protocols t3, iiop, http with the same result. I had also enabled IIOP on the server through the console.
I get an error when trying to conenct using the JMXConnection Factory i.e. at the last line of the following code:
String protocol = "t3"; // can be t3, http, iiop
String hostname = "santapoco.eng";
int port = 7001;
String uri = "/jndi/"+"weblogic.management.mbeanservers.runtime";
JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, uri);
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, "weblogic");
h.put(Context.SECURITY_CREDENTIALS, "weblogic");
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
JMXConnector connector =JMXConnectorFactory.connect(serviceURL, h);
The error is:
"Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
at weblogic.jrmp.Context.lookup(Context.java:189)"Pratima Gogineni <> writes:
This is what worked for me:
URI uri = new URI(args[0]);
JMXServiceURL serviceURL =
new JMXServiceURL(uri.getScheme(), uri.getHost(), uri.getPort(),
"/jndi/weblogic/management/mbeanservers/runtime");
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, "system");
h.put(Context.SECURITY_CREDENTIALS, "ejb2come");
// String[] jmxCredentials = new String[]{ "system", "ejb2come" };
// h.put(JMXConnector.CREDENTIALS, jmxCredentials);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
"weblogic.management.remote");
h.put(Context.PROVIDER_URL, args[0]);
// h.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
// InitialContext ic = new InitialContext(h);
// ic.lookup("weblogic/management");
JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
MBeanServerConnection connection = connector.getMBeanServerConnection();
NOTE this was with weblogic 91-- -
Connect to OWB from a client computer
hi ,
i have installed Oracle 10g and owb 10 on my computer , i have a designed and implemented a WH on it .
can another user from another computer (which have installed OWB 10 on it's computer ) connect to my computer as a client and work with it's schemas via control center ? if yes , does it need any special condition.
reagrds
PadidehHi ,
i have installed OWB and DB 10g on my computer , my friend wanna connect to my computer as a cleint and work on my target schema via design center . she has installed OWB 10 on her computer .
my design center connection information is :
user : padideh1
pass: padideh1
host : Shahr
port : 1521
service name : orcl.teh.org
she enters these connection information in her design center logon window .
regards
Padideh -
Connect as sysdba from network(client)
when i connect to oracle database on network (client)
as sysdba then it will gives error
but when same command is issue on server then it will connect to oracle with no error
:-on network machine
SQL> CONNECT SYS/CHANGE_ON_INSTALL@SAFEDB AS SYSDBA
ERROR:
ORA-01031: insufficient privileges
Warning: You are no longer connected to ORACLE.
init.ora file
remote_login_passwordfile EXCLUSIVE
and
SQL> select * from V_$PWFILE_USERS ;
USERNAME SYSDB SYSOP
INTERNAL TRUE TRUE
SYS TRUE TRUE
whats the problem??recreate your passwordfile in order to ensure that it is not shared and try.
Joel P�rez -
Cannot connect to DB from a client computer
Hi,
I installed 11gR2 last week and can access it from the DB server. However I cannot connect to the DB from my laptop :-(
==============================================================
C:\Users\jchen>tnsping jchen_dev
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:55:49
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\app\jchen\product\11.2.0\client_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = jchen-desktop.us.responsys.com)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jchendev.us.responsys.com)))
TNS-12535: TNS:operation timed out
C:\Users\jchen>
C:\Users\jchen>ping jchen-desktop.us.responsys.com
Pinging jchen-desktop.us.responsys.com [172.19.192.132] with 32 bytes of data:
Reply from 172.19.192.132: bytes=32 time=3ms TTL=64
Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
Reply from 172.19.192.132: bytes=32 time=1ms TTL=64
Ping statistics for 172.19.192.132:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 1ms
C:\Users\jchen>
===========================================================
If I do the same thing on DB server, I got:
========================================================
[oracle@jchen-desktop ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:49:29
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 16-MAY-2011 10:52:05
Uptime 4 days 0 hr. 57 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/jchen-desktop/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jchen-desktop.us.responsys.com)(PORT=1521)))
Services Summary...
Service "jchendev.us.responsys.com" has 1 instance(s).
Instance "jchendev", status READY, has 1 handler(s) for this service...
Service "jchendevXDB.us.responsys.com" has 1 instance(s).
Instance "jchendev", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@jchen-desktop ~]$
[oracle@jchen-desktop ~]$ tnsping jchendev
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 20-MAY-2011 11:51:15
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = jchen-desktop.us.responsys.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jchendev.us.responsys.com)))
OK (40 msec)
[oracle@jchen-desktop ~]$
================================================================
I am totally lost... What is going on here?
Any help is highly appreciated!
Jamesbut I can ping the server and ssh to the server from my laptop...certain ports can be opened through FireWall while all others remain closed.
Listener accepts initial connection request on Port #1521 & then completes request on random high port
use of Wire Shark or similar packet sniffer can answer the mystery -
Connecting Coherence cache from C++ client
hi,
We are trying to connect c++ clients to coherence server running in java. do we need to make any specific changes ? we just tried to load the coherence-client.xml used for java clients in c++. but it doesnt seem to work.. we are getting below error
Fatal Error coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {
abchost/1.1.1.1:9015,
}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptorPlease check the below documentation. It has instructions to configure Client side and Cluster side
Setting Up Coherence*Extend -
Trouble connecting to RDP from single client machine.
I have a Server 2012 machine running remote desktop services. Users at our branch offices connect to it over the corporate VPN.
It has been running for over a year now with no significant issues, until this past Tuesday.
I have exactly one client machine that immediately disconnects upon connecting to the machine. This does not generate very helpful error codes - On the server side, just a generic 4005 - The Windows logon process has unexpectedly terminated.
All other client machines can connect to the server without issue, including other client machines in that branch office. Furthermore, attempting to simply remote desktop into another 2012 server produces the same results on this machine, while remote
desktop to another windows 7 client machine seems to work just fine.
I have seen some similar problems mentioned, but they typically involve a server that consistently fails with all clients, whereas I have a single client machine that suddenly cannot RDP to Server 2012 machines. Any ideas?Hi,
Thank you for posting in Windows Server Forum.
Have you check with other user account on that client machine?
Does ping response successfully to the server?
Firstly please try to run sfc /scannow, check performance for that system, check event viewer whether can find any particular error\event id. For more information you can refer below article.
Fix “The Windows Logon Process has Unexpectedly Terminated”
Hope it helps!
Thanks.
Dharmesh Solanki -
Error when connecting to portal from some machines
Hi all,
Can anyone help me with this.
I get this jserver error when connecting to portal from some
client machines.
I works fine from the others. Any ideas?
This is the error I get:
[08/01/2002 17:41:57:618 GMT+00:00] page/Timeout occurred,
label=73 url=http://odeceixe:81/pls/portal30/!
PORTAL30.wwpro_app_provider.execute_portlet time=15828ms
[08/01/2002 17:41:57:618 GMT+00:00] page/ContentFetcher
Unexpected Exception, name=content-fetcher5
java.io.EOFException: Premature EOF encountered
at HTTPClient.StreamDemultiplexor.read
(StreamDemultiplexor.java, Compiled Code)
at HTTPClient.RespInputStream.read(RespInputStream.java,
Compiled Code)
at java.io.InputStream.read(InputStream.java:95)
at java.io.InputStreamReader.fill
(InputStreamReader.java:163)
at java.io.InputStreamReader.read
(InputStreamReader.java:239)
at oracle.webdb.page.ContentFetcher.run
(ContentFetcher.java, Compiled Code)Did you ever find the cause of this, I am receiving the same message, but as you said, only when connecting to the portal via a certain pc.
-
AIX DAC & Informatica configuration from DAC Client - Help
When I tried to connect repository server from DAC client receiving the following error and help is greatly appreciated.Thanks,
OS : AIX 64
Failure connecting to "INFORMATICA_REP_SERVER"!
ANOMALY INFO::: Error while connecting to informatica repository server
MESSAGE:::
pmrep Connect Error
=====================================
STD OUTPUT
=====================================
=====================================
ERROR OUTPUT
=====================================
Could not load program pmrep:
Could not load module /dacinfadev/PowerCenter8.6.1/server/bin/libpmser.a.
Dependent module /usr/lib/libz.a could not be loaded.
The module has an invalid magic number.
Could not load module pmrep.
Dependent module /dacinfadev/PowerCenter8.6.1/server/bin/libpmser.a could not be loaded.
Could not load module .
EXCEPTION CLASS::: com.siebel.analytics.etl.infa.interaction.PmrepConnectException
com.siebel.analytics.etl.infa.interaction.PmrepInvoker.pmrep(PmrepInvoker.java:102)
com.siebel.etl.gui.data.StaticDatabaseCalls.testRepositoryServer(StaticDatabaseCalls.java:959)
com.siebel.etl.gui.data.StaticDatabaseCalls.testInformaticaServer(StaticDatabaseCalls.java:890)
com.siebel.etl.net.ExecutionPlan.getInformaticaStatus(ExecutionPlan.java:275)
com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.mBeanRequestInformaticaStatus(ClientMessageDispatcher.java:433)
com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.consoleMessage(ClientMessageDispatcher.java:224)
com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.run(ClientMessageDispatcher.java:144)Hello,
There is an issue java (IBM Java) running on the AIX. Basically pmrep and pmcmd commands are being called in by referencing PATH variables, when trying to connect from DAC client, the variable is overwritten by the Java running on the AIX box. We have resolved similar issue on the past.
I will update later what I have done to resolve it
Thanks
Palani -
Remote access VPN clients connected to Internet from VPN
Greetings,
I need to let remote VPN clients to connect to Internet from the same ASA VPN server
" client connects to ASA through VPN tunnel from outside interface then access Internet from the same ASA from outside interface again
thanksyou'll need to configure 'same-security-traffic permit intra-interface' on the ASA .
Also, need to setup the corresponding nat statements for your clients pool range.
i.e.
global (outside) 1 interface
nat (outside) 1 access-list anyconnectacl
where anyconnectacl is the pool for your clients:
access-list anyconnectacl permit ip 172.16.1.0 255.255.255.0 any -
ORA-03113 while connect from 8i client to 7 Server
Hi,
I have a Oracle 7.3.3 Server running on a SCO OpenSever 5.0.5 and a Oracle 8i Client 8.1.6.0.0 on a RedHat Linux 6.2.
When I try to connect from the client to the server by issue command "sqlplus user@test", it responses me "Error while trying to retrieve text for error ORA-03113". But when I run "netasst" to test the connection, it says the connection was sucessful.
Can anyone help? Here are my configuration files:
Listener.ora on Server side:
LISTENER=
(ADDRESS LIST=
(ADDRESS =
(COMMUNITY=TCP.world)
(PROTOCOL=TCP)
(Host=10.128.64.52)
(Port=1526)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST=
(SID_DESC =
(SID_NAME = test)
(ORACLE_HOME = /usr/app/oracle/product/7.3.3
(PRESPAWN_MAX=10)
tnsnames.ora on client side:
TEST.888.COM
(DESCRIPTION =
(ADDRESS_LISTS =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 10.128.64.52)
(PORT = 1526)
(CONNECT_DATA =
(SID = test)
)Hi,
I don't have a 64 bit instance, but maybe another test will be usefull, try to get a connection with sqlplus on the server but via sqlnet like "user/passwd@tnsentry" I think if that also is not possible it is not the 64 bit issue but more that the listener itself coundn't etsablish a db connection, be aware tnsping is only testing if the listener is running and do not check if the listener is able to connect to the db.
Hope this helps a little to find your real proble ;-), Olaf -
Hi all,
I'm a bit in the dark here.
All day searching and reading.. but nothing much yet.
After updating the server and a client to OSX Lion, I'm unable to connect to the open directory of the updated server.
The previous config worked very nice for months.
Now it's a bit iritating, cause imho it seems nothing is in place and its a bit hard to find a solution or how to setup / correct the OD Lion server .
Of course i have downloaded the manuals, that state it's all so easy, and I have seen all the movies on the tubers and they also state its so easy.
Well, since I am feeling a big noob now and before my "self value" degrades 2 below 0 I'm asking 4 your help guys...
Can you give me the candle to find the way in the dark?
There are more things that don't work, but save that for later.. ;(
Situation is as follows:
Started to upgrade the Server 1st.
Then tested from the "old client" and all is working reasonably
Then upgraded to the new Lion client also,
and you guessed it right, no way in.
It's a pretty strait up config...
Hope someone can push me in the richt direction..
(hope it's not the push service from apple, arf arf, cause that's one of the other things that is not working yet)Steps I took upto now:
What I did is go to the client and start the Directory Util, and then select the search config.
Add manually the info of the server.
Then If I type in the IP address, i got the green bulp. But it seems not to work.
When I enter the fqdn, I get the error 2100 could not connect to the ODserver (send by the com.apple.systempreferences)
Because it's an upgrade I deleted then the total contents of the previous settings that where initiated by the "old" setup send by the OD server prev. upgrade.
Then I deleted the kerberos files on the client, and all other things related. connecting to the OD server.
Then I deleted the Machine account on the OD server and back to the client.
Then I created the machine account again from the client manually by going in the OD util on the client.
(connected manually by adding the ip address and then clicking the lock on top of the menu and then after auth succeeded I could see all the rec's and other stuff ..which is a great new feature that you used to do by the
WGM. Now available by the ODutil. Nice.
Okay, after all these steps, I get the feeling it should be able to work, but still the 2100 error.
Somehow it "seems" that the DNS is not responding, but when I get in the terminal, it responds nicely to the pings.!!! And almost everything (not because of faulty DNS) is working.!
So now what?
Any help be appreciated.
(srry 4 typo's /Language. it's a bit late in Europe and not my main Language) -
Not able to connect RAC database from client
Hi there
Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client. Error is as under :
C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter user-name:
myrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = racdb.testdb.com.bd)
Please give me your valuable suggestion to overcome the issue.
Regards
Jeweluser13134974 wrote:
ORA-12545: Connect failed because target host or object does not exist
This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead. -
Oracle command line to connect to a database directly from a client machine
Hi,
I need to connect from a Client machine to a database present on the Database server.
Client: Windows 7 32 bit/ 64 bit
Server where DB is installed: Windows 2008, Oracle 11.xg
I need a command line option that will connect to a database say 'Test' from the command line. I want to put that command in a batch file / exe and call it from there.
I have tools like SQL Developer and dbForge but was unable to do it. Could I have some help on this.
I am a fresher with Oracle and I would appreciate detailed steps. Thanks very much in advance.
VincentVincent,
There is a few steps you want to perform, first of all tell me where is your client database server and where you want command line to use Oracle SQL command line.
Regards,
Hunain Khanani
Maybe you are looking for
-
i've read a couple complaints here that the incase neoprene case has left stains on some people's white macbook....any recs out there for one that will protect my case without staining it? thanks!
-
[WM] Putaway strategy for bulk storage type SU-managed
Hi Gurus, I need your help I have a Bulk storage type with SU-managed. I would undestand the real behaviour of putaway strategy B. 1) Case 1: assume that in bulk storage type there are the followed bins (rows): - in bin XX1 there is material AAA - B
-
Adobe toolbar in office application
Hi there, Is there anyways to turn off the adobe toolbar in all of the office application? after i installed adobe creative suite2, evertime i start up excel and word the adobe toolbar will appear as default no matter what. i even went to the custome
-
Why is it that my iMovie app keeps shutting off randomly! I'm trying to export my movie and it shuts down each time it's a 1/4 of the way through downloading! Ah! Please help.
-
ICal notes and their indication on calendar entries.
Hi, everyone. I am reviewing entries I've made in iCal for the past 3 years and need to print notes associated with these entries. Only a small percentage of the entries have notes. Aside from opening every entry to see if they have notes associated