does liferay use SQL*Net client by any means? - oracle

Now I have some weird problem:
our DBA blocked my OS user from connecting to the DEV database for some reason
So I was not able to connect with TOAD
but I was able to connect with SQL Developer
also I wasn't able to start my Liferay server while connecting to the DEV database, with a message: user not allowed to login to the database (or something like this)
I made some investigation to tell why is SQL Developer connecting while TOAD is not. So I came out with a fact that TOAD uses the installed SQL*Net client while SQL Developer uses a standalone thin jdbc client.
So I thought this might be the reason somehow (not sure why, but may be the installed SQL*Net client reveals the OS user while thin client doesn't)
Now my question is: why is Liferay behaving the same way as TOAD though -according to my knowledge- it shouldn't as it is connected using datasource configured in the tomcat context.xml file?
Also if someone has a good scientific explanation about TOAD vs SQL developer, it's appreciated (I think I can track the sent request using wire shark, but no time actually)
I am using Liferay 6.1 , Liferay Studio and oracle 11g database
update :
I checked the connection of Liferay tomcat and found it :
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:#.....

The reason why you can connect with SQLDeveloper and not with Liferay may be that your SQLDeveloper uses a more recent version of the JDBC thin driver (ojdbc6.jar or ojdbc7.jar). A solution would be to replace the one if Liferay with the one from SQLDeveloper. It would be just a matter of replacing the jar and restarting the tomcat server.

Related

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.

Toad for Oracle install

I'm beginner level oracle developer. I have SQL developer installed on my machine. And I wanted to install Toad for oracle too. But When I tried to install Toad, it gave me an error:
No Valid Oracle Clients found. You need atleast one 64- bit client properly configured.
Can someone explain why I'm getting this error?
Because SQL Developer ships with its own JDBC driver, which doesn't require an oracle client to connect to the Database.
If you have a compatible Oracle Client sitting around, you can tell SQL Developer to piggyback on that client for connections - but THAT IS NOT required.
T.O.A.D. is a windows executable that needs an Oracle Client to connect to a database. An Instant Client is the easiest way to get going.

Delphi win32 application to work with Oracle

I have to create win32 client on Delphi, which can work with database on Oracle. The only problem with this task that client have to demand "zero administration".
In other words user downloaded it from our site and ran it without any installing oracle client and tuning tnsnames.ora.
My first aproach was to install apache on server side with connection to Oracle. Our win32 client this case is like web brouser works with Oracle via https.
It works but performance is not so good as expected. Delay in reaction between clent and server side is too long.
Is there any way to acheve my goal (zero adminstration client with good enough performance)?
The product ODAC (Oracle Data Access Components) from DevArt has a "no oracle client needed" mode. This would probably be the easiest solution. You could also just include the Oracle Instant Client with your product and use Oracle's "EZConnect" syntax so that you don't have to configure anything on the client. Using EZConnect allows you to connect to an Oracle Database without using a TNSNames.ora file.

How should I configure the Oracle HTTP server to handle PL/SQL page requests?

I am wanting to build an Oracle OFM development environment on Windows 7 (64-bit) to migrate over an existing java/struts and PL/SQL application from OAS10G. So far I have installed the Oracle Database product (), Java 7, and WebLogic Server (10.3.6 = wls1036_generic).
Have I installed everything I need as far as OFM is concerned? I can't see how to configure the oracle http server to handle PL/SQL page requests. I spotted on post that said this can be done through the Oracle Fusion Middleware Control - which should be found at my-domain:7001/em, but that tool doesn't seem to be found. I only seem to have the WebLogic Server Console (my-domain:7001/console) which has lots of tabs and options but I don't see anything that lets me configure the ohs (Oracle Http Server). Does the Oracle Http Server (ohs) even get installed as part of the WebLogic installation?
Thanks for any help. Oracle product installations confuse me.
The OHS is confusing, as it hard to understand if you need a middle tier (OFM) or not.
And really you don't need a full OFM install, you just need the Web Tier.
In 11g:
http://www.oracle.com/technetwork/java/webtier/downloads/index-jsp-156711.html
In 12 (I have not yet installed this) the download is:
http://www.oracle.com/technetwork/middleware/ias/index-091236.html
After installing, I manually modify the dad.conf file to set up the DADs.
Keep in mind that using Oracle Http Server on the same machine as the database does not require a OFM license. If you install it on another machine, you do need to pay it.
The other thing you can do is install the Oracle Apex Listener. This is actually better than OHS because it can handle true REST request (where as OHS can only handle application/x-www-form-urlencoded and multipart/form-data).
Download:
http://www.oracle.com/technetwork/developer-tools/apex-listener/overview/index.html?ssSourceSiteId=otnpt
I've installed this using Glassfish as a middle tier, and it works well. The Apex Listener does not require another licenses and can be installed anywhere...

ADO.NET for connecting Oracle Database on server

Recently we have developed an application which connects to oracle database for fetching records. For fetching records, we are using OLEDB for Oracle. Application runs fine on my machine by connectng properly with Oracle ,since i have oracle client installed on my machine. Now i tried to test application on another machine, which doesnot have any oracle instance/Client installed on his machine. Application fails to connect to oracle central DB Server. Is it necessary for users to install oracle client on their machine before the application communicates with Oracle.
Here is Connection string
connectionString="Provider=msdaora;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XYZ)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=abc.com)));Persist Security Info=False;User Id=mahens; Password=XXXXXXXXX" providerName="System.Data.SQLOLEDB"/>
The above code is for OLEDB for oracle. Is there any thing i required to install for connecting to central Oracle DB server from my windows application(.NET application installed on local machine).
If we try to use ODP.NET dll and include those dll's along within BIN directory,will that work?..Can any1 tell me a way wherein user need not install any oracle Client on their machine and communicate to server.
-Mahender
I believe you always need the oracle client installed as everything in .net ultimately uses ODP.NET. However, you can use the Oracle Instant Client to make your users' setup process easier.

Resources