Skip to main content

Learning curve: SQL writing by Unlocking HR schema

Its been a long time since I have studied anything with enthusiasm or a goal to achieve. The last time was when I took MarkLogic CCP but I don’t remember anything on that now, I never got an opportunity to work on it, not even a POC. Now I’m part of study group which has a goal, to get certified in SQL writing.

The learning is exiciting after all the java codes I write and debug its a refreshing change to use SQL. Wait a minute, does that mean I’m not using any SQL database at the back end? No, Yes – my application uses Oracle 11g but I’m not having any SQL developer to work with it, rarely I open SQL + to check if password is to expire.

The bad part is that I have to fill boring tables to query on them, quering is natural to human but not recording :D Some guy said “I’ll find the laziest person to do toughest job so he finds a shortcut” guess he was rit! I found the lazy easy way to query without to having to record.

Unlock the HR user

So I found there is a user called HR who is locked and kept in Oracle 11g Express edition by default. The user has around 7 tables pre-loaded with records – Jackpot! all you have to do is to issue the simplest statement by logging in an user with admin rights, say – SYSTEM or SYS (depends on version and installation)

ALTER USER HR ACCOUNT UNLOCK IDENTIFIED BY password;

Novice tip: Not just 11g its available in many versions; yes as you see password for HR user is password. Done, if you get a message that reads ‘User altered’ hi-five yourself else bring that hand to face and do a face-palm your system admin might have deleted that account

Comments

Popular this month

Puththu kovilum Putho tilesum, as they are built

Its the grand Aadi season here in Tamil Nadu wherever you go you'd be followed by awful noise from no mercy speakers masqueraded as a devotional song. Yes, this is the first post dedicated to it. Hindu is not a religion but it's idealism, a way to unite people, that's perfectly constructed by assuming separate task to every God, no single God worship. Hindus moved from nature worship to idol worship, but that doesn't mean that we don't have nature worship we have created an idol for them and continued to worship them in a different form. Snake is a beautiful reptile, I have made friend with few too... Our ancestor found the natural law, 'every living creature on earth is important for the ecosystem to be balanced'. Maybe to make sure snakes are not killed fearing their venom they made them as God too! Not just idol snakes, they are worshipped as they are at their  conquered (from rats and termite)   nest or  puthu . Puthu...

Up and Close with Sudalai Madan: The Encounter

Night of 13th April all the preparations for the rituals were done in the temple, Sudalaimadan swamy was decorated with flowers, fruits and coconuts; the dedications reached above his chest. My cousin Sudalai Muthu, senior priest of the shrine reached home by late-night got blessings of his father Late Shanmugam Sundaram also previous head priest and blessed the family members in room dedicated for God, then started towards the temple. People have already gathered in huge numbers and were waiting for the Sudalaimada Swamy's arrival at Temple. Different rituals were offered by people to the Lord in order to get the blessings. As it is believed Sudaimada Swamy, the son of Lord Siva used to consume meat in Kailash for this reason he is sent to earth, where he can satisfy his earthy hunger thereby not polluting Kailash. Sree Aaladi Padmanabha Sudalaimada Swamy Temple, Kumarapuram Offering meat to Sudalaimadan is the most important and watchful event of the festival. Many devotees off...

Three language educational policy will only benefit Hindi

The three language education policy even if not enforcing Hindi, will end up enabling and propagating only Hindi! Since I'm from Tamilnadu, I'll restrict my views to it; but you can pick this template and apply to any state/UT of India. Students cannot learn on their own, this would mean hiring new teachers. But Schools cannot afford to hire many teachers due to budget, that cascades to lean number of choices available for student. German/French/Japan or any such international language teachers will be highly sought after by lavish private schools which translates to high salary for them, naturally schools catering to middle class will not be able to afford them. Thus school administration will end up hiring Hindi teachers readily available from Dhakshina Bharat Hindi Prachar Sabha. Maybe some schools present in borders towns like Vellor, Hosur, Nagapattinam will choose Telugu, Kannadam, Malayalam and so on. Baring them I can only see Hindi flourishing in future. I...

Unmaking of tortilla with corn flour

I'm on my cooking spree, it has been bread & jam or noodles for too long. Now that I have grown a taste for cheese I bought a lot of cheese and started googling recipes that includes cheese. I started out with cheese sauce for nachos, I liked nachos more than sauce cause I didn't get it right the first time. In nachos I found a good evening snack, so moved into salsa or mayo or even thick salad dressing as I found it easier to arrange than cook. Inevitably I came back to stove when I wanted to eat pasta after having mouth watering conversations with Dewang . I wanted to make pasta with sauce or cheese of my choice also privilege of eating pasta in India is mostly reserved for those people who works in corporate and goes out for casual dinner and lunch were they don't need to pay bill. Cooking at home gives me the opportunity to introduce such cuisine to my parents. I started cooking pasta and sauce, once I made the cheese sauce curdy and the other day I forgot to...

Shame of Sabarimala : Annadhanam under TDB

Annadhana Prabhuve, Saranam Ayyappa It means "The noble who donates food, Ayyappa save us". The legend is not clear about how or why Lord Ayyappa is called so, coincidentally the third step of the Pathinetu padi stands for Annapoorna (the God of food) by crossing this step Ayyappamar assure that they have followed Ayyappa by donating food to peers and made sure any Ayyappamar coming to Sabarimala for Punya Dharishanam is not hungry. I'm sure this year many Ayyappamar did not fullfil this deed to proudly step on it, they neither received nor gave; they were curbed. Though it was ABASS*   who started it all many sangam took up the responsibility to feed the hungry Ayyappamar, people have crossed the toughest times by taking supplies to impossible mountain peak like Karimala, Azhutha; now with roads easing pain kerela government and travancore devaswom board(tdb) is pulling the rug on Seva Sangams. Image edited from The Hindu Double standard of kl govt and tbd ...