欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

oracle審計怎么清理,oracle賬務(wù)處理

oracle數(shù)據(jù)庫怎么清除用戶下所有表

1.首先使用ORACLE系統(tǒng)用戶登錄PL/SQL管理工具。

10年的山陽網(wǎng)站建設(shè)經(jīng)驗,針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。成都營銷網(wǎng)站建設(shè)的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整山陽建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗。創(chuàng)新互聯(lián)從事“山陽網(wǎng)站設(shè)計”,“山陽網(wǎng)站推廣”以來,每個客戶項目都認真落實執(zhí)行。

2.在SQL腳本中,編寫和執(zhí)行SQL語句來刪除表空間的表空間名稱。

3.如果希望清理用戶下的所有數(shù)據(jù)庫表,可以執(zhí)行以下語句,刪除用戶名cascade。

4.當執(zhí)行上述語句時,它將顯示在它正在執(zhí)行的級別以下。

5.執(zhí)行之后,可以使用刪除的用戶登錄PL/SQL。

6.如果有彈出提示,說明刪除成功。

oracle 11g開審計 文件過大怎么管理

Oracle 的審計實在是雞肋,審計日志增加猛速,而且加大系統(tǒng)負荷,降低系統(tǒng)性能。

依我們在生產(chǎn)系統(tǒng)的作法就是禁用審計,禁用后清除審計日志。

處理方法:

1、查看審計功能是否開啟

sqlplus?"/as?sysdba"

SQL?show??parameter??audit;

NAME??????????TYPE????VALUE

--------------------?????-------????--------------------------------

audit_file_dest?????????string???/u01/app/oracle/admin/ORCL/adump

audit_sys_operations???boolean???TRUE

audit_syslog_level????string

audit_trail???????string???DB

說明:表明審計功能為開啟的狀態(tài)

2、關(guān)閉oracle的審計功能

SQL?alter??system??set?audit_sys_operations=FALSE??scope=spfile;

System?altered.

SQL?alter?system?set??audit_trail=NONE??scope=spfile;

System?altered.

3、重啟數(shù)據(jù)庫

SQL?shutdown?immediate;

SQL?startup;

4、驗證審計是否已經(jīng)被關(guān)閉

SQL?show?parameter?audit;

NAME??????????TYPE????VALUE

--------------------?????-------????--------------------------------

audit_file_dest?????????string???/u01/app/oracle/admin/ORCL/adump

audit_sys_operations???boolean???FALSE

audit_syslog_level????string

audit_trail???????string???NONE

說明:表明審計功能為關(guān)閉的狀態(tài)

5、清空審計表數(shù)據(jù)

SQL??truncate??table?SYS.AUD$;

如何徹底清理oracle數(shù)據(jù)文件

Oracle提供了刪除數(shù)據(jù)庫的指令:drop database。

需要數(shù)據(jù)庫處于mount狀態(tài),然后alter system enable restricted session;,網(wǎng)上有帖子說還需要exclusive,由于我是VM裝的,用戶只有我一個,所以不用可以。由于當前處于open狀態(tài),需要改為mount,執(zhí)行:

SQL alter database close;

alter database close

*

ERROR at line 1:

ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected

原因是有個session仍連接,退出后再次執(zhí)行,

SQL alter database close;

Database altered.

SQL select status from v$instance;

STATUS

------------

MOUNTED

SQL alter system enable restricted session;

System altered.

SQL select status from v$instance;

STATUS

------------

MOUNTED

SQL drop database;

Database dropped.

此時alert.log記錄信息:

Create Relation ADR_CONTROL

Create Relation ADR_INVALIDATION

Create Relation INC_METER_IMPT_DEF

Create Relation INC_METER_PK_IMPTS

USER (ospid: 8748): terminating the instance

Instance terminated by USER, pid = 8748

Deleted Oracle managed file /opt/app/ora11g/oradata/BISAL/controlfile/o1_mf_9x4fgq77_.ctl

Deleted Oracle managed file /opt/app/ora11g/flash_recovery_area/BISAL/controlfile/o1_mf_9x4fgypb_.ctl

Completed: drop database

Shutting down instance (abort)

License high water mark = 2

Fri Jul 25 19:09:26 2014

Instance shutdown complete

到oradata路徑下看已經(jīng)沒有任何文件了,那么認為這個數(shù)據(jù)庫已經(jīng)被刪除。

但再次執(zhí)行dbca,企圖創(chuàng)建相同實例的庫時報錯:

雖然和bisal實例關(guān)聯(lián)的數(shù)據(jù)文件、日志文件等已經(jīng)物理刪除了,但和這實例相關(guān)的配置文件沒有刪除,因此不能再次創(chuàng)建相同實例的庫。

此時需要手工刪除實例相關(guān)的配置:

1、刪除$ORACLE_BASE/admin/$ORACLE_SID所有目錄。

2、刪除$ORACLE_HOME/dbs下和SID相關(guān)的文件和參數(shù)文件,包括hc_bisal.dat,init.ora,lkBISAL,orapwbisal。

3、刪除/etc/oratab中和實例相關(guān)的部分。

