Buy anything from HongKong - Dealextreme

You can buy any kind of electronic gadgets from DealExtreme with free shipping option.
Please visit DealExtreme for very low prices.
Here is the link to the site : www.dealextreme.com

13 March 2008

Oracle Data Pump Import/Export

Oracle'ın Data Pump Export ve Data Pump Import programlarını kullanmanızı tavsiye ederim. hr şemasının exportunu basit bir şekilde şöyle alabiliyorsunuz:

expdp hr/hr directory=export_dir dumpfile=hr.dmp schemas=hr

Onu da diğer veritabanına şu şekilde aktarabilirsiniz:

impdp \"/ as sysdba\" directory=import_dir dumpfile=hr.dmp

Bu işlemlerin öncesinde export_dir ve import_dir nesnelerini yaratmayı unutmayın - exportu alacağınız yerde:

CREATE DIRECTORY export_dir AS '/tmp' ;

Aktaracağınız yerde:

CREATE DIRECTORY import_dir AS '/tmp' ;

Daha fazla parametre seçeneği ve bilgi için şunları okuyabilirsiniz. Bu iki program ile taşıma adına yapamayacağınız fazla birşey yok - onu söyleyebilirim.

http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#i1007653http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#i1007466

05 March 2008

Using JSR-105 with JDK 1.4 or JDK 5

JSR 105 (XML Digital Signature API) is included with JDK 6, but is also available separately, for example as part of the Apache XML Security Project. This allows you to use the JSR with earlier JDK/JREs such as JDK 1.4 or JDK 5.If you do this, however, be aware that the JSR 105 service provider implementation is not included by default with JDK 1.4 or JDK 1.5, so you may get some exceptions when instantiating an XMLSignatureFactory:

XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM");

javax.xml.crypto.NoSuchMechanismException: Mechanism type DOM not availableat javax.xml.crypto.dsig.XMLDSigSecurity.getEngineClassName(Unknown Source)at javax.xml.crypto.dsig.XMLDSigSecurity.getImpl(Unknown Source)at javax.xml.crypto.dsig.XMLDSigSecurity.getImpl(Unknown Source)at javax.xml.crypto.dsig.XMLSignatureFactory.findInstance

The easiest workaround is to just instantiate and specify the service provider implementation (bundled with Apache XMLSec) as a parameter as follows:

XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM", new org.jcp.xml.dsig.internal.dom.XMLDSigRI());

Alternatively, you can register the provider in the java.security file, or use the java.security.Provider API. See http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#ProviderInstalling"Registering a Provider" for more details.

03 March 2008

Enable or disable specific warnings in java

JDK 1.6
>javac -X

-Xlint Enable recommended warnings
-Xlint:{all,cast,deprecation,divzero,empty,unchecked,fallthrough,path,
serial,finally,overrides,-cast,-deprecation,-divzero,-empty,-unchecked,
-fallthrough,-path,-serial,-finally,-overrides,none} Enable or disable specific warnings

JDK 1.5
>javac -X
-Xlint Enable recommended warnings
-Xlint:{all,deprecation,unchecked,fallthrough,path,serial,finally,-deprecation,
-unchecked,-fallthrough,-path,-serial,-finally} Enable or disable specific warnings