??xml version="1.0" encoding="utf-8" standalone="yes"?>eeuss影院www在线播放,91福利在线免费,国产永久av在线http://www.aygfsteel.com/liuyxit/׃n酸、甜、苦、Gzh-cnThu, 19 Jun 2025 04:44:34 GMTThu, 19 Jun 2025 04:44:34 GMT60对Ralasafe的三a两语http://www.aygfsteel.com/liuyxit/archive/2013/03/04/396051.html三刀の逆风三刀の逆风Mon, 04 Mar 2013 15:53:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2013/03/04/396051.htmlhttp://www.aygfsteel.com/liuyxit/comments/396051.htmlhttp://www.aygfsteel.com/liuyxit/archive/2013/03/04/396051.html#Feedback1http://www.aygfsteel.com/liuyxit/comments/commentRss/396051.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/396051.html    一D|_(d)曾搜寻过国外的一些知名安全管理,g没找到合乎心(j)意的Q就q大名鼎鼎的Spring出的SpringSecurity居然也没有这斚w的实现。所谓的 RDBMS NoSQL实现Q是如此的不堪一试?br />    ?dng)在iteye.com论坛看到q?metadminQ后来才知这是Ralasafe的前w,最l在?#8220;强大?#8221;癑ֺ下,扑ֈ?jin)Ralasafe(www.Ralasafe.cn)Q刚好是1.2W一版发布的时候?
    自然Q下载搭建,q程是O长的?
    1.是当时居然没有默认的UTF-8的支?汪兄既然是全球性的推广Qؓ(f)何不写多个filter?
    2.没有MSSQL的结构,虽然改一个数据结构不是难事,毕竟很多新手又会(x)犯很多错?jin)?
    3.后台控制界面什么的都有Q只是要嵌入已有架构中,g不是一件简单的事(嘿,估计是本人水q_Q?br />    之后加入?jin)Q,׃目都是很紧张的Q看q一部分代码后,一直没有再深入?jin)?br />
    今天在群上看到汪在跟用户谈论Ralasafe的问题,可见C֌一直还没有形成互动Q看到实在可惜?br />    所以就牢骚(d)?jin)以下一D话Q?br /> --------------------------
    对于RalasafeQ我惌几句Q刚好汪也在?br />    Ralasafe是一个很不错的安全组?因ؓ(f)屏掉原有的组Ӟ那怕是功能不好的)(j)Q启用RalasafeQ需要的是架构能力?br />    我刚接触到RalasafeӞ很是ƣ喜Q难得在国内有志之士可以做出q样好的lgQƈ可以开源。但布v试?(期间问过一个ؕ码问题)(j)Q发现要溶入我原来的架构Qƈ不理惟?br />    而这些入侉|的修改Q似乎是一直到底的Q很明显一点,是Ralasafe的DAO是自成体pR?br />    启用一个组Ӟq多的修改(感觉接口也不很明显Q,?x)导致不可预想的BUG?br />    目大都是希望快速上U的Q而我个h的情况,刚好公司采用FLEX做前端,修改量就更加?
    之前我改SpringSecurity的,只去到操作Q数据权限还没有处理。但它的接口是很明显的,用户DAO接口Q提供的权限数据接口。基本我从hibernate转到nutzQ这h改DAOQ也是一天半天的功夫?br />     于是QRalasafe被我放下?其实我也很想用v来,但实际没有时间让我深入研Iƈ修改?br />     所以我也没对Ralasafe作出什么A(ch)献?然后Q我个h认ؓ(f)RalasafeQ可提高几方面:(x)
     1.对多数据库的支持Q?.2不是不支持,而是没有其它数据库的布v文gQ新手就困难?jin)?j)?
     2.提炼用户登陆接口Q其实视图也是个好的选择Q,但接口更明显?
     3.提炼权限数据提供接口Q让其它的框架可以方便热拔插。(主要是DAO部分Q?br />     4.提炼后台l护的服务类和DAO操作接口Q这L(fng)户可以方便自己提供操作界面?
--------------------------
     而^?j)而论Q能这么好的项目开源出来,的确要很大的勇气。我惛_国外是一件很?jin)不L(fng)事,而国人的?fn)惯Q导致很多好的东西推q不h?br />     最后希望Ralasafe可以走得更远?

