Presentation is loading. Please wait.

Presentation is loading. Please wait.

Progress and Oracle Same and Different. 2 PUG Challenge Americas 065 Progress and Oracle Database Size Points to consider.

Similar presentations


Presentation on theme: "Progress and Oracle Same and Different. 2 PUG Challenge Americas 065 Progress and Oracle Database Size Points to consider."— Presentation transcript:

1 Progress and Oracle Same and Different

2 2 PUG Challenge Americas 065 Progress and Oracle Database Size Points to consider

3 Database Size Progress Small < 10 GB Medium GB Large GB VLDB TB Oracle Small < 1 TB Medium 1-50 TB Large TB VLDB 200 TB 3 PUG Challenge Americas 065 Progress and Oracle

4 4 Database Size High Availability Points to consider

5 Server 1 Memory Apw, Biw, Aiw, Wdog Server 2Server 1 Memory DBWn, LGWR ARCn, SMON Server 2 Memory DBWn, LGWR ARCn, SMON Active - PassiveActive – Active DB 5 PUG Challenge Americas 065 Progress and Oracle Cluster db

6 Server 1 Server 2 Memory Apw, Biw, Aiw, Wdog Server 1Server 2 Memory DBWn, LGWR ARCn, SMON 6 PUG Challenge Americas 065 Progress and Oracle Cluster db 2

7 Planned Downtime PUG Challenge Americas 065 Progress and Oracle 7 Schema change Software upgrade Progress proutil –C conv seconds Oracle 42 steps upgrade project min

8 8 PUG Challenge Americas 065 Progress and Oracle Database Size High Availability Licenses Points to consider

9 PUG Challenge Americas 065 Progress and Oracle 9 Enterprise Database $$ Workgroup Database $ OE Replication OE Management TDE Enterprise Edition $$$$ Standard Edition $$ Standard Edition One $ Express EditionFree Partitioning Real Application Clusters DataGuard Diagnostics Pack Tuning Pack Licenses

10 10 PUG Challenge Americas 065 Progress and Oracle Database Size High Availability Licenses Hardware costs IT Stuff Points to consider

11 Additional Products PUG Challenge Americas 065 Progress and Oracle 11 OpenEdge ManagementOracle Enterprise Manager

12 PUG Challenge Americas 065 Progress and Oracle 12

13 PUG Challenge Americas 065 Progress and Oracle 13 OEM Tablespaces

14 PUG Challenge Americas 065 Progress and Oracle 14

15 PUG Challenge Americas 065 Progress and Oracle 15 OEM show SQL

16 PUG Challenge Americas 065 Progress and Oracle 16

17 PUG Challenge Americas 065 Progress and Oracle 17 OEM parameters

18 PUG Challenge Americas 065 Progress and Oracle 18

19 PUG Challenge Americas 065 Progress and Oracle 19 OEM Users

20 PUG Challenge Americas 065 Progress and Oracle 20

21 Additional Products PUG Challenge Americas 065 Progress and Oracle 21 OpenEdge Management OpenEdge Replication OpenEdge Replication Plus BravePoint Pro2SQL Oracle Enterprise Manager Oracle DataGuard Oracle Active DataGuard Oracle Golden Gates Real Application Clusters (RAC) Oracle Data Integrator

22 PUG Challenge Americas 065 Progress and Oracle 22

23 Physical Structure (data files) PUG Challenge Americas 065 Progress and Oracle 23 Database Filesports.dbControl File(s)control01.ctl System Areasports.d1System Tablespacesystem.dbf D Filesarea.dDatafilestablespace.dbf Before-Image File + After-Image File sports.b1 + sports.a1 Undo tablespace + Redo Log undotbs.dbf + redo01.log Copy of After- Image File sports.date _time_etc Archive Logsports.date_time_ etc Structure filesports.stBackup of control file to trace file Log Filesports.lgAlert Logalert_sports.log Parameter Filesports.pfpfile (or spfile)initsports.ora

24 Logical Structure PUG Challenge Americas 065 Progress and Oracle 24 AreaSchema AreaTablespaceSystem Tablespace Area consists of objects Objects are Tables or Indexes Tablespace consists of segments Segments: Tables, Indexes, Undo, etc Each Object has one or more Clusters Clusters size could be 8,64 or 512 blocks Each Segment has one or more Extents An extent is a series of blocks that are consecutively numbered within a datafile Clusters consist of blocks blocks 1,2,4 or 8KExtents consist of blocks blocks 2,4,8,16,32 or 64K

25 Background Processes PUG Challenge Americas 065 Progress and Oracle 25 Asynchronous Page WriterAPWDatabase WriterDBWn Before Image WriterBIWLog WriterLGWR AI ManagementAIMGTArchive ProcessARCn Watch DogWDOGProcess MonitorPMON Database Broker_mproservSystem MonitorSMON Many other …. Login Broker_mproservListenerlsnrctl -H server –S db_portServer, Listener port, db name

26 Meta-schema and VST PUG Challenge Americas 065 Progress and Oracle 26 Progress TableFieldOracle ViewColumn _Area_Area-nameDBA_TABLESPACESTABLESPACE_NAME _AreaExtent_Extent-PathDBA_DATA_FILESFILE_NAME _StorageObject_Object-type (1,2 or 3)DBA_OBJECTSobject_type (38 types) _File_File-nameDBA_TABLESTABLE_NAME _Field_Field-nameDBA_TAB_COLUMNSCOLUMN_NAME _Index_Index-nameDBA_INDEXESINDEX_NAME _Sequence_Seq-nameDBA_SEQUENCESSEQUENCE_NAME Progress Meta-schema tables -80 < _file-number < 0 Progress VST _file-number <

