running sql script from remote machine by sqlplus

December 20th, 2008 | Categories: Boring | Tags: ,

Tanel的培训中看到,sqlplus的@可以通过http调用远程机器上的sql文件本地执行。Sqlplus太神奇了。

SQL*Plus: Release 10.2.0.3.0 - Production on Fri Dec 19 23:42:54 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> set echo on

SQL> @http://www.yumianfeilong.com/helloworld.sql
SQL> select sysdate from dual;

SYSDATE
—————
19-DEC-08


这样可以将script脚本集中管理,并且远程调用。

Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪 ViVi 365Key 网摘 天极网摘 和讯网摘 博拉网 POCO 网摘 饭否 QQ 书签 Digbuzz 我挖网 Mister Wong
No comments yet.