三刀の逆风 2013-03-04 23:53 发表评论
]]>
Flex4.5 + Blazed + JAVA出现Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url:http://www.aygfsteel.com/liuyxit/archive/2011/10/31/362416.html三刀の逆风三刀の逆风Mon, 31 Oct 2011 15:08:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2011/10/31/362416.htmlhttp://www.aygfsteel.com/liuyxit/comments/362416.htmlhttp://www.aygfsteel.com/liuyxit/archive/2011/10/31/362416.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/362416.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/362416.html

三刀の逆风 2011-10-31 23:08 发表评论
]]>
Eclipse常用插g安装地址http://www.aygfsteel.com/liuyxit/archive/2011/08/16/356621.html三刀の逆风三刀の逆风Tue, 16 Aug 2011 04:16:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2011/08/16/356621.htmlhttp://www.aygfsteel.com/liuyxit/comments/356621.htmlhttp://www.aygfsteel.com/liuyxit/archive/2011/08/16/356621.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/356621.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/356621.html

三刀の逆风 2011-08-16 12:16 发表评论
]]>
关于MySQL5的national varchar不能转ؓ(f)SQLServer2k的nvarchar解决Ҏ(gu)?/title><link>http://www.aygfsteel.com/liuyxit/archive/2011/08/15/356597.html</link><dc:creator>三刀の逆风</dc:creator><author>三刀の逆风</author><pubDate>Mon, 15 Aug 2011 15:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyxit/archive/2011/08/15/356597.html</guid><wfw:comment>http://www.aygfsteel.com/liuyxit/comments/356597.html</wfw:comment><comments>http://www.aygfsteel.com/liuyxit/archive/2011/08/15/356597.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyxit/comments/commentRss/356597.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyxit/services/trackbacks/356597.html</trackback:ping><description><![CDATA[MySQL5的national varchar不能转ؓ(f)SQLServer2k的nvarchar, 原因是Mysql5的DBMS脚本没有讑֮national varchar的{换格式? 解决Ҏ(gu)Q? 1.使用菜单database的change current DBMS...把当前PDM转ؓ(f)MySQL? 2.选择菜单database的edit current DBMS...在弹出的H口左边的树(wi)选择MySQL5->Script->DataType->PhysDataType 里面的解析PhysDataType为:(x)Data types translation table from target database data types to internal data types. 因此在右下边的{换对照表中,增加两行Q列名和值如下:(x) physical model Internal ------------------------------------ national varchar(%n) VMBT%n national char(%n) MBT%n<img src ="http://www.aygfsteel.com/liuyxit/aggbug/356597.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyxit/" target="_blank">三刀の逆风</a> 2011-08-15 23:56 <a href="http://www.aygfsteel.com/liuyxit/archive/2011/08/15/356597.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用PL/SQL自动处理logminer恢复的数?/title><link>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352606.html</link><dc:creator>三刀の逆风</dc:creator><author>三刀の逆风</author><pubDate>Sat, 18 Jun 2011 18:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352606.html</guid><wfw:comment>http://www.aygfsteel.com/liuyxit/comments/352606.html</wfw:comment><comments>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352606.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyxit/comments/commentRss/352606.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyxit/services/trackbacks/352606.html</trackback:ping><description><![CDATA[--创徏一个表来保存提取出来的sql create table logmnr_content tablespace tools as scn,cscn,TIMESTAMP,sql_undo from v$logmnr_contents where 1=0; --通过dba_objects 查到表对应的 object_id and data_object_id ,用来在log中提取该表相关的sql_undo select object_id,data_object_id from dba_objects where object_name = ??? --通过在os中找到的归档日志范围Q进行联机提? undo sql 插入一个表?比如我的日志序号范围?5813 ?5850 Z(jin)防止临时I间不Q一个一个归档日志文件处理? begin for i in 5813..5850 loop dbms_logmnr.add_logfile(LogFileName=>'/disk2/oradata/arch/crmcn/crmcn_1_'||i||'.arc'); dbms_logmnr.start_logmnr(Options => sys.dbms_logmnr.DICT_FROM_ONLINE_CATALOG); dbms_logmnr.start_logmnr(); insert into logmnr_content(scn,cscn,TIMESTAMP,sql_undo ) select scn,cscn,TIMESTAMP,sql_undo from v$logmnr_contents where DATA_OBJD# = 67540 ; commit; dbms_logmnr.end_logmnr(); end loop; end; --提取出来的sql通过动态sql执行插入? declare sql_str varchar2(4000); begin for c in (select * from logmnr_content) loop sql_str := replace(c.sql_undo,';',''); execute immediate sql_str; end loop; commit; end; 注意Q如果在q段日志中还有其他对该表的操作的话,可以l合操作cd OPERATION ?提交scn cscn 来判?到底是不是该恢复的这部分数据? 转自Qhttp://www.itpub.net/thread-324926-1-1.html <img src ="http://www.aygfsteel.com/liuyxit/aggbug/352606.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyxit/" target="_blank">三刀の逆风</a> 2011-06-19 02:11 <a href="http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352606.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql,sqlserver,oracle三种数据库的大对象存?/title><link>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352605.html</link><dc:creator>三刀の逆风</dc:creator><author>三刀の逆风</author><pubDate>Sat, 18 Jun 2011 18:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352605.html</guid><wfw:comment>http://www.aygfsteel.com/liuyxit/comments/352605.html</wfw:comment><comments>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352605.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyxit/comments/commentRss/352605.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyxit/services/trackbacks/352605.html</trackback:ping><description><![CDATA[mysql 大对象存? cd一般应该用mediumblod, blob只能??6ơ方个byte, mediumblod?4ơ方, 一般来说够用了(jin).longblob?2ơ方有些? MYSQL默认配置只能?M大小的文?要修攚w|?WIN版本的在mysql.ini文g? 修改max_allowed_packet,net_buffer_length{几个参?或直接SET GLOBAL varName=value. linux版本可以在启动参数后?max_allowed_packet=xxM{几个参? MYSQL存大对象最好直接就setBinaryStream,又快又方? 而不要先插入I再造型成BLOB然后再setBlob 例子: import java.sql.*; import java.io.*; public class DBTest { static String driver = "org.gjt.mm.mysql.Driver"; static String url = "jdbc:mysql://localhost:3306/test"; static String user = "root"; static String passwd = "passwd"; public static void main(String[] args) throws Exception { Connection conn = null; try { Class.forName(driver); conn = DriverManager.getConnection(url,user,passwd); int op = 1; //插入 if (op == 0) { PreparedStatement ps = conn.prepareStatement("insert into tb_file values (?,?)"); ps.setString(1, "aaa.exe"); InputStream in = new FileInputStream("d:/aaa.exe"); ps.setBinaryStream(2,in,in.available()); ps.executeUpdate(); ps.close(); } else { //取出 PreparedStatement ps = conn.prepareStatement("select * from tb_file where filename = ?"); ps.setString(1, "aaa.exe"); ResultSet rs = ps.executeQuery(); rs.next(); InputStream in = rs.getBinaryStream("filecontent"); System.out.println(in.available()); FileOutputStream out = new FileOutputStream("d:/bbb.exe"); byte[] b = new byte[1024]; int len = 0; while ( (len = in.read(b)) != -1) { out.write(b, 0, len); out.flush(); } out.close(); in.close(); rs.close(); ps.close(); } } catch (Exception ex) { ex.printStackTrace(System.out); } finally { try {conn.close();} catch (Exception ex) { } } } } sqlserver 大对象存取没有什么多说的,只要是imagecdp?注意q是columncd,有h以ؓ(f)它只能存 图象.image是文仉象的意? import java.sql.*; import java.io.*; public class DBTest { static String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; static String url = "jdbc:microsoft:sqlserver://192.168.0.202:9999999999;DatabaseName=dddd"; static String user = "sa"; static String passwd = "ps"; public static void main(String[] args) throws Exception { Connection conn = null; try { Class.forName(driver); conn = DriverManager.getConnection(url,user,passwd); int op = 0; //插入 if (op == 0) { PreparedStatement ps = conn.prepareStatement("insert into tb_file values (?,?)"); ps.setString(1, "aaa.exe"); InputStream in = new FileInputStream("d:/aaa.exe"); ps.setBinaryStream(2,in,in.available()); ps.executeUpdate(); ps.close(); } else { //取出 PreparedStatement ps = conn.prepareStatement("select * from tb_file where filename = ?"); ps.setString(1, "aaa.exe"); ResultSet rs = ps.executeQuery(); rs.next(); InputStream in = rs.getBinaryStream("filecontent"); System.out.println(in.available()); FileOutputStream out = new FileOutputStream("d:/bbb.exe"); byte[] b = new byte[1024]; int len = 0; while ( (len = in.read(b)) != -1) { out.write(b, 0, len); out.flush(); } out.close(); in.close(); rs.close(); ps.close(); } } catch (Exception ex) { ex.printStackTrace(System.out); } finally { try {conn.close();} catch (Exception ex) { } } } } ORACLE的大对象存储有些变?要无论是Blob,q是CLOB都要求先插入一个空?然后 查询q定这一条记?获取对Lob的引用再q行填充,|上有太多的例子.我个? q种Ҏ(gu)垃圾得连写都不想写了(jin),你可以自己去搜烦(ch)一? q种特别的操作既增加操作的复杂度,又违反了(jin)JDBC接口的规?所以我极力反对q样 使用,如果你和我有同样的观?那么我提供另一U通用的方?是你不用LOB而用 oracle的LONG RAW来代替它?q样可以象其它对象一h作了(jin): create table tb_file(filename varchar2(255),filecontent LONG RAW); import java.sql.*; import java.io.*; public class BlobTest { static String driver = "oracle.jdbc.driver.OracleDriver"; static String url = "jdbc:oracle:thin:@localhost:1521:test"; static String user = "system"; static String passwd = "passwd"; public static void main(String[] args) throws Exception { Connection conn = null; try { Class.forName(driver); conn = DriverManager.getConnection(url, user, passwd); int op = 1; //插入 if (op == 0) { PreparedStatement ps = conn.prepareStatement("insert into tb_file values (?,?)"); ps.setString(1, "aaa.exe"); InputStream in = new FileInputStream("d:/aaa.exe"); ps.setBinaryStream(2,in,in.available()); ps.executeUpdate(); ps.close(); } else { //取出 PreparedStatement ps = conn.prepareStatement("select * from tb_file where filename = ?"); ps.setString(1, "aaa.exe"); ResultSet rs = ps.executeQuery(); rs.next(); InputStream in = rs.getBinaryStream("filecontent"); System.out.println(in.available()); FileOutputStream out = new FileOutputStream("d:/bbb.exe"); byte[] b = new byte[1024]; int len = 0; while ( (len = in.read(b)) != -1) { out.write(b, 0, len); out.flush(); } out.close(); in.close(); rs.close(); ps.close(); } } catch (Exception ex) { ex.printStackTrace(System.out); } finally { try { conn.close(); } catch (Exception ex) {} } } } 转自Qhttp://dev.csdn.net/author/axman/1ca2ede425e44dba9ac20c2e262e4fb8.html <img src ="http://www.aygfsteel.com/liuyxit/aggbug/352605.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyxit/" target="_blank">三刀の逆风</a> 2011-06-19 02:02 <a href="http://www.aygfsteel.com/liuyxit/archive/2011/06/19/352605.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]inputStream与byte[]互{?/title><link>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/inputStream_byte.html</link><dc:creator>三刀の逆风</dc:creator><author>三刀の逆风</author><pubDate>Sat, 18 Jun 2011 18:01:00 GMT</pubDate><guid>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/inputStream_byte.html</guid><wfw:comment>http://www.aygfsteel.com/liuyxit/comments/352604.html</wfw:comment><comments>http://www.aygfsteel.com/liuyxit/archive/2011/06/19/inputStream_byte.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/liuyxit/comments/commentRss/352604.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/liuyxit/services/trackbacks/352604.html</trackback:ping><description><![CDATA[import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class FileByteUtil { public static void main(String[] args) throws Exception { File file=new File( "f:/test.doc "); byte[] fileByte = file2byte(file); byte2file(fileByte, "f:/test2.doc "); } public static byte[] file2byte(File f) throws Exception { return file2byte(f.getPath()); } public static byte[] file2byte(String f) throws Exception { try { InputStream in = new FileInputStream(f); byte[] tmp = new byte[512]; ByteArrayOutputStream out = new ByteArrayOutputStream(); int bytesRead = in.read(tmp); while (bytesRead != -1) { out.write(tmp, 0, bytesRead); bytesRead = in.read(tmp); } return out.toByteArray(); } catch (Exception e) { e.printStackTrace(); } return null; } // writes byte [] to a file public static void byte2file(byte[] data, String fn) throws Exception { try { OutputStream out = new FileOutputStream(fn); out.write(data); out.flush(); } catch (FileNotFoundException e) { throw e; } catch (IOException e) { throw e; } } }<img src ="http://www.aygfsteel.com/liuyxit/aggbug/352604.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/liuyxit/" target="_blank">三刀の逆风</a> 2011-06-19 02:01 <a href="http://www.aygfsteel.com/liuyxit/archive/2011/06/19/inputStream_byte.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>修改Tomcat6的默认虚拟目录和增加虚拟目录Ҏ(gu)http://www.aygfsteel.com/liuyxit/archive/2011/03/16/346413.html三刀の逆风三刀の逆风Wed, 16 Mar 2011 09:14:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2011/03/16/346413.htmlhttp://www.aygfsteel.com/liuyxit/comments/346413.htmlhttp://www.aygfsteel.com/liuyxit/archive/2011/03/16/346413.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/346413.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/346413.html 2.在TOMCAT\conf\server.xml文g的Host节点,增加 ?q种方式Tomcat6不推? 3.另增加普通虚拟目?则应在TOMCAT\conf\Catalina\localhost目录?增加以虚拟目录名为文件名的xml文g? ?http://localhost:8080/myapp"虚拟目录Q就Z?myapp.xml",内容?

三刀の逆风 2011-03-16 17:14 发表评论
]]>
Flex中的Spring--1.Swiz介绍http://www.aygfsteel.com/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html三刀の逆风三刀の逆风Thu, 29 Jul 2010 05:39:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.htmlhttp://www.aygfsteel.com/liuyxit/comments/327418.htmlhttp://www.aygfsteel.com/liuyxit/archive/2010/07/29/flex_air_swiz_spring_j2ee.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/327418.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/327418.html

三刀の逆风 2010-07-29 13:39 发表评论
]]>
联机重做日志l损坏的处理http://www.aygfsteel.com/liuyxit/archive/2008/08/14/221929.html三刀の逆风三刀の逆风Thu, 14 Aug 2008 03:36:00 GMThttp://www.aygfsteel.com/liuyxit/archive/2008/08/14/221929.htmlhttp://www.aygfsteel.com/liuyxit/comments/221929.htmlhttp://www.aygfsteel.com/liuyxit/archive/2008/08/14/221929.html#Feedback0http://www.aygfsteel.com/liuyxit/comments/commentRss/221929.htmlhttp://www.aygfsteel.com/liuyxit/services/trackbacks/221929.html 做以后操作前,强烈做好备䆾?/font>

1.查看日志l的使用情况
SQL> select * from v$log;
2.查日志组对应的物理文?br />SQL> select member from v$logfile;
3.删除损坏的日志组,例如1
SQL> alter database drop logfile group 1;
4.删除日志成员文g
SQL> ! rm /opt/oracle/oradata/means/redo01.log
5.创徏日志成员文g
SQL> alter databasee add logfile group 1 '/opt/oracle/oradata/means/redo01.log' size 300m;
6.切换当前日志l?br />SQL> alter system switch logfile;
7.多个日志l重建或修改大小Q需重复步骤 3 - 6?/p>

三刀の逆风 2008-08-14 11:36 发表评论
]]>
վ֩ģ壺 | | ˰| ƽ| | | ƽԭ| | | | | | | | ѷ| | | ƽ| ˹| ½| | | | | ƽ| Ӷ| | | ƽ| | Զ| ¡| ƽ| ˮ| ɽ| ͼ| | | | ʵ| |