Author: Steve

Why won’t my VIP start?

After restarting a test server, I found the RAC VIP would not start. This post is just a quick note as to how I troubleshot the problem, as well as its ultimate resolution. I frequently use the find -mmin 5…

Getting DDL for a scheduler job

If you need to copy the DDL to create a scheduler job from one schema to another, what is below works well… 13:28:56 oracle@oh1xpwcdb01 ~ >./dynColumns.py “select dbms_metadata.get_ddl(‘PROCOBJ’,’CHECK_TEMP_FREE’,’HOWARDS’) from dual” ———————————————– BEGIN dbms_scheduler.create_job(‘”CHECK_TEMP_FREE”‘, job_type=>’PLSQL_BLOCK’, job_action=> ‘begin oclc_checks.check_temp_free(10); end;’ , number_of_arguments=>0,…

Standard exception pragmas

Oracle provides several standard exception pragmas (essentially, a compiler directive) for exceptions found on a fairly frequent basis. These are documented in the PL/SQL User Guide and Reference, but you can also get them at runtime using what is below:…

ASM device structure

Today, we had an issue where the asmlib disk label was removed from a disk at some point in the past. When we added new storage and issued oracleasm scan disks , the disk was “cleaned”, rendering it unavailable on…

Converting ASCII to binary

This is pretty useless, but I know some people like this kind of thing 🙂 10:11:42 oracle@emgrid01 ~ >echo “if you can read this you are a geek” | xxd -b | awk ‘{printf(“%s %s %s %s %s %s “,$2,$3,$4,$5,$6,$7)}…

Creative ways to do simple things

I always like exercises such as this, especially for interview questions. In an interview, I am never looking for the correct answer as often as I am how the question is answered, and how creative the person is. For example,…