Git Product home page Git Product logo

ash-viewer's Introduction

<매뉴얼> https://cafe.naver.com/sysdba/34

  1. 다운로드
  • 아래 사이트에 접속해서 ASH Viewer & OPEN JDK 를 다운 받습니다.

DBA 실무 노하우 실습환경 ■ 실습 환경 가상서버 이미지 DBA실무 가상머신 이미지 ■ 기타 프로그램 D2Coding : 고정글꼴 폰트 putty : 터미널 접속 프로그램 sqldeveloper : 오라클 접속/관리 프로그램 tvnviewer : 리눅스 GUI 원격 접속 프로그램(VNC 클라이언트) ASH Viewer & OPEN JDK : 오라클 실시간 성능분석 프로그램

edu.dba.co.kr

  • 다운 받은 파일(ashv_jdk.zip)의 압축을 풀면 세개의 파일로 구성되어 있습니다.

. ashv-4.4.0-bin.zip : ASH Viewer

. ojdbc8.jar : JDBC 드라이버

. openjdk-19.0.2_windows-x64_bin.zip : ASH Viewer가 다소 높은 JDK를 필요로 하기 때문에 새로 설치하는 것을 권장합니다. 별도의 설치과정은 필요없고 압축만 풀고 경로만 지정하면 됩니다.

  1. 디렉토리 구성

D:\Program\ashv-4.4.0 : ashv-4.4.0-bin.zip D:\Program\jdk-19.0.2 : openjdk-19.0.2_windows-x64_bin.zip D:\Program\jdk-19.0.2\lib : ojdbc8.jar 파일을 복사

  • 위와 같이 디렉토리를 구성하고 압축을 해제합니다. 디렉토리 구성은 원하는 대로 하시면 됩니다.

  • 각 디렉토리 파일 목록은 다음과 같습니다.

  1. run.bat 파일 수정​

@REM ---------------------------------------------------------------------------- @REM Licensed to the GNU GENERAL PUBLIC LICENSE Version 3 @REM ----------------------------------------------------------------------------

@REM ---------------------------------------------------------------------------- @REM ASH Viewer start up batch script @REM @REM Required ENV vars: @REM JAVA_HOME - location of a JDK home dir

SET JAVA_HOME=D:\Program\jdk-19.0.2

SET JAVA_EXE="%JAVA_HOME%\bin\java.exe"

%JAVA_EXE% -Xmx1024m -jar ASH-Viewer.jar

  • D:\Program\ashv-4.4.0\run.bat 파일의 JAVA_HOME을 변경합니다.

  1. 실행 및 접속정보 설정
  • run.bat 파일을 더블클릭하여 실행합니다. 화면이 뜨지 않을 경우 CMD 창에서 run.bat를 실행하여 로그를 확인합니다.

  • Edit - 접속정보 설정 - Save - Connect 순서로 진행합니다.

URL : jdbc:oracle:thin:@ip_address:port:SID JDBC : D:\Program\jdk-19.0.2\lib\ojdbc8.jar

  • 접속정보는 URL 부분에 위와 같은 양식으로 설정합니다.

  • Open JAR 버튼을 눌러 위에서 다운받아 복사한 JDBC 드라이버의 위치를 지정합니다.


ASH Viewer

ASH Viewer provides graphical view of active session history data within the database.

Supported databases: Oracle, PostgreSQL

Table of contents

ASH-Viewer

Quick start

  • Download the latest binary file.
  • Download JDBC driver for your database (Oracle, PostgreSQL)
  • Unpack the binary archive and run ASH-Viewer.jar
  • Open connection dialog and populate them with data (URL for Oracle database: jdbc:oracle:thin:@host:port:SID)

ASH-Viewer connection dialog

  • Press Connect button and start to monitor your system and highlight a range to show details.

ASH-Viewer Top activity

  • Review Raw data interface to gain a deep insight into active session history

ASH-Viewer raw data

  • Double-click on Top sql & sessions interface to get window with ASH details by sql or session ID

ASH-Viewer sql details

ASH-Viewer session details

Return to Table of Contents

How it works

Active Session History (ASH) is a view in Oracle database that maps a circular buffer in the SGA. The name of the view is V$ACTIVE_SESSION_HISTORY. This view is populated every second and will only contain data for 'active' sessions, which are defined as sessions waiting on a non-idle event or on a CPU.

ASH Viewer provides graphical Top Activity, similar Top Activity analysis and Drilldown of Oracle Enterprise Manager performance page. ASH Viewer store ASH data locally using embedded database Oracle Berkeley DB Java Edition.

For Oracle standard edition and PostgreSQL, ASH Viewer emulate ASH, storing active session data on local storage.

Please note that v$active_session_history is a part of the Oracle Diagnostic Pack and requires a purchase of the ODP license.

Return to Table of Contents

Build

To compile the application into an executable jar file, do the following:

  1. Install JDK version 11 or higher, Maven and Git on your local computer.

    java -version  
    mvn -version
    git --version 
  2. Download the source codes of the application to your local computer using Git

    git clone <url source code storage system>
    cd ASH-Viewer
  3. Compile the project using Maven

    mvn clean compile
  4. Execute the Maven command to build an executable jar file with tests running

     mvn clean package -DskipTests=true 

An executable jar file like ashv-<VERSION>-SNAPSHOT-jar-with-dependencies.jar will be located at the relative path ashv/target

Return to Table of Contents

Security

Encryption and Container settings provide security for database passwords (go to Other tab -> Security block)

Encryption

Encryption setting has AES and PBE options

  • AES - Advanced Encryption Standard (AES) with 256-bit key encryption, from the Bouncy Castle provider, FIPS compliant algorithm;
  • PBE - Password based encryption (PBE) in PBEWithMD5AndDES mode with secret key (computer name or hostname). This option is weak and deprecated, please use AES when possible;

Container

It's the way to store your encrypted data

  • DBAPI - You sensitive data stored in Windows Data Protection API (DPAPI), maximum protected, Windows only;
  • Registry - OS System registry storage using java preferences API - weak, but better than Configuration;
  • Configuration - All data in local configuration file - weak, not recommended;

Recommendations

  • use AES encryption and Windows Data Protection API (DBAPI) whenever possible;
  • do not use PBE copied configuration on another host, you need to change password with a new secret key (always do it for password leak prevention).

Return to Table of Contents

Bugs and feature requests

If you found a bug in the code or have a suggestion for improvement, Please open an issue

Return to Table of Contents

Downloads

Return to Table of Contents

Based on

Return to Table of Contents

License

GPLv3 license

Code released under the GNU General Public License v3.0

Return to Table of Contents

Contact

Created by @akardapolov - feel free to contact me!

Return to Table of Contents

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.