The top command in Linux provides information about the top CPU processess and provides performance information. The processes displayed are sorted by CPU usage with the information updating by default every 3 seconds. Top also displays information about memory and CPU waiting for I/O. Below is a line-by-line explanation of the top screen. To find out … Continue reading Reading Linux’s TOP Screen
Author: Randy Sims
INTERVAL: Clock Math
INTERVAL is a function that provides a way to add, subtract or just convert. SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR FROM DUAL; Which is the correct output of the above query? A. +25-00, +54-02, +00 11:12:10.123457 B. +00-300, +54-02,+00 11:12:10.123457 C. +25-00,+00-650,+00 11:12:10.123457 D. +00-300,+00-650,+00 11:12:10.123457 ANSWER: A INTERVAL … Continue reading INTERVAL: Clock Math
Setting the SESSIONS Parameter
The SESSIONS parameter determines the maximum number of sessions that can be created in a system. So, it is basically the number of users that can be logged into the system at one time. BUT, it also needs to include the number of background processes running because they run in sessions, as well. Let's see … Continue reading Setting the SESSIONS Parameter
Oracle Set Operators: UNION, INTERSECT and MINUS
Did you know you can do set-based math with Oracle? With the UNION, INTERSECT and MINUS set operators, you can compare one result set to another and add or subtract results, called a compound query. This can be a handy tool for your toolbox. First, a couple of things to keep in mind. The number of … Continue reading Oracle Set Operators: UNION, INTERSECT and MINUS
Ending a Transaction
QUESTION: Which three statements/commands would cause a transaction to end? (Choose three.) A. COMMIT B. SELECT C. CREATE D. ROLLBACK E. SAVEPOINT Answer: A,C,D A transaction is a unit of work containing SQL statements. Transactions end when they are committed or rolled back, or when a DDL statement is issued. COMMIT will make the changes … Continue reading Ending a Transaction
Transactions and SAVEPOINT
QUESTION: Which two statements describe the consequence of issuing the ROLLBACK TO SAVE POINT a command in the session? SQL> CREATE TABLE product 2 (pcode NUMBER(2), 3 pname VARCHAR2(10)); Table created. SQL> INSERT INTO product VALUES (1,'pen'); 1 row created. SQL> INSERT INTO product VALUES (2,'pencil'); 1 row created. SQL> SAVEPOINT a; Savepoint created. SQL> … Continue reading Transactions and SAVEPOINT
Load a Photo or BLOB for Testing
If you work with an application where you have to save BLOBs, such as an ID card app, you'll run into this situation. You've just made a procedure that needs testing, but you need a BLOB to test it. In a few simple steps, you can have that BLOB. The following will load a file … Continue reading Load a Photo or BLOB for Testing
Happy Birthday, Hannah!
Hannah is 12 years old today. Its hard to imagine that its been twelve years already. It also seems like Hannah's always been around us. And its great. She's grown up so much in twelve years. I can't even tell you just how proud I am to be a part of her life, to have … Continue reading Happy Birthday, Hannah!
August 14, 1765 – Boston Meets the Sons of Liberty
On this day, about five months following the signing of the Stamp Act of 1765, two hundred forty-four years ago, an effigy was hung from a tree on Newbury Street in Boston. The effigy was of Andrew Oliver, the man to be commissioned as the Distributor of Stamps for Massachusetts. Oliver was set up to be the … Continue reading August 14, 1765 – Boston Meets the Sons of Liberty
The Farmers Market
We went to the Farmers Market today at Mathews Courthouse. It was nice, and low key. There were plenty of vegetables to be had for a decent price as well as local seafood and honey. A lady selling her gourmet food sold us a pint of curried chicken, and we had that for lunch with … Continue reading The Farmers Market