Posts

Showing posts from 2014

OPTIMIZER HINTS in ORACLE

OPTIMIZER HINTS in ORACLE http://psoug.org/reference/hints.html http://docs.oracle.com/cd/B13789_01/server.101/b10752/hintsref.htm http://docs.oracle.com/cd/B13789_01/server.101/b10752/hintsref.htm#5790 http://www.dba-oracle.com/art_builder_10g_sql_optimizer.htm http://www.adp-gmbh.ch/ora/sql/hints/ http://docs.oracle.com/cd/E11882_01/server.112/e16638/hintsref.htm#PFGRF94936
Image
Connecting to .NET web service from Android 27 MAY If you are having trouble using .NET Web Services with the Android Platform, you have probably reached to the solution here. I am here demonstrating the steps using which you can consume data from the .NET web service in your android app. In order to use .Net web Service from your android application you need to first download the ksoap2 android API. Follow the  link  to download ksoap2 API for android. After downloading the API, extract the zip file to the file system. Open your Android Project and navigate to the Project Properties. In the project properties go to Java Build Path and say Add External JARs. Add the reference to the extracted ksoap2-j2se-full-2.1.2.jar file from the downloaded API. You are now ready to use ksoap2 to connect to the .NET web service via Android. Let’s assume a .NET web service with two methods “Hello World” that returns a string and “Add” that accepts two numbers and returns t...
ksoap2-android Introduction The ksoap2-android project provides a  lightweight and efficient SOAP client library  for the Android platform. It is a fork of the  kSOAP2 library  that is tested mostly on the Android platform, but should also work on other platforms using Java libraries. It is still using Java 1.3 so should work fine on JavaME, Blackberry and so on. ksoap2-android has been consistently enhanced and expanded with more features. It is actively maintained and  we welcome bug fixes and contributions . Releases are done semi regularly with community contributions in the form of enhancements and more. Support For more information check out the pages and linked content of our  wiki  and  join our  mailing list . And for the impatient the jars are available in a maven repository here on google code or for download from there as a bundle. More on the  How to Use Wiki page . License ksoap2-android is  licensed...

ORACLE JOB-un yaradılması

PlSQL-BLOCK tipində JOB-u yaradırıq. Bu JOB hər dəqiqə testProcedure() prosedurasını işə salmaq üçündür. ------------------------------------------------------------------------------------------------ BEGIN DBMS_SCHEDULER.CREATE_JOB (    job_name             => 'EXAMPLE_JOB',    job_type             => 'PLSQL_BLOCK',    job_action           => 'BEGIN testProcedure(); END;',    start_date           =>  SYSTIMESTAMP,    repeat_interval      => 'FREQ=MINUTELY; INTERVAL=1; BYSECOND=0;',    --repeat_interval      => 'FREQ=secondly; ',    end_date             =>  NULL,    enabled              =>  FALSE,    job_class           ...

Oracle-da Java kodunun plsql vasitəsilə işlədilməsi

Aşağıdakı kodlar vasitəsilə String qiyməti qaytaran java metodunun pl-sql vasitəsilə işlədilməsi addımları yerləşdirilmişdir. -----------------STEP-1----------------------------- CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED returnString   AS    public class returnString {    public static String testval() {        String returnVal="";        returnVal="HELLO WORLD";                return returnVal;       }       }      /     ----------------------STEP-2----------------------------- CREATE OR REPLACE PACKAGE returnString AS FUNCTION testval RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'returnString.testval () return java.lang.String'; END returnString; / SHOW ERRORS / -------------------STEP-3----------------------------------- declare ns varchar2(500); begin ns:=returnString.testval() ; dbms_output...

Texniki tərəqqi və insan heyatinda rolu haqqında prezentasiyam.

prezentasiyaya buradan baxa bilərsiniz.

Faylda fərqli qiymətlərin müqayisəsi

Faylda dublikat qiymətlərin müqayisəsi üçün aşağıdakı java kod köməyinizə gələ bilər : Burada faylda olan bütün dublikat olanlar və tək olanlar hesablanacaq və nəticədə tək olanları çıxardacaq. import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; public class comparation {     public static void main (String  args[]) throws FileNotFoundException {         Map<Integer, Integer> countMap = new HashMap<Integer, Integer>();         List<Integer> myNumbers= new ArrayList();         BufferedReader reader = new BufferedReader(new FileReader("D:/documents/excel_report/report_172.csv"));         String line = null;         try {             while ((line = reader.readLine()) != null) {             ...

Albert Eynşteyndən seçmələr....

Albert Eynşteyndən seçmələr.... Бесконечны лишь Вселенная и глупость человеческая, при этом относительно бесконечности первой из них у меня имеются сомнения Достойна только та жизнь, которая прожита ради других людей Единственный разумный способ обучать людей – это подавать им пример Единственное, что может направить нас к благородным мыслям и поступкам, – это пример великих и нравственно чистых личностей Воображение важнее, чем знание Все знают, что это невозможно. Но вот приходит невежда, которому это неизвестно – он-то и делает открытие Истина – это то, что выдерживает испытание опытом Здравый смысл – это сумма предубеждений, приобретенных до восемнадцатилетнего возраста Жизнь отдельного человека имеет смысл лишь в той степени, насколько она помогает сделать жизни других людей красивее и благороднее. Жизнь священна; это, так сказать, верховная ценность, которой подчинены все прочие ценности Из честолюбия или чувства долга не может родиться ничего ценного. Це...
Salamlar. Android əməliyyat sistemi üçün application yaratmaq üzrə çalışmalar apararkən qarşıma belə bir error çıxdı. Failed to create the Java Virtual Machine Bu error nədən qaynaqlanırdı? İlk öncə səbəbin mənbəsini aşkar etdim. Səbəb eclipse-in java virtual maşının unvanini duzgun mənimsəməsi idi. Daha dərin desək, komputerin C diskinin format olunması və yeni jdk 1.7-in yazılması ilə D diskində yerləşdirdiyim Eclipse kohnə jdk unvanını tapa bilməmisdi. Bu məsələnin sadə bir həlli var. Eclipse papkasında yerləşən eclipse.ini file-ında unvanın düzgun tanıdılması idi. Aşagıdakı kodda oldugu kimi. -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256M -showsplash com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize --launcher.defaultAction openFile ...