본문 바로가기

Oracle

(36)
Oracle/PLSQL: Dump Function Oracle/PLSQL: Dump FunctionIn Oracle/PLSQL, the dump function returns a varchar2 value that includes the datatype code, the length in bytes, and the internal representation of the expression. The syntax for the dump function is: dump( expression, [return_format], [start_position], [length] ) expression is the expression to analyze. return_format is optional. It determines the format of the retur..
V$SQL V$SQLV$SQL lists statistics on shared SQL area without the GROUP BY clause and contains one row for each child of the original SQL text entered. Statistics displayed in V$SQL are normally updated at the end of query execution. However, for long running queries, they are updated every 5 seconds. This makes it easy to see the impact of long running SQL statements while they are still in progress. ..
Oracle Sys Table and View Study 1st week Select Object_Type, count(*) from dba_objects Group by Object_Type order by count(*) desc Select * from dba_objects Where Object_Type = 'TABLE' Select Owner, Cluster_Name, TableSpace_Name, IOT_Name, Table_Name, Partitioned, Blocks, Num_Rows, Avg_Row_Len, Last_Analyzed, dt.* from dba_tables dt Where Owner = 'EJMIS' Order by 7 Desc Select dt.* from dba_tables dt Where Owner = 'EJMIS' Select SID, S..
dba view study 1 SELECT * FROM v$sort_usage Select * from v$sgastat order by bytes desc Select Pool, Name, Bytes, (Bytes/1000000) MB from v$sgastat where name like '%cache%' order by bytes desc Select * from v$librarycache Select sga.*, lbc.* from v$sgastat sga, (select NameSpace, Gets, GetHits, GetHitRatio, Pins, PinHits, PinHitRatio, Reloads, Invalidations from v$librarycache) lbc Where Upper(sga.Name) = lbc.n..
원본 10046 트레이스 파일에 담긴 정보의 요약 -- Expert of Oracle p318 정리 -- 원본 10046 트레이스 파일에 담긴 정보의 요약 Oracle 의 10046 확장 트레이스 파일에는 수많은 키워드와 관련 값들이 포함되어 있으며, 사용자는 이 값들을 분석하여 모니터링 대상 세션이 어떤 작업을 했고, 작업을 수행하는 과정에서 어떤 대기 현상에 왜 부딪혔는지 파악할 수 있다. len : SQL 문장에 포함된 문자의 수 dep : 애플리케이션/트리거에서 실행된 SQL 문장의 'depth'. dep=0 은 사용자가 직접 실행한 SQL 문장임을 의미 dep=1 은 해당 문장이 트리거 내에서, Oracle 옵티마이저에 의해서, 또는 내부적인 공간 관리를 위해 자동실행 dep=2 는 일반적으로 트리거 내에서 SQL 문장이 호출되거나 공간 관리를..
Pro*C/C++ Programmer's Guide 10g Release 2 (10.2) http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14407/toc.htm Pro*C/C++ Programmer's Guide 10g Release 2 (10.2) Part Number B14407-01 ContentsTitle and Copyright InformationPreface Intended Audience Documentation Accessibility Related Documents Conventions What's New in Pro*C/C++? Oracle10g Release 2 (10.2) New Features in Pro*C/C++ Oracle9i Release 2 (9.2) New Features in Pro*C/C++ Ora..
Performing a Complete Database Restore (Full Recovery Model) http://msdn.microsoft.com/en-us/library/ms187495.aspx Performing a Complete Database Restore (Full Recovery Model) SQL Server 2008 R2 Other Versions In a complete database restore, the goal is to restore the whole database. The whole database is offline for the duration of the restore. Before any part of the database can come online, all data is recovered to a consistent point in which all parts..
오라클 테이블 및 칼럼 내역 보기 SELECT A.Table_Name AS TableName, A.COLUMN_NAME AS columnName, A.DATA_TYPE AS dataType, A.DATA_LENGTH AS dataLength, B.COMMENTS AS comments, A.NULLABLE AS nullAble FROM dba_tab_columns A, all_col_comments B WHERE A.OWNER = B.OWNER AND A.TABLE_NAME = B.TABLE_NAME AND A.COLUMN_NAME = B.COLUMN_NAME AND A.OWNER = 'EJMIS' AND A.Table_Name NOT LIKE 'BIN%' Order by TableName, ColumnName -- AND 조건으로 테이블..