Book Image

Oracle APEX Best Practices

Book Image

Oracle APEX Best Practices

Overview of this book

Have you ever wanted to create real-world database applications? In this book you're not only getting APEX best practices, but will also take into account the total environment of an APEX application and benefit from it."Oracle APEX Best Practices" will guide you through the development of real-world applications. It will give you a broader view of APEX. The various aspects include setting up APEX environment, testing and debugging, security, and getting the best out of SQL and PL/SQL.In six distinct chapters you will learn about different features of Oracle APEX as well as SQL and PL/SQL.Do you maximize the capabilities of Oracle APEX? Do you use all the power that SQL and PL/SQL have to offer? Do you want to learn how to build a secure, fully functional application? Then this is the book you'll need. "Oracle APEX: Best Practices" is where practical development begins!
Table of Contents (14 chapters)
Oracle APEX Best Practices
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying the database packages


When you keep all your files in folders, it is very convenient to generate a script with all the filenames in a single SQL file to be installed. That way, you will always know which files to call to install the database objects.

To generate the file to install the package specifications, we use a BAT file, which looks similar to the following. We have similar files for the other database objects.

@ECHO OFF
REM ===================================
REM == Prepare the Command Processor ==
REM ===================================
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL

SET outputfile=%0
SET outputfile=%outputfile:~0,-4%.sql
set workdir=%~dp0
set currdir=%cd%

cd %workdir%

ECHO ------------------------------------------- > %outputfile%
ECHO -- Automatically created on: %date% -- >> %outputfile%
ECHO ------------------------------------------- >> %outputfile%
ECHO set define off >> %outputfile%
ECHO. >> %outputfile...