EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #411 background imageLoading...
Page #411 background image
begins with a dash (-). Do not include spaces between -J and the JVM option.
If you need to specify multiple JVM options, precede each compiler option
with -J. For example:
-J-Xmx128m -J-Xmine2M
SQLJ-source-file-name
Specifies a list of SQLJ source files to be translated. This is a required
parameter. All SQLJ source file names must have the extension .sqlj.
Output
For each source file, program-name.sqlj, the SQLJ translator produces the following
files:
v The generated source program
The generated source file is named program-name.java.
v A serialized profile file for each connection context class that is used in an SQLJ
executable clause
A serialized profile name is of the following form:
program-name_SJProfileIDNumber.ser
v If the SQLJ translator invokes the Java compiler, the class files that the compiler
generates.
Examples
sqlj -encoding=UTF8 -C-O MyApp.sqlj
Related tasks
“Program preparation for SQLJ programs” on page 183
Related reference
“db2sqljcustomize - SQLJ profile customizer”
“db2sqljprint - SQLJ profile printer” on page 412
“db2sqljbind - SQLJ profile binder” on page 407
db2sqljcustomize - SQLJ profile customizer
db2sqljcustomize processes an SQLJ profile, which contains embedded SQL
statements.
By default, db2sqljcustomize produces four DB2 packages: one for each isolation
level. db2sqljcustomize augments the profile with DB2-specific information for use
at run time.
Authorization
The privilege set of the process must include one of the following authorities:
v SYSADM authority
v DBADM authority
v If the package does not exist, the BINDADD privilege, and one of the following
privileges:
CREATEIN privilege
PACKADM authority on the collection or on all collections
v If the package exists, the BIND privilege on the package
Command syntax
Chapter 7. JDBC and SQLJ reference information 395

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability