日期:2014-05-17  浏览次数:21116 次

通过浏览器怎么访问Oracle服务呢!!?
通过浏览器怎么访问Oracle服务呢!!?


------解决方案--------------------
一个简单的例子
<% Connection con = null; 
Statement stmt = null; 
ResultSet rs = null; 
try { 
Class.forName("oracle.jdbc.driver.OracleDriver"); 
con = DriverManager.getConnection( 
"jdbc:oracle:thin:@localhost:1521:abc", "LIJIE", "abc"); 
stmt = con.createStatement(); 
rs = stmt.executeQuery("SELECT * FROM USER"); 
while (rs.next()){ %>
<%=rs.getString(1)%> 
<%
out.println(rs.getString(1));

}

} catch (ClassNotFoundException ex) { 
} catch (SQLException e) { 
e.printStackTrace(); 

%>
------解决方案--------------------
你问的是EM管理界面么?这个如果是WINDOWS,要启动oracledbconsoleorcl服务,然后在浏览器中输入

https://机器名:1158/em