SQL script with host command job in Enterprise Manger Grid Control

I use Enterprise Manger Grid Control 10.2.0.5 and need to create SQL script job on database instance target on unix/linux platform.
I have problem with os command inside sqlplus script.
For example for the simple command: SQL> host ls
I get the message in output log: SQL> SQL> SQL> SQL> SQL> SQL> /bin/bash: ls: command not found
Can anyone help me?
Thank you.

Hi,
Make sure you have granted all necessary rights (log on as a batch job etc.) to the user used in the prefered credentials.
Cheers,
Kenneth

Similar Messages

  • Enterprise Manger Grid Control 10.1.0.4 and OAS 10.1.2 Interconnect/Adapter

    Hi,
    Can some one tell me whether Enterprise Manger Grid Control 10.1.0.4 can monitor Oracle Application Server 10.1.2 Interconnect and Adapter (Interconnect Repository and DB/FTP adapter)
    Cheers
    Harsha

    You can view the documentation to see if it helps
    http://www.oracle.com/pls/db102/portal.portal_db?selected=3

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • SQL script with a prompt functionality.

    Hello experts,
    I tried searching this on the net but was unsucessful...
    Bascially I need to update an sql script with a prompt functionality..Basically I would like a user prompt that would enter 'Yes or No' to compile invalid objects using utlrp.
    If Yes, it should compile it
    If No it should exit out...
    Can anyone please help.. Need to do this today.
    Edited by: user568296 on Oct 2, 2009 8:18 AM

    Hi,
    As someone suggested, you're probably better off doing this at the OS level.
    SQL*Plus does not have any good mechanism for conditional branching. One trick you can do in SQL*Plus is to run one script from another by saying <tt>@@filename</tt>. By using a substitution variable (which can be defined based on the results of a query) in place of a literal filename, you can make this dynamic.
    For example, the following script runs either
    recompile.sql or
    goodbye.sql
    based on the answer to a prompt:
    ACCEPT     recompile_now      PROMPT        'Do you want to recompile objects now?  '
    COLUMN     next_script_col        NEW_VAL next_script
    SELECT     CASE     
              WHEN  UPPER ('&recompile_now') LIKE 'Y%'
              THEN  'recompile'
              ELSE  'goodbye'
         END     AS next_script_col
    FROM     dual;
    @@&next_script<tt>@@filename</tt> assumes filename.sql is on the same directory as the calling script. You could also give a full path name using only one @-sign:
    <tt>@pathname</tt>

  • Printing with host command

    Let me explain my situation.
    I have a txt file which I want to print out. I usually do this with host command which looks something like this:
    command:='print /D:\\print_server\printer file.txt';
    The problem is how to print this file in landscape.
    If this iAS would be installed on Unix platform I guess my host command would look something like this:
    command:='lp -d printer -olandscape file.txt';
    the problem is, my iAS is installed on WIN2000 server.
    any ideas........

    OK I managed to solve this problem with some dosprint.exe program (40$) which can accept various other parameters as well and one of them is also landscape.
    oh, that windows again .....

  • Run shell script using Host Command

    How do I run Unix Shell Script using Host command?
    Please help me......

    Are you running the shell script from the same box as the forms are deployed in? If not, then HOST call will try to execute on the machine where the forms are hosted(App server).

  • Install Enterprise Manager Grid Control 11R1 Failed at OMS Configuration

    Hello:
    I have installed Oracle 11g (11.2.0.1) and WebLogic Server (WLS) 10.3.6.0 and currently I am in the process of installing Enterprise Manager Grid Control 11R1 on a Linux RedHat 5.8 and it fails at OMS Configuration.
    I have read the following thread and they suggested to use WLS 10.3.2:
    Trouble installing EM GC -- installer patch 9329357 fails
    I was looking for WLS 10.3.2 in Oracle's website and I could not find it.
    Any help would be greatly appreciated.
    Here is the log regarding the error:
    The patch has more than one Archive Action but there is no Make Action.
    ApplySession applying interim patch '9367763' to OH '/dbs0/product/fmw/oms11g'
    Running prerequisite checks...
    You selected -local option, hence OPatch will patch the local system only.
    Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
    (Oracle Home = '/dbs0/product/fmw/oms11g')
    Is the local system ready for patching? y
    Y (auto-answered by -silent)
    User Responded with: Y
    Backing up files and inventory (not for auto-rollback) for the Oracle Home
    Backing up files affected by the patch '9367763' for restore. This might take a while...
    Backing up files affected by the patch '9367763' for rollback. This might take a while...
    Patching component oracle.ldap.rsf, 11.1.1.2.0...
    Updating archive file "/dbs0/product/fmw/oms11g/lib/libldapclnt11.a" with "lib/libldapclnt11.a/gslu.o"
    ApplySession adding interim patch '9367763' to inventory
    Verifying the update...
    Inventory check OK: Patch ID 9367763 is registered in Oracle Home inventory with proper meta-data.
    Files check OK: Files from Patch ID 9367763 are present in Oracle Home.
    Execution of 'sh /dbs0/product/fmw/oms11g/install/oneoffs/111010/9367763/custom/scripts/post -apply 9367763 ':
    Return Code = 0
    The local system has been patched and can be restarted.
    OPatch succeeded.
    This config tool has failed. Please re-run this config tool manually from another terminal as
    <ORACLE_HOME>/perl/bin/perl <ORACLE_HOME>/install/oneoffs/apply_NewOneoffs.pl <ORACLE_HOME> <oneoff_numbers>
    Eg: /scratch/EM/agent10g/perl/bin/perl /scratch/EM/agent10g/install/oneoffs/apply_NewOneoffs.pl /scratch/EM/agent10g 5632264,5961654
    Finished one-offs apply...
    Deleting the files...
    Finished deleting the above files...
    Configuration assistant "OMS Oneoff Patch Application" Succeeded
    Running Configuration assistant "Repository Configuration"
    Calling the EMSCHEMA MANAGER: CREATE
    Please check the Repository Configuration Assistant logs at: /dbs0/product/fmw/oms11g/sysman/log/schemamanager
    The create is completed now running the MOS
    Configuration assistant "Repository Configuration" Succeeded
    Running Configuration assistant "MDS Schema Configuration"
    Configuration assistant "MDS Schema Configuration" Succeeded
    Running Configuration assistant "OCM EM Repository Instrumentation"
    Configuration assistant "OCM EM Repository Instrumentation" Succeeded
    Running Configuration assistant "OMS Configuration"
    Executing the OMSCA command...
    Check the OMS Configuration Assistant logs at: /dbs0/product/fmw/oms11g/cfgtoollogs/omsca
    INFO: Required tool's Execution failed
    Configuration assistant "OMS Configuration" Failed
    INFO: ***Configuration Assistants Action END ***
    *** The installation was Successful, but some configuration assistants were failed or cancelled or skipped. ***

    Hello:
    For some reason after selecting the Retry button it successfully passed the Add-on OMS Side Configuration. Now I am failing at the "Agent Configuration Assistant". Here's the agent log:
    log4j:ERROR No appenders could be found for category (oracle.sysman.emas.sdk.discovery.discover.WeblogicTargetDiscovery).
    log4j:ERROR Please initialize the log4j system properly.
    Total Discovery time is :1675milliseconds.
    INFO: oracle.sysman.top.agent:AddingToTargetsXml: WLS targets
    INFO: oracle.sysman.top.agent:Adding /oracle/product/agent11g/sysman/install//oraclewls.out file to /oracle/product/agent11g
    INFO: oracle.sysman.top.agent:addToTargetsXML:TargetInstaller added target file= /oracle/product/agent11g/sysman/install//oraclewls.out to /oracle/product/agent11g successfully.
    INFO: oracle.sysman.top.agent:AgentPlugIn:perform:Starting Agent with startAgent=true
    INFO: oracle.sysman.top.agent:Starting the agent
    INFO: oracle.sysman.top.agent:Starting the agent...
    INFO: oracle.sysman.top.agent:Executing Command: /oracle/product/agent11g/bin/emctl start agent
    INFO: oracle.sysman.top.agent:Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
    INFO: oracle.sysman.top.agent:Copyright (c) 1996, 2010 Oracle Corporation. Allrights reserved.
    INFO: oracle.sysman.top.agent:Agent is already running
    INFO: oracle.sysman.top.agent:Requested Operation Completed with Status = 0
    INFO: oracle.sysman.top.agent:
    The Management Agent Configuration Assistant has failed. The following failureswere recorded:
    Securing of the agent failed.
    INFO: oracle.sysman.top.agent:Internal PlugIn for {Micro Step state:step:2:configuration in CfmAggregateInstance: oracle.sysman.top.agent:11.1.0.1.0:common:family=CFM:oh=/oracle/product/agent11g:label=10} failed with an unhandled exception:
    java.lang.Exception:
    The Management Agent Configuration Assistant has failed. The following failureswere recorded:
    Securing of the agent failed.
    at oracle.sysman.emcp.agent.AgentPlugIn.startProcessing(AgentPlugIn.java:269)
    at oracle.sysman.emcp.agent.AgentPlugIn.invoke(AgentPlugIn.java:243)
    at oracle.sysman.emCfg.core.PerformMicroStep.runJavaClass(PerformMicroStep.java:540)
    at oracle.sysman.emCfg.core.PerformMicroStep.executeMicroStep(PerformMicroStep.java:120)
    at oracle.sysman.emCfg.core.ActionPerformer.performMicroStep(ActionPerformer.java:917)
    at oracle.sysman.emCfg.core.ActionPerformer$Performer.run(ActionPerformer.java:1038)
    INFO: oracle.sysman.top.agent:The plug-in Agent Configuration Assistant has failed its perform method
    Any help would be greatly appreciated.
    Thanks,
    Orivares

  • ASM without Enterprise Manager Grid Control

    Dear Gurus,
    Can ASM be configured on Oracle 11g R2 without Enterprise Manager Grid Control ?
    If so, how?
    /Regards

    Thanks Jose,
    But it seems asmca is not on my server were I installed Oracle 11g R2. With your input I have been able to search in the right direction though. The following page seems to say that the Oracle grid infrastructure must be installed, as asmca is part of it:
    http://download.oracle.com/docs/cd/E11882_01/install.112/e10840/oraclerestart.htm#BABGDFIC
    It states this:
    If you do not have Automatic Storage Management installed and you want to use Automatic Storage Management as your storage option, then you must complete an Oracle grid infrastructure installation before you start your Oracle Database installation.
    To me this seems like overkill (having to install 3GB extra software to test if ASM is what we need, where in Oracle 10g no grid infrastructure was needed).
    /Best regards
    /9350831
    Edited by: user9350831 on 24-jun-2010 21:41

  • 11.1.0.1.0  Enterprise Manager Grid Control - Single Sign-on certification

    Greetings all,
    What are the single sign-on solutions that work with 11.1.0.1.0 enterprise manager grid control?
    thanks
    Seetharaman

    That shouldn't happen normally. Check again the installation guide that you meet all requirements for the repository database. Make sure there's no 'old' SYSMAN user (from standalone database control etc.).
    Werner

  • Enterprise manager Grid Control for Windows 64 bit

    Hi,
    I am looking for Enterprise Manager Grid Control 10.2.0.3 for Microsoft Windows Server 2003 R2 64 bit. On OTN and metalink I can only find for 32 bit. Can anyone suggest where I can find the same.
    Thanks in Advance.
    SK.

    The OMS is on Win x86 and supports Agent on Win x64 target.

  • Apply CPU /PSU patches through Enterprise Manager Grid Control.

    How to apply PSU patches from 10.2.0.5 GRID Grid Control to my test/development/qa environment.
    Are there any step by step documents availible. Did any one applied these patches using Oracle Enterprise Manager Grid control.

    Please read
    Oracle® Enterprise Manager Administrator's Guide for Software and Server Provisioning and Patching
    10g Release 5 (10.2.0.5.0)
    3 Infrastructure Requirements
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e14500/infrastructure_setup.htm#BABEIFBC
    For the correct setup to do you patching.
    Regards
    Rob
    http://oemgc.wordpress.com

  • Please provide the patch set for Oracle Enterprise Manager Grid Control 10

    Hi,
    please provide the patch set for Oracle Enterprise Manager Grid Control 10.2.0.1 and 10.2.0.5 for AIX 5.3
    patch set for Oracle Enterprise Manager Grid Control for 11.2.0.2 OS AIX 5.3
    Thanks,
    Vishal Hande.

    user12009184 wrote:
    Hi,
    please provide the patch set for Oracle Enterprise Manager Grid Control 10.2.0.1 and 10.2.0.5 for AIX 5.3
    patch set for Oracle Enterprise Manager Grid Control for 11.2.0.2 OS AIX 5.3
    Thanks,
    Vishal Hande.you must obtain all patches directly from
    http://support.oracle.com

  • Install Enterprise Manager Grid Control 10.2.0

    Hi,
    to install Oracle Enterprise Manager Grid Control 10.2.0. should I
    1-install 10g Release 1 (10.1)
    2-Apply patch nnnn (Which number ) ?
    Is it possible to install Enterprise Manager Grid Control 10.2.0. from scratch ? Where can I download the ressource ?
    Thank you.

    You can check this:
    [http://www.oracle.com/technology/software/products/oem/htdocs/gridR3_10203_readme.html]
    steps are outlined here:
    [http://www.oracle-base.com/articles/10g/Oracle10gR2GridControlInstallationOnRedHatAndCentOS.php]
    Edited by: Anantha on Apr 14, 2009 11:23 AM

  • Can Enterprise Manager Grid Control 10g R4 manages Oracle DB 11g?

    Are there some articles or documents for that?

    I assume you are asking whether it is possible to run Enterprise Manager Grid Control without using the embedded database. The answer is yes. There is a step in the install wizard that ask you whether you want to create an embedded database, or use an existing database environment. Just follow the instructions on the wizard to point your EM server to the database of your choice. You can even run EM on RAC provided that you already have the license for it.

  • Entreprise manager versus enterprise manager grid control

    Hello,
    This may seem a dummy question, but wath is the difference between Enterprise Manager and Enterprise manager grid control?
    Thanks

    And the anwser is:
    Check document OEM Concepts page 12-1.
    Thanks
    Gonçalo Ribeiro

Maybe you are looking for

  • Text delete options since software update

    I've recently updated the software to 10.3.1.1565 and a new option appeared for text messaging. when i closed a message and went back to the list of text messages the delete symbol appeared next to the text for a few seconds. This was useful. Now, I

  • RMBP freezing / crashing (not chrome related)

    Hi, about 3 weeks ago my rMBP started to freeze randomly and i couldn't find anywhere on the internet nothing related to that, only the chrome / mountain lion conflicts, but... i'm not using google chrome, so why's that? This last freeze I got the lo

  • Viewing calendars of multiple accounts on iPhone

    I succeed in seeing all MY calendars (i.e. those from my account [email protected]) However there are some other calendars i would like to take with me on my iphone. iCal let's you delegate other calendars, so the same should be true for the iphone-c

  • Calendar dates move forward

    Can anybody help when i sync my iphone to my sony laptop on vista op sys. All my iphone calender dates move forward 1 day.

  • Double-clicking an album no longer begins playback

    Prior to this release of iTunes, double-clicking an album cover in album view would initiate playback of the entire album, queuing the all songs in "Up Next." This seems to be broken in 12.1, and clicking the "Play" symbol when the album is expanded