Special characters in Oracle passwords

Tuesday, December 27, 2011 21:25
Posted in category Database

As we have always been encouraged to define complex passwords everywhere, it is likely that you feel the need to set passwords with special characters in an Oracle database too.
But should you ?

Let’s make some tests.

CREATE user testuser IDENTIFIED BY 33!%@;

 
What we get is this :
ORA-00988: missing or invalid password(s)

Well, let’s look at the rules that Oracle want us to follow while defining a password then :

o Passwords must be from 1 to 30 characters long.
o Passwords cannot contain quotation marks.
o Passwords are not case sensitive.
o A Password must begin with an alphabetic character.
o Passwords can contain only alphanumeric characters and the
  underscore (_), dollar sign ($), and pound sign (#). Oracle
  strongly discourages you from using $ and #..
o A Password cannot be an Oracle reserved word (eg: SELECT).

According to that text, we should not use special characters in passwords. So facing an error like the one above is not unexpected.
It is clear that you should NOT use those characters, but this does not mean you CAN’T..

Let’s do some more useless & time wasting practices then :

(Note that we are using @ char on purpose which is i think the worst char for an oracle password :)

CREATE user testuser IDENTIFIED BY "33!%@";

User successfully created..
Nice. So we can provide passwords with special characters by using (Double quotation marks).

But can we use this passwords afterward ?

sqlplus testuser/33!%@@testdb

 
ORA-12154: TNS:could not resolve the connect identifier specified

I guess not.
So let’s try it with double quotation marks again.

sqlplus testuser/"33!%@"@testdb

ORA-12154: TNS:could not resolve the connect identifier specified

No luck again..

If you kept reading from the beginning, i am expecting you to decide NOT TO USE special characters already.

*Sigh*

Okey, let’s make our final move then:

sqlplus testuser/\"33!%@\"@testdb

Success.. (with the help of double quotation marks and escape characters)

As you see, to be able to use this password we needed some tricks which obviously a solid reason itself to avoid using special characters ..

-Guven

Quiknet Fiber

Wednesday, April 13, 2011 19:02

Selamlar,

Bu aralar pek yazmıyorum, vakit darlığı büyük etken buna, biraz da keyifsizlik tabii ki..
Lakin bir konudan bahsetmeden geçemeyeceğim..

TTNET’ i bırakıp Quiknet‘ e geçtiğimden beri halimden çok memnunum. Zaten hizmetin kalitesinden önce ADSL ile Fiber arasındaki uçurum bunda etkili oluyor.

4-5 ay önce yurt dışı sunuculara bağlanmada yaşadığım zorluklar sonucu telefon etmiştim Superonline’a.
MMORPG sevdalısı ve yıllarını bu yolda harcamaktan çekinmemiş biri olarak :) takdir edersiniz ki bağlantının hızından öte gecikme değerlerine (latency) önem veriyordum.
Aslında telefon ederken pek umutlu değildim, sonuçta karşınızdaki insanlar genelde temel network kavramlarına dahi hakim olmak durumunda değiller. Görevleri basit kullanıcı hatalarından kaynaklanan bağlantı sorunlarını tespit etmek ve giderilmesi konusunda müşteriye yol göstermek. Bunda yadırgadığım birşey yok, yanlış anlaşılmasın, olması gereken bu bence de.
Lakin bu ilk görüşmede derdinizi anlattığınızda aldığınız yanıt çok büyük hayal kırıklığı olur genelde, ki ADSL döneminde çokça kez yaşamıştım..Az önce bahsettiğim olaydan devam edecek olursam;

Latency değerlerinin özellikle yurtdışındaki sunuculara sorgu atıldığında oldukça kötü olduğunu söyledim karşımdaki bayana. “Modeminizi açıp kapayın, sonra tekrar deneyin” kalıbıyla karşılaşmamak adına download hızımda herhangi bir sorun olmadığını, 10Mbit olan bağlantımın 1mb saniye değeri ile gayet güzel dosya indirilmesine izin verdiğini, yalnızca ve yalnızca yurt dışı sunuculara erişimde paket kayıplarıyla karşılaştığımı ekledim hızlıca.
İşte o noktada karşılaşmayı beklediğim cevap; “Ben notumu alayım, arkadaşlar bağlantınızda sorun olup olmadığını kontrol edecekler..” idi.

