Search Results

Search: Posts Made By: Anaramkris
28,326
Posted By Anaramkris
Yeah.i got it. I did like this. i have...
Yeah.i got it.

I did like this. i have assigned two variables $1 and $2 to do this.

$1 -normal Table name
$2 - Externabl table to be created from normal table with _ext.

so, . ./script abc...
28,326
Posted By Anaramkris
var=$1; sqlplus -s '/ as sysdba' <<EOF set...
var=$1;
sqlplus -s '/ as sysdba' <<EOF
set feedback off;
select * from $var;
exit;
EOF

The above works. but i want it like this.

. ./script abc -it should create a table as "abc_Ext".
...
28,326
Posted By Anaramkris
Passing the unix variable to sqlplus
Hi,

I am writing a script which creates an external table using a shell script. My requirement is like this.

Usage: . ./r.ksh <table_name> - this should create an external table.
e.g ....
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy