블로그 이미지
LifeisSimple

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

'Oracle'에 해당되는 글 2

  1. 2012.02.12 [Oracle] Load Generator For Oracle - Swingbench
  2. 2009.09.08 [Oracle] Connect by prior ... 예제
2012. 2. 12. 10:26 Brain Trainning/DataBase

Swingbench...


Swingbench is a free load generator (and benchmarks) designed to stress test an Oracle database (10g,11g). It can be downloaded here. See my blog for new releases and what Im currently working on. 

New! I've just added a pdf containing an overview of swingbench here. I've also uploaded some screencasts that demonstrate some of its functionality 

Swingbench screenshots 

About SwingBench


SwingBench consists of a load generator, a coordinator and a cluster overview. The software enables a load to be generated and the transactions/response times to be charted. 

Swingbench can be used to demonstrate and test technologies such as Real Application Clusters, Online table rebuilds, Standby databases, Online backup and recovery etc. 

The code that ships with SwingBench includes four benchmarks, OrderEntry, SalesHistory, CallingCircle and StressTest. 

  • OrderEntry is based on the "oe" schema that ships with Oracle11g. It has been modified so that Spatial, Intermedia schema's do not need to be installed. It can be run continuously (that is until you run out of space). It introduces heavy contention on a small number of tables and is designed to stress interconnects and memory. It is installed using the "oewizard" located in the bin directory. Both a pure jdbc and pl/sql (lower network overhead) variant exist of the benchmark.
  • SalesHistory is based on the “sh” schema that ships with Oracle11g and is designed to test the performance of complicated queries when run against large tables. It is read only and can be scaled over a number of default sizes from 1GB to 1TB. A custom mode also allows for the creation of smaller and larger schemas
  • CallingCircle simulates the SQL that is generated for a online telco application. It requires data files to be generated and copied from the database server to the load generator before each run, it typically requires between 1 and 8 GB of disk space. Both benchmarks are heavily CPU intensive. Experience has shown that you require at least 1 processor of load generator to every 2 processors of database server. It is designed to stress the CPU and memory without the need for a powerful I/O subsystem. Its is installed using the "ccwizard" located in the bin directory
  • StressTest simply fires random inserts,updates,selects and updates against a well know table.

The entire framework is developed in Java and as a result can be run on wide variety of platforms. It also provides a simple API to allow developers to build their own benchmarks.
posted by LifeisSimple
2009. 9. 8. 15:09 Brain Trainning/DataBase
계층적 쿼리를 간단히 - 게시판 덧글에 유용한...
MS-SQL에서는 흠... 나름 어려웠던것 같은데..

요렇게 입력하면.. 
    SELECT LTRIM(SYS_CONNECT_BY_PATH(품목코드, ','), ',')
        INTO v_품목리스트 
        FROM (
            SELECT 유통동향ID, 품목코드, 공통상품명,
                ROW_NUMBER () OVER (PARTITION BY 유통동향ID ORDER BY 일련번호 DESC) RN,
                COUNT(*) OVER (PARTITION BY 유통동향ID) CNT
                FROM CM_CCT_품목매핑
                WHERE 유통동향ID = p_유통동향ID
                ) A
     WHERE RN = CNT
        START WITH RN = 1
        CONNECT BY PRIOR RN = RN - 1
               AND PRIOR 유통동향ID = 유통동향ID;

요렇게 나온다.
쭈욱 연결해서 : 060102,060101,060101,060101

'Brain Trainning > DataBase' 카테고리의 다른 글

쿼리 및 시스템 튜닝 자료  (0) 2009.11.12
Sqlserver Host명 변경  (0) 2009.11.12
Snapshot 생성  (0) 2009.11.11
Backup 및 Restore  (0) 2009.11.10
테이블 파티션  (0) 2009.11.08
posted by LifeisSimple
prev 1 next