Você está na página 1de 3

APACHEQ2. How do you delete the Apache Jserv (Java Server) cache?A2.

The Apache Jserv cache is stored in the directory '$OA_HTML/_pages'. For troubleshooting purposes it can be useful to delete theApache Jserv cache. To remove the $OA_HTML/_pages directory you could type rm -rf _pages. This shouldremove '_pages' and all its subdirectories. Restart Apache and test. Q3. How do you bounce the Apache Server?A3. The Apache server can be shutdown with the seeded Oracle script 'adapcctl. sh'. This script normally resides in$COMMON_TOP/admin/scripts. When you are in $COMMON_TOP/admin/scripts, to stop Apache enter the command 'adapcctl.shstop'. To start Apache enter 'adapcctl.sh start'. For further information, review thesection titled 'Server Process Control Scripts' in 'Installing Oracle Applications, Release 11i (11.5.x)'. Q4. When are you required to bounce the apache server?A4. Please bounce the Apache Server when the following changes are made:i. Create new templateii. Define new expense type for existing templateiii. Update end date from expense type (Change immediate for disconnected )iv. End date currency in Currencies windowv. Change prompt value for expense type (Change immediate for details)vi. Change profile optionvii. Change fnd messagesviii. Recompile plsql packagesix. Enable tax codes for OIE (Change immediate for details page)x. Update inactive on date for templatexi. Define Itemization setup (Itemization required does not require bounce,Specify initial set of expense types does notrequire bounce. Subsequent changes to set requires bounce) Q5. How do you bounce the Jserv (Java Server) ?A5. With the default setup the JServ (Java Server) is automatically bounced whenever Apache is bounced. So, bouncing Apache willalso bounce the Jserv. Q6. Why are there two Classpaths for OIE Second Generation?A6. On a Unix system there is the Environment Variable Classpath. For example, when you open a shell you will normally havedefined an Environment Variable called Classpath. This variable will be used for your shell session. There isalso the Classpath for the Jserv that is set in jserv.properties. These Classpaths are not the same. Q7. Are there any Examples of Classpaths for OIE Second Generation?A7. Please review What Are Examples of Classpaths for OIE Second Generation.Please note these are examples only and are specific to the instances for which they were used. For additional information on thesetup of the Web Server Classpath review the "8. Update the web server java classpath" inNote 139863.1 'Configuring and Troubleshooting the Self Service Framework with Oracle Applications'. Q8. How can you setup Apache Web Server session timeouts in OIE Second Generation? A8. Please review How to.Set the Session Timeout Limit in OIE Second Generation Q9. What are the Apache/Jserv Logs files and where are these log files located on the file system? A9. error_log $APACHE_TOP/Apache/logs/access_log $APACHE_TOP/Apache/logs/mod_jserv_log $APACHE_TOP/Jserv/logs/ jserv_log $APACHE_TOP/Jserv/logs/

Q10. What type of information is written to the Apache/JServ Log files?A10. error_log: Contains a record of errors encountered by the Apache Server.access_log: Contains a record of the URLs requested from the Apache server.mod_jserv_log: Contains a record of messages and errors encountered by JServ (c-side). jserv_log: Contains a record of messages and errors encountered by Java (Java-side).. How do you restart (bounce) the Apache server? Oracle Applications come with a default script to restart (e.g., bounce) the Apache Server. This script can be modified by theAdministrators on site.Typically, this is done using the following command:<ORAHTTP_TOP>/Apache/bin/apachectl restartNote: Please verify with your Administrators before attempting this command.

