Oracle listener create logon - oracle

I would like to prepare listner in another port but I have got problems you can see this in picture with I added below. Also I would like to connect to dabase using this "listener" and check connection in CMD using easy connect.
My username: rafal password:oracle
listener in 1521 is working but in another port I have got problem

"No listener" error indicates either that you're reaching the wrong server, or the right server on the wrong port, or that the listener is not started. I would start by checking that the listener is started, since you can reach the other one.

Related

Oracle Database Error | ORA-12528

When I try to connect to my Oracle database, I get Listener refused the connection with the following error: ORA-12528, TNS:listener: all appropriate instances are blocking new connections. Also, I'm not sure if this means anything but I checked and my database is not mounted.
If the "unregister" did not complete properly, then when you go to
"startup" the next time, since the LISTENER did not unregister the
instance, you receive the error, "ORA-12528: TNS:listener: all
appropriate instances are blocking new connections" since an
"appropriate" instance is already running.
Check the status of the listener by
LSNRCTL> status
One method that should resolve this problem is to restart (bounce) the LISTENER:
LSNRCTL> stop
LSNRCTL> start
Then restart your instance: sqlplus with sysdba privileges
SQL> startup
Make sure all parameters are set.

Checking to see if an Oracle listener is running without installing the client?

Is it possible to check if an Oracle listener is running on a remote machine without using the Oracle client?
Perhaps by connecting to specific port on a remote server?
It depends on exactly what you want to check.
You could try to telnet to port 1521 (or whatever port you expect the listener to be listening on). If the connection is successful, that would imply that there is a listener. You're not going to be able to see, however, what services are registered with the listener. And you won't be able to see whether the listener would actually be able to hand off a connection to the database. That's why it generally doesn't make a lot of sense to monitor the listener in isolation-- you generally want to monitor whether you can successfully connect to the database not whether the listener process is running.

MQ sender- receiver channel issue

I have two PCs both running Windows7 connected via LAN wire ( as homegroup network). In both PCs, I have installed MQ7.0. Let me name them: A and B
On A, I defined a queue manager QMA. On B, I created a queue manager QMB. Now I created a sender channel at system A: QMA.QMB and created a receiver channel at system B: QMA.QMB. This set up working fine. Both channel shows running. I have configured a sample remote queue defintion at system A and checked trace route message.
Now issue is reverse configuration. I want to create sender-receiver channel from B to A. So I followed similar steps to configured channel QMB.QMA. On system B, sender channel (QMB.QMA) keeps retrying. and at system A, receiver channel(QMA.QMB), it shows always inactive.
I have been trying couple of hours but no luck. Please help.
Pining ip address from both machines working fine. I am using tcp with default 1414 port. Listeners are up on both system. One strange thing, when I try display chstatus(QMB.QMA) on system A, it says "Channel status not found". and on system B,same command display channel status with status stopped. I have tried multiple times deleting-recreating channels. But no luck.
The first thing to do is to see whether the connection request is even getting to QMA from QMB. Check the AMQERR01.LOG file in {WMQ Install Dir}/errors and {WMQ Install Dir}/QMgrs/QMA/errors for indications of any failures. If the connection request is getting to QMA but failing you should see it in the QMA/errors/AMQERR01.LOG file. If it is getting to WMQ but not to QMA then you will find it in the WMQ global logs in {WMQ Install Dir}/errors.
If you are seeing the error in one of these logs, it should tell you what the problem is. If there's a log entry and it doesn't resolve the issue, post the error log entry as an append to this question.
If you are not seeing it in one of these logs then look for configuration errors. Make sure that the listener is running and on the port you think it should be. Make sure the CONNAME points to the right IP address and port. Make sure to use IP address and not the host name of QMA to take name resolution out of the equation. Make sure that the Windows firewall is open for the port that is listening. Go to QMB host and try top telnet to QMA host on the WMQ port. If the connection is refused immediately or closes after a second or two then it is likely a firewall issue.

how to disconnect from FTP host server while still executing?

I'm using Inet1.Ocx in a vb6 project to connect to a remote host.
I was wondering, is there anything to do to disconnect from server while still executing ?
i will explain more,
i write the host name and user name and password and hit (Connect) button but i find out that i misspelled the host name, while the status of the connection (Still Connecting) i attempt to disconnect to re-write the host name, but i get a message error (Still executing the last connection) ... how can i terminate the (Last connection) while (Still executing) ?!
Have the connection and login on a seperate form and then add a disconnect button which closes the form and the connection.
http://www.bigresource.com/VB-How-to-Close-FTP-connection-using-inet-MntXMWW4FX.html
This might help ;)

Error connecting to Oracle DB from Java

Could someone please help me on why I received the following error while trying to connect to Oracle db from java....
The connection call is:
Connection con = DriverManager.getConnection(
"jdbc:oracle:thin:#winson.net:1522/hcrod",
"manager", "passing");
I receive the following error:
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:389)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:454)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at test_sample.main(test_sample.java:15)
in a similar case for me worked a slightly other connect string:
jdbc:oracle:thin:#winson.net:1522:hcrod
really without the // and with : instead of /
I've seen this error come up a few times when I've started the TNS listener after I started the database. When the database starts up it registers itself with the listener if the listener is running, but if the listener isn't running it can't do this.
It's possible to manually persuade the database to register itself with the listener. To do this, connect to the database as SYS and run the SQL statement ALTER SYSTEM REGISTER;.
It sounds like the port on the server isn't listening, port 1522.
Can you telnet the port successfully?
Oracle's JDBC thin URI syntax is as follows:
jdbc:oracle:thin:[USER/PASSWORD]#//[HOST][:PORT]/SERVICE
So:
jdbc:oracle:thin:#//winson.net:1522/hcrod"
Note the two slashes added after the # symbol.
i think port number for oracle is 1521

Resources