Oracle

For large organizations or those requiring large data volume, high transaction volume or advanced database features, Maxim Consulting recommends Oracle for your relational database management system (RDBMS). Oracle offers a full-featured platform that is ideal for organizations with well trained IT personnel and a robust hardware and network infrastructure. We do not recommend Oracle for smaller organizations with more limited resources.

Maxim Consulting Oracle Experience

  • PL/SQL Programming (procedures, functions, packages)
  • Table Design (foreign keys, triggers, sequences, etc.)
  • Large Objects (BLOBs, CLOBs)
  • Advanced Security Option (ASO)
  • Replication (Materialized Views and Logs)
  • Performance Tuning
  • Enterprise Manager
  • Backup/Restore (RMAN)
  • Installation/Upgrade/CPUs
  • SQL Developer
  • Normalization
  • Oracle Client
  • Native and ODBC Connectivity

Oracle Hints and Tips

Over the years we have learned many useful tips for Oracle implementations. We will provide new tips monthly.

February 2012 - Test a string for numeric values

LENGTH(TRIM(TRANSLATE(TRIM(string1),' 0123456789','A          ')))

string1 is the string value that you are testing.

This function will return a null value if string1 is numeric. It will return a value "greater than 0" if string1 contains any non-numeric characters (including spaces). You may also want to add ".", "-" and/or "+" to the list of numeric characters depending on your use.

January 2012 - Comparing dates without using time component (TRUNC)

Date columns in Oracle have a time component. So, if you are comparing two dates from two source and the times are different, you will never get a match. To remedy this we had been converting the dates into string using TO_CHAR in the 'YYYYMMDD' format. A better way to do this is the TRUNC function.

A common way we will use it is:

SELECT  *
FROM     ea.elections
WHERE  Trunc(:din_election,'DD') = Trunc(a.election_date,'DD') 

It is important to note that applying the function in this manner may bypass the use of an index on the date column and may negatively affect performance.

 

Data center