Oracle Discoverer EUL Command Line for Java User's Guide 10g (9.0.4) Part Number B10274-01 |
|
This chapter introduces the Oracle Discoverer EUL Command Line for Java, and contains the following topics:
The Oracle Discoverer EUL Command Line for Java is a set of text based commands that enable you to create and manipulate Discoverer EULs.
Note: You use Heterogeneous Services to connect to non-Oracle databases, although the EUL is stored in the Oracle database. For more information about using non-Oracle databases, see Oracle Heterogeneous Connectivity Administrator's Guide.
The Discoverer EUL Command Line for Java runs in a Java environment, which means that you can run it from any Java-compatible platform (e.g. Windows, UNIX, Linux). For example, you might want to refresh (or patch) an EUL from a UNIX machine.
The figure below shows three different ways in which you can manipulate Discoverer EULs:
Note: To run the Oracle Discoverer Administrator Command Line Interface, you must have Oracle Discoverer Administrator installed on your machine.
Much of the Discoverer EUL Command Line for Java is compatible with the Oracle Administrator Command Line Interface. If you have commands and scripts written for the Oracle Discoverer Administrator Command Line Interface, you can easily convert them to run on the Discoverer EUL Command Line for Java.
The Oracle Discoverer Administrator Command Line Interface and the Discoverer EUL Command Line for Java differ as follows:
Note: You do not need to have Oracle Discoverer Administrator installed to run the Discoverer EUL Command Line for Java.
A Discoverer EUL Command Line for Java command is an instruction that manipulates a Discoverer EUL in some way. For example:
java -jar eulbuilder.jar -connect jchan/12345@my_database
java -jar eulbuilder.jar -connect jchan/12345@my_database -import c:\data\sales.eex
A Discoverer EUL Command Line for Java command modifier is an instruction that qualifies or refines a command. For example:
java -jar eulbuilder.jar -connect jchan/12345@my_database -import c:\data\sales.eex -log sales_import_logfile.txt
java -jar eulbuilder.jar -connect jchan/12345@my_database -delete -item sales.profit
To use the Discoverer EUL Command Line for Java, the database username that you use to connect to a database must have the following database privileges:
The database username also requires a default tablespace, and a quota set on the default tablespace. For more information about granting privileges, see Oracle Discoverer Administrator Administration Guide.
You can run the Discoverer EUL Command Line for Java in two ways:
java eulbuilder.jar -connect jchan/12345@my_database -export objectlist.xml -all % -wildcard
You might type commands directly at a command prompt when you want to patch an EUL from a UNIX machine.
To type a command directly at a command prompt:
For example, to refresh folders called Sales1 and Sales2, type the following (see figure below):
java -jar eulbuilder.jar -connect jchan/12345@my_database -refresh_ folder Sales1 -refresh_folder Sales2
You might run commands stored in a command file when you want to perform a regular EUL update.
To run commands stored in a command file:
For example, to run commands stored in import.txt, type the following:
java -jar eulbuilder.jar -connect jchan/12345@my_database -cmdfile import.txt
For more information about command files, see Section 1.11, "What is a command file?".
java -jar eulbuilder.jar -cmdfile c:\scripts\login.txt -cmdfile c:\scripts\import.txt
The Discoverer EUL Command Line for Java provides a log facility. Use the log facility to test commands without changing data (i.e. for impact analysis) and troubleshoot problems as follows:
To test commands without changing data, use the -log <log file name> -log_only modifiers. For example:
-log <log file name> -log_only
These modifiers produce a log file showing whether problems occurred during command execution without changing the data. For more information, see Section 2.6.43, "-log_only".
To troubleshoot problems, use the -log <log file name> modifier to store command processing information.
For example, after running a command you will see a 'Command completed' message, which means that Discoverer processing is complete. To verify that the operation was carried out successfully, check the log file created using the -log modifier.
For example, if you attempt to delete a folder called 'Store 4' that is used in a summary folder, you will see the 'Command completed' message on screen. However, you will find details in the log file specifying why the command could not be executed, similar to the following:
java EulCommandLine -connect jchan/12345@my_database -delete -folder Store 4 -log Started <date and time>... Deleting folder Store 4... Element Store 4 cannot be deleted because it is used in a summary Completed <date and time>.
When you use the Discoverer EUL Command Line for Java, you can use wildcards to specify groups of EUL objects that you want to manipulate. Wildcards are special characters that you use to substitute other characters. For example, you might want to import OLAP functions with names that begin with 'BI_'.
There are two wildcards that you can use:
You can use wildcards when you:
You can use wildcards with item names or identifiers. When you use wildcards, you append the command with the -wildcard modifier (for more information, see Section 2.6.64, "-wildcard").
For example, to delete all business areas with display names that begin with 'A':
java eulbuilder.jar -connect jchan/12345@my_database -delete -business_ area A% -wildcard
For example, to delete all business areas with an identifier 'A', followed by any character, followed by 'C':
java eulbuilder.jar -connect jchan/12345@my_database -delete -business_ area A_C -identifier -wildcard
To delete the Sales folder and Sum1 summary from the Sales EUL, use the following command:
java -jar eulbuilder.jar -connect jchan/12345@my_database -delete -folder Sales -summary Sum1 -eul Sales
To refresh the Sales1 and Sales2 folders, use the following command:
java -jar eulbuilder.jar -connect jchan/12345@my_database -refresh_folder Sales1 -refresh_folder Sales2
To create an Applications Mode EUL in the database under user jchan and grant access using the Applications username and password apps/apps, use the following command:
java -jar eulbuilder.jar -connect eul_owner:appsresp/appspwd -create_eul -apps_mode -apps_grant_details apps/apps -user jchan -password 123456
Command files are text files that contain one or more Discoverer EUL Command Line for Java commands. You use command files to run commands automatically without having to type them manually at a command prompt. If you are familiar with MS-DOS or UNIX, command files work in a similar way to MS-DOS batch files and UNIX script files.
Three example command files are described below:
You can use these command files in different combinations as shown in the following examples:
To connect to a database:
java -jar eulbuilder.jar -cmdfile connect.txt
To connect to a database, create an EUL, and store processing information in a log file:
java -jar eulbuilder.jar -cmdfile connect.txt -cmdfile create.txt
To connect to a database, delete an EUL, and store processing information in a log file:
java -jar eulbuilder.jar -cmdfile connect.txt -cmdfile delete.txt
The table below lists the Discoverer EUL Command Line for Java commands
.
Command: | Use to: |
---|---|
-asm <modifiers> |
Automate summary management ASM |
-cmdfile <command file> |
Run commands stored in a command file |
-connect <username>/<password> [@<database] |
Connect to an EUL |
-create_eul <modifiers> |
Create an EUL |
-delete <modifiers> |
Delete an EUL object |
-delete_eul <modifiers> |
Delete an EUL |
-export <export file> <modifiers> |
Export EUL object |
-grant_privilege <modifiers> |
Grant Discoverer privileges to a database user |
-help [command name(s)] [-all] |
Display online help |
-import <import file(s)> <modifiers> |
Import EUL objects |
-load <business area> <modifiers> |
Load a business area |
-refresh_business_area <business area(s)> <modifiers> |
Refresh a business area |
-refresh_folder <folder name(s)> <modifiers> |
Refresh a folder |
-refresh_summary <summary name(s)> <modifiers> |
Refresh a summary folder |
-revoke_privilege <modifiers> |
Remove Discoverer privileges from a database user |
Note: Detailed information about command modifiers is contained in the command reference section (for more information, see Section 2.1, "Discoverer EUL Command Line for Java Reference").
|
![]() Copyright © 2003 Oracle Corporation. All Rights Reserved. |
|