oracle快速定位数据库瓶颈

这篇具有很好参考价值的文章主要介绍了oracle快速定位数据库瓶颈。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

oracle快速定位数据库瓶颈

–数据库巡检或性能优化方法各异,但首要的是要发现数据库性能瓶颈,系统自带的statspack,或awr太耗时.

  1. 查询数据库等待事件top10,关注前前几个等待事件,关注前三个等待事件是否有因果或关联关系–oracle 9i
    select t2.event,round(100t2.time_waited/(t1.w1+t3.cpu),2) event_wait_percent from (
    SELECT SUM(time_waited) w1 FROM v s y s t e m e v e n t W H E R E e v e n t N O T I N ( ′ s m o n t i m e r ′ , ′ p m o n t i m e r ′ , ′ r d b m s i p c m e s s a g e ′ , ′ N u l l e v e n t ′ , ′ p a r a l l e l q u e r y d e q u e u e ′ , ′ p i p e g e t ′ , ′ c l i e n t m e s s a g e ′ , ′ S Q L ∗ N e t m e s s a g e t o c l i e n t ′ , ′ S Q L ∗ N e t m e s s a g e f r o m c l i e n t ′ , ′ S Q L ∗ N e t m o r e d a t a f r o m c l i e n t ′ , ′ d i s p a t c h e r t i m e r ′ , ′ v i r t u a l c i r c u i t s t a t u s ′ , ′ l o c k m a n a g e r w a i t f o r r e m o t e m e s s a g e ′ , ′ P X I d l e W a i t ′ , ′ P X D e q : E x e c u t i o n M s g ′ , ′ P X D e q : T a b l e Q N o r m a l ′ , ′ w a k e u p t i m e m a n a g e r ′ , ′ s l a v e w a i t ′ , ′ i / o s l a v e w a i t ′ , ′ j o b q s l a v e w a i t ′ , ′ n u l l e v e n t ′ , ′ g c s r e m o t e m e s s a g e ′ , ′ g c s f o r a c t i o n ′ , ′ g e s r e m o t e m e s s a g e ′ , ′ q u e u e m e s s a g e s ′ ) ) t 1 , ( s e l e c t ∗ f r o m ( s e l e c t t . e v e n t , t . t o t a l w a i t s , t . t o t a l t i m e o u t s , t . t i m e w a i t e d , t . a v e r a g e w a i t , r o w n u m n u m f r o m ( s e l e c t e v e n t , t o t a l w a i t s , t o t a l t i m e o u t s , t i m e w a i t e d , a v e r a g e w a i t f r o m v system_event WHERE event NOT IN ('smon timer','pmon timer','rdbms ipc message','Null event','parallel query dequeue','pipe get', 'client message','SQL*Net message to client','SQL*Net message from client','SQL*Net more data from client', 'dispatcher timer','virtual circuit status','lock manager wait for remote message','PX Idle Wait', 'PX Deq: Execution Msg','PX Deq: Table Q Normal','wakeup time manager','slave wait','i/o slave wait', 'jobq slave wait','null event','gcs remote message','gcs for action','ges remote message','queue messages') ) t1, (select * from ( select t.event,t.total_waits,t.total_timeouts,t.time_waited,t.average_wait,rownum num from (select event,total_waits,total_timeouts,time_waited,average_wait from v systemeventWHEREeventNOTIN(smontimer,pmontimer,rdbmsipcmessage,Nullevent,parallelquerydequeue,pipeget,clientmessage,SQLNetmessagetoclient,SQLNetmessagefromclient,SQLNetmoredatafromclient,dispatchertimer,virtualcircuitstatus,lockmanagerwaitforremotemessage,PXIdleWait,PXDeq:ExecutionMsg,PXDeq:TableQNormal,wakeuptimemanager,slavewait,i/oslavewait,jobqslavewait,nullevent,gcsremotemessage,gcsforaction,gesremotemessage,queuemessages))t1,(selectfrom(selectt.event,t.totalwaits,t.totaltimeouts,t.timewaited,t.averagewait,rownumnumfrom(selectevent,totalwaits,totaltimeouts,timewaited,averagewaitfromvsystem_event where event not in
    (‘smon timer’,‘pmon timer’,‘rdbms ipc message’,‘Null event’,‘parallel query dequeue’,‘pipe get’,
    ‘client message’,'SQL
    Net message to client’,‘SQLNet message from client’,'SQLNet more data from client’, ‘dispatcher timer’,‘virtual circuit status’,‘lock manager wait for remote message’,‘PX Idle Wait’,
    ‘PX Deq: Execution Msg’,‘PX Deq: Table Q Normal’,‘wakeup time manager’,‘slave wait’,‘i/o slave wait’,
    ‘jobq slave wait’,‘null event’,‘gcs remote message’,‘gcs for action’,‘ges remote message’,‘queue messages’)
    order by time_waited desc ) t) where num<11) t2,
    (SELECT VALUE CPU FROM v$sysstat WHERE NAME LIKE ‘CPU used by this session’ ) t3

–oracle10g

select t2.event,round(100t2.time_waited/(t1.w1+t3.cpu),2) event_wait_percent from (
SELECT SUM(time_waited) w1 FROM v$system_event WHERE event NOT IN
(‘smon timer’,‘pmon timer’,‘rdbms ipc message’,‘Null event’,‘parallel query dequeue’,‘pipe get’,‘client message’,'SQL
Net message to client’,'SQL*Net message from

client’,‘SQL*Net more data from client’,‘dispatcher timer’,‘virtual circuit status’,‘lock manager wait for remote message’,‘PX Idle Wait’,‘PX Deq: Execution Msg’,'PX

Deq: Table Q Normal’,‘wakeup time manager’,‘slave wait’,
‘i/o slave wait’,‘jobq slave wait’,‘null event’,‘gcs remote message’,‘gcs for action’,‘ges remote message’,‘queue messages’,'wait for unread message on broadcast

channel’,‘PX Deq Credit: send blkd’,‘PX Deq: Execute Reply’,‘PX Deq: Signal ACK’,‘PX Deque wait’,‘PX Deq Credit: need buffer’,'STREAMS apply coord waiting for slave

message’,
‘STREAMS apply slave waiting for coord message’, ‘Queue Monitor Wait’, ‘Queue Monitor Slave Wait’, ‘wakeup event for builder’, ‘wakeup event for preparer’, 'wakeup

event for reader’,
‘wait for activate message’, ‘PX Deq: Par Recov Execute’,‘PX Deq: Table Q Sample’,‘STREAMS apply slave idle wait’,'STREAcapture process filter callback wait for

ruleset’,‘STREAMS fetch slave waiting for txns’,
‘STREAMS waiting for subscribers to catch up’,‘Queue Monitor Shutdown Wait’,‘AQ Proxy Cleanup Wait’,‘knlqdeq’,‘class slave wait’,‘master wait’,‘DIAG idle wait’,
‘ASM background timer’,‘KSV master wait’,‘EMON idle wait’,‘Streams AQ: RAC qmn coordinator idle wait’,‘Streams AQ: qmn coordinator idle wait’,'Streams AQ: qmn slave

idle wait’,
‘Streams AQ: waiting for time management or cleanup tasks’,‘Streams AQ: waiting for messages in the queue’,‘Streams fetch slave: waiting for txns’,'Streams AQ:

deallocate messages from Streams Pool’,
‘Streams AQ: delete acknowledged messages’,‘LNS ASYNC archive log’,‘LNS ASYNC dest activation’,‘LNS ASYNC end of log’,‘LogMiner: client waiting for transaction’,
‘LogMiner: slave waiting for activate message’,‘LogMiner: wakeup event for builder’,‘LogMiner: wakeup event for preparer’,‘LogMiner: wakeup event for reader’) ) t1,
(select * from (
select t.event,t.total_waits,t.total_timeouts,t.time_waited,t.average_wait,rownum num from
(select event,total_waits,total_timeouts,time_waited,average_wait from v$system_event where event not in
(‘smon timer’,‘pmon timer’,‘rdbms ipc message’,‘Null event’,‘parallel query dequeue’,‘pipe get’,‘client message’,'SQLNet message to client’,'SQLNet message from

client’,‘SQL*Net more data from client’,‘dispatcher timer’,‘virtual circuit status’,‘lock manager wait for remote message’,‘PX Idle Wait’,‘PX Deq: Execution Msg’,'PX

Deq: Table Q Normal’,‘wakeup time manager’,‘slave wait’,
‘i/o slave wait’,‘jobq slave wait’,‘null event’,‘gcs remote message’,‘gcs for action’,‘ges remote message’,‘queue messages’,'wait for unread message on broadcast

channel’,‘PX Deq Credit: send blkd’,‘PX Deq: Execute Reply’,‘PX Deq: Signal ACK’,‘PX Deque wait’,‘PX Deq Credit: need buffer’,'STREAMS apply coord waiting for slave

message’,
‘STREAMS apply slave waiting for coord message’, ‘Queue Monitor Wait’, ‘Queue Monitor Slave Wait’, ‘wakeup event for builder’, ‘wakeup event for preparer’, 'wakeup

event for reader’,
‘wait for activate message’, ‘PX Deq: Par Recov Execute’,‘PX Deq: Table Q Sample’,‘STREAMS apply slave idle wait’,'STREAcapture process filter callback wait for

ruleset’,‘STREAMS fetch slave waiting for txns’,
‘STREAMS waiting for subscribers to catch up’,‘Queue Monitor Shutdown Wait’,‘AQ Proxy Cleanup Wait’,‘knlqdeq’,‘class slave wait’,‘master wait’,‘DIAG idle wait’,
‘ASM background timer’,‘KSV master wait’,‘EMON idle wait’,‘Streams AQ: RAC qmn coordinator idle wait’,‘Streams AQ: qmn coordinator idle wait’,'Streams AQ: qmn slave

idle wait’,
‘Streams AQ: waiting for time management or cleanup tasks’,‘Streams AQ: waiting for messages in the queue’,‘Streams fetch slave: waiting for txns’,'Streams AQ:

deallocate messages from Streams Pool’,
‘Streams AQ: delete acknowledged messages’,‘LNS ASYNC archive log’,‘LNS ASYNC dest activation’,‘LNS ASYNC end of log’,‘LogMiner: client waiting for transaction’,
‘LogMiner: slave waiting for activate message’,‘LogMiner: wakeup event for builder’,‘LogMiner: wakeup event for preparer’,‘LogMiner: wakeup event for reader’)
order by time_waited desc ) t) where num<11) t2,
(SELECT VALUE CPU FROM v$sysstat WHERE NAME LIKE ‘CPU used by this session’ ) t3

–2、查询各种指标,根据各种指标反映的问题是否和等待事件有关联关系,进一步确定问题所在
–9i

select a.cache_hit_percent,e.rowcache_hitratio,d.pin_ration_percent,d.get_ratio_percent,

f.mem_sort_percent ,b.latch_ratio_percent from
(SELECT ROUND((1-((s1.VALUE-s4.VALUE-s5.VALUE)/(s2.VALUE+s3.VALUE-s4.VALUE-s5.VALUE)))*100,2) cache_hit_percent FROM v s y s s t a t s 1 , v sysstat s1, v sysstats1,vsysstat s2, v$sysstat s3,

v s y s s t a t s 4 , v sysstat s4, v sysstats4,vsysstat s5
WHERE s1.NAME=‘physical reads’ AND s2.NAME=‘consistent gets’
AND s3.NAME=‘db block gets’ AND s4.NAME=‘physical reads direct (lob)’ AND s5.NAME=‘physical reads direct’) a,
(select round(100*(1-sum(misses)/sum(gets)),2) latch_ratio_percent from v l a t c h ) b , ( s e l e c t r o u n d ( 100 ∗ c . p i n R A T I O / b . t o t a l , 2 ) p i n r a t i o n p e r c e n t , r o u n d ( 100 ∗ ( a . g e t r a t i o / b . t o t a l ) , 2 ) g e t r a t i o p e r c e n t f r o m ( s e l e c t s u m ( p i n h i t r a t i o ) p i n r a t i o f r o m v latch) b, (select round(100*c.pin_RATIO/b.total,2) pin_ration_percent, round(100*(a.get_ratio/b.total),2) get_ratio_percent from ( select sum(pinhitratio) pin_ratio from v latch)b,(selectround(100c.pinRATIO/b.total,2)pinrationpercent,round(100(a.getratio/b.total),2)getratiopercentfrom(selectsum(pinhitratio)pinratiofromvLIBRARYCACHE) c,(select sum(gethitratio) get_ratio from v L I B R A R Y C A C H E ) a , ( s e l e c t c o u n t ( ∗ ) t o t a l f r o m v LIBRARYCACHE) a, (select count(*) total from v LIBRARYCACHE)a,(selectcount()totalfromvLIBRARYCACHE) b) d,(select round(100*(1-sum(getmisses)/sum(gets)),2) rowcache_hitratio from v r o w c a c h e ) e , ( S E L E C T r o u n d ( 100 ∗ s 1. V A L U E / ( s 2. V A L U E + s 1. V A L U E ) , 2 ) m e m s o r t p e r c e n t F R O M v rowcache ) e, (SELECT round(100*s1.VALUE/(s2.VALUE+s1.VALUE),2) mem_sort_percent FROM v rowcache)e,(SELECTround(100s1.VALUE/(s2.VALUE+s1.VALUE),2)memsortpercentFROMvsysstat s1 ,v$sysstat s2 WHERE s1.NAME=‘sorts (memory)’ AND s2.NAME=‘sorts (disk)’)f-- 10g

select a.cache_hit_percent,e.rowcache_hitratio,d.pin_ration_percent,d.get_ratio_percent,

f.mem_sort_percent ,b.latch_ratio_percent from
(SELECT ROUND((1-((s1.VALUE-s4.VALUE-s5.VALUE)/(s2.VALUE+s3.VALUE-s4.VALUE-s5.VALUE)))*100,2) cache_hit_percent FROM v s y s s t a t s 1 , v sysstat s1, v sysstats1,vsysstat s2, v$sysstat s3,

v s y s s t a t s 4 , v sysstat s4, v sysstats4,vsysstat s5
WHERE s1.NAME=‘physical reads’ AND s2.NAME=‘consistent gets’
AND s3.NAME=‘db block gets’ AND s4.NAME=‘physical reads direct (lob)’ AND s5.NAME=‘physical reads direct’) a,
(select round(100*(1-sum(misses)/sum(gets)),2) latch_ratio_percent from v l a t c h ) b , ( s e l e c t r o u n d ( 100 ∗ c . p i n R A T I O / b . t o t a l , 2 ) p i n r a t i o n p e r c e n t , r o u n d ( 100 ∗ ( a . g e t r a t i o / b . t o t a l ) , 2 ) g e t r a t i o p e r c e n t f r o m ( s e l e c t s u m ( p i n h i t r a t i o ) p i n r a t i o f r o m v latch) b, (select round(100*c.pin_RATIO/b.total,2) pin_ration_percent, round(100*(a.get_ratio/b.total),2) get_ratio_percent from ( select sum(pinhitratio) pin_ratio from v latch)b,(selectround(100c.pinRATIO/b.total,2)pinrationpercent,round(100(a.getratio/b.total),2)getratiopercentfrom(selectsum(pinhitratio)pinratiofromvLIBRARYCACHE) c,(select sum(gethitratio) get_ratio from v L I B R A R Y C A C H E ) a , ( s e l e c t c o u n t ( ∗ ) t o t a l f r o m v LIBRARYCACHE) a, (select count(*) total from v LIBRARYCACHE)a,(selectcount()totalfromvLIBRARYCACHE) b) d,(select round(100*(1-sum(getmisses)/sum(gets)),2) rowcache_hitratio from v r o w c a c h e ) e , ( S E L E C T r o u n d ( 100 ∗ s 1. V A L U E / ( s 2. V A L U E + s 1. V A L U E ) , 2 ) m e m s o r t p e r c e n t F R O M v rowcache ) e, (SELECT round(100*s1.VALUE/(s2.VALUE+s1.VALUE),2) mem_sort_percent FROM v rowcache)e,(SELECTround(100s1.VALUE/(s2.VALUE+s1.VALUE),2)memsortpercentFROMvsysstat s1 ,v$sysstat s2 WHERE s1.NAME=‘sorts (memory)’ AND s2.NAME=‘sorts (disk)’)f

–3、产看内存配置,查看内存配置是否合理(结合查询到的各种指标,初步判断内存是否合理)
–9i
SELECT NAME,ROUND(VALUE/1024/1024) size_M FROM v$parameter WHERE NAME IN
(‘java_pool_size’,‘large_pool_size’,‘shared_pool_size’,‘log_buffer’,‘db_cache_size’,

‘pga_aggregate_target’,‘sga_max_size’,‘db_recycle_cache_size’,

‘db_keep_cache_size’)

ORDER BY size_m DESC;–10g
select component,current_size/1024/1024 cur_size_M ,max_size/1024/1024
max_size_M from v$sga_dynamic_components

– 4、查询三个top10sql语句,发现执行次数最多、内存、硬盘读取量大的sql,根据address查询在系统中的执行计划,是否需要进一步优化
select '硬盘读取量最大的top '||rownum t1_id,sql_disk_reads,disk_reads,address from (select sql_text sql_disk_reads ,disk_reads from v$sqlarea order by disk_reads desc)

where rownum<11
union all
select '高速缓冲区使用最大的top '||rownum t2_id ,sql_buffer_gets ,buffer_gets,address from (select sql_text sql_buffer_gets,buffer_gets from v$sqlarea order by

buffer_gets desc) where rownum<11
union all
select '执行次数最多的top '||rownum t3_id ,sql_executions ,executions,address from (select sql_text sql_executions,executions from v$sqlarea order by executions desc)

where rownum<11

–根据address查询在系统中的执行计划(真实执行计划),这个不同set autotrace on(这个是预执行计划,真实情况不一定,
–这也是很多时候我们执行很好,但实际效率较低不得其解的原因)

select lpad(’ ‘, 2*(level-1))||operation||’ '||decode(id, 0, ‘Cost = ‘||position) “OPERATION”,options, object_name
from v$sql_plan
start with (address =’’ and id=0 )
connect by prior id = parent_id
and prior address = address
and prior hash_value = hash_value
and prior child_number = child_number
order by id, position ;

–5、查询系统运行较长的sql语句,该语句能将多数的耗费资源的sql抓取到

select q.sql_text,s.elapsed_seconds,s.start_time,s.opname from v s e s s i o n l o n g o p s s , v session_longops s, v sessionlongopss,vsqlarea q where s.sql_hash_value=q.hash_value order by s.ELAPSED_SECONDS desc;

–根据address查询在系统中的执行计划,是否需要优化

select lpad(’ ‘, 2*(level-1))||operation||’ '||decode(id, 0, ‘Cost = ‘||position) “OPERATION”,options, object_name
from v$sql_plan
start with (address =’’ and id=0 )
connect by prior id = parent_id
and prior address = address
and prior hash_value = hash_value
and prior child_number = child_number
order by id, position ;

–6、找到需要优化的sql语句,尝试优化,查看执行计划(set autotrace traceonly),直到满意为止

–7、查看各个表空间的使用状况,注意收益率超过80%的表空间
SELECT tablespace_name,ROUND(used_percent,2) used_percent,ROUND(total_M,2) total_M,ROUND(used_M,2) used_M FROM (
SELECT d.tablespace_name , NVL(SUM(used_blocks),0)*8/1024 used_M,
SUM(blocks)*8/1024 total_m ,NVL(SUM(used_blocks),0)*100/SUM(blocks) used_percent
FROM v s o r t s e g m e n t v , d b a t e m p f i l e s d W H E R E d . t a b l e s p a c e n a m e = v . t a b l e s p a c e n a m e ( + ) G R O U P B Y d . t a b l e s p a c e n a m e U N I O N A L L S E L E C T t s . N A M E t a b l e s p a c e n a m e , t s . s i z e M − f s . s i z e M u s e d M , t s . s i z e M t o t a l M , ( t s . s i z e M − f s . s i z e M ) / t s . s i z e M ∗ 100 u s e d p e r c e n t F R O M ( S E L E C T t s . N A M E , S U M ( b y t e s ) / 1024 / 1024 s i z e M F R O M v sort_segment v ,dba_temp_files d WHERE d.tablespace_name=v.tablespace_name(+) GROUP BY d.tablespace_name UNION ALL SELECT ts.NAME tablespace_name, ts.size_M-fs.size_M used_M , ts.size_M total_M ,(ts.size_M-fs.size_M)/ts.size_M*100 used_percent FROM (SELECT ts.NAME ,SUM(bytes)/1024/1024 size_M FROM v sortsegmentv,dbatempfilesdWHEREd.tablespacename=v.tablespacename(+)GROUPBYd.tablespacenameUNIONALLSELECTts.NAMEtablespacename,ts.sizeMfs.sizeMusedM,ts.sizeMtotalM,(ts.sizeMfs.sizeM)/ts.sizeM100usedpercentFROM(SELECTts.NAME,SUM(bytes)/1024/1024sizeMFROMvdatafile df,v$tablespace ts WHERE df.ts#=ts.ts# GROUP BY ts.NAME ) ts , (SELECT tablespace_name ,SUM(bytes/1024/1024) size_M
FROM DBA_FREE_SPACE GROUP BY tablespace_name ) fs WHERE ts.NAME=fs.tablespace_name ) ORDER BY used_percent DESC;–8、查看最大的前10大字段(查看前10的最大字段),是不是耗费资源的sql都是和这些大段有关Select * from (Select segment_name,bytes/1024/1024
size_M,segment_type,tablespace_name from dba_segments order by bytes desc ) where rownum<11文章来源地址https://www.toymoban.com/news/detail-856114.html

到了这里,关于oracle快速定位数据库瓶颈的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 华为云数据库 RDS for MySQL 的读写分离,凭什么打破企业数据瓶颈?

    随着云2.0时代的到来,众多企业发现人工智能、大数据算法能为企业发展带来巨大的利润,人工智能、大数据算法等计算机算法被应用于企业的生产和发展,云+业务逐渐成为现代化企业发展的潮流,对传统数据库模式提出了挑战。 企业的业务从线下发展到线上,这就使得服

    2024年02月22日
    浏览(50)
  • 数据库数据恢复-Oracle数据库数据恢复案例

    数据库数据恢复环境: Oracle数据库ASM磁盘组有4块成员盘。 数据库故障分析: Oracle数据库ASM磁盘组掉线 ,ASM实例无法挂载,用户联系我们要求恢复oracle数据库。 数据库数据恢复工程师拿到磁盘后,先将所有磁盘以只读方式进行扇区级别的镜像备份,后续的数据分析和数据恢

    2024年02月13日
    浏览(64)
  • Oracle数据库

    ①层次型数据库 ②网状型数据库 ③关系型数据库(主要介绍) E-R图:属性(椭圆形),实体(矩形),联系(菱形-一对一、一对多、多对多) 注:有的联系也有属性 关系型数据库的设计范式: 第一范式(1NF):属性不可再分,字段保证原子性 第二范式(2NF):在满足1

    2024年02月08日
    浏览(57)
  • Oracle 数据库恢复删除的数据

    需求描述: 同事让删除脏数据,结果删错了,需要恢复数据 思路: 利用闪回恢复数据只能恢复15分钟之内的,后面undo空间会被重写,就恢复不了,所以删除数据后,要谨慎再三确认,若发现不对,则利用闪回恢复 先查询删除时的时间节点的快照 查到时间戳之后 闪回恢复数

    2024年01月24日
    浏览(68)
  • 【数据库】日常使用PL/SQL 登录ORACLE 数据库查询数据

    一、PL/SQL 登录方式 username: ##访问数据库的账号 password: ##访问数据库的密码 Databse: ##数据库IP地址/实例名 数据库集群心跳地址/实例名 Connect as : ##Normal,如果使用sysdba账户登录选择SYSDBA 二、PL/SQL使用SQL语句查询 点击上方导航栏,New,选择SQL Window,即可再次输入要查询的

    2024年02月19日
    浏览(68)
  • Oracle数据库面试题 精选 Oracle 面试题

    1.解释冷备份和热备份的不同点以及各自的优点 冷备份 发生在数据库已经正常关闭的情况下,将关键性文件拷贝到另外位置的一种说法。适用于所有模式的数据库。 优点 1. 是非常快速的备份方法(只需拷贝文件) 2. 容易归档(简单拷贝即可) 3. 容易恢复到某个时间点上(只

    2024年02月05日
    浏览(99)
  • 【Oracle】收集Oracle数据库内存相关的信息

    【声明】文章仅供学习交流,观点代表个人,与任何公司无关。 编辑|SQL和数据库技术(ID:SQLplusDB) Oracle数据库包含多个内存区域,每个区域都包含多个子组件。 Oracle Database Memory Structures 根据具体问题的需要,可以通过如下命令收集Oracle数据库内存相关的信息。 例: 注:SET

    2024年01月21日
    浏览(67)
  • Oracle数据库概念简介

    一般意义上的数据库包含两个部分 库:就是一个存储一堆文件的文件目录 数据库管理系统:管理库的系统 数据库管理系统(Database Management System),是一种操纵和管理数据库的大型软件,用于建立、使用和维护数据库,简称 DBMS ; 它对数据库进行统一的管理和控制,以保证数

    2024年02月09日
    浏览(49)
  • Oracle数据库完整卸载

    进入计算机管理,在服务中,找到oracle开头的所有服务,右击选择停止。 快捷键:ctrl+shift+esc打开任务管理器 点击开始菜单找到Oracle,然后点击Oracle安装产品,再点击Universal Installer。 点击之后稍等一会然后会进入进入下图界面,点击卸载产品。 单击“卸载产品”,选中除“Or

    2024年01月16日
    浏览(63)
  • Oracle大型数据库技术

    sqlplus 记录实验过程的方法: 开启相关服务 oracleserviceORCL 控制面板–管理–服务–找到后开启 命令行方法: cmd–net start|stop oracleserviceorcl 常用操作 显示当前用户名 常用的用户名和口令 :dba用户,默认口令:change_on_install,Oraclell,必须以sysdba或者sysoper身份登录 system: 普通管

    2024年02月19日
    浏览(47)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包