Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java´úÂëÁ¬½Óµ½oracleÊý¾Ý¿â

package com.deng.oracle;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class TestOracle {
public static void main(String[] args) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
//System.out.println("ÓÐÊý¾Ý¿âÇý¶¯");
String url = "jdbc:oracle:thin:@127.0.0.1:1521:orcl";
Connection conn;
try {
conn = DriverManager.getConnection(url, "scott", "tiger");
Statement stmt = conn.createStatement();
String sql = "select * from emp";
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
System.out.println("ENAME: " + rs.getString(2));
}
} catch (SQLException e) {
e.printStackTrace();
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}

Ê×ÏÈ, ÔÚclasspath»·¾³±äÁ¿Ï¼ÓÔØoracleµÄÊý¾Ý¿âÇý¶¯: classes12.jar»òÕßÊÇojdbc14.jar, È»ºó¼ÓÔظ÷¸öSQLµÄÀà, ±àдurl, Õâ¸öurlÊÇjdbc:oracle:thin:@127.0.0.1:1521:orcl, ÆäÖÐ1521ÊǶ˿ںÅ, orclÊÇÊý¾Ý¿âµÄSID, Õâ¸öSID¿ÉÒÔÔÚ×¢²á±íÖв鿴µÃµ½, cmdà regedit, ÔÚ×¢²á±íÖÐHKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0¼üÖµORACLE_SID¿ÉÒÔ¿´µ½Õâ¸öSID: orcl.


Ïà¹ØÎĵµ£º

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
  
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......

Oracle±í¿Õ¼ä¹ÜÀí

extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î»      --segment    management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......

JavaµÄÄÚ´æй©

JavaµÄÄÚ´æй©
===========================================================
×÷Õß: shwenwen(http://shwenwen.itpub.net)
·¢±íÓÚ: 2009.06.04 10:38
·ÖÀà: java¿ª·¢¼¼Êõ
³ö´¦: http://shwenwen.itpub.net/post/34911/485404
---------------------------------------------------------------
²»¹ÜÓÃjava C++ ......

javaͼƬÑéÖ¤Âë

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutpu ......

ÊÕ¼¯µ½µÄjava ÕýÔòÑéÖ¤ Ô´Âë


import java.util.regex.*;   
  
public final class RegExpValidator   
{   
    /**  
     * ÑéÖ¤ÓÊÏä  
     * @param ´ýÑéÖ¤µÄ×Ö·û´®   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