jdbc中调用oracle存储过程
1、创建表:
create table stud(
sid int,
sname varchar2(50)
)
并插入一条数据
insert into stud values(1,'Tom')
2、创建存储过程
--创建存储过程
create or replace procedure pro_select_name(
v_sid in stud.sid%type,
v_sname out stud.sname%type
)
--声明区
is
--执行体
begin
select sname into v_sname from stud where sid = v_sid;
--异常处理
exception
when others then
dbms_output.put_line(sqlcode||sqlerrm);
end;
3、jdbc中调用
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Types;
public class TestPro {
public void test(){
Connection con = null;
CallableStatement cst = null;
try{
 
相关文档:
解决Oracle EM无法启动
ORACLE 11g, EM 无法启动的问题,可能是IP更改了的原因,所以我使用了EMCA命令重新配置了一下ORACLE EM,具体过程如下:
I:\Documents and Settings\geshaoqing>emca -config dbcontrol db -repos recreate
EMCA 开始于 2007-10-12 11:16:40
EM Configuration Assistant 10.2.0.1.0 正式 ......
视图
创建新表:create table emp2 as select * from emp;
create view empv20 as select empno,ename,job,hiredate,deptno from emp where deptno=20 with check option;
语法:create or replace view 视图名称 as 子查询(修改之后的子查询)
替换视图(修改)
create or replace view empv20 as select empno,ename, ......
移动表所在表空间:
alter table table_name(表名) move tablespace new_tablespace(新表空间)
用户拥有的存储过程:
select object_name from user_objects where object_type='PROCEDURE'; ......
Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for Windows NT/2000/XP
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk1.zip
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk2.zip
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk3.zip
Oracle9i ......
ACCESS数据库
1:CodeSmith选中链接类型是:ADOXSchema
2:无密码的Access链接为:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\hh\db.mdb;
3:有密码的Access链接:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\hh\db.mdb;
Jet OLEDB:Database Password=1111
Sql数据库
server=192.1.1.14;User ID=test; ......