0

bài 3 thao tác trên table

Tài liệu ORACLE8i- P10 pptx

Tài liệu ORACLE8i- P10 pptx

Cơ sở dữ liệu

... view and its results: SELECT owner, table_ name, table_ type_name, parent _table_ column FROM dba_nested_tables; PA R T OWNER TABLE_ NAME TABLE_ TYPE_NAME PARENT _TABLE_ COLUMN II ... object that you define when you create the table with the nested table The table created to store the nested table data is stored in the same tablespace as the table that the data is associated with, ... SYBEX, Inc., Alameda, CA USING COLLECTION TYPES 36 3 Altering and Dropping Nested Tables Listing 8. 13: Altering a Relational Table That Contains a Nested Table Drop the type first DROP TYPE name_type...
  • 40
  • 372
  • 0
Tài liệu ORACLE8i- P11 pptx

Tài liệu ORACLE8i- P11 pptx

Cơ sở dữ liệu

... These and the other, optional, attributes available for MTS_DISPATCHERS are described in Table 9 .3 TABLE 9 .3: MTS_DISPATCHERS ATTRIBUTES Attribute Description address Specifies the network protocol ... • Aliases 416 CHAPTER • ORACLE NETWORKING (RETRY=600) #10 minutes# (EXPIRE=259200) #3 days# (VERSION =34 61 939 2) #2.1.4# names.addresses = (address=(protocol=tcp)(host=george.world)(port=1522)) ... www.sybex.com Copyright ©2002 SYBEX, Inc., Alameda, CA PUTTING THE DATABASE IN ARCHIVELOG MODE 433 TABLE 10.2: ALTER SYSTEM ARCHIVELOG COMMANDS (CONTINUED) Command Description ARCHIVE LOG Defines...
  • 40
  • 233
  • 0
Tài liệu ORACLE8i- P12 pptx

Tài liệu ORACLE8i- P12 pptx

Cơ sở dữ liệu

... create the table SQL> DROP TABLE time _table; Table dropped SQL> CREATE TABLE time _table (the_time date) TABLESPACE test_tbs; Table created Add two rows to the table SQL> INSERT INTO time _table VALUES ... DROP TABLE example _table; II Table dropped SQL> CREATE TABLE example _table (id number) TABLESPACE test_tbs; SQL> INSERT INTO example _table VALUES (1); row created SQL> INSERT INTO example _table ... BACKUP; Tablespace altered SQL> ALTER TABLESPACE rbs BEGIN BACKUP; Tablespace altered SQL> ALTER TABLESPACE system BEGIN BACKUP; Tablespace altered SQL> ALTER TABLESPACE temp BEGIN BACKUP; Tablespace...
  • 40
  • 221
  • 0
Tài liệu ORACLE8i- P13 ppt

Tài liệu ORACLE8i- P13 ppt

Cơ sở dữ liệu

... (N) The following keywords only apply to transportable tablespaces TRANSPORT_TABLESPACE import transportable tablespace metadata (N) TABLESPACES tablespaces to be transported into database DATAFILES ... importing table “BONUS” rows imported importing table “DEPT” rows imported importing table “DUMMY” importing table “EMP” importing table “SALGRADE” importing table “TIME _TABLE rows ... importing table “BONUS” rows imported importing table “DEPT” rows imported importing table “DUMMY” importing table “EMP” importing table “SALGRADE” importing table “TIME _TABLE rows...
  • 40
  • 210
  • 0
Tài liệu ORACLE8i- P14 ppt

Tài liệu ORACLE8i- P14 ppt

Cơ sở dữ liệu

... WHERE (tablespace_name IN (‘list of tablespaces’) AND tablespace_name2 NOT IN (‘list of tablespaces’)) OR (tablespace_name NOT IN (‘list of tablespaces’) AND tablespace_name2 IN (‘list of tablespaces’)); ... sections Transportable Tablespace Requirements You must have the Oracle8i Enterprise Edition to generate a transportable tablespace set In order for a tablespace to be transportable, the tablespace ... front (which tablespaces you create and what tables are in those tablespaces) can significantly impact your ability to use transportable tablespaces effectively Checking the Transportable Tablespace...
  • 40
  • 225
  • 0
Tài liệu ORACLE8i- P15 doc

Tài liệu ORACLE8i- P15 doc

Cơ sở dữ liệu

