Day 4
Upcoming SlideShare
Loading in...5
×
 

Day 4

on

  • 234 views

 

Statistics

Views

Total Views
234
Views on SlideShare
234
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Day 4 Day 4 Document Transcript

  • COP 2741 - WEEK FOUR 1. COLLECT/RETURN PROJECTS 2. REVIEW OFA 3. REVIEW DATA DICTIONARY 4. INSTANCE - STARTUP - SHUTDOWN 5. CONFIG FILE 6. DBA ACCOUNTS 7. CREATE DATABASE MANUALLY 8. CREATE DATABASE WITH DB ASSISTANT 9. TEST NEXT WEEK
  • OFA - OPTIMAL FLEXIBLE ARCHITECTURE - ORACLE MODEL FOR FILE LOCATIONS - ORACLE BASE • C:ORACLE - ORACLE HOME • ONE FOR EACH VERSION OF ORACLE ON YOUR SYSTEM • PRODUCT VERSION SPECIFIC FILESD WILL BE LOCATED HERE • C:ORACLEORA81 • C:ORACLEORA9i - ADMIN DIRECTORY • C:ORACLEADMIN • CREATE SUB-FOLDERS FOR EACH DATABASE 1. C:ORACLEADMINDB1 2. C:ORACLEADMINDB2 • CREATE THE DIRECTORIES INDICATED ON PG 20 BELOW EACH DATABASE 1. C:ORACLEADMINDB1ADHO C 2. ETC. • FILES DIRECTORY
  • 1. C:ORACLEORADATADB1 2. CREATE ONEFOR EACH DATABASE BELOW ORADATA 3. PHYSICAL FILES WILL BE LOCATED HERE a. DATAFILES b. CONTROL FILES c. REDO LOG FILES .
  • INSTANCE - MEMORY AND BACKGROUND PROCESSES - COMMANDS ISSUED IN SQL*PLUS - LOGGED IN AS “SYS AS SYSDBA” - STARTUP o USED TO START AN INSTANCE o STARTUP NOMOUNT  STARTS THE INSTANCE BUT IGNORES THE DB FILES  USED TO DO MAINTENACE LIKE CREATE DATABASES o STARTUP MOUNT  SIMILAR TO NOMOUNT BUT CHECKS FOR FILES  ALSO USED FOR MAINTENANCE o STARTUP OPEN  USUAL OPTION  STARTS INSTANCE AND OPENS DB FILES o STARTUP FORCE  SHUTS DOWN AND PERFORMS OPEN  USED WHEN INSTANCE HANGS DURING OPEN - SHUTDOWN
  • o USED TO SHUT DOWN AN INSTANCE o SHUTDOWN NORMAL  USUAL OPTION  NO NEW USERS CAN CONNECT  WAITS FOR ALL USERS TO LOGOUT THEN SHUTS DOWN  NORMAL CAN BE OMITTED o SHUTDOWN IMMEDIATE  NO NEW USERS CAN CONNECT  EXISTING TRANSACTIONS ARE ROLLED BACK  EXISTING USERS ARE DISCONNECTED o SHUTDOWN TRANSACTIONAL  SAMES AS IMMEDIATE EXCEPT THAT EXISTING TRANSACTIONS ARE ALLOWED TO COMPLETE o SHUTDOWN ABORT  DISCONNECTS ALL USERS AND SHUTS DOWN  WILL REQUIRE A RECOVERY  SMON DOES THE RECOVERY THE NEXT TIME THE INSTANCE IS STARTED
  • CONFIG FILES - INIT.ORA - CONTAINS PARAMETERS THE DEFINE AN INSTANCE - ONE FOR EACH INSTANCE - SEE FILE ON PG 29 - LOCATED IN PFILE FOLDER
  • DBA USER ACCOUNTS - CREATED AUTOMATICALLY WHEN A DB IS CREATED - IN 8i o SYS  PW IS “CHANGE_ON_INSTALL”  OWNS DATA DICTIONARY o SYSTEM  PW IS “MANAGER”  SAME RIGHTS AS SYS o INTERNAL  PW IS “ORACLE”  USED FOR MAINTENANCE - IN 9i o INTERNAL IS GONE o SHOULD USE “SYS AS SYSDBA” o NO DEFAULT PW  ASKED DURING INSTALL  USUALLY ORACLE
  • CREATE DATABASE (MANUALLY) 1. CHOOSE DATABASE NAME 2. CREATE OFA STRUCTURE - BUILD FOLDERS ACCORDING TO OFA GUIDELINES 3. CREATE INIT.ORA - STEAL ONE TO START - PLACE IN PFILE FOLDER - EDIT o DB_NAME o CONTROL FILE DIRECTORIES o BACKGROUND_DUMP_DEST o USER_DUMP_DEST 4. CREATE SERVICE - ORADIM o SERVICE MANAGER o SEE PG 41
  • 5. SET ENVIRONMENTAL VARIABLES - ORACLE_SID = DB00 - ORACLE_HOME = C:ORACLEORA81 6. CONNECT - SYS AS SYSDBA - INTERNAL 7. STARTUP NOMOUNT 8. CREATE DATABASE STATEMENT 9. CREATE SYSTEM ROLLBACK SEGMENT 10. BRING SYSTEM ROLLBACK SEGMENT ON-LINE 11. CREATE TABLESPACES 12. CREATE ADDITONAL ROLLBACK SEGMENTS 13. BRING ADDITIONAL ROLLBACK SEGMENTS ON-LINE 14. RUN CATALOG.SQL
  • 15. RUN CATPROC.SQL