데이터베이스 링크 구축, 통계 표 기록 수, 세 션 보기 및 최대 세 션 수
1503 단어 Oacle
select 'analyze table ' || table_name || ' compute statistics;' from user_tables where table_name like 'PR\_%\_%' escape '\' and tablespace_name = 'PR_DATA1'
2. 기업 과 제품 총수 통계
select (select sum(NUM_ROWS)
from (select t.TABLE_NAME, t.NUM_ROWS
from user_tables t
where table_name like 'PR_%_SHOP')) as ,
(select sum(NUM_ROWS)
from (select t.TABLE_NAME, t.NUM_ROWS
from user_tables t
where table_name like 'PR_%_PRODUCT')) as
from dual;
3. 통계표 의 기록 수
CREATE VIEW v_pr_sum as
SELECT t.table_name as , SUM(t.num_rows) as
FROM user_tables t
WHERE (t.table_name LIKE 'PR\_%\_%' ESCAPE '\' and t.table_name not like '%_IMAGE')
GROUP BY t.table_name
ORDER BY t.table_name
4. 데이터베이스 현재 세 션 과 최대 세 션 보기
select to_number(value) from V$parameter where name='processes' union
select count(*) from V$process;
5. 데이터베이스 링크 구축
create database link dl_temp connect to zq identified by zq using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.4.210)(PORT=1521)))(CONNECT_DATA=(SID=orcl)))'
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 작업 은 Clob 또는 NClob 데이터 형식의 저장 프로 세 스 인 스 턴 스 를 포함 합 니 다.텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.