易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : Oracle

创建oracle访问mysql的数据链路步骤

(1)登陆到mysql
C:\Documents and Settings\Administrator>mysql -h localhost -u root -p
Enter password: *****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 69
Server version: 5.0.51a-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
(2)创建数据库
mysql> create database oracle;
Query OK, 1 row affected (0.00 sec)
(3)创建被访问的mysql用户
mysql> grant all privileges on oracle.* to 'orauser'@'%' identified by 'orauser'
with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
(4)登陆该用户,并测试
C:\Documents and Settings\Administrator>mysql -h localhost -u orauser -p
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 70
Server version: 5.0.51a-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use oracle ......

创建oracle访问mysql的数据链路步骤

(1)登陆到mysql
C:\Documents and Settings\Administrator>mysql -h localhost -u root -p
Enter password: *****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 69
Server version: 5.0.51a-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
(2)创建数据库
mysql> create database oracle;
Query OK, 1 row affected (0.00 sec)
(3)创建被访问的mysql用户
mysql> grant all privileges on oracle.* to 'orauser'@'%' identified by 'orauser'
with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
(4)登陆该用户,并测试
C:\Documents and Settings\Administrator>mysql -h localhost -u orauser -p
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 70
Server version: 5.0.51a-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use oracle ......

Oracle两表(多表)关联update的写法

update customers a
   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)
   where  exists (select 1
                  from   tmp_cust_city b
                  where  b.customer_id=a.customer_id
                 )
   -- update 超过2个值
   update customers a 
   set    (city_name,customer_type)=(select b.city_name,b.customer_type
                                     from   tmp_cust_city b
 & ......

ORACLE临时表的使用

oracle做查询语句的时候,类似select id in (xxxx,xxxx.....)这样的语句最大只支持2000个值,如果对应得值上万行,如该如何处理了。
这时候应该采用临时表。建一个临时表,把数据导入进去。查询时候联表查询既可。(以上是我工作中遇到的一个需求) ......

学习oracle第一周总结

    从上周开始,我下载了小布老师的讲课视频,开始了学习ORACLE的计划。
    学习ORACLE的目的,一方面是提高自己的技术能力,工作上经常可以用得到(虽然不是专门DBA的工作,但是经常需要使用数据库作为报表统计分析的工具);另一方面,也是为跳槽做好技术能力的储备,现在的工作已经快让我变成了温水中的青蛙,如果不掌握点技能,就会完全失去跳动的能力。
     在开始听视频讲座之前,我所使用的数据库是MSSQL SERVER的产品,oracle也接触过,但是没有完全系统地学习过。而这次看视频,给我很大的感触--学oracle,光看书不行,一定要不断地反复地实践操作。
     从安装vmware的虚拟机,安装centos系统,到安装oracle11g,都需要耐心而仔细地去操作。可能在操作的过程中,会遇到各种各样的问题,这些问题会影响着你的情绪,而通过小布老师耐心的讲解,你会慢慢发现,遇到问题并不是一件多么沮丧的事情,遇到问题你才会去努力想办法解决它,所以,其实遇到问题也是一种学习的机会,它可以加深你对它的认识。比如,在安装好了centos后,需要把安装oracle11g的文件,传到虚拟机上,小布老师使用 ......

Oracle 9i中的XMLTYPE应用学习

oracle从9i开始支持一种新的数据类型---- xmltype,用于存储和管理xml数据,并提供了很多的functions,用来直接读取xml文档和管理节点。下面将介绍xmltype的一些基本使用。
1.建立含有xmltype数据类型的表
create table abc (id number,xmldoc sys.xmltype);
声明xmltype型字段用:sys.xmltype
2.向带有xmltype类型的表插入带有数据
insert into abc (id,xmldoc) value (abc.nextval , sys.xmlType.createXML(''<name><a id="1" value="some values">abc</a></name>'') );
插入用 sys.xmlType.createXML(''some xml doc'')
3.直接查询xmltype字段里面的内容
得到id=1的value变脸的值
select i.xmldoc.extract(''//name/a[@id=1]/@value'').getStringVal() as ennames, id from abc i
得到a节点的值
select id, i.xmldoc.extract(''//name/a/text()'').getStringVal() as truename from abc i
得到节点id属性的值
Select hd.Data_t.extract(''/root/name/@id'').getStringVal()    As Name from sehr_house_data hd
4.更新xmltype里面的数据
update abc set xmldoc=updateXML(xmldoc,''//name/a[@id=1]/@value'',''s ......

oracle视频教程(内部经典)_讲 师:王治国


下载地址:
http://www.itsoba.com/Article.asp?id=847
视频介绍:
本套ORACLE视频教程为传智播客内部经典教学视频的一集,后续视频正在录制和整理中,敬请关注。  
讲师介绍:
王治国,有多年软件开发经验和教学经验,先后在多家软件公司担任软件工程师、项目经理,精通J2SE、J2ME、J2EE、Linux、Oracle、SqlServer等。擅长大型电子商务网站和电子政务的设计与开发,Linux下大型应用软件的开发以及异构系统整合等。先后参与的项目有:证券在线交易系统,基于java的医疗保健系统,SP短信、彩铃增值服务的设计与开发,发改委内部办公系统,手机游戏的开发与移植并成功解决港澳系统数据传输问题,参与银联在线交易系统的开发等等。曾在全国多所城市(济南,石家庄,北京,沈阳,长春,哈尔滨)巡讲 J2EE、Oracle、Linux等相关课程。
视频目录:
01
系统权限管理
02
对象权限
03
权限传递
04
角色管理
05
三种登陆验证机制
06
帐户管理细节
更多ORACLE视频会不断推出!!!!!!
......
总记录数:3994; 总页数:666; 每页6 条; 首页 上一页 [350] [351] [352] [353] 354 [355] [356] [357] [358] [359]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号