• 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/89

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;

89 Cards in this Set

  • Front
  • Back

What's is the Oratab.file for?

It shows you all the database and the database instillation that you have on that particular server.

What is the Command to check what database your connected to?

Select name from v$database;

Path to get to the Oratab.file

/etc/oratab

What's the path for the bash profile

Cat .bash_profile

What's in the bash_profile

- oracle_base


- default oracle_home


- default oracle_SID

Is the bash_profile dynamic or static profile

Static

What's is a static profile?

A static profile is a file that does not update on it's own. You have to go in and manually make updates yourself

What are the two ways to update database once deleted in bash_profile?

- vi .bash_profile


- source .bash_profile

What four things need to be check to make sure a database was successfully created?

- dbca


- etc/oratab


- cat .bash_profile


- cd $ORACLE_HOME/dbs

What is the echo command for?

To verify what database your about to connect to before you actually connect to the database.

Command to echo database?

Echo $oracle_SID

Command to echo oracle home?

Echo $ORACLE_HOME

What is a Instance?

A combination of memory and background processes

Oracle Database is made up of what parts?

- Physical structure


- Logical Structure


- Memory


- Background Processes

What's included in the Physical Structure?

- Spfile


- pfile


- control file


- Data file


- redo log file


- archived redo log file


- password file


- alter log file

What's included in the logical Structure?

- block


- extent


- segment


- tables


- tablespaces


- views


- constraints


- synonyms


- sequences

What's included in the memory structure?

- sga: stored global area


- pga: program global area


- uga: user global area


- shared pool: Library cache, data dictionary cache

What's included in the background processes?

- SMON


- PMON


- DBWN: database writer


- LGWR: redolog writer


- archiver


- check point



What is memory?

It's what makes your database go fast. It retains alot of the information.

What is background processes?

The things that actually do the work. Slave programs that do the work for the user on the back end; for the user and for maintenance purposes.

What is Physical Structure?

Files; it's made up of important files.

What does the spfile do?

Start your database

Where is your spfile located in Oracle?

$HOME_ORACLE/dbs

Where is the spfile located in Windows?

$ ORACLE_HOME/database

What does the pfile do?

Start your database

What's the difference between spfile and pfile?

Spfile has both dynamic and static parameters but pfile only stores static parameter.

What is the naming convention for spfile?

Spfile(database_name).ora

What is the pfile naming convention?

Init(database_name).ora

What is a Control file?

Used to mount database. Located in your spfile. Must have a minimum of 2 spfiles.

How to view control files?

Show parameter control

What is a data file?

It opens the database. The most important file in the database.

What is the REDO log file?

It opens the database; records all changes other than truncate.

Archived REDO log file

Saves all changes made in the database except truncate.

What is the Password file?

Used to save the sysdba password stored outside the database

What is the Alert log file?

Used to store all critical/errors in the database. Any problems w/ the database goes in this file.

What is logical Structure?

Anything that you need to log into the database to see.

What's the difference between logical Structure and physical structure?

For physical Structure you dont have to log into the database to see physical files b/c there right there in the O.S.

What is a block?

Smallest logical structure to store data. Default block size is 8kb.

What is extent?

Two continuous blocks. Two block related to each other; have data related to each other.

What is a segment?

Multiple extents; two extents

What is a segment?

Makes up tablespaces; logical way of storing data. Logically segment information to get certain information

What is a tablespace?

Tablespace are made up of blocks, extents, segments, and tables.

What is a view?

Virtual table. Based off the base table. Stored in memory and doesn't hold any data.

What is a constraints?

A limitation placed on a table column. Ex: primary key, foreign key, unique key

What are synonyms?

A alias for a table.

What's the difference between synonyms and view?

There is no such thing as a public or private view. When creating a synonyms its private by default. You have to specifically make it public.

What is a sequence?

Something you create if you want to auto increment or auto increase the rows inside the table by a certain amount of rows.

What two files are used to start the database?

Spfile and pfile

How to know if your database started with the spfile?

SQL> show parameter spfile


Value=Spfile


No Value=Pfile

Which files can you not read?


Dynamic or static

Dynamic

Which files can you read and edit?


