v dynamic performance views

Tài liệu ORACLE8i- P10 pptx

Tài liệu ORACLE8i- P10 pptx

... Maintaining a VARRAY with PL/SQL DECLARE V_ address_varray address_varray; BEGIN SELECT parent_address INTO v_ address_varray FROM parent WHERE parent_id=1; Add to the VARRAY v_ address_varray.EXTEND; ... parent_last_name VARCHAR2(30), parent_first_name VARCHAR2(30), street_address VARCHAR2(50), city VARCHAR2(30), state VARCHAR2(2), zip VARCHAR2(10) ) / Now, create the view syntax CREATE OR REPLACE VIEW v_ parent_1 ... www.verypdf.com to remove this watermark www.sybex.com Copyright ©2002 SYBEX, Inc., Alameda, CA CREATING OBJECT VIEWS 383 Creating Joined Object Views If you wish to create a complex object view...

Ngày tải lên: 22/01/2014, 00:20

40 372 0
Tài liệu ORACLE8i- P11 pptx

Tài liệu ORACLE8i- P11 pptx

... V$ MTS, V$ SGA, and V$ SGASTAT views provide information that may be useful for tuning MTS Table 9.4 describes the MTS views TABLE 9.4: MTS VIEWS View Description V$ DISPATCHER Provides information ... NETWORKING Viewing MTS Information Oracle provides some V$ views that offer useful information about MTS For example, the V$ DISPATCHER view shows information about dispatcher processes The V$ MTS, V$ SGA, ... backups (and recoveries): NOARCHIVE and ARCHIVE mode The remainder of the chapter is devoted to the various backup and recovery procedures you can use Backup and Recovery Planning DBAs have many responsibilities,...

Ngày tải lên: 22/01/2014, 00:20

40 233 0
Tài liệu ORACLE8i- P12 pptx

Tài liệu ORACLE8i- P12 pptx

... TABLE 10.3: V$ VIEWS FOR BACKUP AND RECOVERY View Name Description V$ DATAFILE Provides datafile information from the control file V$ ARCHIVE_DEST Provides various information on the archive log destinations ... opened via the V$ ARCHIVED_LOG data dictionary view Once you have identified which datafiles need to be recovered, and once you have recovered those datafiles, you will use the V$ RECOVER_FILE view ... d:\oracle_backup\hot\archive\*.* d:\oracle\oradata\recover\archive\RECOVERT001S00215.ARC d:\oracle\oradata\recover\archive\RECOVERT001S00216.ARC d:\oracle\oradata\recover\archive\RECOVERT001S00217.ARC...

Ngày tải lên: 22/01/2014, 00:20

40 221 0
Tài liệu ORACLE8i- P13 ppt

Tài liệu ORACLE8i- P13 ppt

... based recovery or change-based recovery Let’s cancel-based What log sequences we have available? SQL> ARCHIVE LOG LIST Database log mode Archive Mode Automatic archival Enabled Archive destination ... ‘D:\ORACLE\ORADATA\RECOVER\RECOVER_USERS_01.DBF’, 15 ‘D:\ORACLE\ORADATA\RECOVER\RECOVER_DATA_01.DBF’, 16 ‘D:\ORACLE\ORADATA\RECOVER\RECOVER_INDEX_TBS_01.DBF’, 17 ‘D:\ORACLE\ORADATA\RECOVER\RECOVER_TEMP_01.DBF’, ... www.verypdf.com to remove this watermark www.sybex.com Copyright ©2002 SYBEX, Inc., Alameda, CA RECOVERIES IN ARCHIVELOG MODE 479 ORA-00289: suggestion : D:\ORACLE\ORADATA\RECOVER\ARCHIVE\RECOVERT001S00001.ARC...

Ngày tải lên: 22/01/2014, 00:20

40 210 0
Tài liệu ORACLE8i- P14 ppt

Tài liệu ORACLE8i- P14 ppt

