How to run a Oracle SQL Script by invoking SQLPLUS - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rashikmohamed
Posts: 5
Joined: Tue Apr 24, 2012 6:43 am

How to run a Oracle SQL Script by invoking SQLPLUS

Hi,

I am new to advanced installer and I am trying to run an Oracle SQL script by invoking SQLPLUS using a batch file.

I have no clue how to achieve this...

Could you please help???

Thanks in advance,
Rashik
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to run a Oracle SQL Script by invoking SQLPLUS

Hi Rashik,

We strongly recommend you to use our SQL Scripts feature. This is an easier and safer approach of your scenario. You can run the Oracle SQL scripts from the SQL Scripts page. Please keep in mind that this feature is available only in an Enterprise or above license.

Here're a list of articles you can follow in order to achieve your scenario:
Configuring Databases with SQL Scripts tutorial
ODBC/SQL how to's

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rashikmohamed
Posts: 5
Joined: Tue Apr 24, 2012 6:43 am

Re: How to run a Oracle SQL Script by invoking SQLPLUS

Hi Daniel,

Thanks for your reply...

I am trying to use the SQL Scripts Feature in Advanced Installer. When I use the same, how can I connect to the Oracle database as SYSDBA (OracleXE)?

Could you please help?

Thanks,
Rashik
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: How to run a Oracle SQL Script by invoking SQLPLUS

Hi Rashik,

If you want to connect to ORACLE with SYSDBA privileges you need to create a custom connection (from SQL Scripts page) and select "Oracle SQL Server" at Connection Type.
According to the list of supported connection string attributes by Oracle you must include "DBA Privilege" attribute in Connection String field.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”