Dynamic or static

Static

What is a scope?

A scope is a limitation

What are the three types of scopes?

- BOTH


- SPFILE


- MEMORY

What is the scope 'BOTH'?

It changes both in spfile and memory; the only time you can change both is if they have a dynamic parameter.

What is scope 'MEMORY'?

You can only use if this is a dynamic parameter. It is a temporary change.

How to implement changes w/ dynamic parameter?

A parameter that can be changed w/out you having to bounce(restart) the database.

How to implement changes w/ static parameter?

In order for you to see changes you have to restart the database

What's does ERROR:


ORA-02095: specified initialization parameter cannot be modified


Mean?

It means you are trying to change a static file so you have to use SCOPE=SPFILE at the end.

Commands to show control file?

SQL> show parameter control;


Or


SQL>select name from v$controlfile;

Characteristics of a control file?

- minimum of 2


- created when database is created


- dynamic nature, but when creating a trace file your creating a static example.


- you cannot mount database if if one control file is bad

Command to find data file?

SQL> select name from v$datafile

Characteristics if a data file

- comes w/ four data files and one temp file.


- used

What is the of the tool used for deleting a database?

DBCA; Database Configuration Assistance

What tool do you use to install oracle database software and where is it located on your system?

Database Configuration Assistance; located: $ORACLE_HOME/bin

Your connected as the user sys and you get "connected to an idle inatance" what does that mean and what do you have to do?

That means you database is not started so you need to query your database to startup to connect to database.

What are the 3 diffrent ways you can connect to the database using Scott with password tiger?

- sqlplus scott/tiger@orcl


- sqlplus type username, type pass.


- sql> connect scott@orcl

Which file is used to mount the database?

Control file

What are the commands to put the database in mount mode?

- Start mount


- alter database mount

What is the command to mount your database when it has already started not opened?

Sql> alter database mount;


Sql> alter database open;

What file does oracle check to find the location and name of the file Oracle reads to mount the database?

Controlfile

What file has the location and names of the datafile?

Controlfile

What file has the location and names of the redolog file?

Control file

After mounting the database, which 2 files does oracle read to open the database for users?

Spfile and pfile

Command to open database once mounted.

Alter database open

What are the shutdown commands and which one requires the database to recover when issued?

- shutdown normal


- shutdown immediate


- shutdown transactional


- shutdown abort


Shutdown abort requires a recovery during startup.

Which shutdown command disconnect and kill all connect users?

Shutdown abort

Your database is open for users, execute and display the shutdown command that will disconnect all connected users?

Shutdown immediate or shutdown abort

Your database is open for users, execute and display the shutdown command that will disconnect all connected users?

Shutdown immediate or shutdown abort

What two things happen during the shutdown immediate before the database goes down gracefully?

- all incommited transactions are rolled back


- all committed transactions in memory are flushed to the disk.

Which of the following commands can be issued when the database is in mount mode and why?


Select * from dba_tablespaces


Select * from v$tablespace

- select * from v$tablespace


Because it's based on virtual tables that are built from memory structures.

Where is the database alert log file located on your system and what is it used for?

Your alert log file is a chronological log of messages and errors written written out by an Oracle Database.

Where is the spfile located on the windows system?

$ORACLE_HOME/database

Where is the spfile located on your linux system?

$ORACLE_HOME/dbs

Where is the pfile located on the unix system?

$ORACLE_HOME/dbs

What is the command to change a parameter in the spfile?

Alter system set from sqlplus then use the scope option.

Which two tablespace exist by default when you create a database?

User and temp

How do you find out the location of your archivelog file.

Sql>show parameter db_recovery_file_dest;

Error ORA-00924: table or view does not exist.


What is the problem and how do you fix it?

It means that table is not available under that schema so you will need to check the data dictionary to see if that table exist and if it does you will complete the query again by referencing the other table by the table schema name.

Error


ORA-01045 user hr lack create session privilege; logon denied


What is the problem and how do you resolve it?

User hr does not have the session privileges so you will have to go in and grant that user those privileges.


SQL> SELECT * FROM DBA_ROLE_PRIVS WHERE GRANTEE='HR ';


SQL> grant create session to hr;