需要解析的xml文件:people.xml:
编写Oracle存储过程,按照条件把数据导出至XML文件
需要解析的xml文件:people.xml
1
23 4 10Tony Blair 5 10 Downing Street, London, UK 6(061) 98765 7(061) 98768 8blair@everywhere.com 911 17Bill Clinton 12 White House, USA 13(001) 6400 98765 14(001) 6400 98769 15bill@everywhere.com 1618 24Tom Cruise 19 57 Jumbo Street, New York, USA 20(001) 4500 67859 21(001) 4500 67895 22cruise@everywhere.com 2325 31Linda Goodman 26 78 Crax Lane, London, UK 27(061) 54 56789 28(061) 54 56772 29linda@everywhere.com 30
编写Oracle存储过程解析XML,并把数据持久化
需要解析的xml文件:people.xml
1 23 4 10Tony Blair 5 10 Downing Street, London, UK 6(061) 98765 7(061) 98768 8blair@everywhere.com 911 17Bill Clinton 12 White House, USA 13(001) 6400 98765 14(001) 6400 98769 15bill@everywhere.com 1618 24Tom Cruise 19 57 Jumbo Street, New York, USA 20(001) 4500 67859 21(001) 4500 67895 22cruise@everywhere.com 2325 31Linda Goodman 26 78 Crax Lane, London, UK 27(061) 54 56789 28(061) 54 56772 29linda@everywhere.com 30
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!