4、可以在$ORACLE_HOME中執(zhí)行find . -name bisal,刪除所有和實例相關(guān)的文件。

再次執(zhí)行dbca,就可以創(chuàng)建相同實例名稱的數(shù)據(jù)庫了。

如何將oracle徹底卸載干凈

卸載Oracle總體分為三步 1.主程序的卸載 2.殘留文件的刪除 3.注冊表清理

1.主程序卸載只要運行 Oracle OraDB11g_home1--Oracle安裝產(chǎn)品--Universal Installerd

程序運行起來后 ,選擇卸載產(chǎn)品進去下面的頁子

如上圖選擇,如果你安裝了Client 也將client文件夾選中。

然后就是等待 當進度走完后我們的第一步就完成了。

2.硬板上殘留文件的卸載。

Oracle在安裝時會安裝到你的系統(tǒng)盤和你安裝時所選的主程序安裝盤,以我的系統(tǒng)為例Oracle分別安裝在我的C盤和G盤。

C:\Program Files (x86)\Oracle 與 G:\app 這兩個文件夾及其子文件全部刪除。中間會提示,有的文件程序正在使用無法刪除,我們稍后再來管它。

到此刪除殘留文件就大部分完成了。

3.刪除注冊表

在 開始--搜索中輸入regedit 打開注冊表編輯器

如上所示 所有 services 文件夾下 所有帶“Oracle”的文件全部刪除。重新啟動計算機,在去刪除 第二步中沒有刪除的殘留文件。

到此Oracle已經(jīng)徹底的從你的計算機上刪除了

oracle數(shù)據(jù)庫怎么清空

我覺得還是概念不清析,問題不太明白呀。

所果只是簡單的清空表的話,還是很容易的。

drop table TABLE_NAME ; //連表結(jié)構(gòu)都刪了。

要是清空內(nèi)容,留著表結(jié)構(gòu),就是:

truncate tablename; // 就可以了。

如果是數(shù)據(jù)庫表文件要刪的話,就不和你說了。

如何關(guān)閉Oracle11g數(shù)據(jù)庫的審計功能

在oracle11g中,數(shù)據(jù)庫的審計功能是默認開啟的(這和oracle10g的不一樣,10g默認是關(guān)閉的),

oracle11gR2的官方文檔上寫的是錯的,當上說default是none,而且是審計到DB級別的,這樣就會

往aud$表里記錄統(tǒng)計信息。

1.如果審計不是必須的,可以關(guān)掉審計功能;

SQL show parameter audit_trail;

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------

audit_trail string DB

SQL alter system set audit_trail=none scope=spfile;

SQL shut immediate;

SQLstartup

2.刪除已有的審計信息

可以直接truncate表aud$,

truncate table SYS.AUD$;

3.或者將aud$表移到另外一個表空間下,以減少system表空間的壓力和被撐爆的風險。

附:11g中有關(guān)audit_trail參數(shù)的設(shè)置說明:

AUDIT_TRAIL

Property Description

Parameter type String

Syntax AUDIT_TRAIL = { none | os | db [, extended] | xml [, extended] }

Default value none

Modifiable No

Basic No

AUDIT_TRAIL enables or disables database auditing.

Values:

none

Disables standard auditing. This value is the default if the AUDIT_TRAIL parameter was not set

in the initialization parameter file or if you created the database using a method other than

Database Configuration Assistant. If you created the database using Database Configuration

Assistant, then the default is db.

os

Directs all audit records to an operating system file. Oracle recommends that you use the os

setting, particularly if you are using an ultra-secure database configuration.

db

Directs audit records to the database audit trail (the SYS.AUD$ table), except for records

that are always written to the operating system audit trail. Use this setting for a general

database for manageability.

If the database was started in read-only mode with AUDIT_TRAIL set to db, then Oracle Database

internally sets AUDIT_TRAIL to os. Check the alert log for details.

db, extended

Performs all actions of AUDIT_TRAIL=db, and also populates the SQL bind and SQL text CLOB-type

columns of the SYS.AUD$ table, when available. These two columns are populated only when this

parameter is specified.

If the database was started in read-only mode with AUDIT_TRAIL set to db, extended, then Oracle

Database internally sets AUDIT_TRAIL to os. Check the alert log for details.

xml

Writes to the operating system audit record file in XML format. Records all elements of the

AuditRecord node except Sql_Text and Sql_Bind to the operating system XML audit file.

xml, extended

Performs all actions of AUDIT_TRAIL=xml, and populates the SQL bind and SQL text CLOB-type columns

of the SYS.AUD$ table, wherever possible. These columns are populated only when this parameter

is specified.

You can use the SQL AUDIT statement to set auditing options regardless of the setting of this

parameter.

分享題目:oracle審計怎么清理,oracle賬務(wù)處理
標題路徑:http://chinadenli.net/article12/dsejigc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊做網(wǎng)站網(wǎng)站內(nèi)鏈網(wǎng)頁設(shè)計公司企業(yè)網(wǎng)站制作品牌網(wǎng)站設(shè)計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站