Home > The top advice from Oracle experts in 2008
Top Expert Tips:
EMAIL THIS

The top advice from Oracle experts in 2008

16 Dec 2008 | Shayna Garlick, Assistant Editor

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

Whether you have a question about Oracle errors, backups, upgrades or jobs, SearchOracle.com has an expert panel ready to help. This year our experts answered questions on all these topics and more - - here's a look back at some of our most popular expert questions and answers of 2008.

TABLE OF CONTENTS
   1. What is the ORA-03113 error?
   2. How to get history of modified data from Oracle databases
   3. How DDL and DML commands work in Oracle
   4. How to do a hot backup when Oracle Database is up
   5. When should an Oracle database be reorganized?
   6. Tips for how to size an Oracle server
   7. When to use CHECK constraints in SQL
   8. When to do a manual upgrade vs. export and import
   9. What is the difference between a database engineer, architect and administrator?
   10. How to archive and decommission a database

What is the ORA-03113 error?

Q: We have an Oracle 10g database and get the ORA-03113 error sporadically. This is a science application where we query time-series data from a vb.net application. We can query successfully all day with some parameters (location, variable identifier, and date range) but when the date range changes beyond a (arbitrary?) limit (e.g. 2003 to 2007 works every time, but 2002 to 2007 fails every time), this error appears. We get a similar error using Oracle's sqldeveloper, though the error message text is different. Where do we start looking for answers?

A: ORA-3113 errors mean that your network connection to the database was severed. In my experience, there are two problem areas. One, something in the network failed between the client and the database. Two, a bug in the database caused the session to be terminated and the client thinks a network error was the cause. If you are sure your network is fine, then it is probably a bug. Make sure you have the 10.2.0.3 patchset installed. After that, file a Service Request with Oracle Support. Only they will be able to help you with the ORA-3113 error.

Learn more about solving Oracle errors.

What is the ORA-03113 error?

Q: How can you get the history of data modified from an Oracle database?

A: There are a few options at your disposal. After the fact, you can mine your archived redo logs using Oracle's Log Miner utility. Before the fact, you can set up auditing to record changes...

Read more about these options from expert Brian Peasland here.

How DDL and DML commands work in Oracle

Q: What happens in the background when we execute DDL or DML commands?

A: First, Oracle parses the statement and ensures that the statement is syntactically correct and semantically correct. Next, Oracle verifies that the user has permissions to perform the statement. If the user can execute the statement, Oracle obtains all locks necessary for the statement to complete. Once the locks have all been obtained, Oracle executes the statement. In some cases, results are returned. If results are returned from the statement, Oracle fetches those results and places the result set in an area called a 'cursor'. The cursor is passed back to the application.

Read more about the definitions of DDL and DML commands

Hot backup when Oracle Database is up

Q: What is the procedure for doing a hot backup when the database is up?

A: There are two ways. The preferred way with Oracle's databases today is to use RMAN. The following will perform a hot backup using RMAN.

Read expert Brian Peasland's recommended steps for using RMAN and learn more about RMAN and hot backups.

When should an Oracle database be reorganized?

Q: When should a database be reorganized?

A: Never. A well-designed database should never need reorganization. It used to be that a DBA would perform a weekly or monthly reorg to help database performance. But today's Oracle databases do not need regularly scheduled reorgs to perform well. Bad design can throw this theory out the window though.

Read about some expert tips for good database design.

Tips for how to size an Oracle server

Q: Do you have any suggestions on where I can find the following information, with recommended server hardware specifications for how to size an Oracle server? I'll be using storage area network (SAN) storage.

  • Number of processors
  • Quantity of RAM

I've searched the Oracle site and even though there are a number of white papers, I haven't seen anything like the old 9i sizing guide.

A: I have not seen any sites or other pieces of information that would give you the information that you seek. And I would be leery of the information presented. The amount of memory, processors, and other system resources are not dictated by the total volume of data in the database.

Learn what expert Brian Peasland thinks is the best way to size the server.

CHECK constraints

Q: How can I create a constraint to not allow a date prior to 1 Jan 2007 to be entered?

A: This is accomplished with a CHECK constraint. Here's an example:
    create table documents
    ( id    integer     not null primary key 
    , title varchar(99) not null
    , added date        not null
    , constraint only_new_ones 
         check ( added >= '2007-01-01' )         
    );

