• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/69

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

69 Cards in this Set

  • Front
  • Back
Where are listener.ora and tnsnames.ora located? client or server?
listener.ora = server
tnsnames.ora = client and server
Which DBA tool configures Oracle Net Services with step-by-step instructions?
Net Configuration Assistant
In which tool(s) can you view and modify data, table structures, indexes, views, objects, procedures and packages?
Schema Manager, which is included in Enterprise Manager
In which tool(s) can you view and modify users, roles and profiles, create new users, and change passwords?
Security Manager, which is included in Enterprise Manager
Which tool executes SQL commands, runs reports and queries, starts and stops the database?
SQL*Plus
Which control handles many instances from one place?
Grid Control
Which control handles only one instance from one place?
Database Control
If you need to control more than one database and/or instance using the Database control, how can you accomplish this?
Open more than one Database Control, each one using a different port number
What is the Unix command to open the Database Configuration Assistant?
dbca
Which tool creates new database instances?
Database Configuration Assistant (DBCA)
What is the Unix command to open the Net Configuration Assistant?
netca
What is the Unix command to open SQL*Plus?
sqlplus <username>/ [<password>]
What is the Unix command to open Enterprise Manager?
emctl start dbconsole
Where does Oracle Net Services reside? client or server
both
How does Oracle Net Services work?
On the client side, ONS accepts requests from Oracle and translates them into the local network protocol (usually TCP/IP), and sents them across the network. On the server side, ONS receives the requres from the network, translates ito into an Oracle protocol and sends it to the database, where the listener process is waiting for requests to respond to as needed.
What details must ONS know about the database and where is this information stored?
Which computer contains it, what it's name is and to which port number its listener process is tuned. This information is stored in the service name, which is defined on both client and server, in the tnsnames.ora file.
If using tools on the same computer where the database is running, what method besides ONS may be used to connect?
a bequeath protocol
Name three methods of reaching the database server from a client computer.
-Client with Oracle Net
-Client with JDBC driver
-Terminal with direct connection (bequeath protocol)
If you omit the service name during login, what happens?
You reach the default database on your computer
Name 5 network naming methods
-Local naming
-Directory naming
-Host naming
-External naming
-Easy connect
Which network naming method is the default method for connecting to a database?
Local Naming (TNS)
Which network naming method uses a configuration file to define connection to the database?

What is the name and location of the file?
Local Naming (TNS)

tnsnames.ora, located in ORACLE_HOME/network/admin
Which network naming method uses a LDAP server to define connection to the database?
Directory naming
What does TNS stand for?
Transparent Network Substrate
Which network naming method uses tnsnames.ora?
Local Naming
What does LDAP stand for?
Lightweight Directory Access Protocol
What is LDAP?
Stores names and their mappings, much like a DNS server
Which network naming method uses IP address?
Host naming
Which network naming method uses third-party software applications to provide naming service?
External naming
Which network naming method uses no naming, but rather a direct connection string?
Easy connect
What is the most commonly used network naming method?
local naming with TNS names
What is the function of the listener?
- listens for requests made by user connections
- allocates a server process (directly for dedicated servers, or indirectly using a dispatcher process for shared servers)
how to start, stop and check the status of the listener process in Unix?
lsnrctl start
lsnrctl stop
lsnrctl status
What is the default setting for listener logging and tracing, and why?
Both default to OFF, because both can be a drain on resources.
What command calls a utilty which validates TNS configuration?
tnsping
what background process distributes connections from user sessions to server processes in a shared server configuration?
Dnnn - Dispatcher process
Which server configuration uses CPU and memory more efficiently?
shared server
Which server configuration is best for an OLTP system with a large number of users (>1000 users)
shared server
Which server configuration is best for a system with large amounts of memory and CPU power and why?
dedicated server, because users will never have to wait for a server process to be available
define connection
the link from a user session, through the server session and to the database
How do you define whether a user connection is dedicated or shared?
in the tnsnames.ora file
PMON definition and function
Process Monitor process cleans up after user sessions are finished, and monitors server and user sessions and tries to restart them if they have stopped unexpectedly
DBWn definition and function
Database Writer process writes modified buffers to datafiles.
How many Database Writer processes are configured to start up as defaults?
What are their names?
Why would more be configured?
Two
DBW0 and DBW1
to speed up performance if your system is very active
LGWR definition and function
Log Writer process writes redo log buffers to the redo log files
When does LGWR act?
-every 3 seconds
-when the redo log buffer is 1/3 full
-immediately before DBWn process writes
What is the sequence of LGWR writes to multiple redo log files in a group?
they are written in parallel, at the same time
CKPT definition and function
Checkpoint process signals DBWn to begin writing to disk by issuing a checkpoint
Does CKPT write any data to disks?
No
SCN definition and function?
System Change Number identifies changes, such as updates and checkpoints. It is written into each redo log entry, the control files and each data block that is written back to the datafiles.
SMON definition and function
System Monitor process handles recovery if it is needed. It also cleans up unneeded temporary tables and restores blocks that are released to make them available for use.
ARCn definition and function
Archiver process (only present when db is in ARCHIVELOG mode). copies redo log files to separate location outside the database, into archive redo log files.
How many Archiver processes are configured to start up as defaults?
What are their names?
How many Archiver processes can be configured?
Two
ARC0 and ARC1
Ten (ARC0 through ARC9)
Dnnn definition and function
Dispatcher process, (only present in shared server mode), distributes user connection requests between server processes
What are the two main sections of memory for the Oracle instance?
- System Global Area SGA)
- Program Global Area (PGA)
How many redo log groups are recommended?
Three
With two redo log groups, each with two members, explain how LGWR and ARCn work in a database in ARCHIVELOG mode
With Group1 active, LGWR writes to both members in Group1 in parallel. When the members fill up, log switch occurs for LGWR to write to Group2, and ARCn copies from one member of Group1 to an archive redo log file. Once Group2 is full and ARCn is done copying from Group1, a log switch takes LGWR back to Group1 to overwrite the previous data with new data.
How large are redo log files by default?
50 MB
Redo log file sizes should be adjusted to get approximately what frequency of log switching?
4 times per hour
What happens if the redo log file size is too small?
log switches occur too frequently, causing overwriting too quickly (not enough info is available in the redo log files)
What happens if the redo log file size is too large?
Not enough log switches, makes for cumbersome recovery from redo log files
How is the buffer cache used?
As data is read from file, it is stored in memory in the buffer cache. When the same data is needed again, if it is already in the buffer cache, the server process reads the block from the buffer, which is much faster than reading from disk. If not, it reads the block from disk to the buffer, and then uses the block.
What are the possible sizes for the buffer cache and what is the default size?
2K, 4K, 8K, 16K and 32K.
Default is 8K.
What are the memory components within the SGA?
- Buffer cache
- Shared pool
- Redo log buffer
- Large pool
- Java pool
- Streams pool
How is the shared pool used?
When a server process sends a request, such as a query, parsed SQL is stored in memory in the library cache section of the shared pool The results of the parsing and the results of the Optimizer's path selection process are stored in the shared pool. When new requests come in, Oracle reuses old requests if possible, to save time. It also has a metadata cache.
What are the parts of the shared pool?
library cache
metadata cache (row cache)
When a change is made to data, what is stored in the redo log buffer?
copy of the changed data and a copy of the original data
What Unix command can be used to see if the Database Control is running?
ps -ef grep | oracle
What four main tabs are available in the top left in the database control interface?
Home
Performance
Administration
Maintenance