So hence alwasy foget the AWR command, still surviving with the stats pack command.
Here's one that I need remember:
@?/rdbms/admin/awrrpt.sql
@?/rdbms/admin/awrrpt.sql
NCPU=`expr \`grep '^cpu. ' /proc/stat | wc -l\` - 1`
NCPU=`expr \`grep '^cpu.' /proc/stat | wc -l\` - 1`
/etc/init.d/munin-node restart
< button key="button.discount" name="button.discount" code="Code.Discount" />
import com.openbravo.format.Formats;
import com.openbravo.pos.ticket.TicketLineInfo;
import com.openbravo.pos.ticket.TicketProductInfo;
discountamount = sales.getInputValue();
index = sales.getSelectedIndex();
if (index >= 0) {
line = ticket.getLine(index);
if (line.getPrice() > 0.0 && discountamount > 0.0) {
sdiscount = Formats.CURRENCY.formatValue(discountamount);
ticket.insertLine(index + 1,
new TicketLineInfo(
"Discount " + sdiscount,
line.getProductTaxCategoryID(),
line.getMultiply(),
-discountamount,
line.getTaxInfo()));
sales.setSelectedIndex(index + 1);
} else {
java.awt.Toolkit.getDefaultToolkit().beep();
}
} else {
java.awt.Toolkit.getDefaultToolkit().beep();
}
< class name="button.discount" />
button.discount=Discount
// % Discount for the total of the receipt
import com.openbravo.format.Formats;
import com.openbravo.pos.ticket.TicketLineInfo;
import com.openbravo.pos.ticket.TicketProductInfo;
import java.util.Properties;
discountperc = JOptionPane.showInputDialog(null, "Input percentage.....");
double discountrate = Double.parseDouble(discountperc);
discountrate = discountrate/100.00;
total = ticket.getTotal();
if (total > 0.0) {
sdiscount = Formats.PERCENT.formatValue(discountrate);
taxes = ticket.getTaxLines();
for (int i = 0; i < taxes.length; i++) {
taxline = taxes[i];
ticket.insertLine(ticket.getLinesCount(),
new TicketLineInfo(
"Discount " + sdiscount + " of " + taxline.printSubTotal(),
taxline.getTaxInfo().getTaxCategoryID(),
1.0,
-taxline.getSubTotal() * discountrate,
taxline.getTaxInfo()));
}
sales.setSelectedIndex(ticket.getLinesCount() - 1);
} else {
java.awt.Toolkit.getDefaultToolkit().beep();
}
< button key="button.discount" name="button.discount" code="discount.Total" />
< class name="button.discount" />
CREATE TEMPORARY TABLESPACE temp_n TEMPFILE '/u01/oracle/oradata/NIDEV/temp_01.dbf' SIZE 500M
autoextend off extent management local UNIFORM SIZE 1M;
alter database default temporary tablespace temp_n;
col PROPERTY_VALUE for a40
col DESCRIPTION for a40
select * from database_properties;
@?/rdbms/admin/utlrp.sql
-- A check
col OBJECT_NAME for a30
select owner, object_name, object_type from dba_objects where status = 'INVALID';