How does one start and interact with OraTCL?
Submitted by admin on Sun, 2005-11-06 02:43.
One can start OraTCL in interactive or batch mode by running the
"oratclsh" command (Unix and Windows) located in your ORACLE_HOME/bin
directory.
Interactive Mode:
$ oratclsh ORATCLSH for Solaris: Version 9.2.9.4.0 - Production on 08-OCT-2003 21:14:33 (c) Copyright 2003 Oracle Corporation. All rights reserved. oratclsh[1]- set x "Look Ma, " oratclsh[2]- set y "I can write TCL scripts." oratclsh[3]- puts "$x $y" Look Ma, I can write TCL script. oratclsh[4]- exit
Batch Mode:
Write a TCL script, say, hello.tcl and execute with command
"oratclsh hello.tcl":
puts "Hello World...n" puts "TCL version = [info tclversion]" puts "Script Name = [info script]" exit 0
»
- Login to post comments

