首页 > 数据库 >DBCA库安装后sql语句优化

DBCA库安装后sql语句优化

时间:2023-04-03 16:47:47浏览次数:41  
标签:语句 spfile set system sql scope alter DBCA

SQL plus下运行:

alter system set deferred_segment_creation=false scope=spfile;
alter system set event= '10949 trace name context forever, level 1' scope=spfile;
alter system set remote_dependencies_mode='SIGNATURE';
alter system set "_serial_direct_read"=never;

alter system set "_partition_large_extents"=false;
alter system set filesystemio_options=asynch scope=spfile;
alter system set "_enable_NUMA_optimization"=false scope=spfile;
alter system set "_gc_policy_time"=0 scope=spfile;
alter system set open_cursors=5000 scope=spfile;
alter system set session_cached_cursors=2000 scope=spfile;
alter system set open_links=150 scope=spfile;
alter system set open_links_per_instance=150 scope=spfile;

alter system set control_file_record_keep_time=45 scope=spfile;
alter profile default limit password_life_time unlimited;
alter profile default limit failed_login_attempts unlimited;
--密码过期及登录10次锁定限制更改

--关闭sql优化顾问
begin
dbms_auto_task_admin.disable
(
client_name => 'sql tuning advisor',
operation => null,
window_name => null
);
end;
/

col action_time for a35
col comments for a25
select action_time,id,comments from dba_registry_history;

@?/rdbms/admin/catbundle.sql psu apply

标签:语句,spfile,set,system,sql,scope,alter,DBCA
From: https://www.cnblogs.com/Gatsbysun/p/17283486.html

相关文章

  • MYSQL中CAST函数
    MYSQL中CAST函数CAST函数用于将值从一种转换数据类型的方法语法:SELECTCAST(xAStype);x:要处理的数据type:要转换的数据类型,取值下方表格type取值值描述DATE将value转换成'YYYY-MM-DD'格式TIME将value转换成'HH:MM:SS'格式DATETIME将value转换......
  • SQL server增删改查
    1、添加字段altertable表名add字段名typenotnulldefault02、修改字段名altertable表名renamecolumnAtoB3、修改字段类型altertable表名altercolumnUnitPricedecimal(18,4)notnull4、修改字段默认值altertable表名dropconstraint约束名字  -----......
  • SQLSERVER查看加密存储过程
    --解密存储过程CREATE  PROCEDUREsp_decrypt(@objectNamevarchar(50))ASbeginsetnocounton--CSDN:j9988copyright:2004.04.15--V3.1--破解字节不受限制,适用于SQLSERVER2000存储过程,函数,视图,触发器--修正上一版视图触发器不能正确解密错误--发现有错,请E_MAIL:CSDNj9......
  • SQLSERVER stuff函数截取
    一个列的格式是单引号后面跟着4位的数字,比如’0003,’0120,’4333,我要转换成3,120,4333这样的格式,就是去掉单引号和前导的0,用以下语句就可以。SELECTstuff(substring([当前组织],2,4),1,patindex('%[^0]%',substring([当前组织],2,4))-1,''),人员编码 例如:SELECTdistinctst......
  • C语言逆向——switch语句中的大表和小表,本质上是内在存储空间降低
    连续值中抹去多项CPP代码:#include"stdafx.h"voidFun(intx){ switch(x){ case100: printf("100"); break; case101: printf("101"); break; case102: printf("102"); break; case106: printf("......
  • 七、sql索引
    索引的作用拿汉语字典的目录页(索引)打比方,我们可以按拼音、笔画、偏旁部首等排序的目录(索引)快速查找到需要的字。索引分单列索引和组合索引。单列索引,即一个索引只包含单个列,一个表可以有多个单列索引,但这不是组合索引。组合索引,即一个索引包含多个列。创建索引时,你需要确保该索......
  • SQL SERVER 截取字符
    1、LOCATE(substr,str):返回子串substr在字符串str中第一次出现的位置,如果字符substr在字符串str中不存在,则返回0;2、POSITION(substrINstr):返回子串substr在字符串str中第一次出现的位置,如果字符substr在字符串str中不存在,与LOCATE函数作用相同;3、LEFT(str,length):从左边开始截取......
  • DML语句
    DML添加数据:1.给指定字段添加数据:insertinto表名(字段名1,字段名2...)values(值1,值2...);2.给全部字段添加数据:insertinto表名values(值1,值2...);3.批量添加数据:insertinto表名(字段名1,字段名2...)values(值1,值2...),(值1,值2...),(值1,值2...)...;insertinto表名values(值1,值2.........
  • C# 后台服务监控SQL Server数据库表改动并同步到MySQL数据库表
    需求将A服务器的sqlserver数据库item_mst表的数据同步到MySQL数据库Part表监控Item_mst表中item,description,overview的更改并同步到MySQL数据库 针对需求一,基本就是执行一次,单独写了个winform用来做这事针对需求二,写了个Windowsserviceapp Nuget安装 Dapper就是个ormSeril......
  • 零基础Go语言从入门到精通(数据库编程:02-Gorm 操作 MySQL 数据库)
    gin-gorm-api-example/main.goatmaster·cgrant/gin-gorm-api-example·GitHubhttps://github.com/cgrant/gin-gorm-api-example/blob/master/main.goGorm介绍ThefantasticORMlibraryforGolangGo语言的超棒的ORM类库功能强大:全功能ORM(几乎)关联(包含一个,包含多个,属......