sql server - Inputfile for sqlplus -
sql server - Inputfile for sqlplus -
i have problems sqlplus , oracle. have piece of code open sqlcmd , give inputfile on parameter -i sql-statements need. before open cmd-window java , on cmd-window open sqlcmd. sounds not smart, couldnt figure out how start sqlcmd straight parameters below without using cmd-window.
the phone call of sqlcmd looks this:
sqlcmd -s [servername] -i input_file
the input file contains basic sql-statements usual select, from, clause. works great , job, need translate oracle-database.
my question here: there similar parameter -i sqlplus oracle database?
sqlplus usr/password@database_name
thats how far , wondering if can extend line, can read in input file sql-statements.
thanks in advance
you can execute sql*plus script on command line prefixing @
sign
sqlplus username/password@tns_alias @your_script_here.sql
sql-server oracle sqlplus
Comments
Post a Comment