Connection in Oracle Sql Developer - oracle

I am trying to create a new connection in Oracle SQL Developer. Below are the inputs:
Connection Name:Dbms
Username:[My Name]
Password:[Ubuntu Password]
ConnectionType:Basic
Role: default
Hostname: localhost
Port: 1521
SID: xe
Upon clicking Test an error is being displayed:
Network Adapter could not establish connection

Related

Oracle database connection via Codeingniter 4

Hi I have a Oracle database installed locally on my laptop. I'd like to connect to it via Codeigniter 4. Since version 4.2.0 it is able to do so.
https://codeigniter4.github.io/CodeIgniter4/changelogs/v4.2.0.html
All my database credentials are in the .env file, but I'm unable to establish connection. I'm new to Oracle.
I can connect to my database via Oracle SQL Developer.
The data I use for the connection:
host: localhost
port: 1521
user: system
password: MYPASSWORD
service name: orcl
How can I use that in my .env file?
This is what I have so far:
database.default.hostname = localhost
database.default.database =
database.default.username = system
database.default.password = MYPASSWORD
database.default.DBDriver = oci8
database.default.DBPrefix =
database.default.port = 1521
I get this error:
Unable to connect to the database.
Main connection [oci8]: oci_connect(): ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
(.env file)
Try using:
database.default.hostname = '127.0.0.1:1521/orcl'
Where:
'127.0.0.1:1521/orcl', // hostname:db_port/service_name

Connect NiFi to Oracle 11g

I have no problem to connect Oracle 11g with Oracle SQL Developer with configuration below:
Username: orc
Password: PAP
Connection Type: Basic
Hostname: connect.gogo.com
Port: 1528
Service name: svcname
In NIFI, any idea how should I put the value for the Database Connection URL?
Database Connection URL:
Database Driver Class Name: oracle.jdbc.driver.OracleDriver
Database Driver Location: /opt/nifi/jdbc/ojdbc8.jar
Thanks,
Kenny
you can add a DBCPConnectionPool under Controller Service like this
Database Connection URL: jdbc:oracle:thin:#connect.gogo.com:1528/svcname
more information here
https://docs.oracle.com/cd/E11882_01/appdev.112/e13995/oracle/jdbc/OracleDriver.html
or you could use tnsnames.ora file syntax in url like this:
Database Connection URL: jdbc:oracle:thin:#(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL=TCP)(HOST=connect.gogo.com)(PORT=1528)))(CONNECT_DATA=...))

Installing Laravel with a database on another system

We have a local network, in the server's system I install SQL Server 2017, now I must install Laravel in my system with the server's database but I got this error
Connection failed: SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: Connection string is not valid [87].
my config
SQL Host : DESKTOP-Q03NUTO\LS
SQL Port : 1707
SQL Login: sa
SQL Password: ***

Unable to create a New Connection in Oracle SQL Developer

I am trying to create a new connection in Oracle SQL Developer.
Below are the inputs i am providing and its failing :
Connection Name: HR_ORCL
Username: hr
Password: (system password)
Hostname: localhost
SID: orcl
Clicking Test Connection .
Failure
Test Failed: ORA-01017:invalid username/password;login denied

Trying to establish a connection

I have just downloaded and extracted the Oracle SQLDeveloper in MAC OS X. Until then, when I am establishing a connection using the HR (default) as the username and password, ORCL for the SID... the test result always show "test failed the network adapter could not establish the connection". Any insights...
regards prinsipeluha
Your Host or Port entry is not correct and/or your host is not accessible from your machine (e.g. behind a firewall). If localhost the defaults would be
host: localhost
port: 1521

Resources