search.mecket.com

.NET/Java PDF, Tiff, Barcode SDK Library

4. Use the GRANT_ADMIN_PRIVILEGE procedure in the DBMS_STREAMS_AUTH package to grant necessary privileges to the Streams administrator: SQL> BEGIN DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( GRANTEE => 'strmadmin', GRANT_PRIVILEGES => true); END; / 5. Create a database link between the source and target databases, as shown here: SQL> CREATE DATABASE LINK targetdb CONNECT TO strmadmin IDENTIFIED BY strmadmin USING 'sourcedb.world'; 6. Oracle Streams moves data between the source and destination databases using queues. You need to create a queue on both the source and destination databases. To do this, you must run the following procedure on both the source and the target databases. This will create both queues with their default names. EXEC DBMS_STREAMS_ADM.SET_UP_QUEUE(); 7. You need to enable supplemental logging for all the tables on the source databases for which you intend to capture changes. You set up supplemental logging in the following manner: SQL> ALTER TABLE emp ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY, UNIQUE) COLUMNS; 8. Configure the capture process in the source database, using the ADD_TABLE_RULES procedure of the DBMS_STREAMS_ADM package, as shown here: SQL> BEGIN DBMS_STREAMS_ADM.ADD_TABLE_RULES( table_name => 'scott.emp', streams_type => 'capture', streams_name => 'capture_stream', queue_name => 'strmadmin.streams_queue', include_dml => true, include_ddl => true, inclusion_rule => true); END; / Now that you ve configured your Oracle Streams setup, you can test the setup by starting a capture process and using an apply process to replicate the emp table from the source database to the emp table in the target database. First, capture the changes using the following procedure: SQL> BEGIN DBMS_CAPTURE_ADM.START_CAPTURE( capture_name => 'capture_stream'); END; /

barcode generator excel 2010 free, barcode checksum excel formula, barcode font excel 2007 free download, ms excel 2013 barcode font, free barcode generator excel 2003, excel formula to generate 12 digit barcode check digit, barcode font in excel 2003, how to print barcodes in excel 2010, free barcode generator microsoft excel, excel 2007 barcode generator free,

To migrate the captured changes to the destination database, run the following procedure: SQL> BEGIN DBMS_APPLY_ADM.START_APPLY( apply_name => 'apply_stream'); END; / The Oracle Streams feature was discussed very briefly here. However, it s a very powerful feature useful for database replication, migration, and upgrades. The primary interface to Streams is this collection of Oracle-supplied PL/SQL packages. You saw how to use various Oracle-supplied PL/SQL packages to set up and manage the Streams feature, so you know exactly what s happening during the change capture and propagation phases. To help users configure, administer, and monitor their Streams environments, Oracle provides a Streams tool in the OEM Console. I recommend using the Streams feature with the help of the OEM Database Control interface, for convenience.

On a UNIX or Linux system, the cron daemon process runs all the time. A daemon is generally a program that runs as a background task and provides some type of service, in this case a scheduler. A run control (rc) script starts the daemon when the system boots. The cron daemon searches for entries in the systemwide or individual user s crontab (short for cron table ) files and loads them into memory. Once each minute, the daemon determines based on its predetermined schedule if any of the entries should be run. A scheduled job can run as often as every minute or as infrequently as once a year. A crontab entry is a specially formatted line in a crontab file that specifies on which minute, hour, day, day of the week, and day of the month a particular task should run. To add a task to the cron table, you run the crontab -e command, which allows an individual user to maintain the entries in his personal crontab file; this launches a session with the editor that is defined by the EDITOR shell environment variable. Each user on a machine may have a crontab file for his own purposes. However, a system administrator can curtail individual users capabilities according to security policy. The following line is a simple cron entry scheduled to run at 4:15 pm on Tuesdays:

lmost all Oracle DBAs are familiar with Oracle s export and import utilities, which help in loading data into and unloading data from databases. In Oracle Database 10g, you now have newer and more refined versions of the old utilities the Data Pump Export and Import utilities. The old export and import utilities continue to be available under Oracle Database 10g, but Oracle would prefer you to use the Data Pump technology because it offers more sophisticated features. For example, you can now interrupt export/import jobs in the middle and then resume them. You can restart failed export and import jobs. You can remap object attributes to modify the objects. You can easily monitor your Data Pump jobs from a different session, and you can even modify job attributes on the fly during the course of a job. It s easy to move massive amounts of data quickly using parallelization techniques. Because Oracle provides you the APIs for the Data Pump technology, you can easily incorporate export/import jobs within PL/SQL programs. You can also use the powerful transportable tablespaces feature to transport large amounts of data quickly, even across disparate operating system platforms. This chapter provides in-depth coverage of the Data Pump technology, as well as transportable tablespaces.

   Copyright 2020.