日期:2014-05-17 浏览次数:20940 次
19:52:21 C:\temp>cat test.pls
DECLARE
v_log_path VARCHAR2(50);
v_log_filename VARCHAR2(20);
BEGIN
v_log_path := '&1';
v_log_filename := '&2';
dbms_output.put_line(v_log_path
------解决方案--------------------
'/'
------解决方案--------------------
v_log_filename);
END;
/
19:52:30 C:\temp>sqlplus xxx/xx@xx
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jan 17 19:52:38 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> start test.pls 'c:\temp' 'test.log'
old 5: v_log_path := '&1';
new 5: v_log_path := 'c:\temp';
old 6: v_log_filename := '&2';
new 6: v_log_filename := 'test.log';
PL/SQL procedure successfully completed.
SQL> $hostname
machinename