Building pages to use dbms_scheduler like in OEM, is it a good idea?

In OEM, there's already full featured web pages to administrate scheduler objects, sometimes, OEM is very heavy in load, during my first testing, it even make my db server hang, run out of swap. But I try to build a simple page to submit jobs using dbms_scheduler, it works file and quite light weighted.
So is it a good idea to build scheduler administration pages in Apex? will it be like reinvent a wheel?

This is what I am trying to do but have run into the 'insufficient privileges' problem. I am actually trying to give our users the ability to schedule some of the jobs associated with their application. I've been able to submit a job through Toad under the schema used by the application. But I'm not sure whether I need to grant the appropriate privileges to run the scheduler package to the flows schema as well. I have also been able to schedule the job through the SQL Workshop in the APEX application builder, but I can't do it through the application. Any suggestions?
Sue
Edited by: suewia on Jan 6, 2010 7:14 AM

Similar Messages

  • Using lower resolutions on MacBook Pro Retina a good Idea?

    Ever since I got my MBP retina I have been having eye strain issues to the point of basically almost returning the unit. I recently discovered that by using the lower resolutions (1280x800) (1024x640) I am having a much easier time and my eyes relax quite a bit more. My questions is does this have any negative effect on performance? I understand I sacrifice space but I just struggle with the native (1440x900). Or perhaps a none retina display would be the option. I just sold my mid 2009 macbook pro and now regret it.

    No the performance would, if anything, improve if you use a lower resolution. Although I can't seem to understand how the retina MBP would give you more eyestrain at 1440x900 than your old 2009 MBP at the same resolution? If the problem is the pixel density then it wouldn't matter if you run the screen at native 1440x900 or 1280x800. You would still have the same amount of pixels running (2880x1800).
    Well my answer to your question is; no the performance will not be affected.

  • Using OS X Server to host Wordpress site, good idea?

    I have a 2009 Mac Pro. If I installed OS X Server to one of my HDD partitions, does OS X Server come with all the app's for me to host my Wordpress blog? I've already bought a domain name. I know it's more reliable (much better uptime if I bought cloud hosting), but at this moment it's just a casual blog. If my Mac Pro went to sleep would the blog/website go down? If yes, that's not a problem, but just want to know. I also think it would be fun to see if I can set up a blog/website and host myself.
    But I read I need a static IP address for this to work? If yes, that means all the small businesses for which OS X Server is marketed to, need to buy a static IP address which I heard is expensive.
    I also heard that hosting is dangerous as my Mac will get attacked/hacked? Wouldn't OS X Server include protective app's? And even if the hackers got through, the only damage they could do would be limited to the partition that OS X Server and the website is located on? I wouldn't want my whole network and my entire Mac Pro endangered. Please advise. Thanks!

    In no particular order...
    All internet-connected systems can and do get probed, can and do get attacked, and the attacks may or may not be accessible.  WordPress in particular has a long history of security vulnerabilities, so not only are you keeping OS X current and backed up and related tasks, you're also now responsible for keeping and updating WordPress and likely also MySQL database software (quickly!) after vulnerabilities are announced.
    OS X Server is the whole operating system, not something that sits in a partition — you boot OS X (with Server.app installed) and your Mac now has various services that are available.
    If your Mac does get breached, then your whole local network is potentially vulnerable.  This is why some sites configure their web-facing servers in what's called a DMZ.  The DMZ is a second part of the local network that is configured such that it cannot access most or (preferably) all of your core network.  Low-end router-gateway-firewall devices do not offer DMZ capabilities.  Some open-source router-gateway-firewall packages do (if you want to use your own spare x86 hardware), and mid-range and upper-end commercial router-gateway-firewall devices often also do offer a DMZ.
    Backups of your server are part of maintaining security — if you get breached, then having a set of backups in depth — multiple backups, going back to (hopefully) before the breach are how you can recover your environment, should your server be breached.  You'll want to keep copies of these backups out of the DMZ and/or off-site or otherwise out of reach of the potentially-breached server, as some attackers have intentionally deleted everything.
    When you install OS X Server, you'll also need to get your local network going, your local DNS services going — you cannot solely reference off-network DNS servers successfully, properly-configured local DNS services are a prerequisite — and you'll need to get port forwarding for TCP port 80 and potentially TCP port 443 configured through your router-gateway-firewall device — and you'll need these ports to not be firewalled at your ISP, and you'll usually also want to have static IP address though a non-firewalled dynamic IP configuration can be gotten going.  (If you think you may want to run SMTP mail services eventually, then you'll either need static IP, or you'll have to run via a relay service.)
    Also check with your ISP, and see if your service tier permits servers.  Some of them don't, on the non-static-IP service tiers.
    In short: do you really want to be IT and network support?  If you do, then all this stuff is entirely feasible and does work and does work well — usually — and you'll learn a whole lot about IT, IP, networking, DNS services, Apache web services, and system and network security.  If you just want to blog, then using a cheap or free hosting service (somewhere off of your network) will be far less work.    Can all this work?  Sure!  There are a number of folks around the forums that host their own stuff.  Once you get the hang of it all, it's not that bad to maintain, either.

  • I uninstalled Flash Builder 4.7 using the uninstall app.  I'd like to re-install the app, but Creative Cloud says it's up-to-date, even though it does not exist anymore on my computer.  How can I re-dowload it?

    I uninstalled Flash Builder 4.7 using the uninstall app.  I'd like to re-install the app, but Creative Cloud says it's up-to-date, even though it does not exist anymore on my computer.  How can I re-dowload it?

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • My i-tunes Wish List only shows the first page, it used to show all the pages- like the next page button is disconnected?

    My i-tunes Wish List only shows the first page- it used to show all the pages. Its a little like the next page button is disconnected?
    Any ideas?
    thanks
    Simon

    I would say all types. Any kind of document/ file that has multiple pages, I can't get to the next page.

  • I am building a website using IWEB, on my computer, and I am stuck suddenly, the page I made yesterday is hidden by another page and I cannot pursue.. Is there a way to learn the process, also I see a contradiction with ILIFE 2011, reading about an announ

    I am building a website using IWEB, on my computer, and I am stuck suddenly, the page I made yesterday is hidden by another page and I cannot pursue..
    Is there a way to learn the process, also I see a contradiction with ILIFE 2011, reading about an announcement of Steve Jobs....? that iWeb would not longer be??

    How is the first page hidden by the other page?  Where are you experiencing this problem?  In iWeb's window or in the browser window of the published site? 
    Are you referring to the page's link in your navbar?  If so check the Inspector/Page/Page pane for the "hidden" page and make sure it's set to be included in the navbar. If that's not the problem describe in detail what you mean and include any screenshots you can make of the problem.
    As far as the longevity of iWeb read the following:
    As you now know iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    Currently if the site is published directly from iWeb to the 3rd party server the RSS feed and slideshow subscription features will work. However, if the site is first published to a folder on the hard drive and then uploaded to the sever with a 3rd party FTP client those two features will be broken.
    All of these features can be replaced with 3rd party options.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: iW14 - Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    NOTE: the iLife 11 boxed version Is no longer available at the online Apple Store.  To get a copy you'll have to try Amazon.com or eBay.com.
    This may be of interest to you: Life After MobileMe.
    OT

  • How to use/build stack layout with features like bring to top?

    I need a layout where i can move my views to any position i want to without destroying them and at the same time can use functionalities like pop and push with the same effect as stacknavigator.

    Is it possible to install j2se 1.4 on the same machine
    that is running weblogic with j2ee 1.3 ? Yes.
    If it is.... How do we do it ?Just install it in different directory - the installer will do this for you by default anyway.
    How do we protect our code running in the j2ee 1.3 container from
    mistakenly using the classes provided with j2se 1.4 ?Thats what PATH and CLASSPATH environment variables are for. Read the tutorials on the left there for more information.
    Do we end up with 2 separate VMs one a implementing
    j2ee 1.3 and one a j2se 1.4 ?You end up with as many as you run.
    Every time you run java (java.exe on windows, just plain java on UNIX) you run the version of the VM that's on your PATH.
    It's quite normal to have (on the same machine) a 1.3 VM running Weblogic and a number of 1.4 VM's as clients of that Weblogic installation.
    I think I'm right in saying that 1.4 VM's are (in some cases) regarded by BEA as supported clients of a Weblogic server running in a 1.3 VM, but you'd have to check their e-docs site for exact details.

  • Adding multiple 100% width slideshows to the top of a page and using triggers to select.  Is it possible???

    Hi!
    I am looking to create a changeable slideshow at the top of a webpage. I want to be able to select different slideshows to view at the top of the page and use triggers/buttons to select the relevant slideshow. This is for a catering site, so I would like that if the user clicks 'canapes' button the slideshow images at the top of the page will show canapes and the caption will show text about them, if they select the 'cocktails' button then a new slideshow will appear showing images of cocktails together with a relevant caption. 
    I thought this might be possible by placing slideshows within a lightbox or composition widget but seem to be banging my head against the wall! Can someone help?
    Is it possible?
    If yes, is there a youtube video to show how its done?
    Any help much appreciated.
    Martin

    Is it possible? Yes... I wouldn't do it because having all those images sitting on the one (first) page will slow the page loading times down and just piss people off but thats your main answeer.
    The compositions widgets allow you to build more complex ideas and is what I'd use to make this sort of thing in Muse...
    p.s. if you just want something fast then have a look at what some people have already made to get ideas;
    1. Templates – MuseLayers
    2. iChef | Culinary Arts Adobe Muse Template | museGrid.com
    3. RESOURCES | Adobe Muse CC

  • Building a report using "PL/SQL Dynamic Content" can I have it output PDF?

    Hi,
    I build several reports using the "PL/SQL Dynamic Content" region and htp.p().
    The output is exactly what the customer wants but they would now like to have it go into PDF document.
    Is there a way to do it?
    Bill

    Bill,
    You can integrate APEX with Oracle BI Publisher and have your report generated to PDF.
    If you're just interested in saving what is on a web page in PDF, have a look at CuteFTP (Windows), which is a free print driver that allows you to "print" to a PDF file as if it were a printer. On the Mac, you can save to PDF and do not need any additional software.
    Thanks,
    – Scott –
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • Looking for pages designd using iWeb

    hi and greetings from germany,
    i'm looking for pages designd using iWeb to get an impression how it is working. I would like to build pages with text and i would like to know if it is possible to change or delete the placeholders for photos in the templates.
    sorry - i can only use that english i learnd at school long ago ... ;-))

    http://www.happyadam.com
    The URL above points to my iWeb - spent a couple of hours with this over the weekend. It's quite flexible - takes a little getting used to (if you've used Pages then it's similar). There's not many templates but it's a good starting point.
    The worst thing is the .Mac servers - they're very slow for hosting these iWebs as many others have found.
    12 Powerbook G4 1.33GHz   Mac OS X (10.4.4)  

  • Building multilingual portal using WebCenter

    Hi,
    Can anyone point me to a good documentation on building multilingual portal using WebCenter? I found one for Spaces but I am developing custom portal using ADF resources. Thanks!

    Hi.
    WebCenter Portal Applications is an ADF application basically. You have to build your own multilingual solution based on:
    - Labels in Resource Bundle configured in your WebCenter Portal Application.
    - For Web Content showed in Content Presenter you have to define a WebCenter Content solution. It can be a "language" metadata to filter CMIS Queries.
    - Locale can be managed in different ways:
    - Session bean: Language should be associated to the session.
    - User LDAP preferred language: Solution based in user preference language like Spaces.
    - Browser locale: Set browser locale to your pages to set the language.
    My recommendation steps to follow in order:
    - First think in a WebCenter Content Solution for your contents and web assets.
    - Second Think "how to store your labels" internally in Resource Bundle or Override Resource Bundle that can be changed at Runtime because are stored in MDS. Or you can create an UCM View to manage literals and access them from an app bean in WebCenter Portal.
    - Think in your Java Bean that stores user "locale" and implement and strategy like Spaces. "Browser, preference or session language".
    Be careful in your "change locale" bean because SiteResources labels are cached. What's the meaning of this? You have to create an ADF Listener who "clean" in prepareModel phase SiteResources Cache.
    It's a common issue, follow A-TEAM Blog: https://blogs.oracle.com/ATEAM_WEBCENTER/entry/navigation_model_locale_dynamic_run
    Another blog Entry of A-TEAM Blog for multilanguage contents: https://blogs.oracle.com/ATEAM_WEBCENTER/entry/internationalize_webcenter_portal_content_presenter
    Regards.
    Edited by: Daniel Merchán on 17-ago-2012 7:09

  • How to build family tree using flex ?

    http://hgc46123.chinaw3.com/haha.jpg
    I want to build a panda family tree like  http://www.myheritage.com/
    for the data is large,so i want to use dynamic picture loading like google map.
    but i don't know lean what ?  i hava java programing experience
    please give me some advice .
    thank for your attention .

    or in the html file, add a timestamp to make the swf name unique each time you refresh the page
    main.swf?ts= new Date().getTime()

  • Problem building record set using Dreamweaver CS6 Cloud Product

    I am having a problem building a Results Page using Dreamweaver CS6.  I have followed all the steps described in Dreamweaver/Build Search and Results Page Article (multiple times).  It seems that when I save the Results page it does not copy the php used to build the dynamic table.  In fact when I view the source, I do not see any php code. 
    Additionally, when I attempt to bind the record set, it also does not accept the Default Value(s).  Enstead it gives me a list of all data in the colum(s) chosen for the record set (using Where..LIKE..variable definition).
    Any suggestions?
    Regards,
    Norv

    Yes, I will be glad to go through each step.  I will also provide code.
    Step 1:  Built the Search Page by adding Form into exisitng htm page.  Used Insert> Form>Form to insert Form area.  Then added three (3) text fields using Text Icon from the Form Menu Bar (Classic View).
    Step 2: Added a Submit and Reset Button to the Search Page.  Again used the Form Menu Bar to create the Buttons.
    Step 3: Selecte the <form> tag at bottom of Document Window to point Form to the Results Page (using the Action Box.
    Saved page and then began building the Results Page using an existing htm page.  Saved the Results Page as a .php document.
    Results Page:  Here are steps taken to build Results Page (Code will follow):
    1/ On the Results Page created a Recordset using the bindings dialog box.  Used the Advanced Recordset Dialog Box.  In the Advanced Dialog Box I used the Select and Where features to create a Recordset that created a 3 column table (records.County, records.ListPrice, records.PropertyType).  In the Variable box I created 3 variables (varCounty, varListPrice, varPropertyType).  varCounty and varPropertyType parameters are text (Type) and % (for Default Value).  varListPrice parameters are floating point (type) and % (for Default Value).  RunTime Value is $_REQUEST["ColumnName"].
    Here is the Code generated by Dreamweaver.  Note, I am not including the code to access the database, because in all tests I am able to access the table.  In fact first time I built the dynamic table, everything worked and I saw the Colum and default value.  Have never been able to duplicate that effort.  :-)
    Here is code:
    <?php
    if (!function_exists("GetSQLValuestring")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    if (PHP_VERSION<6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "". $theValue ."" : "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "".  $theValue ."" : "NULL";
    break;
    case "defined"
    $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
    break;
    return $theValue;
    $varCounty_rslistings = "%";
    if (isset($_GET["County"])) {
    $varCounty_rslistings = $_Get["County"];
    $varListPrice_rslistings = "%";
    if (isset($_GET["ListPrice"])) {
    $varListPrice_rslistings = $_GET["ListPrice"];
    $varPropertyType_rslistings = "%";
    if (isset($_GET["PropertyType"])); {
    $varPropertyType_rslistings = $_GET["PropertyType"];
    mysql_select_db($database_MyDB, $MyDB);
    $query_reslistings = sprintf("SELECT records.County, records.ListPrice, records.PropertyType FROM records WHERE records.County LIKE %s AND records.ListPrice LIKE %s AND records.PropertyType LIKE %s", GetSQLValueString($varCounty_rslistings, "text"),GetSQLValueString($varListPrice_rslistings,"double"),
    GetSQLValueString($varPropertyType_rslistings,"text"));
    $rslistings = mysql_query($query_rslistings, $MyDB) or die(mysql_error());
    $row_rslistings = mysql_fetch_assoc($rslistings);
    $totalRows_rslistings = mysql_num_rows($rslistings);
    ?>
    That's the code that was generated by Dreamweaver. 
    Thanks in advance for your assistance

  • Build pages in bulk

    Hello,
    I'm working on a project which requires me to build 100s of pages hence I am using powershell script I came across from this
    site . The script I am working with uses the data from a secondary XML document and builds pages with the Name, Title and Contact Person. So far I have only been successfull with building these pages on the root site. For some reason, the
    subsite that I have provided isn't being used, any ideas why this isn't happening?. Also I'd like to take this to the next level which is
    adding custom text in the pages so I'm wondering what are the changes that need to be made in the powershell and the XML file.
    Below is the script and the xml file. As you can see the pages should be built in the site named testsite but for some reason they are being built in the root site itself.
    This script is run on powershell as follows
    PS c:\scripts> .\page-layout-creator.ps1 “c:\pages.xml”
    http://sharepoint.contoso.com/sites/testsite
    Thanks in advance for your help!
    Script
    [xml]$pagesXML = Get-Content $args[0]
    $siteUrl = $args[1]
    $site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
    $web = $site.rootweb
    $pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pagesXML.Pages.Page | ForEach-Object {
      $fileName = $_.FileName
      $title = $_.Title
      $articleType = $_.ArticleType   #Choice fields just need a string value
      $contact = Get-SPUser -Identity $_.Contact -web $web
      $reviewDate = [DateTime]::Now.AddDays($_.ReviewDate)
     #Below I replace a token in the XML to get the absolute url
     #else it will error with subwebs, even if using relative with or without /
      $pubPageLayout = $_.PubPageLayout -replace "{siteUrl}", $siteUrl
      Write-Host "Creating page $fileName"
      $newPage = $pub.AddPublishingPage()
      $newPage.ListItem["BaseName"] = $fileName
      $newPage.ListItem["Title"] = $title
      $newPage.ListItem["PublishingPageLayout"] = $pubPageLayout 
      $newPage.Update() #Must update here so we can access our custom columns
      $newPage.ListItem["Contact"] = $contact  $newPage.Update()
      $newPage.CheckIn("")
      $newPage.ListItem.File.Publish("")
      Write-Host "Published"
    Write-Host "Completed!"
    # Dispose
    $web.Dispose()
    $site.Dispose()
    XML document.
    <?xml version="1.0" encoding="utf-8"?>
    <Pages>
     <Page>
     <FileName>Teampaintballcomp2</FileName>
     <Title>Team paintball comp2</Title>
     <PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
      Custom Page</PubPageLayout>
     <Contact>domain\username</Contact>
     </Page>
     <Page>
     <FileName>Teampaintballcomp3</FileName>
     <Title>Team paintball comp3</Title>
     <PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
      Custom Page</PubPageLayout>
     <Contact>domain/username</Contact>
     </Page>
     <Page>
     <FileName>Teampaintballcomp4</FileName>
     <Title>Team paintball comp4</Title>
     <PubPageLayout>{siteUrl}/_catalogs/masterpage/customPage.aspx,
      Custom Page</PubPageLayout>
     <Contact>domain/username</Contact>
     </Page>
    </Pages>

    Yup, it's because your code is only meant for site collection root sites
    [xml]$pagesXML = Get-Content $args[0]
    $siteUrl = $args[1]
    $site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
    $web = $site.rootweb
    $pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pagesXML.Pages.Page | ForEach-Object {
    $fileName = $_.FileName
    $title = $_.Title
    $articleType = $_.ArticleType #Choice fields just need a string value
    $contact = Get-SPUser -Identity $_.Contact -web $web
    $reviewDate = [DateTime]::Now.AddDays($_.ReviewDate)
    #Below I replace a token in the XML to get the absolute url
    #else it will error with subwebs, even if using relative with or without /
    $pubPageLayout = $_.PubPageLayout -replace "{siteUrl}", $siteUrl
    Write-Host "Creating page $fileName"
    $newPage = $pub.AddPublishingPage()
    $newPage.ListItem["BaseName"] = $fileName
    $newPage.ListItem["Title"] = $title
    $newPage.ListItem["PublishingPageLayout"] = $pubPageLayout
    $newPage.Update() #Must update here so we can access our custom columns
    $newPage.ListItem["Contact"] = $contact $newPage.Update()
    $newPage.CheckIn("")
    $newPage.ListItem.File.Publish("")
    Write-Host "Published"
    Write-Host "Completed!"
    # Dispose
    $web.Dispose()
    $site.Dispose()
    I have a few pet hates and using New-Object is one of them and it's wrapped up in the error you're getting.
    The command there is effectively Get-SPSite, which will return the site collection object at the URL you give it. If you give it a sub site, as you probably are, it will most likely fail.
    What you need to do is change the code, there's no reason to get a SPSite object in there, it would work just as well with a Get-SPWeb.
    Try swapping out the first bit for this:
    $site = New-Object Microsoft.SharePoint.SPSite($siteUrl)
    $web = $site.rootweb
    $pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    #Becomes
    $web = Get-SPWeb $siteURL
    $pub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    That should work.

  • Issue with calling Shell Script using DBMS_SCHEDULER

    Hi All,
    I am executing a shell script using DBMS_SCHEDULER from APEX web page. Execution part is working fine without any issues.
    In my shell script file (abc.sh) I have few oracle sql procedure calls which connects back to same database and that SQL call is not executing some reason, it not giving any errors.
    Inside my shell script code looks like this.
    sqlplus -silent $USER/$PASSCODE@$SCONNECT > /dev/null <<END
    set pagesize 0 feedback off verify off heading off serveroutput on
    echo off linesize 1000
    WHENEVER SQLERROR EXIT 9
    BEGIN     
    dbms_output.enable(1000000);
    do_enable_cons();
    dbms_output.disable;
    END;
    spool off;
    exit;
    END
    When I run this shell script file from backend it works fine now issues.
    Is there any restrictions in executing sql code using DBMS_SCHEDULER? Any ones help is much appreciated.
    -Regards

    james. wrote:
    Thanks you sb and Sybrand . It is problem with environment variables. After running .bash_profile in the beginning of the shell script, it is working fine.
    One issue is when I check the process it is showing two entries with two different process id's.
    The command I used
    ps -ef | grep <my script> is COPY & PASTE broken for you?
    any reason why you did not show us EXACTLY was produced by OS command above?
    >
    Is it something wrong with my code or is it normal? Is it really executing two times ?
    -Regards
    bcm@bcm-laptop:~$ sqlplus user1/user1
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 20 15:14:15 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    15:14:15 SQL> !ps -ef | grep sqlplus
    bcm      24577  1903  1 15:14 pts/0    00:00:00 sqlplus           
    bcm      24579 24577  0 15:14 pts/0    00:00:00 /bin/bash -c ps -ef | grep sqlplus
    bcm      24581 24579  0 15:14 pts/0    00:00:00 grep sqlplus
    15:14:23 SQL> how many different copies of "sqlplus" running on my laptop based upon actual output above?

Maybe you are looking for