, , () .
- UNIX script, .sql .log. , - .
- , sqlplus .
...
.ksh
#!/usr/bin/ksh
echo "Starting provisioning script.."
sqlplus scott/tiger@oracle102 > file1.log << !
@file1.sql
@file1.sql
!
echo "end of provisioning script"
file1.sql( )
create table test123(
id number,
name varchar2(200)
);
script, , - .. .. ..
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 6 20:44:08 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Table created.
SQL> create table test123(
*
ERROR at line 1:
ORA-00955: name is already used by an existing object
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
script .. .. . sqlplus, ..
, . ,
, ...