27 Meta-schema and VST PUG Challenge Americas 065 Progress and Oracle 27 Virtual System TablesV$ (Vee dollar) Views _Connectv$session, v$process _DbStatusv$instance, v$sysstat _Transv$transaction _Lockv$lock _Latchv$latch _AreaStatusv$tablespace _Filelistv$datafile _Startup (some)v$parameter

28 Oracle simplify memory parameter settings (-B) PUG Challenge Americas 065 Progress and Oracle 28 V9 db_cache_size log_buffer shared_pool_size large_pool_size java_pool_size streams_pool_size pga_aggregate_target V10 SGA_TARGET pga_aggregate_target V11 MEMORY_TARGET

29 Environment Variables and Installation PUG Challenge Americas 065 Progress and Oracle 29 DLC/usr/dlc102BORACLE_HOME/usr/oracle/ PATH$DLC/binPATH$ORACLE_HOME/bin To installproinstTo installrunInstaller

30 Create Database 30 PUG Challenge Americas 065 Progress and Oracle

31 31

32 PUG Challenge Americas 065 Progress and Oracle 32

33 Create Database prodb mydb procopy empty8 mydb Min size 5 MB Min memory 160KB Time to create 1 second A set of.sql scripts create database mydb; Min size 512 MB Min memory 512MB Time from 20 min to 1.5 hr PUG Challenge Americas 065 Progress and Oracle 33

34 Shutdown Unconditional Shutdown Emergency Shutdown Shutdown Normal Shutdown Transactional Shutdown Immediate Shutdown Abort PUG Challenge Americas 065 Progress and Oracle 34

35 Startup PUG Challenge Americas 065 Progress and Oracle 35 Closed Nomount mode Mount mode Open

36 Backup PUG Challenge Americas 065 Progress and Oracle 36 Progress backup – simpleOracle RMAN – More complicated probkup db_name file_name Progress and Oracle : Online and Offline (Hot and Cold) Progress and Oracle : Complete and Incremental Oracle backup : could be Full and Partial

37 Compressed Backup PUG Challenge Americas 065 Progress and Oracle GB Progress DB makes about 600 GB probkup 1.4 TB Oracle DB makes either 1.2 TB regular backup or 250 GB RMAN compressed backup (BZIP2 is default).

38 Dump and Load PUG Challenge Americas 065 Progress and Oracle 38 Dictionary Dump and Load in ASCII format (.d) or 4GL export/import SQL select/insert SQL Loader or External Tables 10g Binary Dump (proutil –C dump)Oracle export (exp tables=tbl_name) Binary Load (proutil –C load)Oracle import (imp file=file_name) Binary Dump multithreaded V10Oracle Data Pump Export (expdp) 10g Oracle Data Pump Import (impdp) 10g Dump/Load.dfExport/Import (exp full=y rows=n)

39 Flashback PUG Challenge Americas 065 Progress and Oracle 39 Flashback Database Flashback Table Flashback Drop Flashback Query Flashback Version Query Flashback Transaction Query

40 Flashback Database PUG Challenge Americas 065 Progress and Oracle Flash database 1 hour back SQL> flashback database to timestamp sysdate-(1/24); Using Standby Database for Testing SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; SQL> CREATE RESTORE POINT Standby_flashback_testing GUARANTEE FLASHBACK DATABASE; SQL> ALTER DATABASE OPEN; --- Make a Test on a Standby DB SQL> FLASHBACK DATABASE TO RESTORE POINT Standby_flashback_testing ; SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

41 Flashback Table PUG Challenge Americas 065 Progress and Oracle 41 SQL> delete from employees rows deleted. SQL> commit Commit complete. SQL> select count(*) from employees; COUNT(*) … Oops … SQL> flashback table employees to timestamp systimestamp - interval '15' minute; Flashback complete. SQL> select count(*) from employees; COUNT(*)

42 Flashback Drop PUG Challenge Americas 065 Progress and Oracle 42 SQL> drop table Customer; -- DDL … Oops … SQL> select object_name, original_name, type, droptime from recyclebin; OBJECT_NAME ORIGINAL_NAME TYPE DROPTIME BIN$U/9fvJKbXOzgQKjAYAIWhw==$0 Customer Table :57:01 SQL> flashback table "BIN$U/9fvJKcXOzgQKjAYAIWhw==$0" to before drop;

43 Flashback Query PUG Challenge Americas 065 Progress and Oracle 43 SQL> delete from employees where employee_id in (195,196); 2 rows deleted. SQL> commit; Commit complete. … Oops … SQL> insert into employees select * from employees as of timestamp systimestamp - interval 30' minute where employees.employee_id not in (select employee_id from employees); 2 rows created. SQL> commit; Commit complete.

44 PUG Challenge Americas 065 Progress and Oracle 44 RAID 5 Raid 5

45 PUG Challenge Americas 065 Progress and Oracle 45 Questions


Download ppt "Progress and Oracle Same and Different. 2 PUG Challenge Americas 065 Progress and Oracle Database Size Points to consider."

Similar presentations


Ads by Google