- 论坛徽章:
- 0
|
1, 创建新的临时表空间(先在本地借用本地磁盘)
SQL>create temporary tbalespace temp4
2 tempfile ‘/home/oracle/temp3.dbf’
3 size 512M
2,把新建的临时表空间设置成默认的临时表空间
SQL>alter database default temporary tablespace temp4
3,确认目前数据库的默认临时表空间
SQL>select * form database_properties
Where property_name=’DEFAULT_TEMP_TABLESPACE’;
4,重新启动一次数据库确保没有运行在Temp表空间里面的SQL语句
5,删除原来的Temp表空间
SQL>drop tablespace temp including contents and datafiles;
6,在重新建立新的临时表空间,并使用原来的逻辑卷
SQL>create temporary tablespace temp
2 tempfile ‘/dev/vg_ora/cw_temp’
3 size 30719M;
将新建的临时表空间的数据文件定位于原来的逻辑卷上,这样不必做双机上的卷组信息同步。
7,把信件的temp表空间更改成数据库的默认临时表空间
SQL>alter database default temporary tablespace temp;
8,删除临时创建在本地磁盘上的临时表空间
SQL>drop tablespace temp4 including contents and datafiles;
这样就重新生成一个全新30G的临时表空间,原来在Temp 表空间下创建的几个数据文件也一并删除。
更改pga 的内存大小
alter system set pga_aggregate_target=1500m scope=both sid='*';
更改Sort 区域的内存大小
alter system set sort_area_size=10240000 scope=both sid='*';
更改共享池的内存大小
alter system set shared_pool_size=1000m scope=both sid='pcgcw2';
更改large池的内存大小
alter system set large_pool_size=256m scope=both sid='*';
1,修改2# /home/oracle/init.jsl
2, SQL> create spfile='/dev/vg_ora/rcw_spfile' from pfile='/home/oracle/init.jsl';
更改large池的内存大小后重新启动数据库。
问题解决咯,,呵呵。。。。 |
|