日期:2011-01-25 22:55:00 来源:本站整理
Oracle10G常用保护语句-入门底子[Oracle防范]
本文“Oracle10G常用保护语句-入门底子[Oracle防范]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
1 成立表空间
CREATE TABLESPACE CPORTAL LOGGING DATAFILE '/dev/raw/raw1' SIZE 30000M REUSE EXTENT MANAGEMENT LOCAL |
2 成立用户
CREATE USER CPORTAL PROFILE DEFAULT IDENTIFIED BY CPORTAL DEFAULT |
3 参数改正
ALTER SYSTEM SET sga_target = 1000M SCOPE=SPFILE; ALTER SYSTEM SET pga_aggregate_target = 200M SCOPE=SPFILE; ALTER SYSTEM SET OPEN_CURSORS=500 SCOPE=SPFILE; ALTER SYSTEM SET processes=200 SCOPE=SPFILE; ALTER SYSTEM SET remote_login_passwordfile = NONE SCOPE=SPFILE; create pfile from spfile; -- ============================================================== -- Modify the other oracle parameter! -- -- ============================================================== ALTER DATABASE TEMPFILE '/opt/oracle/oradata/cportal/temp01.dbf' RESIZE 1024M; ALTER DATABASE DATAFILE '/opt/oracle/oradata/cportal/undotbs01.dbf' RESIZE 1024M; ALTER DATABASE DATAFILE '/opt/oracle/oradata/cportal/undotbs01.dbf' AUTOEXTEND ON MAXSIZE 10240M |
4 查看表空间名称和大小
select t.tablespace_name,round(sum(bytes/(1024*1024)),0) ts_size from dba_tablespaces t dba_data_files d where t.tablespace_name = d.tablespace_name group by t.tablespace_name; |
5 查看表空间的利用情形
select sum(bytes)/(1024*1024) as free_space,tablespace_name from dba_free_space group by tablespace_name; |
6、查看表空间物理文件的名称及大小
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name; |
7、查看数据库库对象
select owner, object_type, status, count(*) count# from all_objects group by owner, object_type, status; |
8、查看掌握文件
select name from v$controlfile; |
9、查看日记文件
select member from v$logfile; |
10 .完毕用户会话
alter system kill session 'SID,SERIAL#'; select sid,serial#,username,program,machine,status from v$session; |
以上是“Oracle10G常用保护语句-入门底子[Oracle防范]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论