- 1 Accounting and Reporting Console (ARCo)
- 2 ARCo Frequently-Asked Questions (FAQ)
- 2.1 Do I need to re-install database server and create new database every time I update/upgrade ARCo?
- 2.2 Can I restore database backup into a database already containing data?
- 2.3 How do I change the debug level of the dbwriter?
- 2.4 How do I verify the version of the installed ARCo database model?
- 3 ARCo Configuration Files and Scripts
- 3.1 About dbwriter
- 3.1.1 inst_dbwriter Command Options
- 3.1.2 dbwriter Configuration Parameters
- 3.1.3 sgedbwriter Command Options
- 3.2 About Reporting
- 3.2.1 Enabling Generation of the Reporting File
- 3.2.1.1 How to Enable Generation of the Reporting File From the Command Line
- 3.2.1.2 How to Enable Generation of the Reporting File With QMON
- 3.2.2 Reporting Module Configuration Parameters
- 3.3 Other ARCo Utilities
- 3.3.1 arcorun
- 3.3.1.1 Example - Running a Query
- 3.3.2 updatedb.sh
- 3.3.2.1.1 Index
- 4 Creating Cross-Cluster Queries
- 4.1.1.1 Examples
- 4.1.1.1.1 Example - arco_write_london.sge_user
- 4.1.1.1.2 Example - arco_write_denver.sge_user
- 5 Derived Values and Deletion Rules
- 5.1 Derived Values
- 5.1.1 Derived Values Format
- 5.1.2 Derived Values Examples
- 5.2 Deleting Outdated Records
- 5.2.1 Deletion Rules Format
- 5.2.2 Deletion Rules Examples
- 6 Installing ARCo
- 6.1 Planning the ARCo Installation
- 6.1.1 Supported Operating Platforms
- 6.1.2 Required Software
- 6.1.3 Disk Space Recommendations
- 6.1.4 Multi-Cluster Support Overview
- 6.1.4.1 Database Configuration Illustrations
- 6.1.4.1.1 Figure - Separate Databases on Separate DBMS
- 6.1.4.1.2 Figure - Separate Databases on a Single DBMS
- 6.1.4.1.3 Figure - One Database With Multiple Schemas on a Single DBMS
- 6.1.4.2 Schema Overview
- 6.2 Configuring the Database Server
- 6.2.1 How to Configure PostgresSQL Server
- 6.2.1.1 How to Configure ARCo Database on PostgresSQL
- 6.2.1.2 How to Configure ARCo Database with Multiple Schemas on PostgreSQL
- 6.2.2 How to Configure MySQL Database Server
- 6.2.2.1.1 Case Sensitivity in MySQL Database
- 6.2.2.1.2 MySQL Installation Tips
- 6.2.2.2 How to Configure ARCo Database on MySQL
- 6.2.3 Using Oracle Database
- 7 Installing dbwriter and Reporting Software
- 7.1 Before You Begin
- 7.2 How to Install dbwriter
- 7.3 How to Install Reporting
- 7.4 How to Add Authorized ARCo Users
- 8 Example - dbwriter Installation
- 9 Example - Reporting Installation
- 10 Installing Sun Java Web Console
- 11 Upgrading the Accounting and Reporting Console (ARCo)
- 11.1 About Upgrading ARCo
- 11.2 How to Upgrade ARCo Software
- 11.3 Migrating PostgreSQL Database to a Different Schema
- 12 Starting the Accounting and Reporting Console
- 12.1 How to Start the Accounting and Reporting Console
- 12.2 Creating and Modifying Simple Queries
- 12.2.1 How to Create a Simple Query
- 12.2.2 How to Modify a Simple Query
- 12.3 Creating and Modifying Advanced Queries
- 12.3.1 How to Create an Advanced Query
- 12.3.2 How to Edit an Advanced Query
- 12.3.3 Latebindings for Advanced Queries
- 12.3.3.1.1 Example - Latebindings
- 12.4 Configuring the Query Results View
- 13 Database Schemas
- 13.1 Schema Tables
- 13.1.1 sge_job
- 13.1.2 sge_job_usage
- 13.1.3 sge_job_request
- 13.1.4 sge_job_log
- 13.1.5 sge_share_log
- 13.1.6 sge_host
- 13.1.7 sge_host_values
- 13.1.8 sge_queue
- 13.1.9 sge_queue_values
- 13.1.10 sge_department
- 13.1.11 sge_department_values
- 13.1.12 sge_project
- 13.1.13 sge_project_values
- 13.1.14 sge_user
- 13.1.15 sge_user_values
- 13.1.16 sge_group
- 13.1.17 sge_group_values
- 13.1.18 sge_statistic
- 13.1.19 sge_statistic_values
- 13.1.20 sge_ar
- 13.1.21 sge_ar_attribute
- 13.1.22 sge_ar_usage
- 13.1.23 sge_ar_log
- 13.1.24 sge_ar_resource_usage
- 13.2 List of Predefined Views
- 13.2.1 view_accounting
- 13.2.2 view_job_times
- 13.2.3 view_jobs_completed
- 13.2.4 view_job_log
- 13.2.5 view_department_values
- 13.2.6 view_group_values
- 13.2.7 view_host_values
- 13.2.8 view_project_values
- 13.2.9 view_queue_values
- 13.2.10 view_user_values
- 13.2.11 view_statistic
- 13.2.12 view_ar_attribute
- 13.2.13 view_ar_log
- 13.2.14 view_ar_usage
- 13.2.15 view_ar_resource_usage
- 13.2.16 view_ar_time_usage
- 13.3 List of Derived Values
- 14 ARCo Troubleshooting
- 14.1.1.1 Problem: SEVERE: SQL error: ERROR: permission denied for tablespace pg_default
- 14.1.1.2 Problem: SEVERE: SQL error: ORA-01749: you may not GRANT/REVOKE privileges to/from yourself
- 14.1.1.3 Problem: SEVERE: SQL error: ORA-00955: name is already used by an existing object
- 14.1.1.4 Problem: The table/view dropdown menu of a simple query definition does not contain any entry, but the tables are defined in the database.
- 14.1.1.5 Problem: Connection refused.
- 14.1.1.6 Problem: The list of queries or the list of results is empty.
- 14.1.1.7 Problem: The list of available database tables is empty.
- 14.1.1.8 Problem: The list of selectable fields is empty.
- 14.1.1.9 Problem: The sort list is empty.
- 14.1.1.10 Problem: A defined filter is not used.
- 14.1.1.11 Problem: The late binding in the advanced query is ignored, but the execution runs into an error.
- 14.1.1.12 Problem: The breadcrumb is used to move back, but the login screen is shown.
- 14.1.1.13 Problem: The view configuration is defined, but the default configuration is shown.
- 14.1.1.14 Problem: The view configuration is defined, but the last configuration is shown.
- 14.1.1.15 Problem: The execution of a query takes a very long time.
|
Sun Grid Engine Information Center Accounting and Reporting Console (ARCo)The optional Accounting and Reporting Console (ARCo) enables you to gather live reporting data from the Grid Engine system and to store the data for historical analysis in the reporting database, which is a standard SQL database. Raw reporting data is generated by sge_qmaster. This raw data is stored in the $SGE_ROOT/$SGE_CELL/common/reporting file. The dbwriter program reads the raw data in the reporting file and writes it to the SQL reporting database, where it can be accessed by ARCo. ARCo supports the following SQL database systems:
The dbwriter provides functionality that helps you to manage your database size, by specifying Derived Values and Deletion Rules. ARCo also provides a web-based tool that contains a set of predefined SQL queries. The predefined queries aupplement the most frequent statistical inquiries. You can modify these queries or create your own. To create your queries, you can use either the Simple Query builder (suitable for SQL novices) or the Advanced Query generator. You can display the data in a tabular, graphical, or pivotal form. You can export the data in CVS or PDF form, or store the result for later viewing. You can also use the arcorun utility to run ARCo queries in a batch mode. For information about arcorun, see arcorun. For more information about how to use ARCo, see Starting the Accounting and Reporting Console. For information about how to install ARCo, see Installing ARCo. If you have multiple clusters, one dbwriter installation per cluster is needed, but only one Reporting installation is needed for all clusters. For more information, see these topics:
|
|
Sun Grid Engine Information Center ARCo Frequently-Asked Questions (FAQ)Do I need to re-install database server and create new database every time I update/upgrade ARCo?No. Generally, you want to keep inserting the data in the same database. You just need to re-install dbwriter and Reporting software and during the installation supply your existing database parameters. If a newer version of database model is available, your existing ARCo database model will be updated during the installation of dbwriter. See Upgrading ARCo. Can I restore database backup into a database already containing data?No. A database backup must only be restored into an empty database. Because ARCo database is a relational database, there are primary key constrains defined on tables. You would run into and SQL error if a primary key (unique identifier), you are trying to restore, already exists in the database. How do I change the debug level of the dbwriter?You specify the debug level during the installation of dbwriter. To change the debug level:
In general, you should use the default debug level, which is info. If you use a more verbose debug level, you substantially increase the amount of data output by dbwriter. You can specify the following debug levels:
How do I verify the version of the installed ARCo database model?With Sun Grid Engine 6.1 the table sge_version was introduced. This table contains the installed versions of the ARCo database model.
Connect to your database, and as a superuser or the owner of the database objects issue an SQL command: SELECT * FROM sge_version; |
|
Sun Grid Engine Information Center ARCo Configuration Files and ScriptsAbout dbwriter
The sge_qmaster component generates the reporting file. You can configure the generation of the reporting file. See the attribute reporting_params in the man page sge_conf(5), and the attribute report_variables in the man page host_conf(5). When dbwriter starts up, it calculates derived values. dbwriter also deletes outdated records at startup. If dbwriter runs in continuous mode, dbwriter continues to calculate derived values and to delete outdated records at hourly intervals, or at whatever interval you specify. See Derived Values and Deletion Rules. You can specify in a XML file the values that you want to calculate and the records that you want to delete. The path to this file is specified during installation. To change the path to the file, edit the DBWRITER_CALCULATION_FILE parameter in the dbwriter.conf file inst_dbwriter Command OptionsThe inst_dbwriter script, used for installing dbwriter, is located at $SGE_ROOT/dbwriter and supports the following options:
If no option is specified, installation is started. dbwriter Configuration ParametersDuring dbwriter module installation, the following configuration parameters are collected. These parameters are stored in the $SGE_ROOT/$SGE_CELL/common/dbwriter.conf file. Changes to the dbwriter.conf file require restarting the dbwriter. Table – dbwriter Configuration Parameters
sgedbwriter Command OptionsThe sgedbwriter script, used for starting and stopping dbwriter, is located at $SGE_ROOT/$SGE_CELL/common and supports the following sub-commands:
The content environment variable JVMARGS is treated as options for the Java virtual machine. If $JAVA_HOME is, set the Java virtual machine at $JAVA_HOME/bin/java is started. About Reporting
Enabling Generation of the Reporting FileWhen the Grid Engine system is first installed, the reporting file is disabled. To use ARCo, you must enable the reporting file for the cluster. Once enabled, the reporting file will be generated by sge_qmaster. By default, the reporting file is located in $SGE_ROOT/$SGE_CELL/common. The path to the file is stored in the DBWRITER_REPORTING_FILE parameter of the dbwriter.conf file. Once the reporting file is enabled, the dbwriter can read raw data from the reporting file and write it to the reporting database. For information about configuring the generation of the reporting file, see the reporting_params parameter of the sge_conf(5) man page, and the report_variables parameter of the host_conf(5) man page. For more information about configuring the reporting file, see the reporting(5) man page. For complete details about installing and configuring ARCo, see Installing the Accounting and Reporting Console. How to Enable Generation of the Reporting File From the Command LineTo enable reporting from the command line, use the qconf -mconf command to set the reporting_params attributes, as described in the last step of How to Enable Generation of the Reporting File With QMON. How to Enable Generation of the Reporting File With QMON
Reporting Module Configuration ParametersDuring reporting module installation, the following configuration parameters are collected. These parameters are stored in the $SGE_ROOT/$SGE_CELL/arco/reporting/config.xml file. Changes to the config.xml file require restarting the smcwebserver.
Example - Reporting Module Configuration FileThe following config.xml example illustrates a single cluster configuration. For a multiple cluster configuration, there would be multiple <database> tags. <configuration> <!-- Configure the database connection to be used by the application --> <database name="arco" host="host.domain" port="5432" schema="public" clusterName="testsuite"> <driver type="postgres"> <javaClass>org.postgresql.Driver</javaClass> </driver> <user name="arco_read" passwd="ed5sq937d20ecf5c" maxConnections="10"/> </database> <applUser> admin </applUser> <applUser> sgetest1 </applUser> <applUser> sgetest2 </applUser> <storage> <root>/var/spool/arco</root> <queries>queries</queries> <results>results</results> </storage> </configuration> Other ARCo UtilitiesarcorunThe arcorun utility enables you to view and run ARCo queries from the command line. You can view query output in XML (default), CSV, PDF or HTML format. You can also set values for late-binding parameters.For more information, see the arcorun(1) man page.
Example – Running a Query A query is run by simply invoking the arcorun command with
% $SGE_ROOT/$SGE_CELL/arco/reporting/arcorun Statistics
If a query name contains whitespaces you have to put
% $SGE_ROOT/$SGE_CELL/arco/reporting/arcorun "Host Load"
updatedb.shThe updatedb.sh utility enables you to preview changes that will be performed on your database. You supply your existing database parameters and choose y in the following prompt: Shall we only print all sql statements which will be executed during the upgrade? (y/n) [y] >> After that, the SQL commands that will be executed during update/upgrade are printed to the stdout. It is not recommended to use this as a substitute for a regular dbwriter update/upgrade. If you would choose option n, the SQL commands would be executed and only your database definition would be updated, but you would still need to perform regular dbwriter re-installation to also update other parts of dbwriter that might have changed. |
|
IndexCreating Cross-Cluster Queries
Although you could JOIN table from one schema with a one from other schema, it might not be useful to do that, as the data comes from separate SGE cluster. However, queries that combine together the results of two or more separate queries could be beneficial. The syntax is: select_statement1 UNION [ALL] select_statement2 select_statement1 INTERSECT [ALL] select_statement2 select_statement1 EXCEPT [ALL] select_statement2 The select_statement is any SELECT statement without an ORDER BY, LIMIT, FOR UPDATE or FOR SHARE clause. These clauses can be appended at the end of all the chained UNION, INTERSECT and EXCEPT queries, which will then be applied to the combined returned result. UNION effectively appends the result of select_statement1 to the result of select_statement2 (although there is no guarantee that this is the order in which the rows are actually returned). Furthermore, it eliminates duplicate rows from its result, in the same way as DISTINCT, unless UNION ALL is used. INTERSECT returns all rows that are both in the result of select_statement1 and in the result of select_statement2. Duplicate rows are eliminated, unless INTERSECT ALL is used EXCEPT returns all rows that are in the result of select_statement1 but not in the result of select_statement2. Duplicate rows are eliminated, unless EXCEPT ALL is used. In order to calculate the union, intersection, or difference of two queries, the two queries must be "union compatible", which means that they return the same number of columns and the corresponding columns have compatible data types. The query statements must use the fully qualified object names, i.e. schemaname.tablename, schemaname.viewname, respectively.
ExamplesThe following two tables are in schema arco_write_london and arco_write_denver: Example – arco_write_london.sge_user+------+--------+ | u_id | u_user | +------+--------+ | 1 | jade | | 2 | julie | | 3 | john | +------+--------+ Example – arco_write_denver.sge_user+------+--------+ | u_id | u_user | +------+--------+ | 1 | john | | 2 | david | | 3 | rose | +------+--------+ Connected as the multi_read user who has privileges on all the schemas we execute the following queries:
|
|
Sun Grid Engine Information Center Derived Values and Deletion RulesDerived ValuesAt dbwriter startup, and in continuous mode once an hour, derived values are calculated. You can configure which values to calculate in an XML file, which is by default in $SGE_ROOT/dbwriter/database/<database_type>/dbwriter.xml. <database_type> defines the type of database being used; currently, Oracle, PostgreSQL and MySQL are supported. The path to the configuration file is passed to dbwriter during installation and is stored in the dbwriter.conf file as the value of the parameter DBWRITER_CALCULATION_FILE. The configuration file uses an XML format, and contains rules for both derived values and deleted values (described in the next section). Derived Values FormatThe rules for derived values have the following format.
Derived Values ExamplesHere is an example of a derivation rule using the <sql> tag. The sge_queue table has a composed primary key comprised of q_qname and q_hostname. For a rule specified for the queue object_type, a query will be made for each entry in the sge_queue table, the placeholders _key_0 will be replaced by the queue name and key_1_ will be replaced by the hostname. <!--average queue utilization per hour--> <derive object="queue" interval="hour" variable="h_utilized"> <sql> SELECT DATE_TRUNC( 'hour', qv_time_start) AS time_start, DATE_TRUNC( 'hour', qv_time_start) + INTERVAL '1 hour' AS time_end, AVG(qv_dvalue * 100 / qv_dconfig) AS value FROM sge_queue_values WHERE qv_variable = 'slots' AND qv_parent = (SELECT q_id FROM sge_queue WHERE q_qname = __key_0__ AND q_hostname = __key_1__) AND qv_time_start <= '__time_end__' AND qv_time_end > '__time_start__' GROUP BY time_start </sql> </derive> Here is an example when the rule above is processed by the dbwriter. A query will be made for each entry in the sge_queue table, the placeholders _key_0 will be replaced by the queue name and key_1_ will be replaced by the hostname. In this example, the results of these queries will be inserted in the sge_queue_values table, because object="queue".
SELECT DATE_TRUNC('hour', qv_time_start) AS time_start,
DATE_TRUNC( 'hour', qv_time_start) + INTERVAL '1 hour' AS time_end,
AVG(qv_dvalue * 100 / qv_dconfig) AS value
FROM sge_queue_values
WHERE qv_variable = 'slots' AND
qv_parent = (SELECT q_id FROM sge_queue WHERE q_qname = 'all.q' AND q_hostname = 'my.hostname') AND
qv_time_start <= '2008-05-21 00:00:00.0' AND
qv_time_end > '1970-01-01 01:00:00.0'
GROUP BY time_start;
Here is an example of a derivation rule using the <auto> tag. <derive object="host" interval="day" variable="d_load"> <auto function="AVG" variable="h_load" /> </derive> Deleting Outdated RecordsAt dbwriter startup, and in continuous mode once an hour, outdated records will be deleted. You can configure how these records are calculated in an XML file, by default in $SGE_ROOT/dbwriter/database/<database_type>/dbwriter.xml. <database_type> is the type of database being used; currently, Oracle, PostgreSQL and MySQL are supported. The path to the configuration file is passed to dbwriter during installation and is stored in the dbwriter.conf file as the value of the parameter DBWRITER_CALCULATION_FILE. Deletion Rules FormatThe configuration file contains rules for both derived values and deleted values. Deletion rules are of the following format.
For certain scopes, a sub-scope can be configured. The sub-scope specifies an additional condition for deletion. A sub-scope can be configured for all *_values scopes and for the share_log scope. The following rules apply:
Here is an example of a delete tag: <?xml version="1.0" encoding="UTF-8"?> <DbWriterConfig> <!-- keep host values for 2 years --> <delete scope="host_values" time_range="year" time_amount="2"/> <!-- keep queue values one month --> <delete scope="queue_values" time_range="month" time_amount="1"> <sub_scope>slots</sub_scope> <sub_scope>state</sub_scope> </delete> </DbWriterConfig> Deletion Rules ExamplesThe following rule indicates that the four variables given in the subscope should be deleted from the table sge_host_values after 7 days. <delete scope="host_values" time_range="day" time_amount="7"> <sub_scope>np_load_avg</sub_scope> <sub_scope>cpu<sub_scope> <sub_scope>mem_free</sub_scope> <sub_scope>virtual_free</sub_scope> </delete> The following rule says to delete all variables from the table sge_host_values after two years: <delete scope="host_values" time_range="year" time_amount="2"/> The following rule says to delete all records for user fred after one month: <delete scope="share_log" time_range="month" time_amount="1"> <sub_scope>fred</sub_scope> </delete> |
|
Sun Grid Engine Information Center Installing ARCoInstalling the Accounting and Reporting console software (ARCo) consists of the following topics: Planning the ARCo InstallationBefore you install the ARCo software, you must plan how to achieve the results that fit your environment. This section helps you make the decisions that affect the rest of the procedure. Write down your installation plan in a table similar to the following example.
Supported Operating Platforms
Required SoftwareFor ARCo software to function correctly, you must already have installed the following on your ARCo system:
Disk Space Recommendations
* Your specific database server configuration settings depend on the following:
For guidelines about determining specific database needs, see Space Requirements for the ARCo Database on the Open Grid Engine site. Multi-Cluster Support OverviewIf you have multiple Sun Grid Engine clusters, you can log in to one instance of ARCo from which you can run reports on all ARCo instances that use the same database vendor and structure. With the ARCo multi-cluster support, one dbwriter instance per qmaster is still required, but a single reporting installation is sufficient for all qmasters. During the reporting installation, you can supply separate database parameters, such as database name, database user, database host, database password for each cluster, the only condition being that that databases are of the same vendor. Database connections are configured from these parameters, which enables you to run the same queries on separate clusters, while logged in to the single instance of the ARCo reporting. For the multi-cluster database configuration, you can use any of these database setups:
If you are not interested in cross-cluster queries, you can choose any of these setups. However, to run cross-cluster queries, you must configure a single database with multiple schemas (one per each cluster) on a single DBMS. Database Configuration IllustrationsThe following diagrams illustrate the supported database configurations. Additional steps, described in How to Configure the ARCo Database with Multiple Schemas on PostgreSQL, are necessary to configure a PostgresSQL database with separate schemas. If you want to run cross-cluster queries, use the configuration depicted in One Database With Multiple Schemas on a Single DBMS. Otherwise, you can choose either of the other configurations, although Separate Databases on a Single DBMS is slightly preferred. Figure - Separate Databases on Separate DBMSEach database is created on a separate Database Management Server (DBMS).
Figure - Separate Databases on a Single DBMSDatabases of different names are created on the same DBMS. Only two users are required to access all ARCo databases on the same server, arco_read and arco_write.
Figure - One Database With Multiple Schemas on a Single DBMSOnly one database is created with multiple schemas (one per each cluster). There are two users for each schema, arco_write_cluster and arco_read_cluster. The name of the schema should be the same as the name of the owner (arco_write_cluster).
Schema OverviewA database cluster contains one or more named databases. Any given client connection to the server can access only the data in a single database, the one specified in the connection request. A database can contain one or more named schemas, which in turn contain tables. Schemas also contain other objects, such as views, aliases, indexes and functions. The same object name can be used in different schemas without conflict; for example, both schemas arco_write_denver and arco_write_london may contain the sge_job table. Unlike databases, schemas are not rigidly separated: a user may access objects in any of the schemas in the database to which the user is connected, if the user has privileges to do so. For user to access objects from a different schema, he needs to be granted SELECT privilege on the objects and access them using the fully-qualified name, for example schema_name.table_name. A user does not need to use the fully-qualified names if accessing objects in its own schema. Each database handles the schema notion differently.
Configuring the Database ServerYou must properly install and configure the database server before you can install and use ARCo. Specific database installation instructions and configuration settings differ by database vendor. For more information, see the following:
How to Configure the PostgresSQL ServerBefore you configure the database server, you must download, compile and install the PostgreSQL database software and create a user account to own the database processes. Usually, this user is postgres. Add the PostgreSQL bin directory and necessary LD_LIBRARY_PATH settings to your environment. You can find detailed information on the PostgreSQL database in the Postgres documentation.
How to Configure the ARCo Database on PostgresSQL
How to Configure the ARCo Database with Multiple Schemas on PostgreSQL
How to Configure the MySQL Database ServerThe Accounting and Reporting Console uses views. As a result, the console supports MySQL database version 5.0.36 and higher. For more information on the MySQL database software, see the MySQL documentation. Case Sensitivity in MySQL DatabaseIn MySQL, databases correspond to directories within the data directory. Each table within a database corresponds to at least one file within the database directory. Because of this the case sensitivity of the underlying operating system determines the case sensitivity of database and table names. Therefore, database and table names are case sensitive in most varieties of UNIX, and not case sensitive in Windows.
MySQL Installation Tips
How to Configure the ARCo Database on MySQL
Using Oracle Database
|
|
Sun Grid Engine Information Center Installing dbwriter and Reporting SoftwareHow to Install dbwriterBefore You BeginPrior to installing dbwriter, you must install and configure the following on your ARCo system:
Steps
How to Install ReportingBefore You BeginBefore you begin, verify that the Sun Java Web Console is installed as explained in Installing Sun Java Web Console.
Steps
How to Add Authorized ARCo UsersDuring the installation of the ARCo reporting module, you are asked to enter a list of users who should have write permissions to the ARCo system. Only those users are allowed save modifications on ARCo.
|
|
Sun Grid Engine Information Center Example – dbwriter InstallationThe following example shows a complete dbwriter installation. The steps in this example are referred to from the dbwriter installation and configuration description at How to Install dbwriter. Step 4
001 % su
002 password:
003 # cd $SGE_ROOT/dbwriter
004 # ./inst_dbwriter
005
006 Welcome to the Grid Engine ARCo dbwriter module 007 installation
007 ------------------------------------------------------------
008 The installation will take approximately 5 minutes
009
010 Hit <RETURN> to continue >
Step 5 011 Checking $SGE_ROOT directory 012 ---------------------------- 013 014 The Grid Engine root directory is: 015 016 $SGE_ROOT = /mydiskhome/myuser/sge62 017 018 If this directory is not correct (e.g. it may 019 contain an automounter 020 prefix) enter the correct path to this directory 021 or hit <RETURN> 022 to use default [/mydiskhome/myuser/sge62] >> 023 024 Your $SGE_ROOT directory: /mydiskhome/myuser/sge62 025 026 Hit <RETURN> to continue >> Step 6 027 Grid Engine cells 028 ----------------- 029 030 Grid Engine supports multiple cells. 031 032 If you are not planning to run multiple Grid Engine clusters or if you don't 033 know yet what is a Grid Engine cell it is safe to keep the default cell name 034 035 default 036 037 If you want to install multiple cells you can enter a cell name now. 038 039 The environment variable 040 041 $SGE_CELL=<your_cell_name> 042 043 will be set for all further Grid Engine commands. 044 045 Enter cell name [default] >> 046 047 Using cell >default<. 048 Hit <RETURN> to continue >> Step 7 049 Java setup 050 ---------- 051 052 ARCo needs at least java 1.5 053 054 Enter the path to your java installation [/usr/java] >> Step 8
055 Dbwriter configuration file
056 ---------------------------
057
058 /mydiskhome/myuser/sge62/default/common/dbwriter.conf found.
059
060 Do you want to use the existing dbwriter configuration file? (y/n) [y] >>
Step 9 061 Setup your database connection parameters 062 ----------------------------------------- 063 064 Enter your database type ( o = Oracle, p = PostgreSQL, m = MySQL ) [] >> o 065 066 Enter the name of your oracle database host [] >> ge4 067 068 Enter the port of your oracle database [1521] >> 069 070 Enter the name of your oracle database [arco] >> arco Step 10 071 Enter the name of the database user [arco_write] >> arco_write 072 073 Enter the password of the database user >> 074 Retype the password >> Step 11 075 The arco_write must have permissions to create objects in the specified tablespace. 076 077 Enter the name of TABLESPACE for tables [USERS] >> 078 079 Enter the name of TABLESPACE for indexes [USERS] >> Step 12 080 Enter the name of the database schema [arco_write] >> arco_write 081 Step 13 082 The ARCo web application connects to the database with a user which has restricted 083 access. The name of this database user is needed to grant him access to the sge tables 084 and must be different from arco_write. 085 Enter the name of this database user [arco_read] >> arco_read 086 087 This user will also create the synonyms for the ARCo tables and views. 088 089 Enter the password of the database user >> 090 Retype the password >> Step 14
091 Database connection test
092 ------------------------
093
094 Searching for the jdbc driver oracle.jdbc.driver.OracleDriver
095 in directory /mydiskhome/myuser/sge62/dbwriter/lib
096
097 OK, jdbc driver found
098
099 Should the connection to the database be tested? (y/n) [y] >>
100
101
102 Test database connection to 'jdbc:oracle:thin:@ge4:1521:orcl' ... OK
Step 15 103 Generic parameters 104 ------------------ 105 106 Enter the interval between two dbwriter runs in seconds [60] >> Step 16
107 Enter the path of the dbwriter spool directory [/mydiskhome/myuser/sge62/default/spool/dbwriter]>>
Step 17 108 Enter the file with the derived value rules [/mydiskhome/myuser/sge62/dbwriter/database/oracle/dbwriter.xml] >> Step 18 109 The dbwriter can run with different debug levels 110 Possible values: WARNING INFO CONFIG FINE FINER FINEST 111 Enter the debug level of the dbwriter [INFO] >> Step 19 112 All parameters are now collected 113 -------------------------------- 114 115 SGE_ROOT=/mydiskhome/myuser/sge62 116 SGE_CELL=default 117 JAVA_HOME=/opt/jdk1.5.0 (1.5.0_13) 118 DB_URL=jdbc:oracle:thin:@ge4:1521:orcl 119 DB_USER=arco_write 120 READ_USER=arco_read 121 TABLESPACE=USERS 122 TABLESPACE_INDEX=USERS 123 DB_SCHEMA=arco_write 124 INTERVAL=60 125 SPOOL_DIR=/mydiskhome/myuser/sge62/default/spool/dbwriter 126 DERIVED_FILE=/mydiskhome/myuser/sge62/dbwriter/database/oracle/dbwriter.xml 127 DEBUG_LEVEL=INFO 128 129 Are these settings correct? (y/n) [y] >> Step 20 130 Database model installation/upgrade 131 ----------------------------------- 132 Query database version ... no sge tables found 133 New version of the database model is needed 134 135 Should the database model be upgraded to version 8? (y/n) [y] >> 136 137 Upgrade to database model version 8 ... Install version 6.0 (id=0) ------- 138 Create table sge_job 139 Create index sge_job_idx0 140 . 141 . 142 . 143 Update version table 144 committing changes 145 Version 6.2 (id=8) successfully installed 146 OK 147 Create start script sgedbwriter in /mydiskhome/myuser/sge62/default/common 148 149 Create configuration file for dbwriter in /mydiskhome/myuser/sge62/default/common 150 151 Hit <RETURN> to continue >> Step 21 152 dbwriter startup script 153 ----------------------- 154 155 Do you want to start dbwriter automatically at machine boot? 156 NOTE: If you select "n" SMF will be not used at all! (y/n) [y] >> n 157 158 Creating dbwriter spool directory /mydiskhome/myuser/sge62/default/spool/dbwriter 159 starting dbwriter 160 dbwriter started (pid=4714) 161 Installation of dbwriter completed |
|
Sun Grid Engine Information Center Example – Reporting InstallationThe following example shows a complete ARCo reporting installation. The steps in this example are referred to from the ARCo reporting installation and configuration description at How to Install Reporting. Step 2
001 # cd $SGE_ROOT/reporting
002
003 # ./inst_reporting
004
005 Welcome to the Grid Engine ARCo reporting module installation
006 -------------------------------------------------------------
007 The installation will take approximately 5 minutes
008
009 Hit <RETURN> to continue >>
010
Step 3 011 Checking $SGE_ROOT directory 012 ---------------------------- 013 014 The Grid Engine root directory is: 015 016 $SGE_ROOT = /mydiskhome/myuser/sge62 017 018 If this directory is not correct (e.g. it may contain an automounter 019 prefix) enter the correct path to this directory or hit <RETURN> 020 to use default [/mydiskhome/myuser/sge62] >> 021 022 Your $SGE_ROOT directory: /mydiskhome/myuser/sge62 023 024 Hit <RETURN> to continue >> 025 Step 4 026 Grid Engine cells 027 ----------------- 028 029 Grid Engine supports multiple cells. 030 031 If you are not planning to run multiple Grid Engine clusters or if you don't 032 know yet what is a Grid Engine cell it is safe to keep the default cell name 033 034 default 035 036 If you want to install multiple cells you can enter a cell name now. 037 038 The environment variable 039 040 $SGE_CELL=<your_cell_name> 041 042 will be set for all further Grid Engine commands. 043 044 Enter cell name [default] >> 045 046 Using cell >default<. 047 Hit <RETURN> to continue >> 048 Step 5 049 Java setup 050 ---------- 051 052 We need at least java 1.5 053 054 Enter the path to your java installation [/myhomedisk/SW/jdk1.5.0/sol-amd64] >> 055 Step 6
056 Spool directory
057 ---------------
058
059 In the spool directory the Grid Engine reporting module will
060 store all queries and results
061
062 Enter the path to the spool directory [/var/spool/arco] >>
063
Step 7 064 Cluster Database Setup 065 ---------------------- 066 067 Enter your database type ( o = Oracle, p = PostgreSQL, m = MySQL ) [p] >> 068 069 Enter the name of your postgresql database host [] >> ge7 070 071 Enter the port of your postgresql database [5432] >> 072 073 Enter the name of your postgresql database [arco] >> 074 Step 8 075 Enter the name of the database user [arco_read] >> 076 077 Enter the password of the database user >> 078 Retype the password >> 079 Step 9
080 Enter the name of the database schema [public] >>
081
Step 10 082 Enter the name of your cluster 083 (it is recommended to use the same name as $SGE_CLUSTER_NAME) [ge7:arco:arco_read] >> 084 Step 11 085 Database connection test 086 ------------------------ 087 088 Searching for the jdbc driver org.postgresql.Driver 089 in directory /net/gefs.czech/ws/jo195647/sge62/reporting/WEB-INF/lib 090 091 OK, jdbc driver found 092 093 Should the connection to the database be tested? (y/n) [y] >> 094 095 Test database connection to 'jdbc:postgresql://ge7:5432/arco' ... OK 096 Step 12
097 DB parameters are now collected
098 -------------------------------
099 CLUSTER_NAME=ge7:arco:arco_read
100 DB_URL=jdbc:postgresql://ge7:5432/arco
101 DB_USER=arco_read
102
103 Are these settings correct? (y/n) [y] >>
104
105 Do you want to add another cluster? (y/n) [n] >>
106
== If yes is answered steps starting with Cluster Database Setup Step 13 107 Configure users with write access 108 --------------------------------- 109 110 Users: myuser1 111 Enter a login name of a user (Press enter to finish) >> 112 Step 14 113 All parameters are now collected 114 -------------------------------- 115 SPOOL_DIR=/var/spool/arco 116 APPL_USERS=jo195647 117 118 Are this settings correct? (y/n) [y] >> 119 Step 15 120 Grid Engine reporting module already registered at Sun Java Web Console 121 ------------------------------------------------------------------- 122 123 The Grid Engine reporting modules can only be installed 124 if no previous version is registered. 125 126 Should the Grid Engine reporting module com.sun.grid.arco_6.2-Maintrunk be unregistered? (y/n) [y] >> 127 128 The reporting web application has been successfully undeployed. 129 130 Hit <RETURN> to continue >> 131 Step 16 132 Install predefined queries 133 -------------------------- 134 135 query directory /var/spool/arco/queries already exists 136 Copy examples queries into /var/spool/arco/queries 137 Query AR_Attributes.xml already exists. Overwrite? ( y = yes, n = no, Y = yes to all, N = no to all ) [n] >> Y 138 Copy query AR_Attributes.xml ... OK 139 Copy query AR_Log.xml ... OK 140 Copy query AR_Reserved_Time_Usage.xml ... OK 141 Copy query AR_by_User.xml ... OK 142 Copy query Accounting_per_AR.xml ... OK 143 Copy query Accounting_per_Department.xml ... OK 144 Copy query Accounting_per_Project.xml ... OK 145 Copy query Accounting_per_User.xml ... OK 146 Copy query Average_Job_Turnaround_Time.xml ... OK 147 Copy query Average_Job_Wait_Time.xml ... OK 148 Copy query DBWriter_Performance.xml ... OK 149 Copy query Host_Load.xml ... OK 150 Copy query Job_Log.xml ... OK 151 Copy query Number_of_Jobs_Completed_per_AR.xml ... OK 152 Copy query Number_of_Jobs_completed.xml ... OK 153 Copy query Queue_Consumables.xml ... OK 154 Copy query Statistic_History.xml ... OK 155 Copy query Statistics.xml ... OK 156 Copy query Wallclock_time.xml ... OK 157 == if 'n' or 'N' is selected the queries will not be updated (not recommended) Step 17 158 ARCo reporting module setup 159 --------------------------- 160 161 Found a previous installed version of the ARCo reporting 162 modules at /ws/jo195647/sge62/default/arco 163 164 Remove directory /ws/jo195647/sge62/default/arco/reporting? (y/n) [y] >> 165 166 directory /ws/jo195647/sge62/default/arco/reporting removed 167 Copying ARCo reporting file into /ws/jo195647/sge62/default/arco/reporting 168 169 Setting up ARCo reporting configuration file. After registration of 170 the ARCo reporting module at the Sun Java Web Console you can find 171 this file at 172 173 /ws/jo195647/sge62/default/arco/reporting/config.xml 174 175 Hit <RETURN> to continue >> 176 Step 18 177 Importing Sun Java Web Console 3.0 files into the /ws/jo195647/sge62/default/arco/reporting 178 --------------------------------------------------------------------------- 179 Imported files to /ws/jo195647/sge62/default/arco/reporting 180 Created product images in /ws/jo195647/sge62/default/arco/reporting/com_sun_web_ui/images 181 182 Hit <RETURN> to continue >> 183 184 Registering the Grid Engine reporting module in the Sun Java Web Console 185 -------------------------------------------------------------------- 186 The reporting web application has been successfully deployed. 187 Set 1 properties for the com.sun.grid.arco_6.2-Maintrunk application. 188 Set 1 properties for the com.sun.grid.arco_6.2-Maintrunk application. 189 Set 1 properties for the com.sun.grid.arco_6.2-Maintrunk application. 190 Creating the TOC file ... OK 191 192 Hit <RETURN> to continue >> 193 194 Restarting Sun Java Web Console 195 ------------------------------- 196 Restarting Sun Java(TM) Web Console Version 3.0.2 ... 197 The console is running 198 Grid Engine ARCo reporting successfully installed |
|
Sun Grid Engine Information Center Installing Sun Java Web Console
How to Install Sun Java Web Console
|
|
Sun Grid Engine Information Center Upgrading the Accounting and Reporting Console (ARCo)About Upgrading ARCo
During the installation of dbwriter, the existing database schema version is checked and updated, if a newer version is available. During the installation of reporting, the following actions occur:
If you specify a different spool directory during re-installation of reporting, you will need to move your custom queries and results from the spool directory of your previous installation to the new directory, so that they appear in the Sun Java Web Console. Before proceeding with the upgrade, read all the steps in How to Upgrade ARCo Software. How to Upgrade ARCo Software
Migrating PostgreSQL Database to a Different SchemaIf you do not plan to perform cross-cluster queries, follow the standard ARCo upgrade procedure. If you have an existing ARCo installation and want to use the multi-cluster features, follow these steps to migrate existing PostgreSQL ARCo databases to the schema configuration.
|
|
Sun Grid Engine Information Center Starting the Accounting and Reporting ConsoleThe accounting and reporting console is installed separately from the Sun Grid Engine software. For details on the installation process, see Installing ARCo. In addition, you must enable your Grid Engine system to collect reporting information. For details about how to enable the collection of reporting data, see Enabling Generation of the Reporting File. How to Start the Accounting and Reporting Console
Creating and Modifying Simple QueriesThe query defines the data set that you want to retrieve. You can create simple queries for which the system formulates the SQL query string. If you know SQL and you want to write the query yourself, you can create advanced queries as described in Creating and Modifying Advanced Queries. How to Create a Simple Query
How to Modify a Simple Query
Creating and Modifying Advanced Queries
How to Create an Advanced Query
How to Edit an Advanced Query
Latebindings for Advanced QueriesThe syntax for the latebindings in advanced queries is:
LATEBINDING { <column>;<operator>;<default value> }
<column> name of the latebinding
<operator> SQL operator (e.g. = < > in .. )
<value> default value (e.g. 'localhost' )
Example – Latebindings
select * from sge_host where LATEBINDING {h_hostname; like; a%}
select * from sge_host where LATEBINDING {h_hostname; in; ('localhost', 'foo.bar')}
Configuring the Query Results ViewBy default, query results display a database table that contains all the requested information. For Simple and Advanced queries, you can add a pie chart, bar chart, or line diagram to that table. You can also change the view of the database table itself. How to Configure the Query Results View
Examples for Defining Graphical ViewsThe following two examples show the default view first, followed by the View selections, followed by the graphical result. Example 1 – Accounting per Department Pie ChartThe query “Accounting per Department” results in a table with the columns: time, department, and cpu.
To display the result in a pie chart, select the following configuration:
The result will be multiple pie charts, similar to those shown in this figure.
Example 2 – CPU, Input/Output, and Memory Usage Over All Departments Bar ChartA query summarizes CPU, IO, and Mem usage over all departments:
To display the results in a bar chart, select the following configuration:
The results will be a bar chart with three bars for each department, similar to the chart shown in this figure.
|
|
Sun Grid Engine Information Center Database Schemas
Schema Tablessge_jobThe sge_job table contains one record for each new job, each new array task, and each parallel task started in a tightly integrated parallel job. A record is created as soon as a job, an array task, or a parallel task is scheduled. For non-array jobs, the j_task_number is set to -1. For array jobs, one record is created for the parent job with the j_task_number set to -1. Each child array task has one record with the j_task_number set to > 0. For previous versions of Grid Engine before 6.0 update 7 (6.0u7), each non-array job will have j_task_number set to -1 for PENDING job state and j_task_number set to 0 for all other states. A short description of SGE jobs, array jobs, parallel jobs and their differences can be found in Submitting Jobs. The Grid Engine Glossary might also be useful as an introduction.
sge_job_usageThe sge_job_usage table holds the job's resource usage over time. Normally, the job usage is recorded after a job has finished. For long-running jobs, an intermediate reporting entry is created after midnight. This results in multiple usage records for a particular job and allows for a fine-grained resource usage monitoring over time. The intermediate records report the change in job resource usage between the start time and the end time (columns ju_start_time, ju_end_time). The ju_exit_status is set to -1 if the job is still running, which identifies an intermediate job. For queries that count jobs, add the condition "WHERE ju_exits_status != -1" to the query so that the intermediate records are not included in the final query result.
sge_job_requestThe sge_job_request table stores resources that a job has requested. Two types of requests (qsub options) are currently handled:
sge_job_logThe sge_job_log table contains job logging information.
sge_share_logThe sge_share_log table contains information about the Grid Engine share tree configuration and usage. For more information, see the sharetree(5) man page at http://gridengine.sunsource.net/unbranded-source/browse/~checkout~/gridengine/doc/htmlman/manuals.html?content-type=text/html.
sge_hostThe sge_host table lists all hosts in the cluster.
sge_host_valuesThe sge_host_values table stores the values of host variables that are subject to change, such as the load average. This table also stores derived host values, such as hourly averages and sums.
sge_queueThe sge_queue table lists all queues that are configured in the cluster.
sge_queue_valuesThe sge_queue_values table stores the values of queue variables that are subject to change, such as the number of free slots. This table also stores derived queue values, such as hourly averages and sums.
sge_departmentThe sge_department table lists all departments referenced in the database.
sge_department_valuesThe sge_department_values table stores the values of department-related variables that are subject to change. These values are derived values, such as hourly averages and sums.
sge_projectThe sge_project table lists all projects that are referenced in the database.
sge_project_valuesThe sge_project_values table stores the values of project related variables that are subject to change. These values are derived values, such as hourly averages and sums.
sge_userThe sge_user table lists all users that are referenced in the database.
sge_user_valuesThe sge_user_values table stores the values of user-related variables that are subject to change. These values are derived values, such as hourly averages and sums.
sge_groupThe sge_group table lists all user groups that are referenced in the database.
sge_group_valuesThe sge_group_values table stores the values of group-related variables that are subject to change. These values are derived values, such as hourly averages and sums.
sge_statisticThe sge_statistic table stores the categories of all statistics which are calculated by the dbwriter. Currently only the categories dbwriter and database are available.
sge_statistic_valuesThe sge_statistic_values contains the calculated statistic values.
sge_arThe sge_ar table stores records that identify each newly created advance reservation.
sge_ar_attributeThe sge_ar_attribute table stores attributes of the advance reservation.
sge_ar_usageThe sge_ar_usage table stores the accounting usage records. These records are written when an advance reservation terminates.
sge_ar_logThe sge_ar_log table stores the advance reservation logging information. These records are written when the advance reservation changes state. A state change can be from pending to active, but can also be triggered by system events like host outage.
sge_ar_resource_usageThe sge_ar_resource_usage table stores the resources that were granted to the advance reservation.
List of Predefined Viewsview_accountingViews accounting records for jobs, array tasks, and tightly integrated tasks. Jobs that have not yet started (sge_job.start_time >= sge_job_usage.ju_submission_time) are excluded. This view also includes intermediate usage records for long running jobs (see sge_job_usage description).
view_job_timesIncludes calculated wait, turnaround, and job duration times for all jobs, except for tasks of tightly integrated parallel jobs.
view_jobs_completedIncludes all finished jobs regardless of their exit status value, i.e. even jobs that exited with an error code are included. The ju_exit_status is only checked to exclude the intermediate lines. Tasks of tightly integrated parallel jobs are also not included. This view is used in queries that count completed jobs.
view_job_logJob logging (e.g. Submission, state changes, job finish).
view_department_valuesDepartment specific variables.
view_group_valuesGroup specific variables
view_host_valuesHost specific variables
view_project_valuesProject specific variables
view_queue_valuesQueue specific variables
view_user_valuesUser specific variables.
view_statisticStatistic variables.
view_ar_attributeAttributes for the AR.
view_ar_logLogging information for the AR.
view_ar_usageAccounting usage information written whenever an advance reservation terminates.
view_ar_resource_usageResources that were granted to the AR.
view_ar_time_usageInformation about the AR and job duration.
List of Derived ValuesDerived values stored in the database can highly reduce query processing time. The reporting database contains aggregated values (sum, average, min, max) on an hourly and sometimes daily basis. After some time period (e.g. one year), these values can even be further compressed to weekly or monthly values. The following derived values are delivered:
Rules for the generation of any derived value can be specified in the derived value file: $SGE_ROOT/dbwriter/database/db_type/dbwriter.xml |
|
Sun Grid Engine Information Center ARCo Troubleshooting
Problem: Reporting module installation on Red Hat Enterprise LinuxOn certain versions of RHEL, while using SJWC 3.0.x or 3.1.x, you might see following error when during the reporting module installation: Registering the SGE reporting module in the Sun Java Web Console ---------------------------------------------------------------- Must have administration privileges to execute this command. Must have administration privileges to execute this command. Must have administration privileges to execute this command. Must have administration privileges to execute this command. Creating the TOC file ... OK If you run manually the command smcwebserver start, you might see this error: Starting Sun Java(TM) Web Console Version 3.0.2 ... Exception while starting container instance console: An exception was thrown while executing /var/opt/webconsole/domains/console/conf/wcstart nobody These issues are related to the Sun Java Web Console. Solution: Follow these steps:
After this ARCo should function correctly. However, you will still experience the 'Must have administration privileges to execute this command' while executing the wcadmin command. Problem – No application is registered with this Sun Java TM Web Console or you have no rights to use any applications that are registeredThe above error can happen on some Linux platforms, while using SJWC 3.0.x, if your $JAVA_HOME is not set or is set to a version of Java that is less than 1.5. Another indication of this problem is the absence of the following files: $SGE_ROOT/$SGE_CELL/arco/reporting/WEB-INF/tld and $SGE_ROOT/$SGE_CELL/arco/reporting/WEB-INF/lib/registrationservlet.jar. Solution: Follow these steps:
Problem – SEVERE: SQL error: ERROR: permission denied for tablespace pg_defaultThe above SQL error is shown during installation of dbwriter. Solution – You must always specify the tablespace, unless you are using MySQL. For PostgreSQL, the default tablespace is pg_default. For Oracle, the default is typically USERS. The arco_write user must be granted the CREATE privilege on this tablespace. If the arco_write user does not have the sufficient privileges the above error message appears. In database console as a superuser issue a command and then repeat the installation: GRANT CREATE ON TABLESPACE pg_default to arco_write; Problem – SEVERE: SQL error: Column 'ju_start_time' in field list is ambiguousThe above error can happen on some minor release versions of MySQL server, namely 5.0.26 or 5.0.27, where MySQL considers, some more complicated queries as syntactically incorrect. Newer versions of MySQL server handle them correctly.
<version id="6" name="6.1u3">
<item>
<description>Update version table </description>
<sql>
INSERT INTO sge_version (v_id, v_version, v_time)
VALUES(6, '6.1u3', current_timestamp)
</sql>
</item>
</version>
Problem – SEVERE: SQL error: ORA-01031: insufficient privilegesThe above error may be caused during the installation of dbwriter, while the synonyms are being created. Because arco_read is the user who uses the synonyms, in ARCo versions > 6.1u4 the synonyms are being created by user arco_read, in the schema of user arco_read. Thus, the user arco_read needs to be granted the privilege to create synonyms. The ARCo users should be granted the following set of privileges: GRANT CREATE TABLE, CREATE VIEW, CREATE SESSION TO "ARCO_WRITE"; GRANT CREATE SYNONYM, CREATE SESSION TO "ARCO_READ"; Problem – SEVERE: SQL error: ORA-01749: you may not GRANT/REVOKE privileges to/from yourselfThe above SQL error is shown during installation of dbwriter. Solution: During the installation, after the connection test and database version check, you are prompted to enter the name of the user which has a restricted access to the database arco_read. The ARCo web application connects to the database using the user arco_read, and because this user is not the owner of the database objects it needs to be granted SELECT privilege on those objects. On Oracle synonyms are also created in the schema of the arco_read user and thus password for this user is also needed. If you have entered arco_write instead of the arco_read user in the prompt below, you would see the errors above. Repeat installation and provide the correct user name. The ARCo web application connects to the database with a user which has restricted access. The name of this database user is needed to grant him access to the sge tables. This user will create the synonyms for the ARCo tables and views, so the user's password is needed. Enter the name of this database user [] >> ARCO_READ Enter the password of the database user >> Retype the password >>
Problem – SEVERE: SQL error: ORA-00955: name is already used by an existing objectThe above SQL error is shown during installation of dbwriter. Solution: Same as in the error above. Problem – The table or view dropdown menu of a simple query definition does not contain any entry but the tables are defined in the database.Solution: The problem normally occurs when using Oracle as the database server. During the installation of the reporting module, wrong database schema name has been specified. For Oracle, the database schema name is equal to the name of the database user, which is used by dbwriter (the default name is arco_write). For Postgres, the database schema is by default public, or if you have configured separate schemas, it is equal to the name of the database user, which is used by dbwriter. Problem – Connection refused.Solution: The smcwebserver might be down. Start or restart the smcwebserver. Problem – The list of queries or the list of results is empty.Solution: The cause can be any of the following:
Problem – The list of available database tables is empty.Solution: The cause can be any of the following:
Problem – The list of selectable fields is empty.Solution: No table is selected. Select a table from the list. h4. Problem – The list of filters is empty. Solution: No fields are selected. Define at least one field. Problem – The sort list is empty.Solution: No fields are selected. Define at least one field. Problem – A defined filter is not used.Solution: The filter may be inactive. Modify the unused filter and make it active. Problem – The late binding in the advanced query is ignored but the execution runs into an error.Solution: The late binding macro has a syntactical error. The syntax for the late binding in advanced query is:
LATEBINDING { <column>;<operator>;<default value> }
<column> name if the latebinding
<operator> a SQL operator (e.g. = < > in .. )
<value> default value (e.g. 'localhost' )
Example:
select * from sge_host where LATEBINDING {h_hostname; like; a%}
select * from sge_host where LATEBINDING {h_hostname; in; ('localhost', 'foo.bar')}
Problem – The breadcrumb is used to move back but the login screen is shown.Solution: The session has timed out. Log in again, or raise the session timeout value for the Sun Java Web Console (SJWC). To increase the session timeout value to 60 minutes, as a superuser, on the host where the (SJWC) is installed, issue this command: # wcadmin add -p -a reporting session.timeout.value=60 Problem – The view configuration is defined but the default configuration is shown.Solution: The defined view configuration is not set to be visible. Open the view configuration and define the view configuration to be used. Problem – The view configuration is defined but the last configuration is shown.Solution: The defined view configuration is not set to be visible. Open the view configuration and define the view configuration to be used. Problem – The execution of a query takes a very long time.Solution: The results coming from the database are very large. Set a limit for the results, or extend the filter conditions. |
















