In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
If necessary, DBA can manually create, delete, or modify snapshots through the DBMS_WORKLOAD_REPOSITORY process.
-- prompt that DBA permission is required to call the DBMS_WORKLOAD_REPOSITORY package.
-1. Manually create Snapshots manually create Snapshots through the DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT process
-- for example
Exec dbms_workload_repository.create_snapshot ()
-- you can then view the Snapshots information you just created through the DBA_HIST_SNAPSHOT view.
SELECT * FROM DBA_HIST_SNAPSHOT
-- 2 manually delete Snapshots
Deleting Snapshots is another procedure that uses the DBMS_WORKLOAD_REPOSITORY package DROP_SNAPSHOT_RANGE, which can be executed by specifying the scope of the snap_id to delete more than one Snapshot at a time
-- for example
Select count (0) from dba_hist_snapshot where snap_id between 6770 and 6774
Select max (snap_id) from dba_hist_snapshot
Select dbid from v$database
Exec dbms_workload_repository.drop_snapshot_range (low_snap_id = > 6770Gravity snapshots id = > 6774 Magi dbid = > 4059638244)
-- or
Begin
Dbms_workload_repository.drop_snapshot_range (
Low_snap_id = > 6770
High_snap_id = > 6774
Dbid = > 4059638244)
End
Select count (0) from dba_hist_snapshot where snap_id between 6770 and 6774
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.