11.07.2015 Views

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

Oracle Database 11 g - Online Public Access Catalog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 3 ■ DATABASE ADMINISTRATION 163Remote External JobsA Scheduler job that runs outside the <strong>Oracle</strong> database, such as an operating system shell script,is known as an external job. You specify the value executable for the job_type attribute whendealing with an external job. These external jobs, which you are familiar with from the <strong>Oracle</strong><strong>Database</strong> 10g release, are called local external jobs now, since they run locally on the same hostwhere the scheduling database is running.<strong>Oracle</strong> <strong>Database</strong> <strong>11</strong>g introduces a new type of operating system external job, called a remoteexternal job, which runs, not on the host that’s running the <strong>Oracle</strong> database but on a remotehost. The database uses a Scheduler agent (formally known as <strong>Oracle</strong> External Scheduler Agent) ona remote host to start remote external jobs and return their results to the scheduling database.The remote host needs only the Scheduler agent and not an <strong>Oracle</strong> database. The Scheduleragent must register separately with each of the <strong>Oracle</strong> databases that you want to grant permissionto in order to run a remote external job on the server hosting the Scheduler agent.Installing, Registering, and Managing the Scheduler AgentBefore you can create and schedule a remote external job, you must first install and configurethe Scheduler agent. You can do this by installing <strong>Oracle</strong> <strong>Database</strong> Gateway. For our Linuxserver, we downloaded and installed <strong>Oracle</strong> <strong>Database</strong> Gateway <strong>11</strong>g Release 1 (<strong>11</strong>.1.0.6.0) forLinux x86 from the <strong>Oracle</strong> web site (you can also install it from the database CD pack). Here arethe installation configuration and registration steps for the Scheduler agent:1. Run the <strong>Oracle</strong> Universal Installer from the directory where you saved the <strong>Oracle</strong><strong>Database</strong> Gateway software files, as shown here:$ /<strong>11</strong>g/gateways/runInstallerOf course, you must first unzip the downloaded installation file (linux_<strong>11</strong>gR1_gateways.zipin our case) before you can invoke the <strong>Oracle</strong> Universal Installer.2. On the Select a Product to Install page, which appears after the Welcome page, select<strong>Oracle</strong> Scheduler Agent <strong>11</strong>.1.0.6.0.On the <strong>Oracle</strong> Scheduler Agent page, specify the Scheduler agent host name andport number.3. Once the installation of the agent is complete, you must run the root.sh configurationscript as the root user. A successful installation is reported with a message on the End ofInstallation page. Click Exit to leave the <strong>Oracle</strong> Universal Installer.Once you install the Scheduler agent, it’s time to register the agent with the databasethat you’ll be using to run external jobs on the host housing the agent. Before you canregister the agent with a particular database, you must first “set up” that database byissuing the following command as the user sys:$ @ORACLE_HOME/rdbms/admin/prvtrsch.plb

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!