... CREATE VIEW command and other normal SQL statements, just as you would to create a view for a relational table Listing 8.19 provides an example of the creation and use of such a view (and some of ... installed and properly configured, clients and servers can connect to remote databases This chapter begins with an introduction to Net8, and then explains how to configure Net8 on servers and clients ... Administration To create a member method, use the CREATE OR REPLACE TYPE BODY command In this command, you define the type and name of the member If it is a function, you declare the value type to be...
Ngày tải lên: 22/01/2014, 00:20
... will load and execute the command, then return to the operating system prompt In BATCH COMMAND mode, you can combine commands in a standard text file, then run them as a sequence of commands To ... namesctl utility can be run in three modes: INTERPRETER, COMMAND LINE, and BATCH COMMAND With INTERPRETER mode, namesctl is loaded and all operations are executed within it When loaded, the program ... commands require your confirmation before they are executed When you issue the command, you are prompted: confirm:[yes or no] Type yes to execute the command, or type no to cancel the command...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P12 pptx
... command or the SHUTDOWN IMMEDIATE command This will cause DBWn to flush all dirty buffers to the database datafiles As long as you have issued either a SHUTDOWN or SHUTDOWN IMMEDIATE command, ... DATAFILE OFFLINE command If the database was shut down and is refusing to open because of a missing datafile, take the datafile offline, and then issue an ALTER DATABASE OPEN command Recover only ... ALTER DATABASE RENAME FILE command to reset the location of the database online redo logs When all of the database files have been recovered, issue the STARTUP command, and the database should open...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P13 ppt
... command Review the command and make sure it is suitable Once you are satisfied that the command is correct, connect to the database and start the instance with STARTUP NOMOUNT command Following that, ... ABORT, and you lose your online redo log file, you will likely suffer some data loss To reduce this risk, issue an ALTER SYSTEM SWITCH LOGFILE command and then an ALTER SYSTEM CHECKPOINT command ... BACKUP AND RECOVERY Should you lose the online log file and the database doesn’t crash, you may find that it hangs In this case, you can try to issue the ALTER DATABASE CLEAR LOGFILE command, and...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P14 ppt
... types of commands: stand-alone commands and job commands The job commands must appear within the confines of the RUN command, which combines multiple commands (or a block of commands) into a ... stream The stand-alone commands don’t require the RUN command (with a few exceptions) Table 13.2 lists the stand-alone commands, and Table 13.3 lists the job commands NOTE RMAN command syntax has ... happy and functional The data warehouse environment is probably one of the most demanding in terms of data updates and volume Currently, we use the old standby of the Export and Import utilities and...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P15 doc
... SYSTEM ARCHIVE LOG CURRENT command, and then backs up the archived redo logs using the BACKUP ARCHIVELOG ALL command This is a really important step, and when and how it is done can be critical ... name (but that tends to be long, messy, and prone to “fat fingering”) In the RESTORE and RECOVER commands, we use the DATAFILE keyword Finally, we again use the SQL command to send a SQL statement ... the recovery catalog, and issuing the CREATE CATALOG command To connect to the recovery catalog, use the CATALOG commandline parameter of RMAN, and then enter the username and password for the...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P16 doc
... Reports and Lists DBAs need information, and RMAN is poised to provide that information RMAN facilitates reporting of backup sets, image copies, and many other facets of the backup and recovery landscape ... to include a RUN command in it This is because when you EXECUTE a script, it is executed within the confines of a RUN command The EXECUTE SCRIPT command, which is a job command, allows you to execute ... sets, and their related backup pieces Each backup set and backup piece has a unique key associated with it in the report You can use this key with the CHANGE and DELETE EXPIRED BACKUPSET commands...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P17 doc
... R T AND f.statistic#=c.statistic# III AND g.statistic#=d.statistic# AND h.statistic#=e.statistic# AND f.name = ‘physical reads’ AND g.name = ‘physical writes’ AND h.name = ‘sorts (disk)’ AND ... sys.user$ p, u WHERE i.leafcnt > and i.type# IN (1,4,6) AND ic.obj# = i.obj# AND h.obj# = i.bo# AND h.intcol# = ic.intcol# AND o.obj# = i.obj# AND o.owner# != AND u.user# = o.owner# GROUP BY u.name, ... NULL AND t.blkcnt > m.value AND t.avgspc > t.avgrln AND CEIL(( t.blkcnt - t.rowcnt / FLOOR((p.value - 66 - t.initrans * 24) / GREATEST(t.avgrln + 2, 11))) / m.value ) > AND o.obj# = t.obj# AND...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P18 docx
... physical reads Tablespace and file I/O summary statistics Lists each tablespace for the database, the total reads and writes to the tablespace, and the average read and wait times The file I/O ... SQL*Plus commands to prompt you for the user and default tablespaces The creation of Statspack will fail if you use Server Manager 678 CHAPTER 15 • ORACLE8i PERFORMANCE MONITORING AND DATABASE-LEVEL ... reporting on and the start and stop snapshot numbers that are being reported on Cache size information Shows the defined sizes of the various SGA memory caches, such as the database buffer cache and the...
Ngày tải lên: 22/01/2014, 00:20
Tài liệu ORACLE8i- P19 docx
... we just created, then, will be 10 buckets long and will remain 10 buckets long forever unless we re-create it The height of the histogram is balanced along the width of the bucket Thus every bucket ... counts for parse, execute, and fetch operations • Total CPU and elapsed time for parse, execute, and fetch operations • Cumulative disk I/O statistics for parse, execute, and fetch operations • Total ... execute, and fetch operations for that statement • Total CPU and elapsed time for parse, execute, and fetch operations for that statement • Cumulative disk I/O statistics for parse, execute, and fetch...
Ngày tải lên: 22/01/2014, 01:20
Tài liệu ORACLE8i- P20 ppt
... have a large shared pool, and it has also become particularly fragmented, you may find that parse times (hard and soft) will grow longer and longer Eventually it takes longer to find like SQL statements ... CHAPTER 17 Monitoring and Tuning Latches, Locks, and Waits F E AT U R I N G : Latches and locks 796 Wait management 813 Monitoring scripts and suggestions 826 Tuning locks, latches, and waits 834 Please ... (SELECT RATE_LINE_SEQ_I FROM CSTRAL 1632826 194510 AND TD_SEQ_I = :b2 WHERE TD_I = :b1 -2103 14245 AND RATE_LINE_SEQ_I IN AND TD_SEQ_I = :b2 AND STOP_SEQ_I IS NULL ) 49981 54327 1.086953 2300115...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P21 pdf
... already being held Say that Processes and need Latches A and B If Process acquires Latch B first and then tries to allocate Latch A, and Process grabs A first and then tries to acquire B, you’d ... Database Management NOTE 814 CHAPTER 17 • MONITORING AND TUNING LATCHES, LOCKS, AND WAITS sessions causing the blocking situations, and even how long the blocking has been in effect Later in this ... contention Tuning Locks, Latches, and Waits Tuning for latches, locking, and waits is all about reducing I/O to the disks and improving database usage When you latch tuning and lock tuning, you’re really...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P22 docx
... operations, and then discusses how to use parallel DML and DDL, execute parallel queries, and perform parallel recovery operations Finally, you will learn about the parallel processing parameters and ... DML AND DDL 848 CHAPTER 18 • ORACLE8i PARALLEL PROCESSING , b.cust_state , b.cust_zip FROM product a, customer b WHERE a.cust_no = b.cust_no AND a.prod_left = AND a.prod_expire_date
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P23 ppt
... PL/SQL functions • LONG RAW and LONG data types are not supported for fast refresh • You cannot use the HAVING and CONNECT BY clauses • The WHERE clause can only contain inner and outer equijoins ... use the fast refresh method, and restrictions are associated with that as well Refresh on Demand The REFRESH ON DEMAND option of the CREATE MATERIALIZED VIEW command is the default refresh option ... well not be Altering and Dropping Dimensions The ALTER DIMENSION command allows you to manage your dimensions This command allows you to: • Add or drop hierarchy, levels and attributes to the...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P24 docx
... function Sending and Receiving Messages You send and retrieve messages through the public and private pipes in the same fashion To make pipes work, you first need a sending side and a receiving ... that is done, and then move onto the procedures for setting up and managing user accounts, profiles, and roles NOTE There is a subtle, but distinct, difference between the terms schema and user in ... entries= where file - name of password file (mand), password - password for SYS and INTERNAL (mand), entries - maximum number of distinct DBA and OPERs (opt), As you can see, the first parameter...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P25 doc
... input (control file and data files), the “output” (bad file, discard file, and log file), and the types of data loads possible (direct, conventional, and parallel) Conventional and Direct Path Loads ... control file and all of its options that are available, and see examples of creating a control file We’ll discuss the input datafile, the output files (BADFILE and DISCARDFILE), and the log file ... bad file, and discard file • Number of rows to load and how many were loaded • Number of errors allowed and actual errors encountered • Makeup of the control file • When the load started and ended...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P26 pptx
... file is similar to using the command line and the parameter file Within the script, you call SQL*Loader (sqlload), and then you designate a combination of command-line parameters as well as the ... memory and temporary storage space, and potentially decrease the time taken for queries to return their results Oracle handles this transparently, provided your table/tables are partitioned and ... views, and materialized views indexes, as long as they are not part of a cluster and not contain a LONG or LONG RAW datatype NOTE You cannot partitioning of clustered tables or indexes on clustered...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P27 docx
... on the standby host, which reads the stream from the primary database, writes the archive logs, and updates the standby control file The standby database reads the standby control file and applies ... (OPS), and Oracle Fail Safe This chapter covers the use of the standby database, OPS, and Oracle Fail Safe Replication is discussed in Chapter 25, and Net8 is covered in Chapter Using a Standby ... the DROP PARTITION command if the object only contains one partition Attributes and Partitioning We all know and understand attributes Partitions have the same column and constraint definitions...
Ngày tải lên: 26/01/2014, 19:20
Tài liệu ORACLE8i- P28 docx
... standby control file from the primary host to the standby host and start the standby instance in recovery mode: SQL> STARTUP NOMOUNT SQL> ALTER DATABASE MOUNT STANDBY DATABASE; SQL> RECOVER STANDBY ... Alameda, CA USING A STANDBY DATABASE For a managed recovery process, cancel the recovery session and shut down the standby instance by issuing this command: SQL> RECOVER MANAGED STANDBY DATABASE CANCEL ... LOG_FILE_NAME_CONVERT, and LOCK_NAME_SPACE parameters The DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters in the standby initialization parameter file enable automatic name conversion of datafiles and...
Ngày tải lên: 26/01/2014, 19:20
mastering oracle 8i
... lost husbands, and the husbands who lost wives It is dedicated to the grieving families and friends and to the hope of peace, but also to the hope of justice for those who feel that terror and destruction ... Take the examples and the generic routines we’ve provided and expand on them Add and subtract from them and incorporate them into your own database management activities Experiment and enjoy! What’s ... use of SAVE, SPOOL, and STORE commands -RESTRICT 3: Same as RESTRICT and 2, but also restricts the use of GET and START commands SQL*Plus will not execute the login.sql file, and the glogin.sql...
Ngày tải lên: 07/04/2014, 15:48