istener does not currently know of service requested in connect descriptor - oracle

I tried to connect soapUi the open source version to oracle 11g but this error is raised :
Can't get the Connection for specified properties; java.sql.SQLRecoverableException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
this is the connection string :
jdbc:oracle:thin:SYS/imane#127.0.0.1:1521/132
ps: I put the driver jar in ext and lib
thank you

Related

java.sql.SQLException: connect error when connecting to TDengine database

I'm trying Druid to connect TDengine.
url jdbc:TAOS-RS://127.0.0.1:6041/test?user=xxx&password=xxxx
Then I got the following error:
java.sql.SQLException: connect error
If I use JDBC directly, it's ok. What may be the problem?
Please make sure you have launched taosAdapter.
You can try
systemctl start taosadapter

WebSocket connection to 'protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I was implementing laravel websockets package in project it is working fine in my local machine but on server first it was giving error of Connection timeout That problem was solved when add TCP port in aws security group but after that it starts giving new error
WebSocket connection to 'ws://52.64.101.38:6001/app/ABCDEF?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Here are errors I am getting in console when try to connect websocket server
I was searching about this error i found this github thread . Which is saying try to bound with 0.0.0.0 but I dont know what does it means,
https://github.com/GeniusesOfSymfony/WebSocketBundle/issues/251
I was also getting this error on local machine but was later resolved when i downgrade package version 1.6
NOTE: I am using ubuntu server aws services

Connect to Teamcity to OCI Autonomous Transaction Processing Database

I am trying to migrate my Teamcity database from internal to external, and I registered a free tier ATP database. I am not sure how to how to set the connection URL in the teamcity database property files to access the database.
The tnsnames I am referencing is from the following:
teamcitytestdb_medium = (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.us-phoenix-1.oraclecloud.com))(connect_data=(service_name=rhhea6hkgj2saju_teamcitytestdb_medium.atp.oraclecloud.com))(security=(ssl_server_cert_dn="CN=adwc.uscom-east-1.oraclecloud.com,OU=Oracle BMCS US,O=Oracle Corporation,L=Redwood City,ST=California,C=US")))
The command I ran for the tests below are using this command:
bin/maintainDB.sh migrate -T $(pwd)/database.oracle.autodb.properties.dist
Here is a list of commands and output I tried:
Test1:
connectionUrl=jdbc:oracle:thin:#//adb.us-phoenix-1.oraclecloud.com:1522/rhhea6hkgj2saju_teamcitytestdb_high.atp.oraclecloud.com
driverName=oracle.jdbc.driver.OracleDriver
connectionProperties.user=<username>
connectionProperties.password=<password>
--------- output ---------
Cannot proceed with 'migrate' command: Could not connect to the target database: Could not connect to Oracle server.
IO Error: Got minus one from a read call: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call. Caused by: oracle.net.ns.NetException: Got minus one from a read call
Test2:
connectionUrl=jdbc:oracle:thin:#tcps://adb.us-phoenix-1.oraclecloud.com:1522/rhhea6hkgj2saju_teamcitytestdb_high.atp.oraclecloud.com?wallet_location=/Users/jiuwang/Documents/Spectra/3rd-jars/teamcity-tests/Wallet_TeamCityTestDB
driverName=oracle.jdbc.driver.OracleDriver
connectionProperties.user=<username>
connectionProperties.password=<password>
--------- output ---------
Cannot proceed with 'migrate' command: Could not connect to the target database: Could not connect to Oracle server.
IO Error: The Network Adapter could not establish the connection: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection. Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
Test3:
connectionUrl=jdbc:oracle:thin:#adb.us-phoenix-1.oraclecloud.com:1522:rhhea6hkgj2saju_teamcitytestdb_medium.atp.oraclecloud.com
driverName=oracle.jdbc.driver.OracleDriver
connectionProperties.user=<username>
connectionProperties.password=<password>
--------- output ---------
Cannot proceed with 'migrate' command: Could not connect to the target database: Could not connect to Oracle server.
IO Error: Got minus one from a read call: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call. Caused by: oracle.net.ns.NetException: Got minus one from a read call
How should I setup this correctly so the migration tool can connect to the database? Thanks
You need to provide the TNS_ADMIN to point to the path where you have downloaded the wallet credentials to connect to Autonomous Database.
Also, the JDBC version is important. You can use pass TNS_ADMIN as part of the connection URL only if you are using JDBC driver version 18.3 and above.
I would suggest to try a DataSourceSample.java to make sure if the connection works.
DB_URL ="jdbc:oracle:thin:#wallet_dbname?TNS_ADMIN=/Users/test/wallet_dbname";
Also, refer to this page for more details.

Oracle database throwing error - orapw[SID] is missing

I have downloaded and installed Oracle Database Express edition. In SQL Developer, I am trying to create a new database connection that connects to SYS, however I am being rejected with the error:
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 found out that during installation I should have been prompted to create a password for sys, but no such thing happened.
I then tried to find the orapw[SID] file in /database. It was not there.
Any idea what I'm doing wrong?

Getting Error when connection scott schema from SQL Developer

I am getting below error when ever trying to connect DB from sql developer.
Status : Failure -Test failed: Listener refused the connection with
the following error: ORA-12514, TNS:listener does not currently know
of service requested in connect descriptor
But successfully connect from command prompt.
I have set the path in environment variable correctly.
Can you please help me with this issue.
Thanks

Resources