<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    waterye

    #

    RMAN維護命令

    使用RMAN進行備份和恢復(fù)的常用命令

    連接到目標數(shù)據(jù)庫(不用恢復(fù)目錄數(shù)據(jù)庫)
    rman target / nocatalog

    顯示rman配置
    RMAN> show all;

    報告目標數(shù)據(jù)庫的物理結(jié)構(gòu)
    RMAN> report schema;

    報告陳舊備份
    RMAN> report obsolete;

    報告不可恢復(fù)的數(shù)據(jù)文件
    RMAN> report unrecoverable;

    列出備份信息
    RMAN> list backup;

    RMAN> list backup of database;

    RMAN
    > list backup of tablespace table_name;

    RMAN
    > list backup of controlfile;

    RMAN
    > list backup of spfile;

    RMAN
    > list backupset id;

    核對備份
    RMAN> crosscheck backup;

    RMAN
    > crosscheck backup of database;

    RMAN
    > crosscheck backup of tablespace system;

    RMAN
    > crosscheck backup of controlfile;

    RMAN
    > crosscheck backup of spfile;

    刪除備份
    RMAN> delete obsolete; -- 刪除陳舊備份

    RMAN
    > delete expired backup

    RMAN
    > delete backupset id;

    RMAN
    > delete backup-- 刪除所有備份

    改變備份集的狀態(tài)
    RMAN> change backupset id unavailable; -- available

    改為長期備份
    RMAN> change backupset id keep forever logs;

    RMAN
    > change backupset id keep until time 'sysdate+60' logs;

    RMAN
    > change backupset id nokeep;

    posted @ 2005-10-20 21:13 waterye 閱讀(953) | 評論 (0)編輯 收藏

    控制文件

    控制文件記載了數(shù)據(jù)庫的物理結(jié)構(gòu)及其狀態(tài), 還有備份和恢復(fù)相關(guān)的動態(tài)信息.

    查看控制文件
    col name format a50
    select * from v$controlfile;

    修改控制文件
    alter system set control_files='D:\oradata\testdb\control01.ctl','D:\oradata\testdb\control02.ctl','D:\oradata\testdb\control03.ctl' scope=spfile;

    建立控制文件副本
    alter database backup controlfile to 'd:\backup\testdb.ctl' reuse;

    備份到跟蹤文件, 方便重建控制文件
    alter database backup controlfile to trace;
    -- 查看存放路徑
    show parameter user_dump_dest
    select a.spid from v$process a, v$session b where a.addr = b.paddr and b.username = 'SYS';

    通過rman恢復(fù)控制文件
    -- 備份前配置自動備份control file
    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    -- 恢復(fù)
    startup force nomount;
    set dbid=1092712345;
    restore controlfile from autobackup;
    alter database mount;
    alter database open resetlogs;

    查看dbid
    select dbid from v$database;

    posted @ 2005-10-20 12:55 waterye 閱讀(356) | 評論 (0)編輯 收藏

    Quake 4

    備受關(guān)注的《Quack 4》已經(jīng)上市.



    vc:http://lib.verycd.com/2005/10/19/0000070259.html

    最低配置:
    操作系統(tǒng):Windows 2000/XP
    CPU:Pentium 4 2.0 GHz 或 Athlon XP 2000+
    內(nèi)存:512MB
    光驅(qū):8x CD-ROM
    硬盤:400MB空閑空間
    DirectX版本:DirectX 9.0
    顯卡:顯存64MB以上,支持DirectX 9.0的3D顯卡,ATi Radeon 9700 或nVIDIA GeForce 3 / TI系列


    看來要準備升級老古董了, 也可以享受HDTV。

    posted @ 2005-10-19 20:50 waterye 閱讀(2284) | 評論 (3)編輯 收藏

    重做日志

    重做日志記錄著數(shù)據(jù)庫的變化情況, 在archivelog模式下, 當重做日志寫滿時, 會轉(zhuǎn)移到歸檔日志, 而在noarchivelog模式下, 重做日志會被覆蓋.

    查看重做日志
    col member format a40
    select * from v$logfile;

    增加日志成員
    alter database add logfile member 'c:\ORADATA\TESTDB\REDO01_2.LOG' to group 1'c:\ORADATA\TESTDB\REDO02_2.LOG' to group 2'c:\ORADATA\TESTDB\REDO03_2.LOG' to group 3;

    重做日志不必備份,重建方法
    startup mount;
    recover databse until cancel;
    alter database open resetlogs;

    posted @ 2005-10-17 23:19 waterye 閱讀(348) | 評論 (0)編輯 收藏

    use jakarta-commons email

    requires jar: commons-email-1.0.jar, mail.jar, activation.jar

    1. send text mail
    SimpleEmail email = new SimpleEmail();
    email.setHostName(
    "211.154.104.29");
    email.setAuthentication(
    "water@itorgan.com", password);
    email.addTo(
    "waterye@gmail.com""Water Ye");
    email.setFrom(
    "water@itorgan.com""Water Ye");
    email.setSubject(
    "Test message");
    email.setMsg(
    "This is a simple test of commons-email");
    email.send();
    中文問題:
    // email.setMsg("測試郵件");
    email.setCharset("UTF-8");
    email.setContent(
    "測試郵件""text/plain;charset=GBK");
    SimpleEmail封得太過簡單, 看代碼就知道了.

    2. Sending email with attachments
    // Create the attachment
    EmailAttachment attachment = new EmailAttachment();
    attachment.setPath(
    "C:/mail/hello.groovy");
    attachment.setDisposition(EmailAttachment.ATTACHMENT);
    attachment.setDescription(
    "hello.groovy");
    attachment.setName(
    "hello.groovy");

    // Create the email message
    MultiPartEmail email = new MultiPartEmail();
    email.setHostName(
    "211.154.104.29");
    email.setAuthentication(
    "water@itorgan.com", password);
    email.addTo(
    "waterye@gmail.com""Water Ye");
    email.setFrom(
    "water@itorgan.com""Water Ye");
    email.setSubject(
    "hello groovy");
    email.setMsg(
    "groovy hello world");

    email.attach(attachment);   
    // add the attachment
    email.send();   // send the email

    3. send html email
    // Create the email message
    HtmlEmail email = new HtmlEmail();
    email.setHostName(
    "211.154.104.29");
    email.setAuthentication(
    "water@itorgan.com", password);
    email.addTo(
    "waterye@gmail.com""Water Ye");
    email.setFrom(
    "water@itorgan.com""Water Ye");
    email.setSubject(
    "Test email with inline image");

    // embed the image and get the content id
    URL url = new URL("http://www.itorgan.com/images/index/top1.gif");
    String cid 
    = email.embed(url, "Itorgan logo");

    email.setHtmlMsg(
    "<html>The itorgan logo - <img src=\"cid:" + cid + "\"></html>"); // set the html message

    email.setTextMsg(
    "Your email client does not support HTML messages"); // set the alternative message

    email.send();


    martin xus已寫過, 就不發(fā)布到首頁了

    posted @ 2005-09-30 16:42 waterye 閱讀(574) | 評論 (0)編輯 收藏

    在spring應(yīng)用中生成excel, pdf

    參考spring-framework-1.2.5\samples\countries
    1. install
    1). c:\> ant all
    2). copy "dist\countries.war" to "tomat_home\webapps\"
    3). http://localhost:8080/countries

    2. Getting Started
    1). Controller

    String excelView = "countries_excelView";
    public ModelAndView handleExcel(HttpServletRequest request, HttpServletResponse response) throws ServletException {
            RefreshablePagedListHolder listHolder 
    =
                    (RefreshablePagedListHolder) request.getSession(
    true).getAttribute(COUNTRIES_ATTR);
            
    if (listHolder == null{
                
    throw new ServletException("No countries list found in session");
            }

            
    return new ModelAndView(this.excelView, "countries", listHolder);
        }
    2). Excel View
    public class CountriesExcelView extends AbstractExcelView {
        
    }
    3). properties
    countries_excelView.class=org.springframework.samples.countries.web.CountriesExcelView

    3. 深入了解
    org.springframework.web.servlet.view.document.AbstractExcelView (by POI)
    org.springframework.web.servlet.view.document.AbstractJExcelView (by JExcelApi)
    參考spring-framework-1.2.5\test\org\springframework\web\servlet\view\document

    posted @ 2005-09-29 12:50 waterye 閱讀(2379) | 評論 (0)編輯 收藏

    jsf ide

    1. Intellij IDEA
    只有smart code, 對managed bean無效
    Using MyFaces in IntelliJ IDEA

    2. EXADEL STUDIO Pro 3.0.4 (eclipse plugin):
    缺點:
    1). 商業(yè)產(chǎn)品
    2). 對pc性能要求較高
    3). 會生成垃圾代碼
    優(yōu)點:
    1). gui desinger
    User Guide

    3. JDeveloper
    除非選擇adf, 否則不會使用

    4. Sun Java Studio Creator
    不考慮使用

    posted @ 2005-09-28 20:56 waterye 閱讀(1685) | 評論 (6)編輯 收藏

    清除google搜索欄中的歷史記錄

    1. Open:  Internet Options --> Content --> AutoComplete

    2. Click button:  'Clear Forms' and 'Clear Passwords'

    posted @ 2005-09-28 00:55 waterye 閱讀(4190) | 評論 (8)編輯 收藏

    flashback table

    Oracle 10g 增加回收站功能

    錯誤drop table后可以flashback回來

    SQL> flashback table test to before drop;

    posted @ 2005-09-27 19:50 waterye 閱讀(436) | 評論 (0)編輯 收藏

    因為Seam, 被jboss玩了一天

    Seam is an application framework for Java EE 5 which unifies the component models of JSF and EJB 3.0, providing a streamlined programming model for web-based enterprise applications. Seam lets you bind your EJB components directly to JSF pages, eliminating noisy glue code.

    下載jboss-seam-1.0beta1.zip后, 將里面的sample deploy到j(luò)boss-4.0.3RC2, 不成功.

    因為很少玩jboss, 還以為是自己的deploy有問題, 搞了一天, 原來是jboss-4.0.3RC2不支持Seam.

    在jira上找到了解決方法: http://jira.jboss.com/jira/browse/JBSEAM-82


    結(jié)論:  Open Source的東西, 出問題時, 找jira就沒錯.

    posted @ 2005-09-23 16:05 waterye 閱讀(2438) | 評論 (5)編輯 收藏

    僅列出標題
    共18頁: First 上一頁 10 11 12 13 14 15 16 17 18 下一頁 
    主站蜘蛛池模板: 中国一级毛片免费看视频| 免费看国产一级片| 日本特黄特色免费大片| 亚洲最新在线视频| 中国毛片免费观看| 亚洲免费视频播放| 91免费在线播放| 国产亚洲精品a在线观看app| 四虎影院永久免费观看| 国产成人高清精品免费观看| 日韩中文无码有码免费视频 | 久久久久免费看黄A片APP| 亚洲AV一宅男色影视| 中文字幕免费在线观看动作大片 | 亚洲av日韩综合一区二区三区 | 日本免费福利视频| 四虎国产成人永久精品免费| 自拍偷自拍亚洲精品被多人伦好爽| 亚洲欧美日韩中文无线码 | 亚洲男人的天堂在线播放| 中文字幕在线视频免费观看| 亚洲狠狠成人综合网| 成人人观看的免费毛片| 国产亚洲男人的天堂在线观看| 四虎影视在线永久免费看黄| 99ee6热久久免费精品6| 亚洲电影在线免费观看| 女人被免费视频网站| 久久午夜伦鲁片免费无码| 免费无码婬片aaa直播表情| 亚洲成亚洲乱码一二三四区软件| 国产午夜成人免费看片无遮挡 | 亚洲免费视频一区二区三区| 国产一级高清免费观看| 9420免费高清在线视频| 一本天堂ⅴ无码亚洲道久久| 免费羞羞视频网站| 一级做a爰片久久毛片免费看| 国产亚洲成AV人片在线观黄桃| 好男人看视频免费2019中文| 巨波霸乳在线永久免费视频 |