Ki bunun meali ; “Arkadaşım bağlantın çalışıyor, web sitelerini açabiliyosun, download bile  yapıyosun.. E biz sana daha fazlasını vaadetmedik ki zaten…”

Halbuki beklentilerimin dışında bir cevap ile karşılaştım; “Siz bahsettiğiniz paket kayıplarını gösteren ekran görüntülerini vereceğim mail adresine yollayabilirseniz, teknik ekip inceleme yapıp size geri dönüş yapacaktır.”
Teşekkür edip kapattım. Güzelinden bir mail hazırlayıp, ekran görüntüleriyle renklendirmek suretiyle yolladım tabii.
1-2 gün sonra teknik açıdan donanımlı olduğunu sezebildiğim bir arkadaş aradı Superonline’dan.  Gönderdiğim ekran görüntülerini incelediklerini, paket kayıplarının oluşmaya başladığı yurt dışındaki sunucunun üzerinde teknik problemlerin olduğunu, üzerinde çalışıldığını, ancak çalışmadan bağımsız olarak hali hazırda yurt dışında yeni sunucu alımı gerçekleştirildiğini ve bir iki hafta içinde bu sorunun tamamen ortadan kalkacağını söyledi.

Açıkcası bağlantımın düzelmesinin fazla bir önemi kalmamıştı benim için, çünkü adam yerine konup söylediklerinizi anlayan ve sorun olarak işaret ettiğiniz şeyi yoksaymayan muhataplar bulabilmek her yiğidin harcı değil takdir edersiniz ki :) Mutlu oldum ne yalan söyliyeyim. ( 1 hafta kadar sonra düzeldi bağlantı bu arada )

Akabinde de  2 gün önce eve geldiğimde modemin çalışmadığını gördüm. Telefon edip durumu bildirdim (saat 18.30 civarıydı).
Kaydınızı alıyorum, arkadaşlar ilgilenecek dedi telefondaki bayan.
Herşey normal di mi buraya kadar ?

25 dakika sonra kapı çaldı..
Elinde modem ile bir arkadaş… =))

“Yok artık ?” dedim.
“Anlamadım ?” dedi.
Dedim “arayalı 25 dakika oldu ?..”
“Bu taraflarda servis görevim vardı, merkezden sizin kaydınız geçilince doğrudan geldim” dedi arkadaş.
“Süpermiş..” dedim. Ne diyeyim başka..

Sorgusuz sualsiz modem değiştirildi ve telefon etmemin üzerine toplam 40 dakika geçmişken normal bir şekilde yeni modemimle bağlanır durumdaydım.
Ha tabii ki adamlar Dominos pizza misali 30 dakika’da müdahale garantisi vermiyorlardır, belki milyonda bir denk geliyordur bu. Ama en geç 1 gün sonra soruna çözüm getireceklerine eminim artık.
Çok övdüm, farkındayım.  Lakin paylaşmak istedim.. Hem Sn Ahmet Bombacı sıkıştırıyordu sürekli, “Hani, hiç yazmıyorsun blog’una ? ..” şeklinde :)  Bir yerden başlamak lazımdı..

Görüşmek üzere..
-Güven

Bilge Adam ve ücretleri …

Sunday, January 30, 2011 16:06
Posted in category Tecrübe - Yorum

Selamlar,

Malum genelde ingilizce yazıyorum, ama bu konuda ingilizce yazmak alakasız olacaktı,so here we go..  =)

2007 senesinde Bilge Adam‘a kaydolmuştum, Sistem Mühendisliği eğitimini almak için. Kayıt olmak için gittiğimde fiyatlar bizi şok etmişti, yanlış hatırlamıyorsam 9000 lira civarıydı, gelin görün ki şans yüzümüze gülmüş, bitmek üzere olan bir kampanyaya denk gelip neredeyse yarı fiyatına kayıt olmuştuk. (5700 lira)

Eğitmen hoca çok iyiydi (Oytun Özen ‘e sevgiler), daha ilk günden eğitimi almakla doğru bir seçim yaptığımı anlamıştım. Daha önce bu alanda çalışmamış da olsam, windows işletim sistemlerine  hakim olmam ve genel bilgisayar bilgimden dolayı ( evet ayrıca bilişim sistemleri müh öğrencisiydim) kurs çok kolay geçti.

Bu süreçte tek rahatsız edici olay öğrencilerin birşey öğrenmeye çabalamak yerine sohbet etmeye hevesli olmalarıydı, ki bu eğitim sürecine doğrudan yansıdı.

