果然有J2ME的Windows Remote Desktop!只不过是商业版。

RDM+™ Remote Desktop for Mobiles allows you to access remotely your desktop or laptop computer from Java powered phone. You can send and receive emails, surf web, edit documents in word processor, copy, cut, paste files or folders and do hundreds other things that you typically do sitting in front of your home or office computer. Interface is user-friendly and navigation is simple.

You can try RDM+ for 7 days absolutely free.

MidpSSH Mobile SSH client

[不指定 2007/05/27 19:33 | by ipaddr ]

以前接触过Java写的SSH客户端,今天突然有想法,想写一个基于J2ME的SSH客户端,在网上搜了一下,发现已经有类似的产品了,真牛B。

MidpSSH is an SSH and Telnet client for MIDP 1.0 / 2.0 (J2ME) devices such as Java(tm)-capable cellphones and other mobile devices. MidpSSH is developed by Karl von Randow www.xk72.com and released under the GPL.

MidpSSH is based upon Floyd SSH and Telnet Floyd by Radek Polak http://phoenix.inf.upol.cz/~polakr/, who ported the Java (tm) Telnet/SSH Applet to the MIDP platform. MidpSSH adds a GUI and a number of other features to Floyd SSH, see the Features section below.

Java(tm) Telnet/SSH Applet is by Matthias L. Jugel, Marcus Meissner javassh.org. It implements SSH1, Telnet and VT320 terminal emulation in Java.

Floyd SSH and Telnet Floyd (and hence MidpSSH) also includes sources from the GNU Classpath project.

MidpSSH 1.2+ includes cryptographic algorithms from The Legion of the Bouncy Castle, modified by Karl von Randow for MIDP. And implementation detail of SSH2 key exchange adapted from Java Secure Channel.

Contribute
There are various ways in which you can contribute to the MidpSSH project. You can help other users, find bugs and suggest enhancements by joining in discussions in the forums. You can join in the Developers forum, download the source code and implement new features or make enhancement

有机会真要试试。

还不知有没有基于J2ME的Windows Remote Desktop?

Oracle 9i spfile

[不指定 2007/05/12 17:57 | by ipaddr ]
在9i中,oracle可以使用服务器参数文件(SPFILE,System Parameter File)代替传统的init.ora参数文件。SPFILE是Oracle 在操作系统级创建的一个二进制文件,用于存储数据库参数。

可以使用Create spfile命令基于数据库的当前参数设置创建一个SPFILE,可以使用ALTER SYSTEM或者ALTER SESSION来动态修改那些可动态修改的参数并且这些更改可以立即生效,你也可以使用ALTER SYSTEM的一个新选项SCOPE来选择使更改只应用于当前实例还是同时应用到spfile。

SCOPE参数有三个可选值:
MEMORY:只改变当前实例运行;
SPFILE:只改变SPFILE的设置(如果修改的是静态参数,则必须指定SCOPE=SPFILE,否则将会报ORA-02095错。);
BOTH:改变实例及SPFILE(使用BOTH选项实际上等同于不带参数的ALTER SYSTEM语句)。

当使用不带pfile 子句的startup 命令时,Oracle 将从平台指定的默认位置上的服务器参数文件(SPFILE) 中读取初始化参数。Oracle查找SPFILE或者创通的init.ora的顺序是:在平台指定的默认位置上,Oracle首先查找名为spfile$ORACLE_SID.ora的文件,如果没有就查找spfile.ora文件,还没有的话,就找init$ORACLE_SID.ora文件。

在$ORACLE_BASE\admin\db_name\pfile下,你很可能可以看到一个类似这样init.ora.192003215317]名字的文件,这就是初始化参数文件,只是跟上了时间戳。对于Oracle920+,缺省的就使用spfile启动,但是这个spfile不是凭空而来,而是根据这个文件创建而来,你可以去掉这个长后缀,就是标准的pfile文件了。

注意:
对于UNIX 平台为服务器参数文件或文本初始化参数文件指定的默认位置目录是:
$ORACLE_HOME/dbs/spfile$ORACLE_SID.ora