... also provides a graphical interface for RMAN See the Oracle documentation for more information about using Enterprise Manager Database Control Files NOTE Several dynamic V$ views are provided by ... set offline If you need to recover a lot of datafiles, execute the ALTER TABLESPACE tablespace_name_to_recover OFFLINE FOR RECOVER command to improve the recovery performance Creating the Clone ... Split-Merge on www.verypdf.com to remove this watermark www.sybex.com Copyright ©2002 SYBEX, Inc., Alameda, CA T he preceding chapters have covered various aspects of Oracle backup and recovery In this...

Ngày tải lên: 22/01/2014, 00:20

40 225 0
Tài liệu ORACLE8i- P15 doc

Tài liệu ORACLE8i- P15 doc

... because it requires access to several of the V$ views that provide control file information This type of backup is supported if the database is in ARCHIVELOG or NOARCHIVELOG mode (although most backups ... point-of-failure recovery in ARCHIVELOG mode You will also learn how to recover archived redo logs, control files, and datafiles to another location NOARCHIVELOG Mode Backup Recovery With a NOARCHIVELOG mode ... you have seen thus far 582 CHAPTER 13 • ORACLE8i RECOVERY MANAGER Incomplete Recovery in ARCHIVELOG Mode As we discussed in previous chapters, for an incomplete recovery, you must recover the...

Ngày tải lên: 22/01/2014, 00:20

40 241 0
Tài liệu ORACLE8i- P16 doc

Tài liệu ORACLE8i- P16 doc

... file These views have the same name except for their prefixes: RC_ for the recovery catalog views and V$ for the control file views For example, if you want to find the view in the recovery catalog ... RMAN RECOVERY CATALOG VIEWS View Description Corollary Control File View RC_ARCHIVED_LOG Provides historical information on archived redo logs V$ ARCHIVED_LOG RC_BACKUP_CONTROLFILE Provides information ... Many events have just one level; others have many levels For example, the 10046 event code has four levels One level provides regular trace information, and the other levels provide additional...

Ngày tải lên: 22/01/2014, 00:20

40 249 0
Tài liệu ORACLE8i- P17 doc

Tài liệu ORACLE8i- P17 doc

... Views Dynamic performance views generally start with a V$ prefix, and they are also referred to as V$ views Dynamic performance views give a snapshot of the database’s various performance statistics ... true In some cases, dynamic performance views may lag too far behind to provide the timely information you need How Are V$ Views Created? The V$ views that you query, such as V$ SYSSTAT, are actually ... comprises the V_ $ view in DBA _VIEWS However, because V$ views are really internal data dictionary views, the method by which they are implemented differs slightly from regular views Rather than...

Ngày tải lên: 22/01/2014, 00:20

40 304 0
Tài liệu ORACLE8i- P18 docx

Tài liệu ORACLE8i- P18 docx

... reports Wait event information Shows the top five wait events, followed by a list of all wait events (discussed in Chapter 17) Expensive SQL statements Provides several lists of expensive SQL statements ... system/wa1060/dev/null 2>>/dev/null WHENEVER SQLERROR EXIT Set echo off Set feedback off select name||’should be $ORACLE_SID’ from v\ $database; DECLARE V_ Db_name varchar2(30); V_ Open_mode varchar2(20); ... There are three levels of detail you can collect: level 0, level 5, and level 10 At level 0, general performance statistics are collected These include wait statistics, system event statistics,...

Ngày tải lên: 22/01/2014, 00:20

40 264 0
Tài liệu ORACLE8i- P19 docx

Tài liệu ORACLE8i- P19 docx

... baseline for the database’s performance Perhaps you’re really on the ball and you even store past SQL activity statistics from the various V$ VIEWS available Of course, you have to weigh the need for ... dictionary views and find information on the histograms you’ve created for the EMPLOYEE table Table 16.3 lists the primary views that contain histogram information TABLE 16.3: DATA DICTIONARY VIEWS ... of the tables involved in the join is accessed via an indexed lookup With the nested loop operation, you start with a driving table Oracle will fetch each valid row of that driving (or outer)...

Ngày tải lên: 22/01/2014, 01:20

40 727 0
Tài liệu ORACLE8i- P20 ppt

Tài liệu ORACLE8i- P20 ppt

... T You’ve made it through a long and involved chapter on SQL tuning Even so, we have addressed only the reactive side of tuning Let’s turn our attention to the proactive side Being proactive is ... serveroutput on exec dbms_output.enable(10000) declare v_ numrow number; v_ numblks number; PA R T v_ avgrlen number; III dbms_stats.get_table_stats(‘SCOTT’,’EMPLOYEE’,numrows= >v_ numrow, numblks= >v_ numblks,avgrlen= >v_ avgrlen, ... command Data Dictionary Views of Stored Outlines Oracle provides several data dictionary views for getting information about stored outlines that reside in the database • V$ SQL has the OUTLINE_CATEGORY...

Ngày tải lên: 26/01/2014, 19:20

40 252 0
Tài liệu ORACLE8i- P21 pdf

Tài liệu ORACLE8i- P21 pdf

... Oracle-supplied views that provide wait statistics for events These views record a wide range and multiple classes of events, and you’ll see them used throughout this chapter • V$ SYSTEM_EVENT • V$ SESSION_EVENT ... More Information from V$ Views? ” in Chapter 15 Working with V$ SYSTEM_EVENT The V$ SYSTEM_EVENT view provides a look at event waits in the database, systemwide This is the view we’ll use to monitor ... www.verypdf.com to remove this watermark www.sybex.com Copyright ©2002 SYBEX, Inc., Alameda, CA WAIT MANAGEMENT 817 Working with V$ WAITSTAT The V$ SESSION_EVENT and V$ SYSTEM_EVENT views provide...

Ngày tải lên: 26/01/2014, 19:20

40 366 0
Tài liệu ORACLE8i- P22 docx

Tài liệu ORACLE8i- P22 docx

... affecting the SGA and how it is allocated Viewing Parallel Query Information Several dynamic performance views (V$ views) can help you evaluate the runtime performance of parallel queries Armed with ... about the RECOVER command.) You must have set PARALLEL_MAX_SERVERS to above before you can enable parallel recovery, because it uses the parallel servers as the recovery slaves The RECOVERY_ PARALLELISM ... Alameda, CA MATERIALIZED VIEWS 875 Privileges Required for Working with Mviews To create materialized views in the current schema, the user must have • The CREATE MATERIALIZED VIEW grant • Either...

Ngày tải lên: 26/01/2014, 19:20

40 334 0
Tài liệu ORACLE8i- P23 ppt

Tài liệu ORACLE8i- P23 ppt

... Dictionary Views for Mviews Several data dictionary views are provided for use with Mviews They’re listed in Table 19.3 TABLE 19.3: MVIEW DATA DICTIONARY VIEWS View Name Description DBA_MVIEWS General ... Facility (DBMS_MVIEW) • DBMS_MVIEW.REFRESH, which refreshes a specific Mview • DBMS_MVIEW.REFRESH_ALL_MVIEWS, which refreshes all Mviews • DBMS_MVIEW.REFRESH_DEPENDENT, which refreshes all Mviews that ... on Mviews, such as last refresh time and SCN DBA_MVIEW_DETAIL_RELATIONS Mviews and their dependent base tables DBA_MVIEW_JOINS Information on join conditions within Mviews DBA_MVIEW_KEYS Various...

Ngày tải lên: 26/01/2014, 19:20

40 262 0
Tài liệu ORACLE8i- P24 docx

Tài liệu ORACLE8i- P24 docx

... Information Several data dictionary views provide information about roles These views are listed in Table 21.4 You will probably want to use these views in combination with the views that show ... both system-level and object-level grants These views are listed in Table 21.3 TABLE 21.3: VIEWS FOR GRANTS View (DBA, USER, and ALL) Description _SYS_PRIVS Lists all system privileges that a ... command (or GRANT ALL PRIVILEGES command) to grant all privileges to a given account If you need to revoke a specific privilege, use the REVOKE privilege, as in this example: REVOKE CREATE ANY TABLE...

Ngày tải lên: 26/01/2014, 19:20

40 330 0
Tài liệu ORACLE8i- P25 doc

Tài liệu ORACLE8i- P25 doc

... fu_spy_check(p_schema VARCHAR2, p_name VARCHAR2) RETURN VARCHAR2; END; / CREATE OR REPLACE PACKAGE body pkg_spy_auth AS FUNCTION fu_spy_check(p_schema VARCHAR2, p_name VARCHAR2) RETURN VARCHAR2 AS V_ predicate VARCHAR2(2000); ... retrieving encrypted data from the database and displaying its contents Listing 21.13: Retrieving Encrypted Data SET SERVEROUTPUT ON DECLARE v_ key VARCHAR2(8):=’locked00’; v_ outpu VARCHAR2(2048); v_ stuff ... INTEGER RECORD VARCHAR COUNT INTO RECOVERABLE VARCHARC DATA LAST REENABLE VARGRAPHIC DATE LOAD REF VARIABLE DECIMAL LOBFILE REPLACE VARRAW DEFAULTIF LOG RESUME VARRAWC DELETE LONG SDF VARRAY DISABLED_CONSTRAINTS...

Ngày tải lên: 26/01/2014, 19:20

40 235 0
Tài liệu ORACLE8i- P26 pptx

Tài liệu ORACLE8i- P26 pptx

... log=servtype.log data=servtype.csv bad=servtype.bad discard=servtyp.dis parallel=true errors=10000 rows=1000 bindsize=100000000 Please purchase PDF Split-Merge on www.verypdf.com to remove this ... database on any of the four divisions (NW_DIV, NE_DIV, SW_DIV, and SE_DIV), depending on how links are established Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark www.sybex.com ... for its particular region We have databases named NW_DIV, SW_DIV, NE_DIV, and SE_DIV You’re working at corporate headquarters (the database named CORP_DIV) and you have the responsibility of checking...

Ngày tải lên: 26/01/2014, 19:20

40 305 0
Tài liệu ORACLE8i- P27 docx

Tài liệu ORACLE8i- P27 docx

... 19, you learned about Mviews as a data warehousing feature That chapter covered the basics of creating, refreshing, and managing Mviews and Mview logs Mviews can also serve as a tool for performing ... with Materialized Views Oracle8i materialized views (Mviews) store data based on a query In short, an Mview is a table that stores a predefined set of data When you create an Mview, you specify ... replicated code Viewing Conflicts Oracle’s REPCAT views show all of the conflicts that have occurred and what method is being used to resolve them Each of the views comes in USER, ALL, and DBA versions...

Ngày tải lên: 26/01/2014, 19:20

40 265 0
Tài liệu ORACLE8i- P28 docx

Tài liệu ORACLE8i- P28 docx

... ORACLE PARALLEL SERVER ‘/dev/vx/rdsk2/TEST/redo01_log02.dbf’, ‘/dev/vx/rdsk3/TEST/redo01_log03.dbf’) SIZE 10M REUSE, GROUP (‘/dev/vx/rdsk1/TEST/redo02_log01.dbf’, 1103 PA R T IV ‘/dev/vx/rdsk3/TEST/redo02_log03.dbf’) ... clients and server-to-server connections, JDBC Thin drivers for Java applets in web browsers, and JDBC KPRB for Java stored procedures 1113 PA R T IV This suite of Java enterprise development tools ... extensive support for Java within the database and for use of Oracle8i databases with Java Basic Methods There are three basic ways to use Java in Oracle8i: • Java Database Connectivity (JDBC) provides...

Ngày tải lên: 26/01/2014, 19:20

40 326 0
mastering oracle 8i

mastering oracle 8i

... and recovery Before you start Server Manager, you must set up your Oracle environment as explained in “Environment Settings” just above Then you start Server Manager with the command svrmgr1 (This ... as well Server Manager Server Manager is Oracle’s character-based administrative tool With Oracle8i, Server Manager allows you to connect to a database and perform several administrative functions ... the provided supporting documentation and respect the rights of the vendors who were kind enough to provide these files All of the following are from RevealNet Labs (Quest Software), www.revealnet.com:...

Ngày tải lên: 07/04/2014, 15:48

1.1K 3.1K 0

Bạn có muốn tìm thêm với từ khóa:

w