Ha tabii eğitim ortalarına doğru Bilge Adam‘ın en başarılı bölümünün Kayıt bölümü olduğunu öğrendim…
Nasıl mı oldu ? Sınıfta herkes fena pazarlık yaptığını ve yarı fiyatına kaydolduğunu anlatıyordu büyük heyecan ile.Sonra farkettik ki her kaydolan aynı ücreti ödemiş. O gün uzun süre sessizlik oldu diye hatırlıyorum,saygı duymuştuk sanırım =)

Aradan bayağı bir sene geçti, şimdilerde kız arkadaşım için Grafik-Web Tasarım eğitimi araştırıyordum. Malum Bilge Adam ‘a rakip olarak bilinen sayılı firma var. Biri de Netron idi. Ancak Netron iflas etmiş anladığım kadarıyla..

Başarı Soft ilgimi çeker gibi olmuştu, ama hakkında çok yorum bulmak mümkün olmadı.. Haliyle Bilge Adam ile görüşmeye gittik. Tabii ki ücret kısmında yaşanacak olası güreş müsabakasını düşünerek üzerime rahat birşeyler giymiştim…

Önce Grafik Bölümü Bölüm Başkanı geldi, kendisi eğitimle ilgili teknik detayları anlattı. Eğitim gerçekten güzel görünüyor doğruyu söylemek gerekirse, benim bile aklımdan geçmedi değil..

Sonra asıl konuya geldik.. Ücret..

Ücretin 9500 küsür lira olduğunu söyledi hanımefendi, ekranı bize çevirerek gösterdi. Ben de nasılsa birazdan %40 indirim yapacağını,ne diye 9500 liralık fiyatı gösterme ihtiyacı duyduğunu sordum.. “İndirimden önce ne kadardı onu görmeniz için” yanıtını aldım. Peki =)

Hazırlıklı gitmiştim,hoca tanıdığım vardı, eski öğrencileriydim, 3500 lirayı görmeden kalkmayacaktım ordan…

Yok öyle birşey, öncelikle onu söyleyeyim. 4500 den aşağı iniyorlarsa da benim pazarlık becerimi aşan bir durum bu.İndirebiliyorsanız helal olsun.

Ha değer mi o paraya ? Bence 5000 lira da değer. Ama bu sadece ideal koşullarda geçerli.. Yani dünyayla alakası olmayan bir sınıfa düşerseniz ve hoca da ekstra iyi niyetli değilse tüm paranız boşa gidecek, kaçışınız yok.. Sınıf değiştirme vb şansınız var (normalde var aslında,fazla indirim yaptırınca o  hakkı alıyorlar elinizden =) şaka değil) ama o kadar uğraştıktan sonra da çok manası kalmıyor.

Hocayı araştırmak istedim,ismini aldım kayıt olurken,lakin google da tek sonuç çıkmıyor neredeyse kendisi hakkında. Esrarengiz bir hocadan ders alınacak, umuyorum ki branşında iyidir kendisi.. Google’da aratınca “stajyer hocalara ders verdiriyorlar !” gibi mesajlar çıkıyor karşıma, ama zannetmiyorum böyle birşey yaptıklarını. (yapmıyorsunuzdur di mi ? )

Bakalım Grafik Web Tasarım eğitimi nasıl olacak..

(Düzeltme : Kız arkadaşımın eğitimi bitti. Şahsen kendisi memnun, ancak benim beklentilerimin çok çok altında oldu (takip edebildiğim kadarıyla) ).

Saygılar,sevgiler..

-Güven

treatedwithlevitra

Multidimensional Arrays and Bubblesort in Java

Sunday, December 5, 2010 11:25
Posted in category Programming Languages

Hi there,

A week ago or two, while i was working on a project,i needed to sort some stuff in java.
Arrays.sort method might have been enough if it was a one dimensional array..

Sadly it wasn’t. Before trying to figure it out myself, i gave google a shot.
Well, google helped me saving some time again.

private String[][] bubbleSortMulti(String[][] MultiIn, int compIdx) {
String[][] temp = new String[MultiIn.length][MultiIn[0].length];
boolean finished = false;
while (!finished) {
finished = true;
for (int i = 0; i < MultiIn.length - 1; i++) {
if (MultiIn[i][compIdx].compareToIgnoreCase(MultiIn[i + 1][compIdx]) > 0) {
for (int j = 0; j < MultiIn[i].length; j++) {
temp[i][j] = MultiIn[i][j];
MultiIn[i][j] = MultiIn[i + 1][j];
MultiIn[i + 1][j] = temp[i][j];
}
finished = false;
}
}
}
return MultiIn;
}

