ORA-01017 encountered during execution of shell scripts

Hello

During execution of the backup script for one of my databases, the script contains a login section which breaks down as shown below

Section login script:

sqlplus / < < END > /tmp/$PROGRAM.tmp


Error generatedf in the log file:

SQL * more: Production release 11.2.0.3.0 on sea Apr 10 11:32:06 2013

Copyright (c) 1982, 2011, Oracle. All rights reserved.

ERROR:
ORA-01017: name of user and password invalid. connection refused


Two points to note:
1) there are two other databases on the same server and they have no problem
(2) I am able to connect to this database as ' / '.
(3) I am able to connect to the database as sysdba from another server
(4) the script runs successfully when I change like: sqlplus / as sysdba < < END > /tmp/$PROGRAM.tmp

Hi, for the use of this you must create a user authenticated externally then it will work... Check other databases where you are using the sqlplus / connection for your refrence command

Tags: Database

Similar Questions

  • ORA-04088: error during execution of trigger ' SYSTEM. SET_CURRENT_SCHEMA_PM'

    Hello
    10 g R2 on Win 2008 Server DBSNMP can not connect:
    sqlplus dbsnmp@MYDB
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 18 07:35:19 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    ERROR:
    ORA-04088: error during execution of trigger 'SYSTEM.SET_CURRENT_SCHEMA_PM'
    ORA-01403: no data found
    ORA-06512: at line 5
    But I have:
    SQL> select username from dba_users where username like '%DBSNMP%';
    
    USERNAME
    ------------------------------
    DBSNMP
    
    SQL> grant connect to dbsnmp;
    
    Grant succeeded.
    What could be the problem?
    Thank you.

    First of all investigate what is this trigger as below

    select TEXT from dba_source
    where NAME='SET_CURRENT_SCHEMA_PM' and type='TRIGGER'
    and owner='SYSTEM'
    

    You can also disable this trigger, then try to connect again.

    alter trigger SYSTEM.SET_CURRENT_SCHEMA_PM disable
    
  • OEDQ 9.0.8 - external task - execution of Shell Script

    Hello Disqualification Experts.

    I am looking for your expert advise on this... With the help of the external task I am able to call the .bat (batchfiles) but I'm not able to run .ksh (UNIX shell script file), attached is the example script I am trying to run via the external task.

    File name: testfile.ksh

    #! / usr/bin/ksh

    Set - x

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqd < < EOF

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_OWN', 'ABC_TABLE');

    COMMIT;

    quit smoking;

    EXPRESSIONS OF FOLKLORE

    output

    Disqualification-> Manager-> External tasks-> Creates a new task called TestTask who has the below...

    Command: testfile.ksh

    Working directory: \opt\local\software\edq\config\commandarea

    Get this error Message:

    The external task (Execute testfile.ksh) failed because of the following exception: cannot run program "/ opt/local/software/edq/config/commandarea/testfile.ksh": error = 2. No such file or directory

    Thanks in advance!

    BG

    Dear Richard, thank you for your prompt response.

    # / bin/bash helped and I also have to export the ORACLE_HOME in the script, somehow the $ORACLE_HOME is not recognized by the external task.

    Example of Script working:

    #! / bin/bash

    export ORACLE_HOME=/ora02/oracle/product/11.2.0.4/client

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqdev<>

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_SCHEMA', 'ABC_TABLE');

    COMMIT;

    QUIT SMOKING;

    EXPRESSIONS OF FOLKLORE

    output

    Thanks for your help!

    BG

  • Execution of shell script using OSLinetoken fetchlet

    HII,

    I have a requirement. I need to use a shell script in the fetchlet of OSLineToken. In the metric system of response I will check whether or not the directory already exists on the server. To verify the existence of the directory, I created a shell script. But how can I report its result with the metric of the answer? The shell script is as follows:

    Shell script:

    If test d $1; then
    echo "DIR exists."
    on the other
    echo 'no '.
    FI

    The answer for the same metric will be:
    < QueryDescriptor FETCHLET_ID = "OSLineToken" >
    < property NAME = 'command' SCOPE = 'GLOBAL' >
    SH {nom_repertoire where the shell script is transferred} / {shell script file name} {dir_name_parameter} < / property >
    < property NAME = 'startsWith' SCOPE 'GLOBAL' = > em_result = < / property >
    < property NAME = "separator" SCOPE = 'GLOBAL' > | < / property >
    < / QueryDescriptor >

    Please suggest what is the use of em_result here?

    Once the existence of the directory is checked, if it upward, then I need to call another shell script to concatenate the contents of all files with .log extension (this will be the setting of shell script). Get the output of shell script and view it in custom management plug-in. As I use cat *.log > > consolidatefile command to concatenate the data, I need to read the file consolidatefile from the server and return these data to concatenated plug-in file. Yet once, how can I read the contents of the consolidatefile file in EMF? I will create another matrix to this effect say 'read_content '. the querydesciptor the same thing will be as follows:

    < QueryDescriptor FETCHLET_ID = "OSLineToken" >
    < property NAME = 'command' SCOPE = 'GLOBAL' >
    SH {nom_repertoire where the shell script is transferred} / {shell script file name} {dir_name_parameter} {extension of the files concatenated} < / property >
    < property NAME = 'startsWith' SCOPE 'GLOBAL' = > em_result = < / property >
    < property NAME = "separator" SCOPE = 'GLOBAL' > | < / property >
    < / QueryDescriptor >

    I'm not sure what all the properties to use in this case... I saw that several example files use some of them perbin, scriptsdir, but some of them do not... The related pdf also does not say anything about this kind of properties. Please suggest.

    I hope that the explanation of the problem is not so heavy. Please let me know if you have any question to understand.

    Thank you
    AS

    The guide of extensibility will have instructions on how to package your files as an Archive Plug-in management (MPA). Once you have this file archive, the EM grid control will point to import your plug-in management (MP) in the repository. Once imported, you can deploy them through the user interface for all agents in your grid control. (You can get to the UI Plug - ins by clicking on Setup in the upper right corner, then management Plug-ins to halfway down on the left side of the page).

    When the MP is deployed to the agent, the emx / the directory structure is created and all the scripts that you have the package with your MP are placed in this directory. So when you create your target type metadata file, you'll want to consult this directory.

    Properties with a range of systemeparametres get their values from the emd.properties file.

    If you decide to put up on the agent (which is probably easier than reconditioning of all your files whenever you are editing, and then re-importation and redeploy their), you will need to create the directory structure in the % scriptsDir %. So if you finally Pack your plug-ins all work even.

  • error - bunch of comments script manager - vRO 6 during execution of the script

    Hello

    Lately, I've been making a mistake during a running script in a guest. Linux as well as Windows servers is affected.

    I use the package to change the password root\admin as a day 2 after commissioning a system with vRA. The script simply runs 'passwd root' or 'net user administrator [paqssword]' on the new server.

    The error is on Linux:

    "A general error has occurred: the url generation failure (Workflow: copy of the file of comments to the vCO / Scriptable task (item1) #9).

    the vCenter report to event log "comments authentication operation failed to create the temporary directory for operating on a virtual machine [vmname] '.

    The nested workflow that throws the error is 'Copy of the file of comments to the vCO' workflow, the line of code that indicates the error is:

    var ftInfo = fileManager.initiateFileTransferFromGuest (vm, guestAuth, guestFilePath);

    The value of guestFilePath is imported from the attribute scriptOutputFile = / tmp/vmware-root/vmware160/vco_vmware185

    Under Windows:

    A general error occurred: could not generate URLS (workflow: copy file of vCO for host / Scriptable task (item1) #11)

    This time, the "file copy of vCO in the comments.

    var uri = fileManager.initiateFileTransferToGuest (vm, guestAuth, guestFilePath, attr, srcFile.length, overwrite);

    The value of guestFilePath comes from cmdAnsiGuestPath = C:\Users\[username]\AppData\Local\Temp\vmware20\cmdANSI.exe

    Is could someone please help me solve this?

    After checking the js - io - rights.conf still (permissions properly), under the chmod + x o vRO temp folder and restart the device, the workflow now works on all hosts.

    Why he has managed to work on the only two hosts in the past, I did not find.

  • Trying to capture models niHSDIO during execution of a script, no reference vector

    I am running a script and generating a number of sets of model, the last set of samples is data capture, I need access to these captured data, but its location was moved to an unknown location in the model memory.  Must identify a way to find if I know the number of sequences of each model of the value and the number of models generated by the script command "wait."  The PXI-6552 module is only 12000 vectors, which is not in correlation with the amount of bosses I've generated (or) + wait.

    e williams

    Please post on the Forums of NOR.  It seems that you're trying to compare materials with a Script. Is this correct? You are doing compare material on all the generated waveforms, or just the last waveform? If you could post your script you use he would help me determine what might happen. Could you give me some details of your program and how you go about programming your 6552. Thank you.

  • VSphere Management Assistant freezes during execution of scripts Perl SDK

    In our environment, we have a nagios server which connects to our Executive Assistant to check the health of our host ESX 4.1 vSphere. Scripts are pretty basic and just run over SSH using cryptographic keys every 10 minutes. The problem is that after a day or so to work properly the VMA one freezes and unresponsive. I am at a loss here as to what is causing this problem that I made sure to always disconnect the server vSphere when scripts are finished. Anyone who has met by this kind of problem before?

    Here is one of my scripts for reference:

    check_cpu:

    #!/usr/bin/perl -w
     
    use strict;
    use warnings;
    use FindBin;
    use lib "$FindBin::Bin/../";
    use VMware::VIRuntime;
    use VMware::VmaTargetLib;
     
    my $host = $ARGV[0];
    my $warn = $ARGV[1];
    my $crit = $ARGV[2];
     
    if ( $host eq '' || $warn eq '' || $crit eq '' )
    {
            print "Usage:  check_cpu <SHORT HOSTNAME> <WARNING LEVEL> <CRITICAL LEVEL>\n";
            exit (0);
    }
     
    my $target;
     
    $target = VmaTargetLib::query_target("vcenterserver.***.****.****");
    $target->login();
     
    my $entity_views;
     
    &main();
     
    sub main
    {
            &get_views();
            &get_cpu();
    }
     
    sub logout
    {
            $target->logout();
    }
     
    sub get_views
    {
            $entity_views = Vim::find_entity_views(
                                                    view_type => 'HostSystem',
                                                    filter => { 'summary.config.name' => "$host.***.****.***" },
                                                    );
            if ( @{$entity_views} == 0 )
            {
                    print "Error: Host does not exist! Exit 2\n";
                    &logout();
                    exit (2);
            }
    }
     
    sub get_cpu
    {
            for my $entity (@{$entity_views})
            {
                    my $status = $entity->runtime->standbyMode;
     
                    if ( $status eq 'none' )
                    {
                            my $totalMhz = $entity->summary->hardware->cpuMhz;
                            my $cpuCores = $entity->summary->hardware->numCpuThreads;
                            my $cpuUsage = $entity->summary->quickStats->overallCpuUsage;
     
                            my $cpuPerc = ($cpuUsage/($totalMhz*$cpuCores))*100;
     
                            if ( $cpuPerc < $warn )
                            {
                                    print "CPU at $cpuPerc\%. Exit 0.\n";
                                    &logout();
                                    exit (0);
                            }
                            elsif ( $cpuPerc < $crit )
                            {
                                    print "Warning! CPU at $cpuPerc\%. Exit 1\n";
                                    &logout();
                                    exit (1);
                            }
                            else
                            {
                                    print "Critical! CPU at $cpuPerc\%. Exit 2\n";
                                    &logout();
                                    exit (2);
                            }
                    }
                    else
                    {
                            print "\tHost $host is in standby mode. Exit 0\n";
                            &logout();
                            exit(0);
                    }
                    print "\n";
            }
    }
    

    Thank you

    You monitor the execution of your hosts vMA during execution of the script? By default, it is configured with only 1vCPU and 512 MB of memory, based on the query and the size of your environment it may be running out of resources that I saw myself, and generally I'll upgrade the memory to 1 GB, if not slightly more depending on what he does. It's probably a good idea to take a look at the performance of your vSphere environment and see what it consumes and if the system is swapping or pegging on CPU.

  • ORA - 06502:numeric or of value errORA-04088: error during execution of trigger

    I received the following error message by entering a number in the maximum value (i.e. 9 999 999.) allowed in a data entry form that is distinct from the basic form:

    ORA-06502: PL/SQL: digital or error number precision value: ORA-06512 too big: "< owner >. < trigger >", line 194 ORA-04088: error during execution of trigger '< owner >. < trigger >.

    Where < owner > is the schema name and < Trigger > is the name of the trigger. The block of data in the application for participation is based on a database table, and the sum of all the values entered (with a maximum value of 99.999.999.) appears in the form of Basic. A grand total of this amount along w / other totals on the basic shape is also displayed with a maximum value defined as 999 999 999. Only, I get the above error message when the total is greater than 99999999. If the total is less than or equal to 99.999.999, the basic form works very well. Why?

    I checked all the attributes of the database columns and form fields and everything seems to be okay, and I'm out of my mind. I desperately need your help to solve this problem quickly because the pressure is on...

    Thanks in advance for any help.

    Orchid says:
    Hello Hamid,

    Thanks for your help. Yes, it works as suggested, after that I have increased the length of NUMBER data base table column (9) to NUMBER (11).

    gives you the correct answer, and you don't mark it ;)

    >

    Apparently, Oracle database truncates the decimal points and only update the value of 9 digits without giving errors, but the form of Oracle application is more picky and it generates forms and Oracle error messages when you run the application. It seems that there is a difference when executing the sql commands in the Oracle database and execution of these Oracle Forms application controls. Do you agree?

    Yes

    Thanks again for all the help.

    You can only give reward for it by checking the useful and correct answer.

  • ORA-23621: Operation corresponding to the A054C12CF4BE8ECFE040A8C005022F script

    Hello

    I'm currently implementing an upgrade online from 32-bit/10r2.0.4-a 64-Bit/11R2.0.2.0-Environment on Redhat 5.4.


    The 32-Bit/10R2.0.4 database is named STRM with strmadmin_src STREAMADMINISTRATOR

    The 62-Bit/11R2.0.2 database is named STRM11 with the STREAMADMINISTRATOR strmadmin_tgt


    According to the document in [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17069/ap_strmnt.htm#CIHGICAA] deciding if configure Oracle Streams directly or generate a Script

    I always get the following error message:
    /home/oracle>sqlplus strmadmin_tgt/STRMADMIN@STRM11
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 7 16:00:54 2011
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    
    SQL> DECLARE
      2    empty_tbs  DBMS_STREAMS_TABLESPACE_ADM.TABLESPACE_SET;
      3  BEGIN
      4    DBMS_STREAMS_ADM.PRE_INSTANTIATION_SETUP(
      5      maintain_mode           => 'GLOBAL',
      6      tablespace_names        => empty_tbs,
      7      source_database         => 'STRM',
      8      destination_database    => 'STRM11',
      9      perform_actions         => TRUE,
     10      script_name             => NULL,
     11      script_directory_object => NULL,
     12      capture_name            => 'capture_strm11',
     13      capture_queue_table     => 'strmadmin_tgt.strm11_cqt',
     14      capture_queue_name      => 'strmadmin_tgt.strm11_cq',
     15      apply_name              => 'apply_strm11',
     16      apply_queue_table       => 'strmadmin_tgt.strm11_aqt',
     17      apply_queue_name        => 'strmadmin_tgt.strm11_aq',
     18      bi_directional          => FALSE,
     19      include_ddl             => TRUE,
     20      start_processes         => FALSE,
     21      exclude_schemas         => '*',
     22      exclude_flags           => DBMS_STREAMS_ADM.EXCLUDE_FLAGS_UNSUPPORTED +
     23                              DBMS_STREAMS_ADM.EXCLUDE_FLAGS_DML +
     24                              DBMS_STREAMS_ADM.EXCLUDE_FLAGS_DDL);
     25  END;
     26  /
    
    DECLARE
    *
    ERROR at line 1:
    ORA-23621: Operation corresponding to script A054C12CF4BE8ECFE040A8C005022F2A
    is in progress.
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_STREAMS_MT", line 2607
    ORA-06512: at "SYS.DBMS_STREAMS_MT", line 8163
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2876
    ORA-06512: at line 4
    where
    create public database link STRM   connect to STRMADMIN_SRC   using 'STRM';
    
    and 
    
    -- Create the user 
    create user STRMADMIN_TGT
      identified by ""
      default tablespace STRM_TS
      temporary tablespace TMP_STRM_TS
      profile DEFAULT
      password expire
      quota unlimited on strm_ts;
    -- Grant/Revoke object privileges 
    grant execute on SYS.DBMS_AQ_BQVIEW to STRMADMIN_TGT;
    grant execute on SYS.DBMS_DATAPUMP to STRMADMIN_TGT;
    grant execute on SYS.DBMS_FLASHBACK to STRMADMIN_TGT;
    grant execute, read on directory SYS.OSC_ALERT_DIR to STRMADMIN_TGT with grant option;
    -- Grant/Revoke role privileges 
    grant connect to STRMADMIN_TGT;
    grant datapump_exp_full_database to STRMADMIN_TGT;
    grant datapump_imp_full_database to STRMADMIN_TGT;
    grant dba to STRMADMIN_TGT;
    grant exp_full_database to STRMADMIN_TGT;
    grant imp_full_database to STRMADMIN_TGT;
    -- Grant/Revoke system privileges 
    grant unlimited tablespace to STRMADMIN_TGT;
    What have I done wrong?

    Help, please!

    hqt200475

    (1) check the note bewlo how to create the strmadmin
    Note: 786528.1 how to create STRMADMIN user and granting of privileges
    Note: 259688,1 Grant streams user privileges to administrator using DBMS_STREAMS_AUTH package

    connect /@STRM1.NET as SYSDBA

    create user STRMADMIN identified by STRMADMIN;

    ALTER USER STRMADMIN DEFAULT TABLESPACE USERS
    TEMPORARY TEMP TABLESPACE
    QUOTA UNLIMITED ON USERS;

    GRANT CONNECT, RESOURCE, s/n, AQ_ADMINISTRATOR_ROLE to STRMADMIN;

    Run DBMS_STREAMS_AUTH. GRANT_ADMIN_PRIVILEGE ('STRMADMIN');

    (2) see also
    How to set up replication stream using DBMS_STREAMS_ADM. MAINTAIN_ * set of procedures [864973.1 ID]

    If the procedure is completed successfully, execution (see the example above of the output), then replication is and ready, if not, that the following views can be used to solve the problems:

    DBA_RECOVERABLE_SCRIPT
    Details on the operations of recoverable, shows the currently running script and the block that is running and the total number of blocks.

    DBA_RECOVERABLE_SCRIPT_PARAMS
    Details of the recoverable operating parameters used to run the script.

    DBA_RECOVERABLE_SCRIPT_BLOCKS
    Details about recoverable script blocks, shows more details on each block and exactly what tasks are achieved by running each blosk.

    DBA_RECOVERABLE_SCRIPT_ERRORS
    Details showing errors during execution of the script, you can check to find more information about an error.

    Published by: user596799 on April 17, 2011 08:36

  • Create SQLNET.ora file throug shell script

    How to create a file sqlnet.ora through Solaris shell script?

    I have a little bit of our 11g databases created by another team without sqlnet.ora files and they are now in production.
    I am looking for a simple way to create a file sqlnet.ora via a solaris shell script and send it in the field to be set up by one of our certification authorities.

    OR

    How to write a simple SQL script to create the sqlnet.ora? Then I can create a shell script to run.

    Any ideas will be appreciated?

    Published by: Albert Zaza October 7, 2010 14:06

    Albert Zaza wrote:

    The spec is a little different from what we have vascular. I need to set up some security configuration as well.

    What kind of security config? It will vary from one facility to the other?

    SQLNET.ora is a very simple text file. I have to agree that you should be able to just build one and then distribute it.

    Maybe I didn't explain well enough.

    The problem is that the work will be done my Solaris System Admin (SA) who go out once a month. He takes with him are preparing with the difference, including work on Oracle and work when the package is installed, the work of the Oracle will be as well.

    So what I want is a syntax used to create the file below and then executed by a shell script when the package is installed by the SA.

    #################################################
    sqlnet.ora # Network Configuration file: $ORACLE_HOME/network/sqlnet.ora
    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)
    SQLNET. INBOUND_CONNECT_TIMEOUT = 60
    SQLNET. EXPIRE_TIME = 300

    Ok...

    echo "#################################################"  > $ORACLE_HOME/network/admin/sqlnet.ora
    echo "# sqlnet.ora Network Configuration File: $ORACLE_HOME/network/sqlnet.ora"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    echo "# Generated by Oracle configuration tools."  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    echo ""  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    echo "NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    echo "SQLNET.INBOUND_CONNECT_TIMEOUT=60"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    echo "SQLNET.EXPIRE_TIME=300"  >>  $ORACLE_HOME/network/admin/sqlnet.ora
    

    or just to have a copy of the sqlnet.ora and

    cp $source_dir/sqlnet.ora $ORACLE_HOME/network/admin/sqlnet.ora
    

    Published by: EdStevens on October 8, 2010 11:33

  • CDF to run commands / Shell scripts

    Hi friends,

    I need help serious here regarding the CDF function.

    I created a JAR file to run batch/shell scripts via the calculation script.

    I tested the JAR file and it works perfectly well that run without the calculation script, but I get errors including in Calc script, I get the error message.

    Initially, the error was: error of Machine virtual Java and later, it is class not found.

    Here are the steps to register the CDF:

    1. place the JAR file in the location: E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer\java\udf\

    2. update the file udf.policy with the following statement:

    Grants all permissions to BatEx

    give the code "file:${essbase.java.home}/BatEx.jar" {}

    permission java.security.AllPermission;

    };

    3 restart the Essbase services.

    4. I am trying to create this function at Global level so no mention is not the name of the Application in the MaxL at registration:

    create or replace function '@BatEx' as

    "BatEx.

    Spec '@BatEx(Complete path in double quotes) '.

    Comment "Functions A CDF that runs the batch file in Essbase Server";

    5 this is the calc script:

    @BatEx 'E:/Oracle/Middleware/EPMSystem11R1/common/utilities/Test.bat '; -It gives an error: error: invalid syntax 1012000 - not a command CALC [@BatEx]

    I tried another way:

    RUNJAVA @BatEx 'E:/Oracle/Middleware/EPMSystem11R1/common/utilities/Test.bat '; -Gives an error: problem running [@BatEx 'E:/Oracle/Middleware/EPMSystem11R1/common/utilities/Test.bat']: [can't find @BatEx class]

    Where I am wrong here? Please help me out here.

    Kind regards

    RB

    Thanks much Amit and Jake! I finally cracked!

    Sad thing is that I have found no OTN correct information regarding function Java Custom, rather there was a lot of information about CDFs pre-existing provided by Oracle, so I decided to write a complete solution of CDF, where Java code too was created by the developer of Essbase applications.

    The requirement that I had was to trigger the batch file in the calculation script. Here is the detailed requirement:

    Update Variable of Substitution by planning web form.

    1. the user enters the data in the form of the planning web and saves it.

    2. the calc script attached to the web form, extracts data and records the flat file on Essbase server.

    3. earlier we were executing the script batch on the web server as the workflow will identify the lots on the web server and not on Essbase server, but after the development of this CDF to run the batch job, the batch files can be run directly Essbase server.

    4. the idea is to keep the user limited to the tasks list, so that it does not jump to the to-do list to SubVar web form, workflow and then return to the task list for a simple job to change SubVar.

    There were a few challenges that I encountered during the development of this JAVA function, namely:

    1 function CDF records do not : I tested JAVA code separately using command line and the executable Jar file will execute the batch, as expected. But I couldn't get why my CDF is not have recorded trace. After a lot of searching on Google and analysis, I found that it was the difference between the Version of JAVA (the JAVA compiler I used to compile and create my JAR file) and JAVA (JVM Essbase) virtual machine. I used JDK 1.7 update 65 to compile and create my POT so that the JVM used in the Essbase Server Update 1.6 is 35. I uninstalled JDK 1.7 of my machine, downloaded Update 1.6 35 archives of the Oracle and recompiled the code. Guess what! My CDF function was recorded first.

    So always check the compatibility of the Version of the JDK you used to compile and create the JAR file and JVM on your Essbase server.

    You can check the version of the JVM in console EAS-> EssbaseCluster-> right click-> Edit-> properties-> tab environment. There is a line that appears something like:

    ; JvmModuleLocation $J (EPM_ORACLE_HOME)-...-jdk160_35\jre\bin\server\jvm.dll (the bold is your version of the JVM).

    2. "main class not found" error after successful registration of CDF:

    I haven't had that one category of Public in my JAVA code and this error took me by surprise. I also checked the "public static void main" section in my code and everything seems to be OK. Please note that JAVA is case sensitive - 'hand' and 'Hand' aren't even in JAVA.

    I did some further research and one of John's response to a CDF request, I came to know that I need to include another argument (context) in the main section of my Java code and recompile with classpath "essbase.jar" (I will explain the controls in the next steps). I changed the main section of my JAVA code and included the argument:

    Public Shared Sub main (paramContext context, String [] paramArrayOfString)

    The following JAVA code to perform the batch in Essbase Server:

    import com.hyperion.essbase.calculator.Context;

    import java.io.BufferedReader;

    import java.io.InputStream;

    import java.io.InputStreamReader;

    import java.io.OutputStream;

    import java.io.PrintStream;

    public class BatEx

    {

    Public Shared Sub main (context, paramContext, String [] paramArrayOfString)

    {

    Try

    {

    String str1 = paramArrayOfString [0];

    LocalProcess process = Runtime.getRuntime () .exec (str1);

    InputStream localInputStream1 = localProcess.getInputStream ();

    OutputStream localOutputStream = localProcess.getOutputStream ();

    InputStream localInputStream2 = localProcess.getErrorStream ();

    BufferedReader in = new BufferedReader (new InputStreamReader (localInputStream1)) localBufferedReader;

    String str2;

    While ((str2 = localBufferedReader.readLine ())! = null) {}

    System.out.println (str2);

    }

    System.out.println ("package executed successfully.");

    }

    catch (Exception localException)

    {

    System.out.println ("error!:" + localException);

    localException.printStackTrace ();

    }

    }

    }

    Install the (compatible to Essbase JVM) compatible version of the JDK on your machine. Compile the above code by using the following command:

    C:\ >javac - classpath essbase.jar BatEx.java - please specify the path to the file "essbase.jar". It generally to the location: : \Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer\java\

    The code should compile without any problem, and a .class file must be created with the same name.

    Now is the time to create the JAR file. Use the following command:

    C:\ >jar cf BatEx.jar BatEx.class

    Now the executable JAR file must also be created.

    Place this JAR file: : \Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer\java\udf\

    Restart the service of Essbase and application (the only Application Restarting should work, but I didn't take any chances to restart both).

    Check the log of function CDF recording applications. The application log should be at the location:

    : \Oracle\Middleware\user_projects\epmsystem3\diagnostics\logs\essbase\essbase\app\-

    The CDF enrollment message should be something like:

    External function of [GLOBAL] [@BatEx] saved OK

    I used the following MaxL to register my function in Essbase:

    create or replace function '@BatEx' as

    "BatEx.

    Spec '@BatEx (StringArray).

    Comment "Functions A CDF that runs the batch file in Essbase Server"

    I used the following script to calc to run my CDF (fairly simple however):

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    RUNJAVA BatEx "": / Oracle/Middleware/EPMSystem11R1/common/utilities/Test.bat ";" -Note: please replace with the name of the physical drive.

    I went and checked the logs that the Test.bat written and "wallah! The log file had some content and 1 KB in size. I deleted the contents of the log file and checked again, the result was the same.

    Hope this answer helps all of us who work on CDF that is clean.

    Please like this post if this can help you in some way.

    Thanks again to Amit, Jake and John for helping me solve this puzzle.

    Kind regards

    Amit Kumar Singh

  • Problem to run the shell script procedure

    Hello

    I wrote a shell script which needs to execute the stored procedure

    The shell script:
    cat bi_loading2.sh
    #!/usr/bin/ksh
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/DWH11gR2
    export ORACLE_SID=DWH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
    echo "zero  arg  is  :$0"
    echo "First arg  is  :$1"
    echo "Second arg is  :$2"
    
    
    /u01/app/oracle/product/11.2.0/DWH11gR2/bin/sqlplus  system/xxx@dwh << EOF
    insert into SYSTEM.POC_EXDATA_RESULTS  values($1,'$2',sysdate,null);
    commit;
    
    
    execute system.$2;
         
    update SYSTEM.POC_EXDATA_RESULTS
    set end_date=sysdate
    where id= $1;
    
    commit;
    EOF
    exit 0
    The script gets two parameters: id (1) (2) the procedure that I have to run

    As you can see below oracle is to omit the 'run' command
    Please notice why I can't run the stored procedure.


    $ 83 poc_cf54xbx6cchf2 bi_loading2.sh
    zero  arg  is  :bi_loading2.sh
    First arg  is  :83
    Second arg is  :poc_cf54xbx6cchf2
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Dec 15 17:46:37 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Automatic Storage Management and Real Application Testing options
    
    SQL> 
    1 row created.
    
    SQL> 
    Commit complete.
    
    SQL> SQL> SQL> BEGIN  system.poc_cf54xbx6cchf2; END;
    
                    *
    ERROR at line 1:
    ORA-06550: line 1, column 17:
    PLS-00103: Encountered the symbol "SYSTEM" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "SYSTEM" to continue.
    
    
    SQL> SQL>   2    3  
    4 rows updated.
    
    SQL> 
    Commit complete.

    Read the error stack.

    ORA-06512: at "SYSTEM.POC_CF54XBX6CCHF2", line 3
    

    The error is on line 3 of the POC_CF54XBX6CCHF2 procedure
    If the procedure is called.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • IMP-00058: ORACLE error 1017 met ORA-01017: invalid username/passwo

    I want to run the Import tool with the user's system, I do not see as you see below script:
    D:\TÖÖ\exp_ddl.dmp>sqlplus system/[email protected] as sysdba
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 4 16:40:58 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    Connected to:
    Personal Oracle Database 10g Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> ALTER USER "SYSTEM" IDENTIFIED BY VALUES 'a';
    
    User altered.
    
    SQL> quit;
    Disconnected from Personal Oracle Database 10g Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    D:\TÖÖ\exp_ddl.dmp>imp userid=system/[email protected] file=exp_cas_ddl.dmp log=exp_ca
    s_ddl.log full=y
    
    Import: Release 10.2.0.1.0 - Production on Mon Oct 4 16:41:31 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    IMP-00058: ORACLE error 1017 encountered
    ORA-01017: invalid username/password; logon deniedUsername: system
    Password:
    
    IMP-00058: ORACLE error 1017 encountered
    ORA-01017: invalid username/password; logon deniedUsername: SYSTEM
    Password:
    
    IMP-00058: ORACLE error 1017 encountered
    ORA-01017: invalid username/password; logon denied
    IMP-00005: all allowable logon attempts failed
    IMP-00000: Import terminated unsuccessfully
    
    D:\TÖÖ\exp_ddl.dmp>sqlplus system/[email protected] as sysdba
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 4 16:41:53 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    Connected to:
    Personal Oracle Database 10g Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> select sysdate from dual;
    
    SYSDATE
    ---------
    04-OCT-10
    
    SQL> quit;
    Disconnected from Personal Oracle Database 10g Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    D:\TÖÖ\exp_ddl.dmp>sqlplus system/[email protected]
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 4 16:46:13 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    
    Enter user-name:
    I read the following thread:
    Re: how to use sys as sysdba to import the database
    That did not help much either i think.
    I want is to have a single command that works "Imp" and gives the name tns-database as an input parameter and the user_id parameter must be in pramaters. I can run this way Import?

    What about:

    alter user system identified by A;
    

    I guess that the command "change user identified byvalues '" is the command to settig the encrypted password.
    Only, it will be useful carry passwords of a database to another, but do not for the definition of passwords initially.

    Edited by: hartmutm the 04.10.2010 07:22

  • How2 validate the chain of connection in unix shell script

    I am writing a shell script unix which removes the instance user/passwd/user, form a connection string and pass it to sqlplus. Now, I want to validate if a valid/clean connection string was formed. Basically, I want to do something like below

    sqlplus-s $CONN_STR

    and disconnect if valid string and always disconnect and return to guest if it's not a string valid.

    Is there a clean way, I can check if the return has been after a successful login and how disconnect it in script and check if a string is not valid.

    Create a file name test.sql containing only the OUTPUT and use-L option to SQL * more (attempts to connect only once, instead of reprompting error.)

    D:\>sqlplus -L hr/ko@XE @test.sql
    
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Feb 17 08:48:37 2010
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    SP2-0751: Unable to connect to Oracle.  Exiting SQL*Plus
    
    D:\>echo %errorlevel%
    1
    
    D:\>sqlplus -L hr/hr@XE @test.sql
    
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Feb 17 08:48:49 2010
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    D:\>echo %errorlevel%
    0
    
    D:\>sqlplus -L hr/hr@KO @test.sql
    
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Feb 17 08:52:22 2010
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    
    SP2-0751: Unable to connect to Oracle.  Exiting SQL*Plus
    D:\>echo %errorlevel%
    1
    
  • Use of LabVIEW memory grows slowly but continuously during execution

    Hello

    I am having trouble with LabVIEW. I develop a data acquisition application. My application acquires data, it (i.e. make a FFT) processes and displays the FFT and samples acquired in some graphics.

    The problem I have encountered is Labview is allocation memory more every minute of what my program is running until finally, it crashes. When starting my program uses about 400 MB of memory after 4 minutes approximately 1.2 GB. Sometimes, when the memory usage reaches 1.2 GB it is suddenly up to 500 MB, but most of the time Labview crashes.

    I already checked the tool 'Profile Performance and Memory'. Surprisingly, my screws have constant use of memory during execution.

    Someone has an idea, what happens?

    Kind regards

    th


Maybe you are looking for

  • Latest ubuntu update - help Firefox and bookmarks missing - why?

    I've just updated to the latest Ubuntu and Firefox lacks the Menu Help and the drop down for bookmarks. The only choices in the right side menu of the mouse in the area of the tabs are:Navigateion toolbar, tabs on the toolbar, toolbar add-on, bookmar

  • Try to use my BT headset but "detection of service failed.

    I try to use my BT (official Sony PS3 earpiece/headset bluetooth) headset for my PC microphone. I bought a bluetooth dongle that came with the battery of Toshiba BT on the installation CD. I have installed the battery, put my helmet pairing mode and

  • Noisy fans RD550

    Hello We just installed a new Lenovo RD550 server and we found a big problem with the fans: they are noisy as hell and the server is completely idle. We did update the bios and firmware TSM latest versions, but nothing helps! It is unacceptable that

  • How to find what temperature my 17TS works to envy?

    How will I know what temperatures work to my computer 17.3 want? I don't see anything in the manual on the "temperature". Should I get an external software to know what my laptop works at temperature? If so, what is recommended? Knowing that the heat

  • Have icons on the desktop that are now shortened mode and can not change them or delete them.

    I have icons on my desktop which are now using the shortcut.  I can't remove the stay of icons on the desktop and you can not click on them, and I can't seem to change their return.  How can I fix it?