Posts

Showing posts from 2008

Content Management Sunumu

Bireysel eğitim merkezinde Oracle Akademi Türkiye kapsamında yaptığım Oracle Spatial , Large Objects , XML DB ve Oracle Text konularını içeren sunumum. 18 Ekim Sunum [English Content] Sunum yapanlara, yetkililere ve katılımcılara teşekkürler çok keyifli bir gün oldu.

apex upload store as clob

i'll provide a function which i have used in my latest project.This function getting uploaded blob content and converting this to clob. you know apex file browse item storing uploded content into wwv_flow_files as blob after that developer responsible for storing this content in application spesific tables via fetching from wwv_flow_files if you need to store your uploded content from apex as clob you can use this function FUNCTION uploaded_clob(p_name IN VARCHAR2) RETURN CLOB IS l_clob_content CLOB; l_blob_content BLOB; l_w PLS_INTEGER; l_d_offset PLS_INTEGER := 1; l_s_offset PLS_INTEGER := 1; l_lc PLS_INTEGER := dbms_lob.default_lang_ctx; BEGIN dbms_lob.createtemporary(lob_loc => l_clob_content, cache => TRUE); SELECT * INTO l_blob_content FROM (SELECT t.blob_content FROM wwv_flow_files t WHERE t.NAME = p_name ORDER BY created_by DESC) WHERE rownum

annoying broken images problem after apex installation solved

you decided to upgrade your apex 3.1 everyting fine you executed installation script and then pointed your browser to localhost:8080/apex very nice page opened but some images missing and javascript doesntwork you read some blog posts about this problem and they say execute @apxldimg script like below say directory_you_unzipped_apex_zip = d:\apex @apxldimg.sql directory_you_unzipped_apex_zip -> this is wrong ! when i look inside apxldimg.sql i saw create directory APEX_IMAGES as '&1/apex/images'; so you should use this script as parent_directory_you_unzipped_apex_zip = d:\ @apxldimg.sql parent_directory_you_unzipped_apex_zip after script is loading images to database xml

how to switch between multiple oracle home (version) on same machine

Image
there is a nice tool for switching oracle homes in universal installer from installed products on environment tab just send up your choise and apply it

installing apex to 11g

i have installed 11g to windows xp, you know apex 3.0 which is coming bundled with 11g , after the installation i followed this great tutorial provided by oracle http://www.oracle.com/technology/obe/11gr1_db/install/apexinst/apexinst.htm#o and successfuly started to use apex

how to set Environment Variable in linux

setting Environment Variable in suse linux for example $ ORACLE_HOSTNAME=somehost.us.acme.com $ export ORACLE_HOSTNAME and this command is for unsetting $ unset ORACLE_HOME see variables with echo $ORACLE_HOME

oracle xe on suse11

i have installed oracle xe to suse 11 now i have only set port as 8081 (this is not default) here are console output linux-mctb:/home/sertac/Desktop # rpm -ivh '/home/sertac/Desktop/oracle-xe-10.2.0.1-1.0.i386.rpm' Preparing... ########################################### [100%] 1:oracle-xe ########################################### [100%] Executing Post-install steps... insserv: warning: script 'oracle-xe' missing LSB tags and overrides oracle-xe 0:off 1:off 2:off 3:on 4:off 5:on 6:off You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database. linux-mctb:/home/sertac/Desktop # /etc/init.d/oracle-xe configure Oracle Database 10g Express Edition Configuration ------------------------------------------------- This will configure on-boot properties of Oracle Database 10g Express Edition. The following questions will determine whether the database should be starting upon system b

choose your correct jvm/jdk on your system on alternatives

update-alternatives --config java

examine installed programs on your system

here we look for eclipse if it's installed rpm -qa | grep eclipse

Oracle News Aggregator

i want to share a web site which is new for me and very nice who want to dive into oracle :D http://orana.info/

how to get help about suse ( fastest way )