... command: recover RMAN- 030 22: compiling command: recover(1) RMAN- 030 22: compiling command: recover(2) RMAN- 030 22: compiling command: recover (3) RMAN- 030 23: executing command: recover (3) RMAN-08054: starting ... command: allocate RMAN- 030 23: executing command: allocate RMAN-08 030 : allocated channel: d1 RMAN-08500: channel d1: sid=8 devtype=DISK RMAN- 030 22: compiling command: backup RMAN- 030 23: executing command: ... recovery complete RMAN- 030 22: compiling command: recover(4) RMAN- 030 22: compiling command: release RMAN- 030 23: executing command: release RMAN-08 031 : released channel: d1 RMAN- 030 22: compiling command:...
  • 40
  • 241
  • 0
Tài liệu ORACLE8i- P16 doc

Tài liệu ORACLE8i- P16 doc

Cơ sở dữ liệu

... 10 4 239 82 4 239 85 04-JUL-01 04-JUL-01 11 4 239 85 4 239 87 04-JUL-01 04-JUL-01 12 4 239 87 4 239 89 04-JUL-01 04-JUL-01 13 4 239 89 4 439 94 04-JUL-01 04-JUL-01 14 4 439 94 444018 04-JUL-01 04-JUL-01 This report ... recovery catalog (exceptions are noted in Table 13. 14) Table 13. 14 summarizes the parameters of the LIST command 608 CHAPTER 13 • ORACLE8i RECOVERY MANAGER TABLE 13. 14: LIST COMMAND PARAMETERS (CONTINUED) ... piece handle=D:\ORACLE\ADMIN\ORA817\BACKUP\ORA817.ARCH .35 CU36 8A recid=97 stamp= 434 215180 RMAN- 030 23: executing command: partial resync RMAN-080 03: starting partial resync of recovery catalog RMAN-08005:...
  • 40
  • 249
  • 0
Tài liệu ORACLE8i- P17 doc

Tài liệu ORACLE8i- P17 doc

Cơ sở dữ liệu

... BY tablespace_name; TABLESPACE_NAME Chunks Largest Chunk - DRSYS 1 536 000 INDX 104 837 12 LOCAL_AUTO 2 031 616 OBJECTS 938 8 032 OEM_REPOSITORY 5240 832 QUARTER_FOUR 5087 232 ... SCOTT NEWTABLE 739 SCOTT2 BONUS 520 SCOTT2 SALGRADE 39 9 SCOTT EMPLOYEE 237 SCOTT2 DUMMY 169 SCOTT2 EMP 46 SCOTT2 DEPT 45 SCOTT DUMMY 13 SCOTT SYS_C00767 SCOTT PAY _TABLE SCOTT HOLD_EVENT ... SCOTT NEWTABLE D:\ORACLE\ORADATA\ORA816\SYSTEM01.DBF 2 ,35 7 16 SCOTT NEWTABLE D:\ORACLE\ORADATA\ORA816\SYSTEM01.DBF 2,755 SCOTT NEWTABLE D:\ORACLE\ORADATA\ORA816\SYSTEM01.DBF 2,2 43 SCOTT NEWTABLE...
  • 40
  • 304
  • 0
Tài liệu ORACLE8i- P18 docx

Tài liệu ORACLE8i- P18 docx

Cơ sở dữ liệu

... this: SELECT Table “Object Type”, owner, table_ name, tablespace_name, next_extent FROM dba_tables a WHERE next_extent > (select sum(bytes) FROM dba_free_space WHERE tablespace_name = a.tablespace_name) ... online tablespaces in this database Decide which tablespace you wish to create the STATSPACK tables PA R T and indexes This will also be the PERFSTAT user’s default tablespace III NOT recommended TABLESPACE_NAME ... 8.1.7.0.0 Snap Time NO WS-JAX Sessions - -Begin Snap: 23- Jul-01 16:00: 53 End Snap: 23- Jul-01 16:10 :31 Elapsed: 9. 63 (mins) Please purchase PDF Split-Merge on www.verypdf.com to remove...
  • 40
  • 264
  • 0
Tài liệu ORACLE8i- P19 docx

Tài liệu ORACLE8i- P19 docx

Cơ sở dữ liệu

... 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 THAT PERTAIN TO HISTOGRAMS View ... statements in trace file 13 unique SQL statements in trace file SQL statements EXPLAINed using schema: SCOTT.prof$plan _table Default table was used Table was created Table was dropped lines in ... the Plan Table for Autotrace 732 CHAPTER 16 • ORACLE8i SQL PERFORMANCE MONITORING AND TUNING Connected SQL> create synonym plan _table for plan.plan _table; Synonym created With the plan table established,...
  • 40
  • 727
  • 0
Tài liệu ORACLE8i- P20 ppt

Tài liệu ORACLE8i- P20 ppt

Cơ sở dữ liệu