Source web site : this.

-Guven

Notepad++ Post-it Mode

Monday, November 8, 2010 11:25
Posted in category Applications

Today while i was checking the options-tools of notepad++, i found one which almost got me crazy…

So called Post-it mode.Not sure if it’s efficient or too many people are using it,but man..You need to tell people how to exit from that mode.

Anyway,if you tried it too and used alt+f4 or something to exit..

Use F12 instead..That’s it.

-Guven

Online shopping

Tuesday, October 19, 2010 11:38
Posted in category Uncategorized

Was always wondering if i should buy stuff online from websites or not.
If the company is in your country,then there isn’t much to be afraid of,however if you’re shopping from another country things are different. (shipping costs,high duty rates,etc)

Well,i needed some books badly (about Oracle & PL/SQL),and it turned out that there is no copy of them in my country.(if there were,they would be selling it for twice the real price anyway) So i decided to give online shopping a try.

In Turkey,when you order something from another country,it needs to be cheaper than 100 Euro (or something like that) to be able to pass freely.However that rule doesn’t always apply, so basically you need to pray non-stop after giving the order and hope for the best.Still no guarantee (:

Another problem that you might face is ; if the order arrives when you’re not at home, it can be left on your apartment door..  Again you have nothing to do to avoid this except staying home, so that the package won’t be stolen already when you got home..

Since i needed to get them asap, i chose the fastest delivery option, and if everything goes fine i’ll get the books in 7 days top.

Will also write the result here..

-Guven

Edit :  I received my books yesterday.It took about 4 days.Everything was fine except the address on the box.Address was quite incomplete..

Like : Guven Gultepe / XX street/State / Turkey

That was pure luck that i received the box,and it was because the postman remembered my name since they brought me some other stuff before.

I’m not sure if it was DHL’s fault or the Amazon is responsible for that..

Happy to have my order without any problems tho.

Giver

Tuesday, July 6, 2010 11:43

Hey ,

I want to mention of an application,simple yet efficient one.
Except the name it has,everything is smooth =)

Giver is an application which lets you share files/folders between computers without needing any configuration at all.

Application uses Avahi system which enables service discovery on a local network.

You can create an Ad-Hoc network and share files using ‘Giver’ without making any effort and needing any wire.

Of course we can’t say that it’s perfect,since it does not have “pause” or “stop” function for ongoing transfers,which makes you try to close the application if you started a transfer by mistake :D

Also it works only if both of the computers are using Linux.You can’t discover nor share files with computers using Windows or MacOS.

Yet it’s an open source application,and can be improved ! Actually me and one of my friends are planning to make an application again using Avahi,trying to fix the problems we’ve seen in Giver and improving the functionality.

I don’t know if we’ll be able to come up with a better application or not,but its name will be better,i promise..

:D

Here are some screenshots to give you the idea of how it works.

-Guven

Asterisk and a refer problem

Sunday, June 27, 2010 12:48

Hey there,

I’ve been working on Asterisk for a while,reading documents and stuff.Things were good so far,making calls between clients that are in the same network etc.
However,i’m stuck at some point and seems like noone knows anything about it,or they are too busy to respond,i don’t know (:

I’m trying to understand refer messages,and there is nothing complicated as far as i experienced,except the fact that i don’t have any idea if Asterisk can send refer messages through a proxy server or not ? ..

The question is simple actually,but since i’m not an expert on this subject hence it’s likely for me to say things that does not sound logical,i’m gonna try to explain my question a bit..

Assume that i have an Asterisk server and number of clients connected to that.
Core
|
GWC
|
Proxy Server
|
Asterisk
|
Users

While A and B users are talking to each other if B decides to refer A to another user let’s say C ;
If A-B and C are both in the same network,there is no problem.
But what if C is in another VPN.
Can asterisk send refer messages to the proxy to find where C is,or is there no way to do that ?

Actually i’m not hoping to find a solution or something,i’m willing to solve the problem myself if there is ANY problem.. :)
The point is,i didn’t have a chance to experiment this and not sure what happens when you try to refer outside.
My mentors(in where i’m doing my summer training) are promising to let me test it soon.But i’m still trying to see if i can find any answers sooner..

By the way..
Linux really ROCKS ! :)

-Guven

Recording streaming audio

Wednesday, May 19, 2010 12:45
Posted in category Applications, Music

Hi there,

It’s been a while since my last blog entry because I was kind of busy dealing with exams and projects.
Anyway,i’m planning to write something about recording streaming audio as title points out.

There are rumors about some people who don’t know how to download mp3 files.To be honest, i don’t believe it.. :)
Even the ones that lack the basic knowledge about computer and/or internet are downloading mp3 files.(of course out of 5 files that they are downloading ,4 of them are often viruses and 1 of them is an actual mp3 file,but this doesn’t change the fact that they are downloading mp3 files..)(i’m not judging them since i have this kind of people in my family too :D )

What i’m trying to say is; Yes,you can download mp3 files easily (i’m not talking about legality,it’s your problem anyway). However,do you think it’s still easy as some years ago it was,to find the real music file that you’re looking for without getting your computer attacked by viruses,or is it easy to find old songs downloadable ?

As i said earlier,i’m not talking about legality here.As you know,mp3 files are illegal if you are not buying them from official sites etc.And you have to have the album of the artist first if you want to convert it to an mp3 file.But let’s say that you’ve already done what it needs to be done.(since i don’t feel comfortable encouraging you to have illegal mp3 files)

Okey,now it’s time to record your very own MP3 files !

I think all of you somehow heard about or even used online radios or other websites that have streaming audio for you.
Like “lastfm” or “fizy”..

I want to talk about an application(which is free) to record & edit sounds.
It’s Audacity .

After you download and install the application,what you need to do is quite simple.
First of all,you need to select “Wave Out” or “Stereo Mix” as the input source from Audacity’s mixer toolbar,which will let you record what you heard from your speakers basically.
But don’t forget that if you have messenger sounds on or something like that,while you are recording a music file all other sounds will be recorded too,so i suggest you not to do other stuff while recording.(including using a microphone..)

Little problem that you may have here is not being able to find an option as “Wave Out” or “Stereo Mix” or something similar.The best way to deal with this problem is to upgrade your sound drivers,since the drivers that windows installs for you don’t let you see this option most of the time.

Okey,after doing this simple configuration,you’re ready to record your very own mp3 file..
Just press record button in Audacity and then start a music file from the website you like.
Notice that you don’t need to be quick doing these things,i mean after starting recording in Audacity,there is nothing wrong having some time before starting the song,because you’ll be able to delete the silence parts easily at the end of the recording process.

After finishing the recording process,just select the parts you want to delete and press ‘delete’ :)
You can now save this file as a wav,mp3,etc..

If you play with it for some time,you’ll notice there are also many options for recording,you can change those to have better results.

That’s it !

Perfect product ?

Tuesday, April 6, 2010 19:26

My old boss used to complain saying “I give lots of money to buy these laptops,palms,and all they cause is more trouble..”
Well,it’s almost obvious that you need to have some technical knowledge to be to able to keep your devices stable,regardless of how user-friendly the software is.

On the other hand,nowadays i’m starting to think that he was right.As someone who knows how complicated hardware&software systems are,and can solve most of the problems by just working on it for some time-and even having fun solving it-,i sometimes feel uncomfortable not having the ‘perfect product’ by just giving the money they asked for.

Yes,there is no such thing as ‘perfect product’. Okey..
However,when you’re buying some devices of the famous brands and paying lots of money for it,you might expect the devices satisfy your needs.Or,just not to crash randomly at least !! =)

Not the exact example of that,but i have a weird,and irritating problem with my live messenger lately.
‘Lagging’ is the righ word here i guess. Regardless of what you’re doing at that moment,messenger can freeze and not let you do anything for about 5 seconds,then just turn to normal.
This problem occurs on a licensed Windows 7 Professional 64 bit.

So,what we have on hand here is  ;

Licensed Windows 7 64 bit
Windows Live Messenger (latest version) (and without any addons installed)

I read everything about this problem on the net,and the best part is,there is no solution to it..
Many users of 64 bit windows 7 are having this problem,while many of others aren’t.
There is almost no method left to try to solve this problem,however we still got nothing.(Didn’t mention,but of course those computers are virus/spyware/etc free)

I wish there would be a way to make all people go back to ICQ again..
Not because i’m having this problem,but i’ve been missing it badly (: