Error running the cron under Linux

I'm trying to run a procedure from a shell script.
My script is like this
#! / bin/sh
ORA_USER = plsql
ORA_PASS = oracle
/usr/lib/Oracle/XE/app/Oracle/product/10.2.0/Server/bin/sqlplus s/nolog < < EOF
connect to $ORA_USER / $ORA_PASS
exec insert_cron_test;
"exit";
EXPRESSIONS OF FOLKLORE;


When I run this script from terminal, it works very well. But when I add it in a cron it gives the following error:-

Error Initializing SQL 6 * more
SP1 file < lang > .msb not found message
SP2-0750: you may need to set ORACLE_HOME in your Oracle software directory

My
$ORACLE_HOME is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
$ORACLE_SID is XE
$LD_LIBRARY_PATH is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib

I can connect to sqlplus prompt without any problem.

Help, please. Thanks in advance.

#! / bin/sh
ORA_USER = plsql
ORA_PASS = oracle
/usr/lib/Oracle/XE/app/Oracle/product/10.2.0/Server/bin/sqlplus s/nolog<>
connect to $ORA_USER / $ORA_PASS
exec insert_cron_test;
"exit";
EXPRESSIONS OF FOLKLORE;

Try

#!/bin/sh
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
ORA_USER=plsql
ORA_PASS=oracle
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus -s /nolog << EOF
        connect $ORA_USER/$ORA_PASS
        exec insert_cron_test;
        exit;
EOF;

Tags: Database