... SYBEX, Inc., Alameda, CA 791 AN ADDENDUM ON DATABASE MONITORING 286 03 22577 78 932 28 22577 2244 138 50 9 435 4 20116 77878 34 3 4 435 4 SELECT RAL.ARTCL_DESC_X,RAL.RATE_QUAL_C,RAL.RATE_WT_M,RAL.ACCOUNT_C,RAL.RATE_WEI ... A 2475 WHERE A.FUNC_X ‘ISS%’ ORDER BY A.FUNC_X 5518194 SELECT COUNT(*) 131 37 00 238 067 FROM CSTCRW 551 831 4 37 1198 832 45 231 67525 WHERE CSTCRW.TD_I = :b1 Let’s look at another monitoring query This ... :b1,:b2,:b3,:b4,:b5,:b6,:b7,:b8,:b9,:b10,SYSDATE,:b11,:b12 117178 SELECT ‘Y’ 6626 05654645 FROM RPTDTASK 5518527 SELECT COUNT(*) 751722 832 45 01508464 19297 25 935 231 70050 134 70 5518647 37 12 13 WHERE...
  • 40
  • 252
  • 0
Tài liệu ORACLE8i- P21 pdf

Tài liệu ORACLE8i- P21 pdf

Cơ sở dữ liệu

... buffers chains 831 ,514 16,826 39 52 session idle bit 199,904 8 enqueue hash chains 39 ,414 redo writing 51,704 5 shared pool 91 ,30 7 4 redo allocation 74,107 session allocation 37 ,598 2 Checkpoint ... has made a change to a table row, via INSERT, UPDATE, or DELETE operations Allows DML activity to continue on the table Exclusive table access can be enforced via the LOCK TABLE command Please ... FOR UPDATE RS Yes LOCK TABLE ROW SHARE RS No LOCK TABLE ROW EXCLUSIVE RX No LOCK TABLE SHARE MODE S No LOCK TABLE SHARE EXCLUSIVE MODE SRX No LOCK TABLE EXCLUSIVE MODE X No The ID1 and ID2 columns...
  • 40
  • 366
  • 0
Tài liệu ORACLE8i- P22 docx

Tài liệu ORACLE8i- P22 docx

Cơ sở dữ liệu

... Separate data tablespaces from index tablespaces Separate large, frequently used tables, into their own tablespaces If you partition tables, separate each partition into its own tablespace Determine ... consist of two types of tables: dimension tables and fact tables The dimension tables, often referred to as lookup or reference tables, support the data to be loaded into the fact tables That is, they ... benefits provider table, perhaps a table of pay periods, and a department table In the fact table for this schema would be the employee number that relates to the employee table, and the pay...
  • 40
  • 334
  • 0
Tài liệu ORACLE8i- P23 ppt

Tài liệu ORACLE8i- P23 ppt

Cơ sở dữ liệu

... 19-MAY-01 33 35 2000 19-MAY-01 233 5 19-MAY-01 30 00 19-MAY-01 533 5 21-MAY-01 21-MAY-01 1 30 0 30 0 TRUNC(TOD BUILDING_NUMBER FLOOR_AGENT SUM(RENT_PAID) - - - -21-MAY-01 30 0 1 1 635 ... -19-MAY-01 1 1000 19-MAY-01 233 5 19-MAY-01 19-MAY-01 19-MAY-01 33 35 2000 2000 19-MAY-01 533 5 21-MAY-01 21-MAY-01 21-MAY-01 30 0 30 0 30 0 5 635 What did we get in this output? On the ... - - - 1 1000 0 19-MAY-01 233 5 0 PA R T 19-MAY-01 33 35 0 III 19-MAY-01 2000 0 19-MAY-01 2000 0 533 5 1 30 0 0 30 0 0 30 0 1 5 635 1 1 19-MAY-01 21-MAY-01 21-MAY-01 21-MAY-01 Top-N...
  • 40
  • 262
  • 0
Tài liệu ORACLE8i- P24 docx

Tài liệu ORACLE8i- P24 docx

Cơ sở dữ liệu

... 06/16/2001 13: 31: 53 06/16/2001 13: 36: 53 N The results show a procedure called MY_PROCEDURE that is scheduled to run It last ran on June 16 at 1 :31 P.M., and it’s ready to go again at 1 :36 P.M on ... created in the USERS tablespace by default If you don’t define a default tablespace, Oracle will assign the default tablespace as the SYSTEM tablespace So, be sure to assign a default tablespace other ... global temporary tables for user Chris) will be created in the TEMP tablespace As with the default tablespace, the default for the temporary tablespace setting is the SYSTEM tablespace, so you...
  • 40
  • 330
  • 0
Tài liệu ORACLE8i- P25 doc

Tài liệu ORACLE8i- P25 doc

Cơ sở dữ liệu

