- 打卡等级:无名新人
- 打卡总天数:5
- 打卡月天数:3
- 打卡总奖励:20
- 最近打卡:2024-11-13 21:14:02
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
本帖最后由 stonys 于 2022-2-16 10:15 编辑
WINDOWS:
- CREATE TABLESPACE NNC_DATA01 DATAFILE 'D:\app\Administrator\oradata\orcl\nnc_data01.dbf' SIZE 500M AUTOEXTEND ON NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;
- CREATE TABLESPACE NNC_INDEX01 DATAFILE 'D:\app\Administrator\oradata\orcl\nnc_index01.dbf' SIZE 500M AUTOEXTEND ON NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;
- CREATE USER nc65 IDENTIFIED BY nc65 DEFAULT TABLESPACE NNC_DATA01 TEMPORARY TABLESPACE temp;
- GRANT connect,dba to nc65;
复制代码
Linux:
- CREATE TABLESPACE NNC_DATA01 DATAFILE '/data/oracle/app/oradata/orcl/nnc_data01.dbf' SIZE 500M AUTOEXTEND ON NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K;
- CREATE TABLESPACE NNC_INDEX01 DATAFILE '/data/oracle/app/oradata/orcl/nnc_index01.dbf' SIZE 500M AUTOEXTEND ON NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K;
- CREATE USER nc65 IDENTIFIED BY nc65 DEFAULT TABLESPACE NNC_DATA01 TEMPORARY TABLESPACE temp;
- GRANT connect,dba to nc65;
复制代码
表空间超过32G,为表空间增加一个数据文件:
- alter tablespace NNC_DATA01 add datafile '/data/oracle/oradata/orcl/nnc_data02.dbf' size 500m autoextend on next 200m maxsize 32767m;
- alter tablespace NNC_INDEX01 add datafile '/data/oracle/oradata/orcl/nnc_index02.dbf' size 500m autoextend on next 200m maxsize 32767m;
复制代码
修改ORACLE参数以适应用友NC65:
- alter system set "_optimizer_cartesian_enabled"=false;
- alter system set "_b_tree_bitmap_plans"=false;
- alter system set "_optimizer_skip_scan_enabled"=false;
- alter system set deferred_segment_creation=false scope=both;
- alter system set use_indirect_data_buffers=false scope=spfile;
- alter system set event= '10949 trace name context forever, level 1' scope=spfile;
- alter system set audit_trail=none scope=spfile;
- alter system set "_optimizer_group_by_placement"=false scope=both;
- alter system set optimizer_index_cost_adj =40;
- alter system set optimizer_dynamic_sampling=4;
- alter system set db_writer_processes = 5 scope=spfile;
- alter system set open_cursors = 2000 scope=spfile;
- alter system set processes = 500 scope=spfile;
- BEGIN
- DBMS_AUTO_TASK_ADMIN.disable(
- client_name => 'sql tuning advisor',
- operation => NULL,
- window_name => NULL);
- END;
- /
复制代码
|
|