Read what else SQL expert Rudy Limeback has to say about CHECK constraints and find answers to other SQL questions.

Manual upgrade vs. export and import

I am ready to upgrade. My database size is 200gb and it is an unsupported version of Oracle to upgrade to 10g(8.1.6.2 to 10g). It's O/S is on HP-UX, so could you tell me whether the best process for upgrade is to follow the manual upgrade process or by using the export & import to the new Oracle Database? If I follow the manual method then I have to apply the 8i to 8i Patches then to 10g . If I follow exp/imp then I need more down time. Which process should I follow?

A: If you perform the manual upgrade process, then you will have to be at least at Oracle 8.1.7 before you can begin. So to go from 8.1.6.2 to 10g, you will need two upgrades with this path. If you use export/import, then you will only need one upgrade. On average, each manual upgrade will take about 1 hour, but this time can vary. So without knowing more about your environment, the manual upgrade process will require about 2 hours of downtime. Using export/import for a 200GB database will probably take longer. So the big question to answer here is how much downtime can you take for the upgrade? If you had a larger downtime window, then you might use exp/imp for the upgrade. The exp/imp method also lets you perform some reorganization like moving objects to new tablespaces.

Read more about upgrading in our Upgrading Oracle All-in-one-Guide.

What is the difference between a database engineer, architect and administrator?

Q: Could you please explain the differences between a database engineer, a database architect and a database administrator?

A: Great question! It can get pretty confusing as these titles (and many more including database developer, data architect, data analyst, data modeler, database designer, etc.) are often intermixed, used improperly, or redefined by the companies using them. The definition really depends on the actual job descriptions as defined by the various companies posting them. I will do my best, however, to differentiate and simplify them for you...

Read expert Michael Hillenbrand's descriptions of these three jobs.

How to archive and decommission a database

Q: What would be the best way to archive and decommission a 5GB Oracle 7.3 Database? This data needs to be available for at least 20 years from now in case a regulatory agency requires it, and we are afraid that in the future we won't be able to recover it to a newer version of Oracle.

A: I use Oracle's export utility for this type of task. Your database isn't too large, so exp will work. The nice thing about exp is that future versions of Oracle will still be able to read the resulting dump file. So perform the following:

exp userid=system/manager file=my_db.dmp log=my_db.log full=y

The resulting files can then be written to DVD or some other media for long term storage.

Learn more about the export utility, such as how to use it to perform a hot backup and why you may see export utility errors.

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Oracle database administration
How to rebuild a built-in Oracle package body
How to use a wrapper script with cold backups in Oracle
How to rebuild a database to change Oracle block size
Can we use a single database update trigger for an Oracle database upgrade?
Understanding Oracle cost-based optimizer (CBO) and rule-based optimizer (RBO)
The top 10 Eye on Oracle blog posts of 2008
Web 2.0 users, community and participation in the enterprise
Enterprise search and links for Web 2.0
Tips for Web 2.0 success and setting Web 2.0 goals in the enterprise
New Web 2.0 tools: Beyond the basics
Oracle database administration Research

Oracle applications
Oracle-Sun deal faces more questions from the EU
Oracle's Identity Manager features new integration architecture
Special Report: Collaborate '09
Enterprise software market won't grow this year, report says
New OAUG chief riffs on Fusion, Exadata and recession planning
The top 10 Eye on Oracle blog posts of 2008
Oracle Enterprise Manager quiz
Special report: Collaborate '08
Is Oracle 11i Applications or E-Business Suite a variation of Oracle Forms?
Where can I get more information on the Oracle CRM E-Business Suite?

Oracle development languages
How to check SQL query construction with the Mimer Validator
Understanding SQL string functions
What's the difference between an SQL inner join and equijoin?
Using LEFT OUTER JOIN query to get zero row counts in SQL
How to return multiple values for THEN clause in an SQL CASE expression
Can I concatenate row values in SQL?
Should I try to avoid a LEFT OUTER JOIN in SQL?
Tips for derived tables in SQL and using FULL OUTER JOINs
How to write an SQL query for two foreign keys to the same table
How to create an SQL CHECK constraint for two letters

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




Oracle Tutorials and Expert Advice
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts