ORA-12505, TNS:listener does not currently know of SID given in connect descriptor in 11g - sql

Status : Failure -Test failed: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
I have tried via tnsname.ora file.
If you have any other alternative please ping me?

Related

Bad CONNECT when trying to subscribe to message queue

I'm completely new to RabbitMQ and now I'm looking for a configuration error. The client doesn't receive any messages from RabbitMQ and I debugged it as far as possible.
Frontend messages:
Message 1:
CONNECT
login:frontend_listener
passcode:xxx
accept-version:1.0,1.1,1.2
heart-beat:20000,0
Message 2:
ERROR
message:Bad CONNECT
content-type:text/plain
version:1.0,1.1,1.2
content-length:30
Virtual host '/' access denied
There are two vHosts: / and someVhost and there are different users like frontend_listener. Now I found a way to access the log file.
RabbitMQ log file:
2020-02-11 15:50:53.579 [warning] <0.798.0> STOMP login failed for user "frontend_listener"
2020-02-11 15:50:53.579 [error] <0.798.0> STOMP error frame sent:
Message: "Bad CONNECT"
Detail: "Access refused for user 'frontend_listener'\n"
Server private detail: none
...
2020-02-11 15:51:25.349 [info] <0.850.0> Creating user 'frontend_listener'
2020-02-11 15:51:30.374 [info] <0.857.0> Setting permissions for 'frontend_listener' in 'someVhost' to '$', '$', 'client-notification.*'
2020-02-11 15:51:54.980 [warning] <0.867.0> STOMP login failed - not_allowed (vhost access not allowed)~n
2020-02-11 15:51:54.980 [error] <0.867.0> STOMP error frame sent:
Message: "Bad CONNECT"
Detail: "Virtual host '/' access denied"
Server private detail: none
2020-02-11 15:52:56.427 [warning] <0.875.0> STOMP login failed - not_allowed (vhost access not allowed)~n
It reads like the permissions are wrong. Can someone help me out interpreting that correctly?
I try to read it: User frontend_listener wants to access the vHost /, but it hasn't sufficient permissions (don't know what $ here mean other than a part of regular expression). The thing is, that I don't know if that is the correct vHost. How do I find out the URL of each vHost?
I'm asking this because I believe that the mapping to the vHost is wrong or something is missing.
Edit:
After adding host: 'someVhost' to my stomp-config.ts I was able to subscribe to the queues. Now I get the following error in the log:
2020-02-12 16:32:25.913 [error] <0.5159.1> Channel error on connection <0.5149.1> (127.0.0.1:58136 -> 127.0.0.1:15674, vhost: 'someVhost', user: 'frontend_listener'), channel 1:
operation basic.consume caused a channel exception access_refused: access to queue 'stomp-subscription-SZ3-PO1-PbZroPol-WXSQw' in vhost 'someVhost' refused for user 'frontend_listener'
2020-02-12 16:32:26.022 [error] <0.5145.1> STOMP error frame sent:
Message: access_refused
On the frontend I don't get a message or error.
You need to also pass host information in the STOMP CONNECT frame..
this is what the specifications says and clients MUST set this header
host : The name of a virtual host that the client wishes to connect to. It is recommended clients set this to the host name that the socket was established against, or to any name of their choosing. If this header does not match a known virtual host, servers supporting virtual hosting MAY select a default virtual host or reject the connection.
So this is how your CONNET frame should look
CONNECT
login:frontend_listener
passcode:xxx
accept-version:1.0,1.1,1.2
host: someVhost
heart-beat:20000,0

query fail when has a where (reducers) in kerberos Cloudera quickstart

When execute a query without condition the result is successfull
But when execute a query like select * from tablexy where fielda = 'value' the result is a follow error:
ERROR : Job Submission failed with exception 'java.io.IOException(Failed on local
exception: java.io.IOException:
Couldn't setup connection for hive/quickstart.cloudera#CLOUDERA to
quickstart.cloudera/7.212.100.169:8032; Host Details : local host is:
"quickstart.cloudera":8032; )'
"quickstart.cloudera/7.212.100.169"; destination host is:
java.io.IOException: Failed on local exception: java.io.IOException:
Couldn't setup connection for hive/quickstart.cloudera#CLOUDERA to
quickstart.cloudera/7.212.100.169:8032; Host Details : local host is:
"quickstart.cloudera/7.212.100.169"; destination host is:
"quickstart.cloudera":8032;

ssl enabled oci connection - unknown cipher suite 157

I am trying to make an ssl based oci connection to Oracle 11g ssl enabled database using OBIEE BI server and Admin tool. The wallet and all required configurations are in place. However the connection establishment fails and in the sqlnet trace file I get the following error.
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: INTERNAL ERROR - unknown cipher suite 157.
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: failed with error 543
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: exit
(12184) [25-OCT-2015 12:45:21:521] ntzini: Could not initialize Cipher Suite table.
(12184) [25-OCT-2015 12:45:21:521] ntzini: failed with error 543
I am not specifying any particular cipher suite in sqlnet.ora either in client or database, and using the default ones.
Next I tried to create jdbc connection using oci driver (using oracle instant client) and using same wallet, in a simple java client program. I was able to successfully establish the SSL enabled connection.
So it seems like Oracle client inside OBIEE might be missing some feature to handle SSL based connection. Any idea how to fix this?
Thanks in advance

Infinispan - CLI : How to authenticate using bin\ispn-cli.bat?

I've created a Memcached Server over Infinispan. I could success connecting two remote nodes (different machines) over TCP to the same cluster. Let's consider this :
nodeA's IP address[port] : A1.B1.C1.D1[7800]
nodeB's IP address[port] : A2.B2.C2.D2[7800]
But now, I'm trying to connect to my cluster running first this command line :
bin\ispn-cli.bat
And then trying in the console in the machine whose IP's address A1.B1.C1.D1, these commands :
connect A1.B1.C1.D1
connect remoting://A1.B1.C1.D1:7800
But, I don't succeed it.
Then I added a new user, using add-user.bat:
connect remoting://username:cryptedpass#A1.B1.C1.D1:7800
connect remoting://username:cryptedpass#A1.B1.C1.D1:7800/cacheContainerName/cacheName
The error I get is :
JBREM000202: Abrupt close on Remoting connection
I looked again at my cluster configuration file, and I have the following :
<socket-binding name="memcached" port="11211"/>
<socket-binding name="remoting" port="4447"/>
And so I tried these ones and which failed :
connect remoting://username:cryptedpass#A1.B1.C1.D1:11211
connect remoting://username:cryptedpass#A1.B1.C1.D1:11211/cacheContainerName/cacheName
connect remoting://username:cryptedpass#A1.B1.C1.D1:4447
connect remoting://username:cryptedpass#A1.B1.C1.D1:4447/cacheContainerName/cacheName
But all of this command lines have failed.. and the error I get is :
Operation failed with status WAITING
So probable I'm using a wrong port...
Please, I need your help.
Thank you a lot!

Getting error when connecting to APNS using PHP

Warning: Invalid argument supplied for foreach() in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 13
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection refused) in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 53
Failed to connect 111 Connection refused
Fatal error: Call to undefined function socket_close() in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 98
I have godaddy.com's hosting service. Does someone know about godaddy.com support APNS?
The error seems like the destination server "ssl://gateway.sandbox.push.apple.com:2195" rejected your connection. You might want to check with Apple's documentations or contact either GoDaddy, Apple, or both.