|
|
This section discusses options for configuring your web browser to use iSQL*Plus. Specific topics discussed are:
Each iSQL*Plus login is uniquely identified, so you can:
iSQL*Plus supports this stateful behavior by storing session context information in the Oracle HTTP Server. You must ensure that your Oracle HTTP Server always routes HTTP requests to the same server, otherwise the session context will not be found. However, you may find it useful to start more than one Oracle HTTP Server to distribute user load across the multiple servers.
Some web browsers may require you to either remove a MIME type definition or application association for files with a .SQL extension, or to create a MIME type or application association for files with a .SQL extension in order to load scripts into iSQL*Plus.
For example, to set up an application association for files with a SQL extension in Netscape Navigator 4.7 for Windows NT:
If this is not set up in your web browser, you may get an error when you try to load scripts that iSQL*Plus cannot identify as text files.
Some configurations of proxy servers may affect the ability of the iSQL*Plus user interface to connect with the iSQL*Plus Server. If you cannot connect with the iSQL*Plus Server, a browser alert "Document contains no data" is displayed when you try to load the iSQL*Plus Login screen. If the Oracle HTTP Server has been started and this situation occurs, you should reconfigure your proxy server or create a proxy exception in your browser for the Oracle HTTP Server running iSQL*Plus. There are two examples of setting proxy exceptions following:
To configure the proxy exceptions setting in Netscape Navigator 4.7 for Windows
To configure the proxy exceptions setting in Microsoft Internet Explorer 5.0
Certain settings from a session are either retained or automatically filled in the next time you log in to iSQL*Plus from the same workstation:
If your user account has a restricted list of connection identifiers and the stored connection identifier is not in this list, then the first value from the list is displayed instead.
Login values entered in CONNECT commands in iSQL*Plus scripts are not stored.
The Login screen prompt for dynamic reports uses the stored values as follows: If the syntax in the dynamic report link does not include the userid= parameter, the stored values populate the Login screen fields. If the syntax in the dynamic report link does include the userid= parameter, then all fields not specified in the parameter default to blank.
Your password and your Output preference are not saved.
The iSQL*Plus Server is installed during Oracle9i Database installation on the middle tier. You can:
The iSQLPlusNumberOfThreads parameter sets the number of threads enabled in the iSQL*Plus Server. Because each thread enables an HTTP request to be handled, this value sets the maximum number of simultaneous HTTP requests that can be handled by the iSQL*Plus Server.
When many users are executing long running queries, increasing the iSQLPlusNumberOfThreads value may help performance. You can edit the iSQL*Plus configuration file, isqlplus.conf, to change the number of threads. The syntax of the line to change in the configuration file is:
FastCgiServer ... -initial-env iSQLPlusNumberOfThreads=n
Where n can have a minimum value of 1, and a maximum determined by machine resources. When no value is set, iSQLPlusNumberOfThreads defaults to 20.
The iSQLPlusLogLevel parameter determines whether logging in iSQL*Plus is enabled and the level of logging. Logging is useful to help resolve user problems. Logging can be turned off, set to warn level or set to debug level, which provides the richest information.
The default is off, and the default logfile location is %ORACLE_HOME%\sqlplus\log\isqlplus\log.xml in Windows, and $ORACLE_HOME/sqlplus/log/isqlplus/log.xml in UNIX.
When logging is enabled, iSQL*Plus appends log data to an existing log file, or creates a new file if one does not exist. If there is any sort of write error that prevents writing to the logfile, iSQL*Plus starts, but does not create a log file or log any messages.
There are five classes of log messages.
Each log message is prefixed with "iSQL*Plus:", and SP2 messages are prefixed with "iSQL*Plus: SP2-00000:". Each log message also has a timestamp. Debug and fatal messages may additionally have a thread number. You can edit the iSQL*Plus configuration file, isqlplus.conf, to change the log level. The syntax of the line to change in the configuration file is:
FastCgiServer ... -initial-env iSQLPlusLogLevel=[off|warn|debug]
Timing out iSQL*Plus sessions helps to reduce machine load and to maximize resources. The time out interval is set by the iSQLPlusTimeOutInterval initialization parameter. It defines the time a session can be idle before it is expired. You can edit the iSQL*Plus configuration file, isqlplus.conf, to change the timeout interval. The syntax of the line to change in the configuration file is:
FastCgiServer ... -initial-env iSQLPlusTimeOutInterval=n
Where n is the number of whole minutes of idle time before the session times out. iSQLPlusTimeOutInterval has a default of 30 minutes. It can be set to any value from 1 to 1440 minutes.
When a user tries to use a timed out iSQL*Plus session, the Login screen is displayed and the user is prompted to log in again and the following error is displayed:
SP2-0864: Session has expired. Please log in again.
iSQL*Plus uses a cascading style sheet to control the format of the user interface. You can replace the default style sheet with your own style sheet. It is recommended that you do not delete the default style sheet, but rename it so that you can revert to it if necessary.
For example, to replace the cascading style sheet in Windows
%ORACLE_HOME%\sqlplus\admin\iplus\ directory.
%ORACLE_HOME%\sqlplus\admin\iplus\ directory.
The Oracle HTTP Server is installed during Oracle9i Database installation on the middle tier. You can:
Additional iSQL*Plus configuration information must be included in the Oracle HTTP Server configuration file, httpd.conf, for the iSQL*Plus Server.
There are two levels of include:
Changes are usually only made to:
After making changes to .conf files, check them to make sure there are no errors, and then stop and start the Oracle HTTP Server to implement the changes.
To check the Oracle HTTP Server configuration file, httpd.conf, and any included configuration files for errors. On Windows do the following steps:
cd %ORACLE_HOME%\Apache\Apache
apache -t
Any errors in the configuration file are displayed. If there are any errors, edit the included configuration files, oracle_apache.conf or isqlplus.conf, again to correct them and then test again. If there are no errors, the message "Syntax OK" is displayed.
On UNIX, do the following steps:
cd $ORACLE_HOME/Apache/Apache/bin
apachectl configtest
Any errors in the configuration file are displayed. If there are any errors, edit the included configuration files, oracle_apache.conf or isqlplus.conf, again to correct them and then test again. If there are no errors, the message "Syntax OK" is displayed.
For changes to the Oracle HTTP Server configuration file, httpd.conf, and any included configuration files to take affect, you must stop and restart the Oracle HTTP Server if it is running. There is no convenient way to know how many users are currently accessing the server, so it is important to have the server down for the shortest time. When making changes to configuration files parse the httpd.conf configuration file and report any errors before starting and stopping the Oracle HTTP Server.
To stop and start the Oracle HTTP Server. On Windows do the following steps:
cd %ORACLE_HOME%\Apache\Apache
apache -k shutdown
apache -k start
On UNIX, do the following steps:
cd $ORACLE_HOME/Apache/Apache/bin
apachectl stop
apachectl start
You can edit the Oracle HTTP Server configuration file to disable iSQL*Plus.
To disable the Oracle HTTP Server
On Windows:
cd %ORACLE_HOME%\Apache\Apache\conf
On UNIX:
cd $ORACLE_HOME/Apache/Apache/conf
On Windows:
# include "ORACLE_HOME\sqlplus\admin\isqlplus.conf"
On UNIX:
# include "ORACLE_HOME/sqlplus/admin/isqlplus.conf"
Where ORACLE_HOME is the path of your Oracle home directory.
To re-enable iSQL*Plus, reverse the edit to uncomment the include line in oracle_apache.conf and restart the Oracle HTTP Server.
Oracle9i is installed on the database tier. The database tier may be physically separate from the middle tier and accessed using Oracle Net, or it may be the same physical machine as used by the middle tier. If you are using Oracle Net to access the database, then make sure the database listener is configured and running. For further information about configuring Oracle9i, see the Oracle9i documentation.