How to connect to SSL enabled Oracle database using SQL Developer - oracle

I am trying to connect to Oracle database through SQL Developer. Our database is SSL enabled and runs with TCPS. In SQL Developer, I could not find any option where I can configure SSL parameters.
Does SQL developer support connecting to SSL enabled databases? If yes, how. I searched a lot about this, but could not find any relevant solution.

Find sqldeveloper.conf and add lines
AddVMOption -Djavax.net.ssl.trustStore=point to your keystore.jks with Oracle certificate
AddVMOption -Djavax.net.ssl.trustStoreType=JKS
AddVMOption -Djavax.net.ssl.trustStorePassword=your keystore password
In the developer use custom JDBC URL like
jdbc:oracle:thin:#(description=(address=(protocol=tcps)(host=your dbhost)(port=2484))(connect_data=(service_name=your db_service)))

Related

how to setup SSL configuration in oracle database

is to setup ssl configuration in oracle i need to add the encryption configuration in oracle.
what recommendation or steps to follow for SSL setup in Oracle env, is oracle wallet to configure in sqlnet file.

Does Oracle SQL Developer Work With sqlnet.ora?

Is there a way to configure Oracle SQL Developer to respect the TNS look up order in sqlnet.ora ?
We have all information correctly configured in TNS_ADMIN folder:
ldap.ora
sqlnet.ora
tnsnames.ora
Our sqlnet.ora config TNS Look up order as:
...
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES)
...
We want the client to check LDAP first , then local tnsnames.ora as a backup in case lost LDAP connection.
But looks like Oracle SQL Developer can not use sqlnet.ora.
You either have to select TNS or LDAP explicitly.
I google around , but no one seems bother with this.
Please let me know if it is even possible with Oracle SQL Developer, if so , how ?
For SQLNet.ORA to come into play, setup a THICK connection.
Once you have your HOME established, check 'Use OCI/Thick Driver' below that.
You'll be prompted to restart sqldev.
Then make your connection.
To confirm your connection is 'thick', run this in SQL worksheet with F5:
show connection
What comes back should show :OCI in the connection URL. If you see 'thin', you haven't successfully setup the THICK driver.
Otherwise by default SQL Developer uses JDBC to connect, and SQLNet.ora never comes into play. It can still look for and find a TNSNames.ora file though.
Run this in a worksheet to see what's what with TNS
For people who also have trouble with this.
Someone told me a simple solution.

Export Database connection to Oracle Developer

I have a database Connection established in odbcad and Microsoft Access (aswell as working in Excel) via ODBC and want to also get it working in Oracle SQL developer.
It is a Windows SQL Server as far as i know and I have tried several Settings, of which None works. I have also installed Driver for ODBC. I would like to Import Settings into SQL developer as applied in MS Access, is there any possibility?
No, SQL Developer is a Java application and uses a JDBC driver.
But if you look at the odbc properties for your connection, those should largely translate to what you need to define a basic connection.
Oracle:
Server name or IP address of the DB, port # for the listener, and the name of the SID or Service, plus a valid username and password is all you need to connect to Oracle.
What error do you get when you try to connect?
Show us what you're trying.
Update:
You're trying to connect to SQL Server but you're getting"
Native SSPI library not loaded
You're trying to use OS Authentication for your connection. For this to work with the jTDS driver, you need to copy a DLL file named ntlmauth.dll (which is for NT authentication) under the jtds-x.x.x-dist\x86\SSO\ or jtds-x.x.x-dist\x64\SSO\, to any directories in the PATH environment.
Please update your question such that's it's clear you're connecting to SQL Server and share the error message so others can find it.
I imagine this question is a duplicate of many previous iterations of the same challenge.

Connect to OBIEE from Oracle SQL Developer?

Is it possible to create a connection to OBIEE from Oracle SQL Developer?
I know it is possible to create an ODBC connection to the Oracle BI server within the Windows ODBC Data Source Administrator, and that other ODBC client tools can use that ODBC connection to run SQL against the BI server, but I don't see any way for SQL Developer to use that ODBC connection.
I'm on OBIEE 12.2.1.4 and SQL Developer 17.3.0.271.
UPDATE
Based on Robin Moffatt's article at https://rmoff.net/2016/03/28/connecting-to-obiee-via-jdbc-with-jisql/, I used jisql (https://www.xigole.com/software/jisql/jisql.jsp) to set up a connection to OBIEE using the JDBC driver that ships with the OBIEE client -- bijdbc.jar, which is located at $ORACLE_HOME/bi/bifoundation/jdbc/.
Following is a screenshot showing how jisql is able to successfully connect to my OBIEE server via the bijdbc.jar driver and run an example SQL statement; the Oracle-specific connection details are outlined in red:
Screenshot 1: OBIEE JDBC connection test using jisql
My next step was to try to implement this same successful JDBC connection in SQL Developer. To that end, I added bijdbc.jar to SQL Developer's third-party JDBC drivers:
Screenshot 2: bijdbc.jar added to SQL Developer third-party JDBC drivers
After adding the JDBC driver, I did not see a new tab in SQL Developer's connection dialog. (By comparison, in the past, when I have added other third-party JDBC drivers, such as the jTDS and MySQL drivers also seen in screenshot 2, new tabs had become available.)
Since there was not a new tab in SQL Developer's connection dialog, I tried setting the Oracle tab's connection type to Advanced and inserting the JDBC connection string as the Custom JDBC URL. Testing that connection leads to a "String index out of range: -1", as seen in this screenshot:
Screenshot 3: Error using custom JDBC URL in SQL Developer
Since that same JDBC connection string works in jisql, I suspect that either I'm doing something wrong, or SQL Developer does not support connecting to OBIEE via that bijdbc driver.
Ok, fair enough. Have a look at what Andrew did to make the ODBC drivers usable in Excel - it's basically down to manipulating things in Windows:
https://www.rittmanmead.com/blog/2017/02/working-with-obiee-data-in-excel-using-odbc/
Just adding a final answer here in case anyone stumbles upon this page asking the same question:
No, SQL Developer does not currently support connecting to an OBIEE server, although other tools can be used to connect to the server using either ODBC or JDBC.

NHibernate and Oracle connect through Windows Authenication

How do I use Windows Authentication to connect to an Oracle database?
Currently, I just use an Oracle Username and password, however, a requirement is to give the user on install the option of selecting Windows Authentication since we offer the same as SQL.
You need to modify the AUTHENTICATION_SERVICES entry in SQLNET.ORA to this:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
As well, you will need to setup the accounts in Oracle to match the Windows accounts. Have a look at http://www.dba-oracle.com/bk_sqlnet_authentication_services.htm for more details.

Resources