... “,OTHER_PLNT_PGMS,”Hub/Headend - Metro” 436 AC00,MD40 036 ,NMSS ,37 200,210,600,”City Telemetry”,”01/19/2000 00:00:00”, “ “,OTHER_PLNT_PGMS,”Metro Detroit Telemetry” 436 AT00,MD40 036 ,NMSS ,37 200,210,600,”ATwp Telemetry”,”01/19/2000 ... are supported with SQL*Loader Nested Tables A nested table is actually a table within a table This means you can have a table s column be defined as a nested table, and that column can store multiple ... ORACLE8i DATABASE SECURITY *** 2001-06- 03 09:51:16. 034 *** SESSION ID:(8 .3) 2001-06- 03 09:51:16.014 Logon user : SPY_OWNER Table or View : SPY_OWNER.TBL_SECURED_INFORMATION...
  • 40
  • 235
  • 0
Tài liệu ORACLE8i- P26 pptx

Tài liệu ORACLE8i- P26 pptx

Cơ sở dữ liệu

... imonth1 TABLESPACE idx1, PARTITION imonth2 TABLESPACE idx2, PARTITION imonth3 TABLESPACE idx3, PARTITION imonth4 TABLESPACE idx4, PARTITION imonth5 TABLESPACE idx5, PARTITION imonth6 TABLESPACE ... Database PCTUSED 30 1 030 CHAPTER 24 • DATABASE PARTITIONING PCTFREE PCTUSED 30 TABLESPACE DATA06 STORAGE (INITIAL 100M NEXT 100M) PARTITION MONTH07 VALUES LESS THAN (8) PCTFREE PCTUSED 30 TABLESPACE ... PCTUSED 30 TABLESPACE DATA01 STORAGE (INITIAL 100M NEXT 100M) PARTITION MONTH02 VALUES LESS THAN (3) PCTFREE PCTUSED 30 TABLESPACE DATA02 STORAGE (INITIAL 100M NEXT 100M) PARTITION MONTH 03 VALUES...
  • 40
  • 305
  • 0
Tài liệu ORACLE8i- P27 docx

Tài liệu ORACLE8i- P27 docx

Cơ sở dữ liệu

... CREATE USER repsys IDENTIFIED BY &repsys_password DEFAULT TABLESPACE def_tablespace TEMPORARY TABLESPACE temp_tablespace QUOTA UNLIMITED ON def_tablespace; CREATE PUBLIC DATABASE LINK REP.WORLD USING ... USER repadmin IDENTIFIED BY &repadmin_passwd DEFAULT TABLESPACE def_tablespace TEMPORARY TABLESPACE temp_tablespace QUOTA UNLIMITED ON def_tablespace; GRANT dba TO repadmin; GRANT EXECUTE ON dbms_defer ... CREATE USER repsys IDENTIFIED BY &repsys_passwd DEFAULT TABLESPACE DEF_TABLESPACE TEMPORARY TABLESPACE TEMP_TABLESPACE QUOTA UNLIMITED ON DEF_TABLESPACE; GRANT connect ,resource Please purchase PDF...
  • 40
  • 265
  • 0
Tài liệu ORACLE8i- P28 docx

Tài liệu ORACLE8i- P28 docx

Cơ sở dữ liệu

... ‘/dev/vx/rdsk2/TEST/redo01_log02.dbf’, ‘/dev/vx/rdsk3/TEST/redo01_log 03. dbf’) SIZE 10M REUSE, GROUP (‘/dev/vx/rdsk1/TEST/redo02_log01.dbf’, 11 03 PA R T IV ‘/dev/vx/rdsk3/TEST/redo02_log 03. dbf’) SIZE 10M REUSE, DATAFILE ... errors you may run into while installing or using JVM: ORA -31 13: End-of-file on communication channel running initjvm.sql An ORA -31 13 can occur when there is a lack of resources Verify the following: ... DROPJAVA utility to drop the objects otherwise this table is not updated Two indexes are also created for this table CREATE$JAVA$LOB $TABLE This table contains the name of the Java object, the date...
  • 40
  • 326
  • 0
mastering oracle 8i

mastering oracle 8i

Cơ sở dữ liệu

... Relationships of tables One-To-One Table Relationship Table A Table B A row in Table A is related to a row in Table B One-To-Many Table Relationship Table A Table B One row in Table A is related ... one table relate to the primary key columns in another table For instance, one or more columns in Table A (the child table) might have a relationship to one or more primary key columns in Table ... Table B One row in Table A is related to one or many rows in Table B Table A Table B Many rows in Table A can be related to many rows in Table B A Brief History of Oracle Oracle was founded by Larry...
  • 1,121
  • 3,069
  • 0

Xem thêm