dbms:oracle:admin:oraclesqlplus:shellscripts
SQL*Plus Shell Scripts
절차
- 스크립트를 작성한다.
$ cat sql_scripts.sql select * from departments where location_id = 14000; quit $
- sqlplus에서 SQL 스크립트를 호출한다.
$ sqlplus hr/hr @sql_scripts.sql
- SQL*Plus 내부에서 기존의 SQL Script 파일을 호출할 수 있다.
SQL> @sql_scripts.sql
예제
- $ ./batch_sqlplus.sh
# Name of this file : batch_sqlplus.sh # Conunt employees and give raise. sqlplus hr/hr <<EOF select count(1) from employees; update employees set salary = salary*1.10; commit; quit EOF exit
dbms/oracle/admin/oraclesqlplus/shellscripts.txt · 마지막으로 수정됨: 저자 starlits
