You are here

Graham's blog

RAC - srvinst

java to get the name of the instance for a db on the local host
(uses shell script similar to the srvcheck solution)

import java.net.InetAddress;

import oracle.ops.mgmt.database.Instance;
import oracle.ops.mgmt.database.ParallelServerConfig;
import oracle.ops.mgmt.operation.GetConfigurationOperation;
import oracle.ops.mgmt.operation.GetConfigurationResult;

public class ClusterLocalInstance {
private static final String USAGE = "checks to see name of local instance for provided db name";

RAC - srvcheck

java to quickly list rac dbs or check if a db is in the rac db list

 

import oracle.ops.mgmt.operation.ListParallelServersOperation;
import oracle.ops.mgmt.operation.ListParallelServersResult;

public class ClusterCheck {

private static final String USAGE = "  no args lists all cluster dbs\n  1 arg checks to see if that db is clustered";

High Water Mark

Metalink article 262353.1

 

essentially

 

select count (distinct dbms_rowid.rowid_block_number(r.rowid)) "used blocks", blocks "below hwm", empty_blocks "above hwm"
from <table_name> r, dba_tables
where table_name = '<table_name>'
group by blocks, empty_blocks;

windows concatenate files command

copy /b SrcFile1+SrcFile2 [+SrcFileN] DestnFile

oracle - identify foreign key with no index

Subject:  Prevent Deadlock in Existing Parent- Child Tables By INDEXING PK and FK 
Doc ID:  Note:16428.1

struts No action instance for path /xxxx could be created

the class you've specified cannot be loaded - you're not being silly and trying to load an abstract class are you?

struts java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

http://sites.google.com/site/dustinmarx/home/struts_errors-html

found class causing error by setting debug logging and looking at debug
message prior to error with text 'Begin event threw exception]'

getting JULI to manage your tomcat windows service

use tomcat\bin\tomcatw.exe and in the java tab add the following to the Java Options:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Pages

Subscribe to RSS - Graham's blog