Remove Column Header into the Output Text file

SQLPLUS COMMAND Skipped: set heading off That message is most likely because you are not executing it through SQL*Plus, but some GUI based tool. You are using SQLPlus command in SQL Developer. Not all SQL*Plus commands are guaranteed to work with SQL Developer. I would suggest you execute the script in SQLPlus and you would … Read more

Oracle: Import CSV file

Another solution you can use is SQL Developer. With it, you have the ability to import from a csv file (other delimited files are available). Just open the table view, then: choose actions import data find your file choose your options. You have the option to have SQL Developer do the inserts for you, create … Read more

How do I pass arguments to a PL/SQL script on command line with SQLPLUS?

Firstly, you will need to invoke your script like so: sqlplus.exe MYUSER/mypassword@HOST030 @refreshDataOnOracle.sql foo bar Instead of the OS redirection you will use the “@” symbol to indicate the file name to execute. You will also supply the script parameters on the command line. In the script you will refer to the parameters using &1, … Read more

Oracle SqlPlus – saving output in a file but don’t show on screen

Right from the SQL*Plus manual http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch8.htm#sthref1597 SET TERMOUT SET TERMOUT OFF suppresses the display so that you can spool output from a script without seeing it on the screen. If both spooling to file and writing to terminal are not required, use SET TERMOUT OFF in >SQL scripts to disable terminal output. SET TERMOUT is … Read more

tech