#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
select | |
event, | |
sql_id, | |
snap_id, | |
dbid, | |
instance_number, | |
sample_time, | |
session_id, | |
session_serial#, | |
user_id, |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
select | |
-- Session causing the block | |
blockers.blocker_instance_id as blocker_instance_id, | |
blocker.sid as blocker_sid, | |
blocker.serial# as blocker_serial#, | |
blocker.username as blocker_username, | |
blocker.status as blocker_status, | |
blocker.machine as blocker_machine, | |
blocker.program as blocker_program, | |
blocker.sql_id as blocker_sql_id, |
-- | |
-- Create SQL Tuning Set | |
-- | |
begin | |
dbms_sqltune.create_sqlset | |
( | |
sqlset_name => 'AppName_STS_01', | |
description => 'SQL Tuning Set for AppName', | |
sqlset_owner => 'SYS' | |
); |
# Installation | |
# | |
# 1. Install Xvfb | |
# | |
# sudo apt-get install xvfb | |
# | |
# 2. Add this file to /etc/init.d/xvfb | |
# | |
# 3. Make the script execuable. | |
# |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
select distinct | |
-- Snapshot ID | |
min(blocked.snap_id) as first_snap_id, | |
max(blocked.snap_id) as last_snap_id, | |
-- Sample ID and Time | |
min(blocked.sample_id) as first_sample_id, | |
min(blocked.sample_id) as last_sample_id, | |
to_char( | |
min(blocked.sample_time), |
select | |
* | |
from | |
( | |
select | |
ss.module, | |
ss.snap_id, | |
ss.sql_id, | |
ss.plan_hash_value, | |
ss.executions_total, |
select | |
* | |
from | |
( | |
select | |
module, | |
sql_id, | |
child_number, | |
plan_hash_value, | |
executions, |
//import the http library | |
var http = require('http'), | |
//npm install q before requiring it | |
Q = require('q'); | |
//a js object with options | |
var googleNewsOptions = { | |
hostname: 'ajax.googleapis.com', | |
path: '/ajax/services/search/news?v=1.0&q=nodejs', | |
method: 'GET' |