Similar Questions

  • HP Probook s 4440: the update of the BIOS under Linux

    Hello

    My laptop (HP Probook 4440 s) is in the list of laptops with BIOS updates related to security issues [1].

    But I'm on Linux, for which no updates seems to be available [2], although there is an update of the BIOS available for Windows [3]?

    Could someone tell me how to get and apply this update via Linux...

    THX,

    Abdellatif

    [1]: https://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c04393276

    [2]: http://h20566.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=5229488 & swItemId = ob_107629_1 & swEnvOid = 202...

    [3]: http://h20566.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=5229488 & swItemId = ob_135974_1 & swEnvOid = 413...

    I did recently on my HP ProBook 450 G2 Kubuntu Linux 15.10 running.

    A new version of the BIOS (01.16 Rev.A 1 December 2015) was available, but for Windows only.

    What I had to do to install the BIOS under Linux:

    * Download the exe file (for example: sp74048.exe): this is an archive

    * unpack with 7zip

    * go to my laptop configuration: restart, press [ESC] >

    Configuration of the BIOS F10 > MAIN > system update BIOS > BIOS update using local media

    * read the instructions:

    "Place the system on a FAT32 partition no BIOS BIN file more

    on the system or on a removable USB hard drive

    under the folder "Hewlett-Packard\BIOS\New.

    Then, add or verify that the HP Bios update utility (HpBiosUpdate.efi)

    and the signature file (HpBiosUpdate.s12) are

    on the same partition FAT32 under

    the path to the following folder: "Hewlett-Packard\BIOSUpdate. »

    * Take a flash drive, create the folder ""Hewlett-Packard\BIOS\ " "

    copy the whole folder "BIOSUpdate" since the original installation file for her

    create the "New" folder and copy the bin on it (in my case "M74_0116.bin")

    * If at the end, the flash drive looks like this:

    \---Hewlett-Packard

    + - BIOS

    | \---New

    |      Mxx_xxxx. bin

    |

    \---BIOSUpdate

    all files here

    * place the flash drive in the laptop and "BIOS update using local media" hit the button [I accept] below "the system BIOS will be updated immediately.'." "

    Then update the BIOS HP appears saying: the system BIOS is updated day. > writing new BIOS Image. > Veryfying new BIOS Image. > restart.

    Fact.

    It is really beyond me why HP does not provide a simple archive with the appropriate directory structure and a readme file so that anyone could update the BIOS regardless of operating system.

    Warning: I'm just an average Linux user. This procedure worked for me, but before use, you must consider the risks for yourself. You SHOULD know what you're doing.

  • Can I use PXI embedded controller connected to the PC under LINUX operating system

    Hi all

    We ara tries to connect to PXI8106 (in 1042 chassis) to PC under LINUX via ethernet (cable cross at the moment), is the version of labview 8.5.

    Can I use PXI embedded controller connected to the PC under LINUX operating system?

    If Yes, where can I find its configuration in the .ini file?

    Thanks in advance.

    Hello bachir_elec,

    I'm sending you two links that I don't provide the information you need.

    Using Linux on an Embedeed PXI controller:

    http://digital.NI.com/public.nsf/allkb/821E0C115A3B4EF286257069004B8352?OpenDocument

    Configuration of your PXI Linux system:

    http://digital.NI.com/public.nsf/allkb/5CEEC941FB7B0488862573F700653B21?OpenDocument

    You can take a look?

  • FRM-10043 can not open the file under LINUX

    FRM-10043: could not open the file.
    I created a form correctly in windows. It works very well.
    Now, I have to use it under LINUX. Then I copied the fmb file in Linux
    where the default test.fmx is placed.

    Now, I've run the sub query and got the result can not open the file.


    [orabif@br bin] $ sh frmcmp_batch.sh userid=CNT/CNT@cmt
    compile_all = Yes module_type = form module = logonfile.fmb


    10.1 forms (form of the compiler) Version 10.1.2.0.2 (Production)

    10.1 forms (form compiler): Release-Production
    Copyright (c) 1982, 2005, Oracle.
    All rights reserved.

    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle V10.1.2.0.2 - Production procedure generator
    Oracle 10.1.2.0.0 graphic virtual system Version (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle tools integration Version 10.1.2.0.2 (Production)
    Common tools Oracle area Version 10.1.2.0.2
    Oracle 10.1.0.4.0 Production CORE

    FRM-10043: could not open the file.

    Form not created


    Please help me solve this problem.

    * I know that there is no need to compile OLB files. but my forms display error that
    FRM-18108 has no dependent objects.

    When I use Frmcmp.sh GUI is the compiled form succesffully if there is no OLB attached with it.
    It gives Fr-18108 when OLB is attached with the form that he

    Timely help is needed...

    Thanks in advance...

    with cheers
    Sprity...

    spirty,
    This sounds like it could also be a permissions problem. I'm guessing that when you copy-n-Paste the form on the LINUX Server, you did what Windows Explorer. When they are copied to the server LINUX file will be created with the default privileges defined on the file. I recommend that you connect to the LINUX Server and check the permissions on the file. If your file permissions do not match the permissions of the text.fmb (or other files .fmb you have there) I suggest that you change the permissions so that they match.

    I hope this helps.
    Craig...

    If my response or response from another person was helpful, please mark accordingly

  • Error running the same application

    Hello
    I was able to run the same application in another machine in another place.

    But when I run the app even here now, by putting the following host name instead of the IP address (I used when I ran the same application in another place) in the connection string.

    String url = "jdbc:oracle:thin:@ibmpc_may:1521:xe";

    (I have no problem to connect to this DB XE by here)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ibmpc_may) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    But I had the problem below when you run the application itself.
    # Cannot run application app12 due to the deployment on IntegratedWebLogicServer error.
    [16: 09:42] # incomplete deployment. ####
    [16: 09:42] remote deployment failed
    [Application app12 interrupted and cancelled Server Instance IntegratedWebLogicServer]

    Either by the way, where is the log file? The host name that I used above may be the reason for the problem?

    Published by: user12233770 on May 10, 2011 16:23

    You can check with the removal of system folder?

    It will be in C:\Documents and Settings\utilisateur\Application Data\JDeveloper

  • Error running the report

    Hello

    I generated a report from the workspace and it works fine for me. There is another admin who tries to run the report and his throws following error for him:

    : 5200 error to run the query.

    We have the same privileges to the shared services.

    I created this new report.

    Just to tell you it worked fine when I created the 1st day for us both and is now error throing.

    Thank you!

    Hello

    It allows you to preview the POV for the user before running the report.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • You try to run the backup under Vista, error 800704 3

    My computer uses windows vista Home premium. When I try to run a backup I get error code 800704 3. I don't know what is this error, anyone know and how to fix it.

    Hello

    make backups on an external hard drive or DVD

    see if this information helps you

    How to make a backup of your data (all Vista versions)

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

    the 1st link below is how do the backup complete pc (Vista, full and professional company)

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems with the repost of process above in forum microsoft link that is specific to the backup below questions

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • What is the command to run Jdeveloper 12 under Linux?

    After installing JD12 in Fedora Linux with KDE no items menu again I could use to start the program.

    It seem not to be programs that begin with 'jd' in the path no more.

    How can I run JD that I just installed?

    Refer

    Next steps after the installation of Oracle JDeveloper Studio - 12 c (12.1.2)

  • Satellite Z830 - update of the BIOS under Linux?

    Hello

    I recently bought a Satellite z830, which I am very happy.

    Given that requires it my work, I wiped the hard drive and installed Ubuntu linux instead of the default Windows installation.
    Now I want to update the BIOS with the latest version, but unfortunately it is only available as a windows .exe

    Is it possible to upgrade the version of BIOS using only Ubuntu?

    Thank you

    -Chris

    Since the European driver page Toshiba simply provides a Win-based BIOS update version, you'll need an OS running in the window to update the BIOS-based victory. :(

  • Possibility to control the fan and the temperature under Linux

    Hi all.

    I suspect that my fan has stopped working. My satellite T110 tends to heat more quickly than in the past. After a brief search, I installed lm-sensors, and leave the settings by default yesterday reported temperature was 54 degrees. Today the same tool report processor temperature of 32 ° C when I went away and 50 ° C now, after 32 minutes. I was not be able to check the fan but as far as I can see the fan does not work. I would be really grateful if someone could tell me.

    1. If there is a reliable method to control es Linux pc (or even under windows, I have a system dual boot)
    2. What are the possible limits (non-hazardous)
    3. what could I do to fix my fan? It is easy to replace?
    4. a useful link to get information and support on the subject.

    Thanks a lot to you all.
    jabbba

    Is that what you found answers?
    As you know Toshiba doesn't support Linux and doesn't offer solutions for this.
    In my opinion, you should visit some Linux forum and try to find a solution with Linux experts.

  • Satellite A210 restore failed (error: run the Chkdsk utility)

    I have a Toshiba Satellite A210... When I tried to reform. There, an error came (about 47% in the 'process'); blablablabla... This file is corrupt, run Chkdsk utility...
    Help please?
    Then. Should I try call Toshiba or send it?

    Help me please, anyone? :))

    It's not easy to say what the problem is.

    On the Toshiba website, I founded a updated firmware for drives optical drives in Satellite A210.
    Then, look at the Toshiba site and try this update of the firmware if you have such a unit.

    The next step if you have no success with the update of the firmware, you should try a Microsoft installation disc.
    In addition, it could also be a problem with the HARD drive.
    You can do a test drive with Drive Fitness Test.

  • Satellite A200-193 - update of the BIOS under Linux

    Hi all

    I have a 3 years old Toshiba Satellite A200 - 193 (PSAEC), purchased in France, it's apparently not released in the United States - or not under the reference of thos - because I can't find it in the database of the Toshiba bios. (I could post in a french forum, but there is no such support :-/)

    The bios is a Phoenix, v1.30. This bios is known to have a bug inside, preventing the unofficial OS and not patched like linux to properly treat the acpi (control of the fan in particular). The temperature is higher than it should be.

    I tried to update my bios to 1.80 through the en of the toshiba site, but I and draw attention to say "this bios should only be used with Vista.
    OK, so it's purely disgraceful given the specific instructions of OS have NOTHING to do inside of a bios, what are my options?

    Has anyone installed this BIOS? He end up by properly?

    Thank you very much

    Hey Buddy,

    Please don t get me wrong, but Toshiba doesn't provide any support for Linux. This means that you search yourself for drivers or solutions and that s why the BIOS update is only Windows Vista supported.

    This means that if you want to do this update, you must install the operating system preinstalled Toshiba, I think that in this case Vista. Then, you are able to update the BIOS.

  • Not able to compile the form under Linux

    Hi all

    I use oracle Forms 11 g [32 bit] Version 11.1.2.2.0.

    I have developed a form in my local system (32-bit Windows) and now trying to compile the form to the server (Linux)

    I get the error message when compiling "FRM-91500: unable to start/complete construction.»

    The form (MODULE1.fmb) that I am trying to compile is in my directory on the server.

    What I did:

    Export ORACLE_HOME = / / oracle, Oracle, Middleware, Oracle_FRHome1

    Export ORACLE_INSTANCE = / / oracle, Oracle, Middleware, asinst_1

    Export FORMS_PATH = / / oracle/Oracle/Middleware/Oracle_FRHome1/forms: / u01/oracle/Oracle/Middleware/asinst_1/FormsComponent/forms

    using the command line to compile the form below:

    Oracle/Oracle/Middleware/Oracle_FRHome1/bin/frmcmp userid = module_type module = MODULE1.fmb < username > = form compile_all = yes window_state = minimize

    Thank you

    Lucile Dutta.

    (1) create new folder in unix

    2) put your FMC to this folder

    (3) copy $ORACLE_HOME/forms/templates/scripts/frmcmp_batch.sh to this folder

    4) add to frmcmp_batch.sh:

    Export TERM = vt220

    Export ORACLE_TERM = vt220

    (5) brand: chmod + x frmcmp_batch.sh

    (6) set your env variables: TNS_ADMIN ORACLE_HOME, ORACLE_INSTANCE,.

    (7) compile form you in this folder with:

    userid = set./frmcmp_batch.sh = no module = module_type = window_state = minimize compile_all = yes

    for example:

    lot of userid=scott/tiger@hr de./frmcmp_batch.sh = no module_type module = test.fmb = form window_state = minimize compile_all = yes

    Concerning

  • Error running the jsf file.

    Hello

    I use jdev 11.1.2.0.

    I create the tutorial example of task as 'Rich Web Applications with Oracle ADF development'. After giving the default for date of hire as adf.currentDate, I got the error 500: internal server error.
    It gives the message as ' create an object of type: oracle.jbo.domain.Timestamp type: java.lang.String with value: adf.currentDate.

    How to fix this help me.

    Kind regards
    Rami.

    Rami,

    You can check if you have checked "Expression" radio box for the Type value in the Hiredate attribute Edit attribute dialog or not? Otherwise, the value it and try to run.

    Jean Lou

  • FRM-40010: cannot read the form under Linux

    Hello

    During the race, the f60desm gives error below command

    FRM-40010: cannot read the form /d01/oracle/prodappl/au/11.5.0/forms/US/PROJECT.fmx

    I've defined the following path

    (1) customPROD_A.env

    # Custom top PROJECT #.

    PROJECT_TOP=/D01/Oracle/prodappl/project/11.5.0
    export PROJECT_TOP

    (2) APPSPROD_A.env

    CustomFile=/D01/Oracle/prodappl/customPROD_A.env
    If [f $customfile]; then
    . /D01/Oracle/prodappl/customPROD_A.env
    FI
    . /D01/Oracle/prodora/8.0.6/PROD_A.env
    . /D01/Oracle/prodappl/PROD_A.env


    Environment:

    Oracle Applications: 11.5.10.2
    RDBMS: 11.2.0.1.0
    OS: OEL5


    Please help solve the problem.

    Thank you
    Concerning
    GSM

    Hello

    How to do the same thing in OEL5.

    The above applies to Windows (if you want to open the file on the Windows client machine fmb and compile - generate the fmx file). If you are on Linux, you need not to do the same thing, just the env file source application and compile the form (question "echo $FORMS60_PATH" to make sure that all the relevant directories are in the path).

    I created the directory of the root OEL5 ABC & copied all the pll, TEMPLATE.fmb & APPSTAND.fmb files in $AU_TOP/resources directory ABC but how to add ABC to FORMS_PATH in OEL5?

    As mentioned above, it is not required on Linux. However, if you want to add the ABC directory you issue:

    $ export FORMS_PATH =: $PATH

    Thank you
    Hussein

Maybe you are looking for

  • Satellite Pro M10: Can I use burner DVD SD-R6472?

    I have a Satellite Pro M10 GR / / model PS630E-G207W-GR. I want to put in a DVD burner. Can I use the slimline burner DVD SD - 6472 R Toshiba? Thanks for the quick reply Herbert

  • All Web sites display problem

    HelloI bought the Asus G73JH-TZ008V full HD 17. I have a big problem to display all web sites: all web sites display in format reduced from-30% around. I have the same problem with Google Chrome, but not with Internet Explorer! ??? What could I do?AS

  • How can I save my files? and which ones? I need to reinstall windows xp pro

    but I have a lot of problems on my current xp pro. problems of windows registry problems. I used to save those I do? Ty

  • 625 x noise specification

    I have a card PCI-6255 that I intend to use for certain sensitive measures. I'm trying to put together a budget-to-end error and I have a few questions. My model is in terms of number of analog-to-digital converter (also known as the LSB in your data

  • How to show "trace" in as3?

    Hello I am a beginner in adobe air, I have placed some orders of "trace" to display the data but I have no answer to it. Where to display the response trace using adobe flash builder 4.5? Thanks cordially Dembélé