psGSegmentSQL

Description

     This program reads in your SQL file and your segment map file
and then writes a new SQL file with the tables and indexes created
on the segments you specify in the segment map file.   In Oracle,
segments are known as tablespaces.  In Informix, segments are known as
dbspaces.  In Microsoft SQL Server, segments are known as file groups.

 

Syntax

psGSegmentSQL -Iinput_sql_script -Fnew_sql_file
-Tsegment_map_file
-Xtable_segment -xnon_clustered_index_segment -iimage_segment
-Ooptions

 

Arguments

-I

Input SQL Script

-F

Output SQL Script [standard output]

-T

Segment Map File

-X

Target table/clustered index segment

-x

Target nonclustered index segment

-i

Target image/text segment

-O

Options

 

Options

s

Sybase

o

Oracle

m

Microsoft SQL Server

i

Informix

f

Use storage specifications

t

Show trace messages

p

Stop at the first parsing problem

 

Environment Variables Behind the Scenes

PS_SYSMSG_FILE

Name of DBPowerSuite's messages file.

 

Notes

     I designed this program to read native SQL scripts generated by
Sybase's PowerDesigner 8.   PowerDesigner 8 cannot generically handle
segment and storage options for tables and indexes between databases
of different vendors.  So, this program fills in that gap.
     The segment map file contains at least 4 columns of information.
The columns are table, table segment name, non-clustered index
segment name and image segment name.   You can include an optional
5th and 6th columns which specify the storage specifications of the
table (column 5) and of the indexes (column 6).

 

Go to DBPowerSuite 7.9 List of Programs.


Updated: Thu Jun 18 21:12:26 2009