user_dependencies_trigger_view_package_body依赖
SQL> create view v_e_teacherloginfo as select * from e_teacherlogininfo;View created.SQL> select name,type,referenced_owner,referenced_name,dependency_type from user_dependencies;NAME &n...
oracle存储过程plsql_sp_多个out参数测试语法
1 create or replace procedure p_dept(v_deptno number,v_dname out varchar2,v_loc out varchar2) 2 as 3 begin 4 select dname,loc into v_dname,v_loc from dept whe...
业务中出现plsql打头的表_plsql_profilter_runs
SQL> select * from tab where tname like 'PL%';TNAME &nbs...
windows 7上修改oracle10g的环境变量nls_lang
1,运行regedit2,依次展开hkey_local_machine/software/wow6430node/orac,le3,最后点选右侧的NLS_LANG,进行对应修改就可以了
在toad_plsql developer_oracle sql developer调用存储过程
http://www.nipei.com/article/10450
sql_intersect交集_minus差集_并集union_union all
intersect取二结果集的交集,且去除重复值union取二结果集的并集,且去除重复值 union all同上,但区别之处在于,不会去除重复值 minus 取二结果集的差集;大意为取结果集一不在结果集二的(,去除重复值)的结果...
配置rman备份的默认备份路径_default path
RMAN> configure channel device type disk format '/oracle/orclarch/%U_%d';new RMAN configuration parameters:CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/oracle/orclarch/%U_%d';new RMAN conf...
批量kill杀死某些会话session的plsql
SQL> r 1 declare 2 v_sid v$session.sid%type; #定义如下两个type类型,用于接收cursor 3 v_serial# v$session.serial#%type; 4 cursor cur_session is select si...
在sqlplus中调用in out输入输出参数的存储过程
1 create or replace procedure p_adjust_salary(emp_id number,sal in out number) 2 is 3 emp_job varchar2(10); 4 avg_sa...
在sqlplus中调用编写的refcursor 游标类型的存储过程
SQL> var x refcursorSQL> exec pkg_e_teacherlogininfo.p_veriry_teacher_login('1','1',:x);PL/SQL procedure successfully completed.SQL> print :xLOGINID &...
显式游标_cursor is_open_fetch_close
scott>--显式游标(定义_打开_提取_关闭)scott>declare 2 cursor c_emp is select ename from emp; 3 v_ename emp.ename%type; 4 begin 5 open c_emp; 6 ...
oracle plsql(一)_binary_float_binary_double
plsql的数据类型,用于复杂的科学计算,32bit大小 SQL> r 1 declare 2 v_pls_integer pls_integer:=-100042578; 3 begin 4 dbms_output.put_line(to_char(v_...
SP2-0678: Column or attribute type can not be displayed by SQL*Plus
SQL> select * from t_blob;SP2-0678: Column or attribute type can not be displayed by SQL*PlusSQL> desc t_blob; Name &n...
oracle plsql package_body_procedure_构建语法_sp_存储过程
SQL> create or replace package pkg_E_TEACHERLOGININFO #定义包 #包中定义各种存储过程及类型名字及输入输出参数,具体处理逻辑在包体中编写 2 3 as 4 &nb...
ultraedit_notepad文件_windows编辑工具_字符集
突然灵机一动,可以在windows上用各类工具处理后,另存为时,选择存储为指定的字符集啊,原则是与oracle的数据库字符集要一致,不然会有乱码. 再次上传用sqlplus %/oracle/from_li.sql一切ok...
oracle数据类型data type与存储空间大小(二)
SQL> desc t_col_type; Name &...
oracle数据类型data type与存储空间大小(一)
SQL> desc t_seq;####查看表结构 Name &nbs...
oracle sequence语法
SQL> create sequence seq_1 start with 1 increment by 1 nomaxvalue;Sequence created.SQL> alter sequence seq_1 cache 1000;Sequence altered.SQL> alter sequence seq_1 order;Sequence altered.SQL> des...
在rhel5上oracle 10.2.0.4 上dbca silent删除数据库
dbca -help #查看dbca命令行使用信息 -bash-3.1$ dbca -silent -deleteDatabase -sourceDB test -sysDBAUserName sys -sysDBAPassword systemConnecting to database4% complete9% complete14% ...
dbms_rowid之dbms_rowid.rowid_info存储过程使用(in out)
ROWID_INFO ProcedureThis procedure returns information about a ROWID, including its type (restricted or extended), and the components of the ROWID. This is a procedure, and it cannot be...