0% found this document useful (0 votes)
20 views1 page

P1.sql P2.sql Source Directory Contain Some .SQL File: File Has To Be

The document describes a shell script that copies files from a source directory to a destination directory while wrapping .sql files as .pks files. The source directory contains subfolders like INSERT, TYPE, SEQUENCE, JOB and files like P1.sql and P2.sql. The script needs to copy all source folder structure and files to the destination directory, but wrap any .sql files as .pks files with the same name during the copy process. It provides an example of wrapping a single sql file called p1.sql to p1.pks using the "wrap" command.

Uploaded by

bkmurthy78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

P1.sql P2.sql Source Directory Contain Some .SQL File: File Has To Be

The document describes a shell script that copies files from a source directory to a destination directory while wrapping .sql files as .pks files. The source directory contains subfolders like INSERT, TYPE, SEQUENCE, JOB and files like P1.sql and P2.sql. The script needs to copy all source folder structure and files to the destination directory, but wrap any .sql files as .pks files with the same name during the copy process. It provides an example of wrapping a single sql file called p1.sql to p1.pks using the "wrap" command.

Uploaded by

bkmurthy78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Write a shell script for the below example

Example structure
Source directory structure
Source folder
Script folder
12345-

INSERT -> file1,file2 etc


TYPE -> file 1,file2 etc
SEQUENCE -> file1 ,file .etc
JOB -> file 1,file 2 etc
SOURCE
P1.sql
P2.sql
Source directory contain some .sql file

_______________________________________________________
Destination directory structure
Destination
Destination
12345-

INSERT -> file 1,file2 etc


TYPE -> file 1,file2 etc
SEQUENCE -> file 1,file2 etc
JOB -> file 1,file2 etc
SOURCE
P1.pks
P2.pks

Need to copy all source directory folders to destination directory folders with
all files
But in destination directory source directory contain wrapped file for sql fle as
example below
In figure 1 there is a source directory contain p1.sql. that p1.sql file has to be
wrpped and copy into source folder in destination directory like p1.pks
Here is he code how to wrap single sql file
wrap Iname=p1.sqql oname=p1.pks

You might also like