# You can export datasets to most export formats from a command line
# using this file with a few modifications.
#
# Lines that start with a # are comments.
#
# Calling TOAD like this will invoke the 'Save As' screen
#, from command line :
#
# c:\toad\toad.exe Connect=system/manager@mydb EXP=c:\thisfile.txt
#
# (obviously, your path to TOAD may differ, along with your connect
# info. 'c:\thisfile.txt' represents...you guessed it... THIS FILE!)
#
# You can also invoke the 'Save As' screen from a command file like this:
#
# c:\toad\toad.exe Connect=system/manager@mydb CMDFILE=c:\mycommandfile.txt
#
# Where mycommandfile.txt might look like this: 2 index rebuilds, then :
# a schema comparison, then building some html schema documentation, and
# finally exporting some data to text files.
#
# RMI=c:\rebuild1.txt
# RMI=c:\rebuild2.txt
# COMP=c:\schemacomp1.txt
# GENHTML=c:\html1.txt
# EXP=c:\exp.txt
#
# To disable the Team Coding login prompt:
# Add "TC=NO" (without the quotes) in the command line string.
#
# Most of the other command line options in TOAD keep the settings
# separate from the commands. This one, however, is more like a script.
# You can set up some settings, export some data, then change the settings
# and export more data.
#
# COMMAND SUMMARY:
# (see TOAD Help for more details)
#
# Settings Commands
# -----------------------------------------------------------------
# FORMAT - defines export format.
# Possible values: Delim, Fixed, HTML, XLS, XML, INSERTS,
SQLLDR
# Example: FORMAT=XLS
# UNIXFORMAT - Save file in Unix Format?
# Possible values: YES, NO (defaults to NO)
# Example: UNIXFORMAT=YES
# INCSQL - Include SQL Statement in output File?
# Possible values: YES, NO (defaults to NO)
# Example: INCSQL=YES
# NOWRAP - Don't wrap text in cells of HTML files?
# Possible values: YES, NO (defaults to NO)
# Example: NOWRAP=YES
# QUOTES - Enclose Strings in quotes
# Possible values: 0 (no quotes), 1 (single quotes), or 2
(double quotes)
# Example: QUOTES=2
# COLUMNS - Include Column Names?
# Possible values: Yes or No
# Example: COLUMNS=YES
# LOWERCASECOLUMNS - Include Column Names?
# Possible values: Yes or No
# Example: LOWERCASECOLUMNS=YES
# COMPRESS - Leave files compressed in .zip format?
# Possible values: Yes or No
# Example: COMPRESS=YES
# DELIMAFTERROW - When exporting to delimted file, include delimiter at the end
of each row?
# Possible values: Yes or No
# Example: DELIMAFTERROW=YES
# NULLS - Include Null Text? (for inserts, ascii, and delim exports)
# Possible values: Yes or No
# Example: NULLS=YES
# DELIMCHAR - Delim Char for DelimOther format
# Possible values: Any character except a space
# Example: DELIMCHAR=!
# DELIMINT -Numeric value for Delim Char for Delim
# Possible values: Any integer value
# Example: DELIMINT=134
# OUTPUTDIR - Destination dir for tables and views
# Possible values: Any valid directory on your pc
# Example: OUTPUTDIR=c:\exports\
# INSERTTABLE - specifies the table name which is used in the insert
statements and SQL Loader
# Possible values: Any string acceptable for use as a table
name.
# Example: INSERTTABLE=EMP
# INSERTOWNER - Specifies the schema owner used in the insert statements and
SQL Loader
# Possible values: Any string acceptable for use as a table
name.
# Example: INSERTOWNER=SCOTT
# FIELDSEP - SQL Loader only. Specifies character(s) to separate fields
with
# Possible values: Any string value
# Example: FIELDSEP=!~!
# STRENCLOSE - SQL Loader only. Specifies characters(s) used for enclosing
string fields
# Possible values: Any string value
# Example: STRENCLOSE="
# SQLLDRMODE - SQL Loader only. Specifies insert mode.
# Possible values: APPEND, INSERT, REPLACE, or TRUNCATE
# Example: SQLLDRMODE=INSERT
# OWNER - Specify schema name in inserts?
# Possible values: Yes or No
# Example: OWNER=YES
# COMMIT - Commit interval for insert statements
# Possible values: Any integer
# Example: COMMIT=1000
# XLSDATEFORMAT - Date Format for XLS Files
# Possible values: 'Default' or any acceptable Excel date
format (see Excel Doc)
# Example: XLSDATEFORMAT=Default
# Example: XLSDATEFORMAT=Dd/Mm/Yyyy Hh:mm:ss
# HIDEZEROTIME - If XLSDateFormat includes time, don't show time portion when
it is zero
# Possible values: YES, NO (defaults to NO)
# Example: HIDEZEROTIME=YES
# XLSPRECISION - # of decimel places to format numbers in Excel files (this is
FORMAT only - data is not rounded!)
# Possible values: integer values (default=2)
# Example: XLSPRECISION=4
# XLSINTEGERS - Override XLSPrecision for integer values in Excel files (this
is FORMAT only - data is not rounded!)
# Possible values: Yes or No (default is no)
# Example: XLSINTEGERS=YES
# COLSUB - Export a substituted value rather than actual data for
specified columns. This is most
# applicable when exporting to insert statements, but it will
work for any format except XML (with XSL).
# Possible values: anything
# Example: to specify a sequence for a column called
NUMERIC_COLUMN:
# COLSUB:NUMERIC_COLUMN=SOME_SEQUENCE.NextVal
# Example: to specify sysdate for a column called DATE_COLUMN:
# COLSUB:DATE_COLUMN=SYSDATE
# Note: The COLSUB parameter can be repeated as many times as
necessary to specify
# substitutions for multiple columns.
# LAUNCH - Launch resulting file after creation
# Possible values: Yes or No
# Example: LAUNCH=NO
#
# Single Line Action Commands
# -----------------------------------------------------------------
# CLOSETOAD - Closes Toad after command line activities
# Example: CLOSETOAD
# TABLE - Exports a single table (may be repeated as necessary)
# Example: TABLE=SYS.TAB$
# VIEW - Exports a single view (may be repeated as necessary)
# Example: VIEW=SYS.DBA_TABLES
# SCHEMATABLES - Export all tables in a schema
# Possible values: Any schema name
# Example: SCHEMATABLES=SCOTT
# SCHEMAVIEWS - Export all views in a schema
# Possible values: Any schema name
# Example: SCHEMAVIEWS=SCOTT
# CLEARCOLSUBS - Used to clear COLSUB settings previously loaded in the script
# (you may want to use this when exporting multiple tables)
# Example : CLEARCOLSUBS
#
# Note: If the table/view name requires quotes, it is up to you to add them.
# (as in TABLE="MySchema"."MyTable")
#
#
# Muli Line Action Commands
# -----------------------------------------------------------------
# BEGINQRY fully_qualified_destination_file_name
# the text of your query goes here.
# Use as many lines as necessary.
# Do NOT include a trailing ';' or '/'.
# ENDQRY
#
# Notes :
# 1) The CELLFONT setting is only included in this file for the purpose
# of saving and loading the settings from the 'Save As' screen,
# and is ignored when this file is used from a command prompt.
# 2) Certain settings may be included in this file which will be ignored
# for certain types of exports.
# 3) Single Line Comments (marked by a #) can be anywhere in the file
# except between the BEGINQRY and ENDQRY commands.
# 4) The file can contain blank lines.
# 5) Output directories will be created if they do not exist
# 6) Tables and Views will be exported into files which named after them.
# 7) When exporting from queries to insert statements or SQL Loader files,
# the table to be inserted must be specified with INSERTTABLE, and
# optionally INSERTOWNER. When exporting from tables or views to
# insert statements, the table name does not need to be specified
# because the it will insert into the table or view it was extracted
# from.
# 8) For insert statement commit interval, 0 means one commit at the end,
# and -1 means no commits at all. To specify any other commit interval,
# use COMMIT=n where n is the interval.
# 9) If you need to specify a delim char for the DELIMOTHER format, you
# can use DELIMCHAR or DELIMINT�.there is no need to specify both. They
# both set the same value as on the 'Save as' screen in TOAD.
#10) Specifying INSOWNER=something will override a previous OWNER=NO.
# Specifying OWNER=YES without specifying will result in
# INSOWNER= login user id.
#
########################################
# Begin Settings #
########################################
FORMAT=XLS
AUTOCOLWIDTH=YES
CELLFONTS=YES
HIDEZEROTIME=YES
GENERAL=YES
XLSDATEFORMAT=Mm/Dd/Yyyy Hh:mm:ss
XLSINTEGERS=NO
XLSPRECISION=2
CELLBORDERS=NO
COLUMNS=YES
COMMIT=0
COMPRESS=NO
DELIMAFTERROW=YES
INCSQL=NO
LAUNCH=NO
LOWERCASECOLUMNS=NO
QUOTEDCOLUMNS=NO
NOWRAP=NO
NULLS=NO
QUOTES=0
UNIXFORMAT=NO
OUTPUTDIR=C:\Users\user1\Desktop\XXMED_TRX_EMP_20191
BEGINQRY C:\Users\user1\Desktop\XXMED_TRX_EMP_20191
SELECT
ROWID, SEQUENCE, PROPERTY_VALUE, ARGUMENT_TYPE,
CREATED_BY, CREATION_DATE, LAST_UPDATED_BY,
LAST_UPDATE_DATE, LAST_UPDATE_LOGIN, TARGET_OBJECT,
ACTION_TYPE, ENABLED, OBJECT_TYPE,
FOLDER_PROMPT_BLOCK, MESSAGE_TYPE, MESSAGE_TEXT,
SUMMARY, BUILTIN_TYPE, BUILTIN_ARGUMENTS,
LANGUAGE, RULE_ID, PROPERTY_NAME,
MENU_ENTRY, MENU_LABEL, MENU_SEPERATOR,
MENU_ENABLED_IN, MENU_ACTION, MENU_ARGUMENT_LONG,
MENU_ARGUMENT_SHORT, ACTION_ID, REQUEST_APPLICATION_ID
FROM APPLSYS.FND_FORM_CUSTOM_ACTIONS Tbl
ENDQRY