ORA-01555: "Snapshot too old" Overview There are various reasons why customers can get the error ORA-01555. Sometimesit is due to rollback segments being too small in size, but there are other reasons. This bulletin is an attempt to give a completesummary of all the situations which would cause an ORA-01555 error and how to resolve them. In order to understand the bulletin, oneneeds to understand some of the internal mechanisms of Oracle, so we start by explaining briefly aboutread consistency and block cleanouts.Oracle always enforces statement-level read consistency. This guarantees that the data returned by a single query is consistent withrespect to time when the query began. Therefore, a query never sees the data-changes made by transactions that commit during thecourse of execution of the query.Oracle uniquely identifies any given point in time by a set of numbers called the System Change Numbers (SCN). So SCN can bedefined as the state of the database at any one given point in time. To produce read-consistency, Oraclemarks the current SCN as the query enters the execution phase. The query can only see the snapshot of the records as they were atthe time of marked SCN.Oracle uses rollback segments to reconstruct the read-consistent snapshot of the data. Whenever a transaction makes any changes,a snapshot of the record before the changes were made is copied to a rollback segment and the data block header is markedappropriately with the address of the rollback segment block where the changes are recorded. The data block also maintainsthe SCN of the last committed change to the block.As the data blocks are read on behalf of the query, only blocks with lower SCN than the query SCN will be read. If a block hasuncommitted changes of other transactions or changed data with more recent SCN, then the data is reconstructed using the savedsnapshot from the rollback segments. In some rare situations, if RDBMS is not able to reconstruct the snapshot for a longrunning query, the query results in an ORA-01555 error.A rollback segment maintains the snapshot of the changed data as long as the transaction is still active (commit or rollback has notbeen issued). Once a transaction is committed, RDBMS marks it with current SCN and the space used by the snapshot becomesavailable for reuse.Therefore, ORA-01555 will result if the query is looking for the snapshot which is so old that rollback segment information could not befound because of wrap around or overwrite. SITUATIONS WHERE ORA-01555 ERRORS COMMONLY OCCUR:=================================================1. Fewer and smaller rollback segments for a very actively changing database

If the database has many transactions changing data and commiting very often, then the chance of reusing the space used by acommitted transaction is higher. A long running query then may not be able to reconstruct the snapshot due to wrap around andoverwrite in rollback segments. Larger rollback segments in this case will reduce the chanceof reusing the committed transaction slots. 2. Corrupted rollback segment If the rollback segment is corrupted and could not be read, then a statement needing to reconstruct a before image snapshot will resultin the error. 3. Fetch across commit This is the situation when a query opens a cursor, then loops through fetching, changing, and committing the records on the sametable. In this scenerio, very often an ORA-01555 can result. Let's take the following example to explain this:A cursor was opened at SCN=10. The execution SCN of the query is then marked as SCN=10. Every fetch by that cursor now needsto get the read-consistent data from SCN=10. The user program is now fetching x numbers of records, changing them, and committingthem.Let's say they were committed with SCN=20. If a later fetch happens to retrieve a record which is in one of the previously committedblocks, then the fetch will see that the SCN there as 20. Since the fetch has to get the snapshot from SCN=10 it will try to find it inthe rollback segments. If it could rollback sufficiently backwards as previously explained, then it could reconstruct the snapshotfrom SCN=10. If not, then it will result in an ORA-01555 error.Committing less often which will result in larger rollback segments will REDUCE the probability of getting 'snapshot too old' error. 4. Fetch across commits with delayed block clean out To complicate things, now we see how delayed block clean outs play an important role in getting this error.When a data or index block is modified in the database and the transaction committed, Oracle does a fast commit by marking thetransaction as committed in the rollback segment header but does not clean the datablocks that were modified. The next transactionwhich does a select on the modified blocks will do the actual cleanout of the block. This is knownas a delayed block cleanout. Now, take the same scenario as described in previous section. But instead of assuming one table, let us assume that there are twotables in question. i.e: the cursor is opened and then in a loop, it fetches from one table and changes records in another, and commits.Even though the records are getting committed in another table it could still cause ORA-01555 because cleanout has not been doneon the table from which the records are being fetched.For this case, a full table scan before opening and fetching through the cursor will help. Summary: Fetches across commits as explained in last two cases are not supported by ANSI standard. According to ANSI standarda cursor is invalidated when a commit is performed and should be closed and reopened. Oracle allows users to do fetch acrosscommits but users should be aware that it might result in ORA-01555

Você também pode gostar