當(dāng)前位置:首頁 > IT技術(shù) > 數(shù)據(jù)庫 > 列表
數(shù)據(jù)庫 共有 171201 個(gè)文章

Oracle 查看 rman 備份情況 SQL 語句

    RMAN 備份是 Oracle 數(shù)據(jù)庫中最常用的一種備份方式!可以直接通過 rman 客戶端來查看備份情況,也可以通過rman備份視圖來查看備份情況。SQL語句如下:set line222col pagesize1000col status for a10col input_type for a20col INPUT_BYTES_DISPLAY for a10col OU...[繼續(xù)閱讀]

數(shù)據(jù)庫

SQL Server Profiler 性能分析工具使用

    1. SSMS-->工具---》 SQL Server Profiler :??????2. 設(shè)置跟蹤屬性,填寫相關(guān)信息???3. 設(shè)置【事件選擇】?jī)?nèi)容,根據(jù)圖中的提示,勾選相關(guān)內(nèi)容即可?4.??在【事件選擇】頁面繼續(xù)勾選顯示DatabaseName列,方便顯示被跟蹤數(shù)據(jù)庫:???...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 數(shù)據(jù)泵遷移用戶創(chuàng)建 SQL語句

    在進(jìn)行數(shù)據(jù)泵遷移時(shí),通常是按照用戶進(jìn)行導(dǎo)入導(dǎo)出,因此需要確認(rèn)當(dāng)前數(shù)據(jù)庫中存在那些非系統(tǒng)用戶!查看數(shù)據(jù)庫中用戶狀態(tài)為 OPEN 的用戶:select username,account_status,created,PROFILE from dba_users where account_status='OPEN' order by creat...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 查詢表空間使用率 SQL 語句

    Oracle 數(shù)據(jù)庫的表空間如果使用超過100%,會(huì)導(dǎo)致數(shù)據(jù)庫無法使用,因此需要及時(shí)擴(kuò)展!通過 sql 查詢當(dāng)前數(shù)據(jù)庫所有表空間的使用率:set line222col pagesize1000col TABLESPACE_NAME for a40select tbs_used_info.tablespace_name, tbs_used_info.alloc_mb, ...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 查看數(shù)據(jù)庫文件 SQL語句

    Oracle 數(shù)據(jù)庫文件主要分為:表空間數(shù)據(jù)文件(包括臨時(shí)表空間和UNDO表空間)控制文件日志文件(包括重做日志和standby日志)可以通過 SQL 來查詢:set line222col pagesize1000select name from v$datafile union allselect name from v$tempfile union allselect...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle DataGuard 備庫配置閃回模式

    Oracle 數(shù)據(jù)庫閃回通常設(shè)置在 DataGuard 備庫,如果主庫誤刪數(shù)據(jù),可用備庫閃回至刪除點(diǎn)之前,獲取丟失數(shù)據(jù),然后再自動(dòng)同步回來!注意: 主庫不建議開啟閃回,首先影響性能,其次主庫不可能為了某些數(shù)據(jù)去做閃回,所以很雞肋...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 數(shù)據(jù)庫遷移一鍵創(chuàng)建源庫表空間 SQL語句

    ?? 獲取需要遷移的用戶可以參考:Oracle 數(shù)據(jù)泵遷移用戶創(chuàng)建 SQL語句首先通過用戶來獲取遷移需要的表空間名稱:SELECT distinct ''''|| t.tablespace_name||''',' From dba_segments t WHERE t.owner in ('需要遷移的用戶名&...[繼續(xù)閱讀]

數(shù)據(jù)庫

SQL基礎(chǔ)

    SQL可以分為兩部分1.DDL數(shù)據(jù)定義語言 DDL= Data Definition LanguageSQL中常用的DDL語句:create database - 創(chuàng)建新的數(shù)據(jù)庫create table - 創(chuàng)建新的數(shù)據(jù)庫表alter table - 變更(改變)數(shù)據(jù)庫表drop table - 刪除表2.DML數(shù)據(jù)操作語言 DML = Data Manipulation Langu...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 調(diào)整密碼管理策略 PROFILES

    查看當(dāng)前使用的profile:set pages0set line222col profile for a20col resource_name for a30col resource_type for a20col limit for a20select * from dba_profiles order by 1;啟用密碼管理:@?/rdbms/admin/utlpwdmg.sql調(diào)整密碼策略:alter profile default limit password_life_time unlimite...[繼續(xù)閱讀]

數(shù)據(jù)庫

Oracle 開啟歸檔模式

    Oracle 數(shù)據(jù)庫通常建議開啟歸檔模式,記錄數(shù)據(jù)庫操作的記錄歸檔到本地日志文件!可以通過以下命令查看是否開啟歸檔:archive log list 如圖,即已開啟歸檔!有啥好處呢?開了歸檔之后,可以 RMAN 實(shí)時(shí)備份數(shù)據(jù),配置 DataGuard 必須開...[繼續(xù)閱讀]

數(shù)據(jù)庫