Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Help - DBA interview questions I faced

Re: Help - DBA interview questions I faced

From: Rachel Carmichael <wisernet100_at_yahoo.com>
Date: Tue, 25 Dec 2001 09:03:29 -0800
Message-ID: <F001.003E2922.20011225084017@fatcity.com>

I didn't mean to demoralize you but if you read the manual two years ago, you need to re-read it. And I do suggest that you play with things in Oracle and read the manuals to understand what is going on.

I still think you need to do research to get the answers to your questions but here are some of the answers. And you HAVE to read, we can't teach you everything you would need to know:

  1. username and password can be found in the dba_users view. The password is stored encrypted and cannot be manually verified. Error messages displayed by the database processes are stored in the files in the ORACLE_HOME/rdbms/mesg directory
  2. The question is misleading as extents are not automatically allocated to a user when they are assigned to a tablespace. When the users who have that tablespace as their temporary tablespace need temp segments, the allocation of extents will be based on the default storage parameters of the tablespace. If they wanted to know the maximum space a user could use in that tablespace, you would need to know the quota that was assigned to them -- in dba_ts_quotas.
  3. Redo logs and rollback segments serve two different purposes. rollback segments are used within the database, to provide a consistent picture of a changing table to other users or to allow the user making changes to "rollback" their changes from the database. Redo logs are used when the database needs to do recovery. Oracle does NOT read the redo logs while the database is up and open, it only writes to them.
  4. of course the rollback segment has something to do with inserts and imports.... as long as you are not doing them in nologging mode (even then, the rbs is written to for system metadata). The only time you don't write to a rollback segment is when you are doing a select -- and you might need to read them at that point.

Rollback segments don't have autoextend -- I presume you mean the tablespace datafiles do not have autoextend. If you cannot get enough rollback space for the entire insert/import, and you are not doing an interim commit, you will lose the transaction and the changes you have made so far will be removed from the database when you fail to extend the rollback segment. If you have interim commits, you will a) need less rollback space and b) retain the data that has been committed.

5) deferred rollback segments are used for transactions in tablespaces that were taken offline while the transaction was in flight.

6) You cannot change the ownership of the process to the user who logged into the database because the user is not actually in the database, but is interfacing with an executing shared program which is owned by Oracle and therefore the process in the database is owned by oracle.

7) infrequent commits in a long-running transaction can be the cause of an 0ra-1555. Most of the time the problem is not that the rollback segment is too small. You can also have too few rollback segments. In general though, the problem is in the way the application(s) are coded and not within the database.

8) the tables are in both memory and the datafiles.

9) freelists are stored in the segment data block headers, NOT in the datafile headers


Do You Yahoo!?
Send your FREE holiday greetings online! http://greetings.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: wisernet100_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Dec 25 2001 - 11:03:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US