전체 글 108

(Server)Login, (Database)User 삭제

--------------------------------------------------------------------------------------------------------------------- SERVER LOGIN 유저와 DATABASE USER MAPPING 시 - error 15023 user already exists in current database --------------------------------------------------------------------------------------------------------------------- 링크 데이터베이스를 복구 후 사용자 아이디로 로그인을 시도하면 매핑이 되지 않는 경우가 발생한다 이는 기존서버의 정보를 ..

MS SQL 2020.07.06

SQL Server Extended Event 설정 하기

------------------------------------------------------------------------------------------------------------------------------- 가. SQL이 장시간 수행 되는 경우 Logging 하기 ------------------------------------------------------------------------------------------------------------------------------- -- 생성 -- ACTION - 수집 시 저장되는 정보 -- WHERE - 조건에 맞아야 수집됨 AdventureWorks2017, AdventureWorksDW2017 Database 이며, du..

MS SQL 2020.07.02

oracle 12c Multiple Trace File

2021/11/06 여러 개의 파일을 합치기보다 아래 처럼 파일 제한을 늘리면 됨 ( max size / 5 = 파일 하나당 사이즈 제한이라. ) 샘플 ) ALTER SESSION SET MAX_DUMP_FILE_SIZE= '5121M' ; -- ( 1024*5 ) + 1 Orange 경우, 10046 multi file 에 대해서 plan 요상하게 나옴 차라리 한개 파일 사이즈를 최대한 늘려서, 한개의 10046 trace 파일 생성 하여, 깔끔하게 보자 https://jonathanlewis.wordpress.com/2016/01/26/trace-file-size/ https://antognini.ch/2016/10/trace-files-split-in-multiple-parts/ https://do..

Oracle/Oracle 12C 2019.06.21

Oracle Trace File ( trc vs trm )

한줄, adrci 를 통해서 trc 파일을 다루기 위해서는 trm 파일이 필요함 ( trc 파일을 메타 파일이 .trm 이다. ) From 11g onwards, all the trace files are found in ADR_HOME/trace directory. There is usually one “.trm” file for each “.trc” file. The files located in the TRACE directory, with the “.trm” extensions, are called Trace Metadata files. The metadata in .trm files describes the trace records stored inside of .trc trace files. ..

Oracle/Oh Oracle 2019.06.21

SGA Memory > Physical Memory 가능함 [ SWAP 에 따른 성능 저하 ]

SGA Memory > Physical Memory 가능함 [ SWAP 에 따른 성능 저하 ] 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118[TGSVR]TGSVR15:/app/oracle> sqlplus '/as sysdba' SQL*Plus: Release 12.1.0.2.0 Production on Wed Feb..

Oracle/Oh Oracle 2019.02.14