i really like suse community because they are really helpful as i expected , i have choose title of post as ( fastest way ) because suse community has very active chat channel so you can get help check you have installed xchat which is one of my favourite chat program then start it writing xchat command in terminal then network list window will open choose freenode as network you wanna connect and after that last step write #suse as channel name now you can kindly ask your questions and get answers in fastest way ;)

switched to suse 11

i have switched my suse 11 first impression super :D my graphic card intel 855gm has made me big problem really but i resolve with 915resolution package i ll write here instructions which i have made after one successful attempt ;) i have downloaded a batch updates i suppose suse 11 will be better soon with more bug feedbacks :)

why update to suse 11

nice article about why update to 11 http://www.benkevan.com/blog/why-upgrade-to-opensuse-11-from-opensuse-10x/

AquariumSC

Image
here is simple aquarium which has only a turtle in it who is randomly moving and if you wish you can rotate it to directions get AquariumSC all source jar package paket; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.util.Random; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author sertac */ public class AquariumSC extends MIDlet implements CommandListener { Display d; Form f; Command cmdExit, cmdGoAquarium; CanvasSC canvasSC; Command cmdSelectAquarium; List l; Image[] backImages; Image resim; Image back; private TextField tfThreadSpeed; private ChoiceGroup cgPrintStats; private ChoiceGroup cgPrintBounds; private TextField tfBoundLimit; private TextField tfFastMove; private Command cmdHelp; public AquariumSC() { try { d = Display.getDisplay(this); f = new Form("AquariumSC"); f.setCommandListener(this); cmdGoAquarium = new C

TonePlayer Pre Release-V.Player v1

Image
Simple tone player with mmapi TonePlayer Pre Release-V.Player v1 i didnt really satisfied from this work of mine , planning to make really efficient V. Player v2 may be get V.Player java jar /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package paket; import java.io.IOException; import java.util.Vector; import javax.microedition.media.MediaException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.media.Manager; import javax.microedition.media.Player; import javax.microedition.media.control.ToneControl; /** * @author sertac */ public class VDotPlayer extends MIDlet implements CommandListener { Display d; Form f, fMain; Command cmdExit, cmdPlay, cmdOk, cmdBack, cmdStop, cmdAddTone, cmdPlayTone,cmdHelp; TextField tfNote, tfDuration, tfVolume, tfToneSequence; byte[] sequence; int note = 0; int duration = 0; int volume = 0; private int size; StringBuffer initialTone = new StringBuf

what i need for bluetooth in suse

Image
How to send files to your mobile phone in linux if you have bluetooth dongle and you want to send files to your mobile phone may be and vice versa. you need to install gnome-bluetooth http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=gnome-bluetooth and bluez-gnome install with one-click install http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=bluez after installed started two of themwe should make some easy configurations as you see in this screenshot two icons will be placed in panel when you right click to bluetooth manager and open preferences you need to "visible for other devices " -> checked "make adaptor invisible after" -> never if you want you may restart service like this sertac@linux-mlpd:~> su Password: linux-mlpd:/home/sertac # /etc/init.d/bluetooth restart Shutting down bluetooth ( hcid) done Starting bluetooth: hcid rfcomm

RadioSC J2ME Radio

Image
i have tested RadioSC with nokia 5200 and listening now :D plug in your earphone before starting RadioSC if you get exception about headset just simply exit RadioSC unplug earphone plug in earphone start RadioSC get RadioSC jar java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package paket; import java.io.IOException; import javax.microedition.media.MediaException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.media.Manager; import javax.microedition.media.Player; /** * @author sertac */ public class RadioSC extends MIDlet implements CommandListener{ Display d; Form f; Command cmdPlay; String channel; TextField tfFreq; Player player; Command cmdExit; static final String banner="www.SmobileZ.blogspot.com"; public RadioSC() { d = Display.getDisplay(this); f = new Form(banner); tfFreq = new TextField("Channel", "90.60",5, TextF

CanvasSC

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package paket; import java.io.IOException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author sertac */ public class Main extends MIDlet implements CommandListener { Display d; Form f; Command cmdDisplay; TextField tfWord; Canvas canvasSC; Displayable curr; String s; public Main() { f = new Form("CanvasSC"); tfWord = new TextField("Yazdırmak istediğiniz yazıyı girin ", null, 10, TextField.ANY); cmdDisplay = new Command("Display", Command.OK, 1); f.addCommand(cmdDisplay); f.append(tfWord); f.setCommandListener(this); } public void startApp() { d = Display.getDisplay(this); if (curr != null) { d.setCurrent(curr); } else { d.setCurrent(f); curr = f; } } public void

airties wus-300 kurulumu

http://liste.linux.org.tr/pipermail/linux/2007-October/010027.html ubuntu 7.10 üzerinde denedim ve çalıştı. A.Gurcan Ozturk e teşekkür ederiz :D

linux ve sqlplus

linux de oracle kurup sqlplus ı çalıştırdığımda sinir bozucu şekilde yukarı ok tuşunun önceki komutları getirmediğini farkettim saolsunlar community den aldığım yardımla sqlplus işi halloldu çözümü sizlerle de paylaşayım yapmamız gereken rlwrap adlı programı yüklemek ve bunu alias olarak eklemek. alias olarak eklemek için konsolda şu komutu çalıştırın alias sqlplus =”rlwrap sqlplus” artık sqlplus ınızı zevkle kullanabilirsiniz :D

locate i aktifleştirmek | launching locate

locate aradıklarımızı süper jet hızıyla bulmamızı sağlayan benim çok sevdiğim bir program güzel zypper ı kullanarak kurulum emri verelim ve locate i çalışır duruma getirelim. bunun için herzaman olduğu gibi kuruluma başlamadan önce root olup zypper in findutils-locate komutu ile kurulumu tamamlayalım. locate in yapılanması için ise updatedb komutunu verelim işlem tamamlandığında locate dosyaadi şeklinde jet hızlı arama yapabilirsiniz

Suse 10.3 üzerine Oracle XE kurulumu | install Oracle XE on suse 10.3

Image
Tom Kyte XE hakkındaki bir podcast inde Oracle XE versiyonu için tek tık ile kurabileceğiniz bir oracle diyordu :D Windows da iken pek anlaşılmasa da iş linux e geldiğinde aşağıdaki ekran görüntüsü Tom un ne demek istediğini anlatıyor. ----------- As Tom Kyte says in his podcast Oracle XE which we can install easily , only just a few mouse clicks --------------------------- Kurulumdan sonra ihtiyaç olursa | After installation if needed ----------------- Çevre değişkenlerimizi ayarlayalım | Setting Environment Variables ----------------- export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=XE --------------------------- Başlangıçta oracle servisi çalışmayacak şekilde seçtik manuel olarak başlatmak için bu opsiyonlardan start ı seçerek başlatabiliriz | starting oracle service manually Usage: /etc/init.d/oracle-xe {start|stop|restart|force-reload|configure|status|enable|disable} root olarak | after being root /etc/init

Commit edilmiş verilerin Flashback version query ile geri alınması

Ekstra kurulum gerektirmeden bir satır üzerinde oynanan tüm kirli oyunları görelim :D Aslında bu yazıda herhangi bir tablonun herhangi bir satırının üzerinde yapılan tüm değişiklikleri nasıl görebiliriz sorusunun cevabını vericez tabiki oracle ın bize sunduğu güzelliklerle ve ekstra bir kurulum gerektirmeden. Önce örnek için tablomuzu yaratalım create table cihaz_sahip ( cihaz_no number, sahip_no number ) ; Sonrasında tablomuz üzerinde çeşitli operasyonlar yapalım insert into cihaz_sahip values(1,1); commit; update cihaz_sahip set sahip_no =2 where cihaz_no = 1; commit; update cihaz_sahip set sahip_no =3 where cihaz_no = 1; commit; delete cihaz_sahip; commit; insert into cihaz_sahip values(1,5); commit; Şimdi yapılan bu işlemleri bir film gibi önümüze dökelim SELECT cihaz_no, sahip_no, versions_starttime, versions_endtime, versions_xid, versions_operation FROM cihaz_sahip versions BETWEEN TIMESTAMP minvalue AND maxvalue order by VERSIONS

xml nodlarının değerlerini alma | how to extract xml node values

xmltype.extract(/root/node1/text())

how to extract .daa files under linux | .daa uzantılı dosyalar linux de nasıl açılır

download poweriso http://poweriso.com/download.htm and use this command $ poweriso extract /home/aaa/bbb.daa / -od /home/aaa/files -------------- poweriso programını download edin http://poweriso.com/download.htm ve şu komutu kullanın $ poweriso extract /home/aaa/bbb.daa / -od /home/aaa/files

Plsql notification ve sys.reg$

Bir kaç gün önce otn forumlarında çok önemli bir şey öğrendim.plsql notification tanımlamalarınızı görebileceğiniz viewin adı :D sys.reg$ http://forums.oracle.com/forums/thread.jspa?threadID=619203&tstart=0

Job_definition

Migraton projemiz çerçevesinde ki bunun içine exception sistemimizi oluşturan şemanın da değişmesi dahil, değişen şemalarla ilintili objeleri ve kodları dba_dependencies ve all_source ile ararken farkettiğim bir olayı paylaşacağım Zamanında yazılmış bir scheduler job ımız içinde bu eski şemalarımızla ilişkili kodlar varmış :D varmış diyorum çünkü bu kod "job_definition" ile job a tanımlanmış dolayısıyla benim kullandığım arama metodlarına yakalanmamış. Daha da güzeli job_definition da bulunan kod eski şemaları drop etmemize rağmen sessiz sedasız yaşamını sürdürmüş :D ta ki ilk çalışmasına kadar. Tabi ancak runtime da kendini belli eden bu kod parçası ile bağlı olarak güzel bir paketin güzel bir procedure ünü sunayım belki sizinde bilmenizde fayda vardır :D belki job ı drop edip tekrar yaratmak daha kolay gelebilir aslında bana da öyle geliyor ama isterseniz bu da var. SET_ATTRIBUTE Procedure This procedure changes an attribute of an object. It is overloaded to accept values o

Funny Wallpaper for your Linux Suse | Suse niz için çok komik bir wallpaper

Image
i found a very funny wallpaper in suseforums and i would like to share with you :D i laughed so much when i saw this wallpaper here are the other wallpapers of community http://www.suseforums.net/index.php?showtopic=45379 ---------------- suseforums u incelerken çok hoş bir wallpaper buldum ve sizlerle paylaşmak istiyorum gördüğümde acayip güldüm :D diğer kullanıcıların wallpaper larını görmek için aşağıdaki linki tıklayın http://www.suseforums.net/index.php?showtopic=45379

How can i see ram and cpu usage of programs | Programların kullandığı cpu ve ram miktarlarını nasıl görebilirim

use $top command ----- $top komutunu çalıştırın

Best pdf reader for suse | Suse için en iyi pdf okuyucu

Adobe reader 8 for linux Just download and install it http://www.adobe.com/products/acrobat/readstep2.html -------------- Adobe 8 pdf okuma programı Aşağıdaki linkten programı indirin ve kurun http://www.adobe.com/products/acrobat/readstep2.html

How to make my workarea larger in VirtualBox | VirtualBox da çalışma alanını genişletmek

change screen resolution of guest operating system , it will change also your workarea size -------------------------- VirtualBox a kuruduğunuz işletim sisteminin ekran çözünürlüğünü değiştirdiğinizde çalışma alanınızın da genişlemesini sağlayacaksınız

How to usb work in VirtualBox on SUSE 10.3 | VirtualBox da usb yi çalıştırmak

be root and execute this command mount -t usbfs /sys/bus/usb /proc/bus/usb/ ----------------- root olarak aşağıdaki komutu çalıştırın mount -t usbfs /sys/bus/usb /proc/bus/usb/