`
dbaspider
  • 浏览: 257648 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Oracle SQLs

阅读更多
SELECT SYS_CONTEXT ('USERENV', 'IP_ADDRESS')  FROM DUAL;


declare
  /* */
begin
  dbms_auto_task_admin.DISABLE('auto optimizer stats collection', null, null);
end;
/



begin
  DBMS_AUTO_TASK_ADMIN.disable( client_name => 'auto optimizer stats collection', operation => NULL, window_name => NULL);
  DBMS_AUTO_TASK_ADMIN.disable( client_name => 'auto space advisor', operation => NULL, window_name => NULL);
  DBMS_AUTO_TASK_ADMIN.disable( client_name => 'sql tuning advisor', operation => NULL, window_name => NULL);
end;
/


call dbms_stats.gather_database_stats_job_proc (  )

select * from DBA_AUTOTASK_OPERATION




select sysdate from dual
union all
select current_date from dual
union all
select systimestamp from dual;


select * from v$timezone_names;

ALTER DATABASE SET TIME_ZONE = '+8:00';

select * from database_properties where property_name='DBTIMEZONE';
select * from database_compatible_level;
select * from database_export_objects;
select database_name from dual;
select dbtimezone from dual;


0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics