oracle
Swap Table Names Between Inserts And Selects on the Same Line using Regular Expressions
· β˜• 3 min read · ✍️ sathya

Background: For the past few days weeks, I have been working on a way to export selective data from one schema to import into another. Now the problem is that “selective” data refers to the data as stored across various tables in the custom application that I’ve been working on, with elaborate relational links between the tables ( if you’re curious, the table count on the related data was about 65) - so it was not just couple of tables that I had to export.


Brush up your PL/SQL knowledge with PL/SQL Challenge
· β˜• 1 min read · ✍️ sathya
If you’re looking to brush up on your PL/SQL knowledge, PL/SQL challenge is pretty nice. It’s a daily challenge quiz, where you are presented with multiple choice or true/false questions. It’s an initiative by Steven Feuerstein , who’s pretty well known. I just joined in, first few questions were not too tough πŸ™‚ Join in, there’s some great prizes to be won . If you know of any more such websites, do drop in a comment and let me know.

Yes I'm alive!
· β˜• 5 min read · ✍️ sathya

It’s been Β a while hasn’t it, since I last blogged ? *goes to next tab to check last manual blog post* April 19. God! Hadn’t realized its been so long since I last composed. Yes, I’m alive (hey you’re reading this aren’t ya?). I can hear the collective yells of “where the hell have you been”. Well - work. Been drowned, swamped, overloaded - basically been busy with shit loads of work.

Next question - Am I in Austin ?


The Power and Simplicity of Oracle Hierarchical Queries
· β˜• 6 min read · ✍️ sathya

They say “Necessity is the Power of Invention” - a quote which I fully understood the impact today. I’ve been trying to understand Oracle’s Hierarchical Queries for a while now, but never fully understood the situation under which or when it would be used. Yesterday I got a reason to use it. Let me begin.


Exporting and Importing An Oracle database from one schema/user to Another schema/user easily
· β˜• 2 min read · ✍️ sathya

Couple of days ago at work I was asked to create a new environment(schema, user) for specific application testing conditions. While that was no big deal, I was also asked to import all the data from existing production environment into a new environment - and I was in a bit of bother here - generally the whole importing/exporting is done by DBA’s not developers. While I knew the usage of exp and imp commands, creating schema would require stuff like tablespace creating, adding data files and more importantly - grants which I had NO clue on. So after a bit of experimenting and consulting with my fellow colleague Rupam, I finally managed to export and import the data. This post is on how-to go about doing it.

If you want to skip all the commands and all just get the import / export done in 1-click try Easy Dump Oracle 1.1 - a tool which I found on the database server after all the headbanging 😐

Anyways here’s a step by stepΒ  process on how you export and import the data - do note that Easy Dump Oracle can import data ONLY if required grants are given to the user and tablespace has been allocated. For that you need to follow the below mentioned steps.


Query For Displaying The Calender of The Current Year using SQL
· β˜• 1 min read · ✍️ sathya

Another of things I got via IpMessenger, this query(yes, its a QUERY, not even a full-blown code) returns the calender of the current year. Do note this query will work only in Oracle.

Here’s the query.