对于Windows NT 和Windows 2000 其位置是:
$ORACLE_HOME\database\spfile$ORACLE_SID.ora
(Ipaddr: Oracle10g, WindowsNT的默认位置也是:$ORACLE_HOME/dbs/spfile$ORACLE_SID.ora)

SPFILE支持多实例数据库(RAC),即所有的实例共用一个SPFILE。你可以通过查看SHOW PARAMETER spfile参数的值,如果value列返回空值,那么说明你在使用pfile;也可以通过下面的方法查看当前实例是否使用了SPFILE:
SQL> select decode(count(*), 1, 'spfile', 'pfile' ) USED
 2  from v$spparameter
 3  where rownum=1 and isspecified='TRUE'
 4  /
USED
------------
spfile

在Oracle 9i以前,我们可以通过查看V$PARAMETER and V$PARAMETER2知道当前实例的参数值,在Oracle 9i中,我们还可以通过查询V$SPPARAMETER实时的得到所有当前使用的spfile的参数值,包括使用SCOPE=SPFILE参数的ALTER SYSTEM命令改变的参数。

SPFILE可以从某个PFILE文件创建:
CREATE SPFILE[=’SPFILE-NAME’] FROM PFILE[=’PFILE-NAME’]

使用不带文件名的pfile在缺省位置创建spfile,可以用create spfile from pfile;命令,此时系统根据缺省位置(Unix: $ORACLE_HOME/dbs; NT: $ORACLE_HOME\database)的pfile在缺省位置创建名为spfile.ora的文件。创建SPFILE需要SYSDBA或者SYSOPER的权限。
我们也可以根据SPFILE文件创建PFILE文件:
CREATE PFILE[=’PFILE-NAME’] FROM SPFILE[=’SPFILE-NAME’]
这时创建的pfile文件将是一个可编辑的文本文件。
作为对于闪回操作(flashback)的一个增强,Oracle10g提供了函数对于SCN和时间戳进行相互转换。

首先通过dbms_flashback.get_system_change_number 可以获得系统当前的SCN值:


SQL> col scn for 9999999999999
SQL> select dbms_flashback.get_system_change_number scn from dual;

SCN
--------------
8908390522972


通过scn_to_timestamp函数可以将SCN转换为时间戳:


SQL> select scn_to_timestamp(8908390522972) scn from dual;

SCN
---------------------------------------------------------------------------
05-JAN-07 10.56.30.000000000 AM


再通过timestamp_to_scn可以将时间戳转换为SCN:

SQL> select timestamp_to_scn(scn_to_timestamp(8908390522972)) scn from dual;
SCN
--------------
8908390522972


通过这两个函数,最终Oracle将SCN和时间的关系建立起来,在Oracle10g之前,是没有办法通过函数转换得到SCN和时间的对应关系的,一般可以通过logmnr分析日志获得。

但是这种转换要依赖于数据库内部的数据记录,对于久远的SCN则不能转换,请看以下举例:


SQL> select min(FIRST_CHANGE#) scn,max(FIRST_CHANGE#) scn from v$archived_log;

SCN SCN
------------------ ------------------
8907349093953 8908393582271

SQL> select scn_to_timestamp(8907349093953) scn from dual;
select scn_to_timestamp(8907349093953) scn from dual
*
ERROR at line 1:
ORA-08181: specified number is not a valid system change number
ORA-06512: at "SYS.SCN_TO_TIMESTAMP", line 1
ORA-06512: at line 1


SQL> select scn_to_timestamp(8908393582271) scn from dual;

SCN
---------------------------------------------------------------------------
05-JAN-07 11.45.50.000000000 AM

RH linux下修改Perl的更新站点

[不指定 2007/05/06 13:37 | by ipaddr ]
修改
/usr/lib/perl5/5.8.5/CPAN.pm

将里面的defaultsite设置为:
http://cpan.linuxforum.net

更多的国内镜像,请查看:
http://www.cpan.org/SITES.html
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]