java.sql.SQLException: Cannot create PoolableConnectionFactory - jmeter

I am getting an issue as poolableconnectionfactory. how to do it and where i did the mistake?can anyone please suggest me.

Your sqldatabase322 user doesn't have permissions to connect to the sqldatabase233 from the 182.72.70.197 IP address.
Connect to your MySQL database server as root user
Execute CREATE USER and GRANT commands like:
CREATE USER 'sqldatabase322'#'182.72.70.197' IDENTIFIED BY 'your_password_here';
GRANT ALL PR on sqldatabase233.* to 'sqldatabase322'#'182.72.70.197' with grant option;
Now you should be able to connect to the database and execute arbitrary queries
Check out MySQL Database and JMeter - How to Test Your Connection article for comprehensive information/troubleshooting options.

Related

How to connect to Oracle on SSMA tool?

Hope you can help. I'm trying to connect to an Oracle database using SSMA for Oracle.
I have created an Oracle VM on azure as highlighted below
and
the VM got created
I have added the firewall rule to allow 1521 port.
and created the DB as mentioned below
however I could not connect to the Oracle instance using SSMA
it is throwing the below error
and if I try with that account
it is not accepting the password
What is the Username and password to be used?
Reference: https://lovekesh.tech/how-to-install-oracle-database-in-microsoft-azure-vm/
I was able to fix this issue by using the "system" account instead of "sys" or "sysdba", passsword for "system" account is same as "sys" account.
and could convert the schema
and I see the progress as highlighted below
as well as I could migrate the data
and status is as shown below

How to connect AWS Oracle to SQL Developer w/out using Master User

I'm able to connect to my AWS RDS Oracle instance in SQL Developer using my Master ID and password.
Is there a setting I can use so we can connect to SQL Dev using a regular user? I'd rather not give out my master user info to other non-DBA users.
Thanks!
Just connect as the master user and create a regular user:
CREATE USER regular IDENTIFIED BY secret;
GRANT CREATE SESSION TO regular;
GRANT -- whatever else you need
Now you can connect as the regular user.

Error: The Network Adapter could not establish the connection

I have a problem with a spring boot application. I have a database connection to an Oracle DB on the cloud. The application works when I run the app in local, but when I deploy the application to the cloud the application start well, but it cannot connect to the Oracle DB.
The error that displays the app is: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Application properties:
spring.datasource.driverClassName=oracle.jdbc.OracleDriver
spring.datasource.username=myuser
spring.datasource.password=mypass
spring.datasource.url=jdbc:oracle:thin:#<ip>:<port>:cdb1
EDITED:
The problem appears when I changed to a new user created with the next script:
connect sys as sysdba
alter session set "_ORACLE_SCRIPT"=true;
CREATE USER myuser IDENTIFIED BY mypass;
GRANT CONNECT TO myuser;
GRANT CONNECT, RESOURCE, DBA TO myuser;
GRANT CREATE SESSION TO myuser ;
GRANT UNLIMITED TABLESPACE TO myuser
Maybe there is a IP whitelist and your local machine is whitelisted, but your cloud host is not.
Can you ssh to the cloud host and ping this cloud db?

Setting up connection between 2 oracle instances for replication

Hi everyone i have problem with setting up connection between two oracle instances for replication. I can connect via sqlplus using string like `
SQL> connect root/12345#orcl1
but I can't create query:
CREATE DATABASE LINK remotedb
CONNECT TO root IDENTIFIED BY 12345
USING 'orcl1';
Also I can't set up it with Oracle database control. The error that I get is username or password of remote master isn't correct.
I don't suppose by any chance that the user "root" is a SYSDBA account on remote DB? If so, you cannot do this. Database links are not allowed to connect to SYSDBA accounts. The link will be created but you will get ORA-01017: invalid username/password.
I resolved the problem by enclosing password in double quotes

grant user in another database

How can I grant 'select' on sequence to user in another database.
the syntax: grant select on SEQ_NAME to USER_NAME;
allowed only to users in the same database.
You remote user first needs to have some way to connect to your database. In Oracle this is done by creating a database link. The database link has to be created in the remote database and has to connect to your database.
In the connect definition to your database, a user can be specified to use for the connection in your database. That user needs to have the select privilege.
If there is no user specified in the database link definition, the remote user name will connect to your database using the same name as the remote username, using the same password.
So, in both cases the privilege has to be granted to a user in your database.
create database link to_my_database connect to guest_in_my_database identified by 'bigsecret' using tns_alias_to_my_database;
In this example, you need to grant to guest_in_my_database, after it has been created and given at least the create session privilege.

Resources