greenZ

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Oracle

摘要:https://www.oracle.com/index.html 阅读全文
posted @ 2020-10-24 14:06 绿Z

摘要:【oracle】【demo】利用dbms_sql包执行动态SQL 【建表】 --drop table t_employee cascade constraints; --drop table t_employee_salary cascade constraints; create table t_ 阅读全文
posted @ 2020-03-13 22:44 绿Z

摘要:【oracle】处理oracle用户密码中的特殊字符$和@ 1.创建测试用户 create user testdb identified by "testdb@"; grant connect,resource to testdb; grant unlimited tablespace,create 阅读全文
posted @ 2019-09-19 15:53 绿Z

摘要:【oracle】【demo】sqlldr --建表 create table t_student ( id integer, name varchar2(64), age int ); desc t_student; --查看数据库服务端字符集 select * from v$nls_paramet 阅读全文
posted @ 2019-03-05 17:26 绿Z

摘要:【oracle】【demo】批量造数据 方式1:使用 dbms_random函数 和 connect by level 执行insert语句多次 示例: create sequence seq_id minvalue 1001 start with 1001 nomaxvale increment 阅读全文
posted @ 2018-04-05 18:41 绿Z

摘要:select * from nls_database_parameters where parameter = 'NLS_LANGUAGE';select * from nls_session_parameters where parameter = 'NLS_DATE_LANGUAGE'; 阅读全文
posted @ 2018-04-05 18:40 绿Z

摘要:——oracleinterval(numtoyminterval(1,'MONTH')) 阅读全文
posted @ 2018-04-05 18:39 绿Z

摘要:20150225_Oracle_去重.sql参考:http://wenku.baidu.com/view/0a362b2003d8ce2f006623e4.html create table t_distinct(c1 integer,c2 varchar2(50)); select t.*,t.r 阅读全文
posted @ 2018-04-05 16:45 绿Z

摘要:20150225_Oracle_分组.sql参考:http://wenku.baidu.com/view/225568538bd63186bdebbc23.html --1. group by rollup语句 与 group by语句--写法1selectbrand_code,code_id,co 阅读全文
posted @ 2018-04-05 16:43 绿Z

摘要:——Oracle性能_sql的写法--写法1case 表达式when 常量 then else end case;--写法2case when 表达式 thenelse end case;说明: 写法1 的性能优于 写法2。 阅读全文
posted @ 2018-04-05 16:42 绿Z

摘要:sqlplus /nologconn zzhtest/zzhtest@ssa_234SQL>select syadate from dual;SQL>ed --保存最近一次执行的sql语句wrote file afiedt.buf 阅读全文
posted @ 2018-04-05 16:40 绿Z

摘要:oracle并行查询:ORACLE 并行(PARALLEL)实现方式及优先级 http://blog.itpub.net/15747463/viewspace-1064687 阅读全文
posted @ 2018-04-05 16:39 绿Z

摘要:修改表名alter table <table_old> rename to <table_new>; 修改变字段名alter table <table> rename column <column_old> to <column_new>; 阅读全文
posted @ 2018-04-05 16:39 绿Z

摘要:STA(SQL Tuning Advisor):STA能快速定位性能瓶颈,从而为性能优化提供准确的依据。 --查看待优化sql的执行时间set serveroutput on;set timing on;set linesize 1000;--待执行的sql 创建 并 执行 STAset serve 阅读全文
posted @ 2018-04-05 16:38 绿Z

摘要:——补充 ORACLE动态语句create or replace procedure prc_test(iv_brand_code in varchar2,ov_result out varchar2)isvv_sql varchar2(100);begin--动态语句写法1. execute im 阅读全文
posted @ 2018-04-05 12:24 绿Z

摘要:linux下卸载oracle11方法 http://wenku.baidu.com/view/aa4b60f6f90f76c661371aa6.html?from=search 阅读全文
posted @ 2018-04-05 12:21 绿Z

摘要:查看字符占用字节selectuserenv('language'),dump('我'),length('我'), --字符数lengthb('我'), --字节数vsize('我')from dual; 说明:OS的环境变量 NLS_LANG会影响 lengthb() 的结果。 阅读全文
posted @ 2018-04-05 12:18 绿Z

摘要:Oracle中的Temporary tablespace的作用 http://www.cnblogs.com/guanjie20/p/3858480.html 阅读全文
posted @ 2018-04-05 12:17 绿Z

摘要:--oracle连续登录失败10次锁定账号select * from dba_profiles t where tresource_name='FAILED_LOGIN_ATTEMPTS';alter profile default limit FAILED_LOGIN_ATTEMPTS 10;al 阅读全文
posted @ 2018-04-05 12:16 绿Z

摘要:F 20160106 oracle 几个小点 oracle 调试 存储过程1.执行:1)选中 过程名,右击——Test 2)子程序调用 2.重新编译:选中 过程名,右击——Recompile3.日志设计异常返回 sqlcode,sqlerrminsert到日志表 3.debug过程打断点:Test或 阅读全文
posted @ 2018-04-05 12:12 绿Z