How to test Oracle 11g SQL connection ? - Advanced Installer Community
EUROEDI
Posts: 4
Joined: Fri May 31, 2013 5:07 pm

How to test Oracle 11g SQL connection ?

Hi,

I tried to add a SQL Connection Dialog to test a an Oracle Database 11g server (x32) connection, with no success (following your "How to" page http://www.advancedinstaller.com/user-g ... ction.html) !

I tried this under event params:
  • Argument: Driver=[\{]Microsoft ODBC for Oracle[\}];Server=[SERVER_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

    -> NO SUCCESS [Error SQL_State:IM002] ORA-12504: TNS:listner was not given the SERVICE_NAME in CONNECT_DATA

    Argument: Driver=[\{]Oracle in OraClient11g_home1[\}];Server=[SERVER_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

    -> NO SUCCESS [Error SQL_State:IM002]
----------------------------------------------------------------------------------- Environment ---------------
Windows Seven 64
Oracle ODTwithODAC1120320_32bit
tnsnames.ORA defined in C:\app\{User}\product\11.2.0\client_1\Network\Admin
------------------------------------------------------------

Can you please help me before i burn my computer and all oracle servers ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to test Oracle 11g SQL connection ?

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why this happens. Can you please try to manually test your ORACLE Server connection using the parameters set within installation package?

Also, you can take a look on our "Using TestODBCConnection - can't find 64 bit ODBC driver" thread which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EUROEDI
Posts: 4
Joined: Fri May 31, 2013 5:07 pm

Re: How to test Oracle 11g SQL connection ?

Hello Daniel,

Thanks for your reply.

I've already read this topic, but i'm using the 32 bits Oracle ODAC drivers.

I could try to test the connection string outside, but what is the connection string generated by Advanced Installer ?

For exemple, this is the connection string working in my asp.net web.config website:

Code: Select all

<connectionStrings>
    <add name="CS_Linedi" connectionString="metadata=res://*/Linedi_Entity.csdl|res://*/Linedi_Entity.ssdl|res://*/Linedi_Entity.msl;                    
         provider=Oracle.DataAccess.Client;provider connection string="DATA SOURCE=LINEDI;PASSWORD=PASSWORD;PERSIST SECURITY INFO=True;USER ID=USER"" 
         providerName="System.Data.EntityClient"/>
  </connectionStrings>
Otherwise, in basic case, if somebody wants to add in his advanced installer setup an SQLCConnectionDlg working with external Oracle 11g database, what are the process to do ?

Thanks for your help, i appreciate ;)
EUROEDI
Posts: 4
Joined: Fri May 31, 2013 5:07 pm

Re: How to test Oracle 11g SQL connection ?

Well, oracle sqlconnection work fine now when i mention the default SID on the property fields:

Server field property: oracleservername/ORCL

I thougth default port and sid both are not necessary...

Right now, i just need to know how to deploy oracle ODAC files on a windows server 2008 machine without using Oracle Universal Installer.
I tested with xcopy deployment (light oracle install using command line) but the sqlconnection doesn't work !
Last edited by EUROEDI on Mon Jun 17, 2013 2:09 pm, edited 1 time in total.
EUROEDI
Posts: 4
Joined: Fri May 31, 2013 5:07 pm

Re: How to test Oracle 11g SQL connection ?

Finally, it works !!

After installing oracle odac xcopy files with command line, we need to add the install directory and install directory's bin subdirectory to the system PATH environment variable. Oracle batch script doesn't do it by himself..

Thanks for your help
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to test Oracle 11g SQL connection ?

You're welcome. I'm glad you got this working. Certainly your posted info will help future users in the same situation.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”