C#调用存储过程实现Oracle数据库数据到XML文件的转换

需要解析的xml文件:people.xml:

猪猪

山东济南
18653111111 zsy214@163.com

阅读全文

编写Oracle存储过程,按照条件把数据导出至XML文件


需要解析的xml文件:people.xml
1
2 3 4 Tony Blair 5
10 Downing Street, London, UK
6 (061) 98765 7 (061) 98768 8 blair@everywhere.com 9
10 11 Bill Clinton 12
White House, USA
13 (001) 6400 98765 14 (001) 6400 98769 15 bill@everywhere.com 16
17 18 Tom Cruise 19
57 Jumbo Street, New York, USA
20 (001) 4500 67859 21 (001) 4500 67895 22 cruise@everywhere.com 23
24 25 Linda Goodman 26
78 Crax Lane, London, UK
27 (061) 54 56789 28 (061) 54 56772 29 linda@everywhere.com 30
31

阅读全文

编写Oracle存储过程解析XML,并把数据持久化

需要解析的xml文件:people.xml

 1 
 2 
 3     
 4         Tony Blair
 5         
10 Downing Street, London, UK
6 (061) 98765 7 (061) 98768 8 blair@everywhere.com 9
10 11 Bill Clinton 12
White House, USA
13 (001) 6400 98765 14 (001) 6400 98769 15 bill@everywhere.com 16
17 18 Tom Cruise 19
57 Jumbo Street, New York, USA
20 (001) 4500 67859 21 (001) 4500 67895 22 cruise@everywhere.com 23
24 25 Linda Goodman 26
78 Crax Lane, London, UK
27 (061) 54 56789 28 (061) 54 56772 29 linda@everywhere.com 30
31

阅读全文

win7系统下通过命令行的形式打开某个端口

netsh advfirewall firewall add rule name="Oracle" dir=in protocol=tcp localport=* action=allow

其中*就是要打开的端口号

Oracle 10g java.lang.Exception: Exception in sending Request :: null

创建EM时,提示的端口号,应为实例的断口号,比如1521,不是EM的端口号(比如1158)EM的端口号在这个文件中可以查到10.2.0\db_1\sysman\config\emca.properties

然后,进行em后,界面出来了,但报了一个错:java.lang.Exception: Exception in sending Request :: null

很多功能不能用,提示重新登录

解决方案:找到下面的文件“$ORACLE_HOME\db_1\$HOSTNAME\sysman\config\emd.properties”

其中的agentTZRegion缺省是GMT,改为你所在的时区即可,例如:

agentTZRegion=Asia/Shanghai

关于设置时区的列表参考:“10.2.0\db_1\sysman\admin\supportedtzs.lst”

然后先停止dbconsole 在重启dbconsole :

set ORACLE_SID=orcl

emctl stop dbconsole

emctl start dbconsole

重新登陆,OK!