Create domain from command line failed in wls91

Hi,
I am trying to create a simple domain from command line for wls91. It even didn't ask me the password. How can I do it? Thanks
C:\testdomain>java weblogic.Server
<Feb 23, 2006 9:11:50 AM PST> <Info> <WebLogicServer> <BEA-000377> <Starting Web
Logic Server with BEA JRockit(R) Version R26.0.0-189-53463-1.5.0_04-20051122-204
1-win-ia32 from BEA Systems, Inc.>
C:\testdomain\config\config.xml not found
No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
<Feb 23, 2006 9:11:56 AM PST> <Info> <Management> <BEA-140013> <C:\testdomain\.\
config\config.xml not found>
<Feb 23, 2006 9:11:56 AM PST> <Info> <Security> <BEA-090065> <Getting boot ident
ity from user.>
Enter username to boot WebLogic server:weblogic
<Feb 23, 2006 9:12:00 AM PST> <Error> <Security> <BEA-090782> <Server is Running
in Production Mode and Native Library(terminalio) to read the password securely
from commandline is not found.>
<Feb 23, 2006 9:12:00 AM PST> <Notice> <WebLogicServer> <BEA-000388> <JVM called
WLS shutdown hook. The server will force shutdown now>
<Feb 23, 2006 9:12:00 AM PST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
te changed to FORCE_SHUTTING_DOWN>
C:\testdomain>

Hi,
If you are still having problems creating a domain from the command line, the official solution would be to use
{proper_path}/bea/weblogic{proper_version}/common/bin/config.sh -mode=console
This will guide you to the same steps as the visual version of the wizard, but using the command prompt.
If you are using windows, the same works but with the command config.cmd, and mutatis mutandis.
Regards,
LG

Similar Messages

  • Ant deploy from Jdev works fine - same ant deploy from command line fails

    Hi
    I'm using Jdev 10.1.3 and OAS 10.1.3 and created some web services. I can deploy using the Wizard in JDev - works fine, created a build.xml file using the <oracle:deploy> ant task. Also work fine from JDeveloper.
    But when running from command line (windows) I get the following:
    d:\>ant deploy
    Buildfile: build.xml
    init:
    compile:
    copy:
    ear:
    [war] Building war: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    [war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)
    [ear] Building ear: D:\invision\source\INVisionWebService1013\deploy\INVisionWebService.ear
    [delete] Deleting: D:\invision\source\INVisionWebService1013\INVisionWebService.war
    deploy:
    BUILD FAILED
    D:\invision\source\INVisionWebService1013\build.xml:282: The following error occurred while executing this line:
    jar:file:/D:/apache/apache-ant-1.6.5/lib/ant-oracle-classes.jar!/oracle/antlib.xml:27: taskdef class oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy cannot be found
    I have studied the web for suggestion also http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14431/anttasks.htm#sthref164 but nothing seems to work. Tried copying oracle jars to my ant directory (ant version 1.6.5) but still no success (above error message disappered but other came instead).
    Why must this process be so complex. Can anyone help?

    Hi,
    You need to have the following jars in your classpath before firing the ant deploy task.
    ${Oracle_Home}\j2ee\utilities\ant-oracle-classes.jar;
    ${Oracle_Home}\j2ee\home\lib\adminclient.jar;
    ${Oracle_Home}\2ee\home\lib\oc4j-internal.jar;
    ${Oracle_Home}\j2ee\home\lib\javax77.jar;
    ${Oracle_Home}\j2ee\home\lib\javax88.jar;
    ${Oracle_Home}\j2ee\home\lib\jmxri.jar;
    ${Oracle_Home}\OracleAS_1\webservices\lib\wsa.jar;
    Please check your classpath and add the above jars, if not present and try ant deploy task now.
    I suppose it should work fine.
    Hope its helpful.
    Rgds,
    Prashanth Babu.

  • Grant and revoke privilages from command line interface

    hi all,
    I have a lot of users that I need to give them a set of privileges to folders and containers of the repository, i thought that using the command line interface should help in loading a script.
    i checked the manual for the syntax for such a command (i.e. to grant privileges) but i couldn't, searched the net and i didn't find anything.
    So can we grant privileges from the command line interface and how ?
    by the way is there anyway to create users from command line interface as well ?\
    thanks in advance and have a good one

    The granting of access rights cannot be done with a CLI script in Designer. Instead you have to use the Designer API Pl/Sql packages.
    For detailed information, refer to the "API and Model Reference Guide", which is
    installed with the Designer Repository Documentation, or can be found on OTN > Doco > Designer site.
    Scroll through that document to the Reference section. You will need to read up on two topics at least: Workarea and Container Context, Privileges and Access Rights.
    To grant rights, the easiest way is to grant them "just like some existing ones".
    To do this, you'll need a Pl/Sql procedure with 5 input parameters:
    1) the workarea context
    2) the container to look at
    3) the user to look like
    4) the container to grant access to
    5) the user to grant access for
    The Pl/Sql procedure then needs to make a series of Repository API package calls to set context and get container IRIDs:
    JR_CONTEXT.Set_Workarea (workareaname) - to set the context workarea
    JR_CONTEXT.Set_Working_Folder (sourcefoldername) - to specify the source container
    JR_CONTEXT.Working_Folder (sourcefolderid) - to get the ID of the source container
    JR_CONTEXT.Set_Working_Folder (targetfoldername) - to specify the target container
    JR_CONTEXT.Working_Folder (targetfolderid) - to get the ID of the target container
    OR you can just do a couple queries after you set the WA CONTEXT such as ...
    Select IRID from CI_Application_Systems where NAME = <sourcefoldername>
    Select IRID from CI_Application_Systems where NAME = <targetfoldername>
    Then you get the list of rights desired, and grant them back to the target user.
    JR_ACC_RIGHTS.Get_Acc_Rights (sourcefolderid, sourceusername) > AccessList
    [gets list of existing rights for some user on a container]
    JR_ACC_RIGHTS.Grant_Priv_List (targetfolderid, targetusername, AccessList, Cascade? = TRUE)
    [to set the list of rights for a user against the target container and its subcontainers]
    There are other ACC_RIGHTS packages, like Grant_Priv, Revoke_Prive, Revoke_Priv_List, etc that you can use as well to build up a set of access management scripts.
    Hope this helps

  • Error while running ADF-BC Test Suite from command line

    Hi,
    I have created a separate test project containing the Test Suite for the Model componenet of my ADF-BC  application.
    I need to run this test project separately from jmeter.
    The tests run fine from Jdev, But when I package the test project into a jar and try to run from command line, I get the following error:
    java.lang.NoClassDefFoundError: oracle/jbo/ApplicationModule
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<init>(ServiceAMFixture.java:36)
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<clinit>(ServiceAMFixture.java:15)
            at com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest.<init>(EntitlementReportDurationViewVOTest.java:11)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
            at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
            at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
            at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.runners.Suite.access$000(Suite.java:26)
            at org.junit.runners.Suite$1.run(Suite.java:93)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.runners.Suite.run(Suite.java:91)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
            at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
            at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
    Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
    The Test project jar is created as ADF Library JAR File with Model.jpr as the dependent project. This takes care of project class dependencies
    All the adf library dependencies are added to the manifest file of the Test Project jar referring to a location lib/ in the jar file directory.
    I tried creating the ApplicationModule using both Configuration class (Configuration.createRootApplicationModule) as well as using the JDBC Connection String but both fail when I run the test cases independently from jmeter.
    Anybody came across such an error? Please help.
    Thanks,
    Sapna

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • CMake behaves differently from within PKGBUILD and from command line

    Hi,
    I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
    My question is, why different behaviors? Any suggestions on what is wrong?
    pkgname=casadi-git
    pkgver=0
    pkgrel=1
    pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
    arch=('i686' 'x86_64')
    url=""
    license=('GPL')
    groups=()
    depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
    makedepends=('cmake' 'swig')
    checkdepends=()
    optdepends=()
    provides=('casadi')
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    changelog=
    source=('casadi::git+https://github.com/casadi/casadi.git')
    md5sums='SKIP'
    build() {
    cd "$srcdir/casadi"
    sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DWITH_DL:BOOL=ON \
    -DWITH_LLVM:BOOL=OFF \
    -DWITH_PYTHON_INTERRUPTS:BOOL=ON \
    -DWITH_OPENMP:BOOL=ON \
    -DWITH_OOQP:BOOL=ON \
    -DWITH_DOC:BOOL=ON \
    -DWITH_OPENCL:BOOL=OFF
    make
    package() {
    cd "$srcdir/casadi"
    make DESTDIR="$pkgdir/" install
    Output when cmake is run from command line
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Found OpenMP: -fopenmp
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /home/hamid/bin/python
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * OpenMP
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done
    Output when running makepkg
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [/openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-Qopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [ ]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-xopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [+Oopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-qsmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-mp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /usr/bin/python2
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * OpenMP
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • Error while running a Discoverer Workbook with parameter from command line

    I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
    dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
    Parameter value is entered in correct format(Jan-07).
    When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Did anybody come across this issue before?

    Hello,
    If you have a few minutes, Windows is also aborting for me:
    the differences are, my situation is:
    a) am running the command line from a .bat file
    b) am NOT running with parms, want the discoverer query to come up for the user
    c) am running a query from the database
    i am signing in as myself BUT running a query that was created by a generic user called SREG
    c) if i run the .bat file from Windows Explorer, the query opens fine
    d) if i execute the .bat file from within Microsoft Access using the shell command,
    the query opens and then aborts RIGHT BEFORE the parm screen would display
    e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
    from vb using SHELL command works
    Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
    this is what i posted yesterday, tx: Re: Running Discoverer command line
    tx, sandra

  • I can not uninstall Office 2013 from command line

    Hi, I have been stuck for a while trying to uninstall Office 2013 via command line. Installation file was downloaded from Volume Licensing Service Center, Uninstall.xml file for silent uninstallation looks like this:
    <Configuration Product=”ProPlus”>
    <Display Level=”basic” CompletionNotice=”yes” SuppressModal=”yes” AcceptEula=”yes” />
    </Configuration>
    From command line the following will not work:
    setup /uninstall ProPlus /config .\ProPlus.ww\Uninstall.xml
    Error: Setup can not find or validate an installation file. Please try reinstalling Office . . .
    setup /uninstall ProPlus gives me GUI to continue process - it seems /config .\ProPlus.ww\Uninstall.xml part does not work as it should be
    This is very important to me since I used above command line in SCCM 2012 R2 to allow user to uninstall Office 2013 by itself via Software Center. When this failed I tried locally but the error was the same. This should have been trivial task - silent uninstallation
    using .xml file. It is not a rocket science. I am very angry because losing time for something like this is unacceptable for system engineers working with SCCM 2012 R2.

    Hi,
    This error might occurs due to lots of reasons. Where is the installation file stored? If it's stored on a network share, please copy it to your local disk, and then manually run the command again. This way, we'll see if the installation file is the
    problem.
    If issue persists in this case, then this generally means that something wrong with the installation file. Please try to redownload it and then try again.
    Please also make sure that you're executing the command with elevated privileges (run as administrator).
    Regards,
    Ethan Hua
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to run a 10g report from command line ?

    Good Afternoon,
    Please advise if there is a way to run a 10g report from command line.
    We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
    Thank you,
    Dmitri

    Steps to take.
    (1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
    (2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
            (a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
                   or, if it does not work
            (b.) Add D:\OracleDevR2\bin to the system env. variable PATH
    (3.) Start OC4j
    (4.) Now you can access the jobs using URL like:
        http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
          where 192.161.11.143 is your machine's IP address.

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • Running FlexUnit tests from command line

    Sorry if that has been posted before: I searched best I could and nothing came up.
    I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
    I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
    I looked into at least how to build something from the command line, I found this:
    http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
    Can't get past this error:
    Buildfile: /Users/dbanks/build_test.xml
    BUILD FAILED
    Target "FlexUnitApplication" does not exist in the project "null".
    Total time: 0 seconds
    Adobe Flash Builder 4:
    An error has occurred. See the log file
    /Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
    Plus, even if I got this going, I am just building the swf.  I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
    FWIW, the script/xml I am using to try to build:
    build_test.xml:
    <?xml version="1.0"?>
    <project default="main">
        <target name="main">
            <fb.exportReleaseBuild project="NightclubMogul" />
        </target>
    </project>
    execute_build_test.sh:
    WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
    # works with either FlashBuilder.app or Eclipse.app
    "/Applications/AdobeFlashBuilder4" \
        --launcher.suppressErrors   \
        -noSplash   \
        -application org.eclipse.ant.core.antRunner   \
        -data "$WORKSPACE"    \
        -file "/Users/dbanks/build_test.xml" FlexUnitApplication
    I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere.  I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
    Any help would be great: getting the tests to build from command line, then getting them to run.

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • Problem with tokenized  input from command line

    I am trying to take an input from the command line, parse it to tokens and perform whatever operation is needed depending on the name of the token, on a binary tree of stacks for example, if i type 1 2 1 3 printLevelOrder, then the root of the tree should have 3, 2,1 in the stack, the left child should have 1 and the right child should be empty. and then a level order print of the tree should be performed.
    however what is happening when i run this code is the numbers are being put into the right stacks of the tree, but any commands such as printLevelOrder or PrintPopRoot are entering the code that is for placing numbers onto the stack instead of executing that command and skipping past this piece of code.
    so my question is, why is the if statement if (word =="printLevelOrder") not being executed when thats whats in the word ?
    example input and output shown below code fragment.
              try {
                  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                 String line = "";
                 while (line != "***") {
                      System.out.print("> prompt ");
                      line = in.readLine();
                      StringTokenizer tokenizer = new StringTokenizer(line," ");
                      String word = new String();
                      while (tokenizer.hasMoreTokens()) {
                             word = tokenizer.nextToken();
                             boolean notCommand = true;
                             if (word =="printLevelOrder") {
                                  theTree.printLevelOrder();
                                  System.out.println("(word ==printLevelOrder)");
                                  notCommand=false;
                             if (word == "printPopLevelOrder") {
                                  theTree.printPopLevelOrder();
                                  notCommand=false;
                             if (word == "printPopInorder") {
                                  theTree.printPopInorder();
                                  notCommand=false;
                             if (word == "printPopPreorder") {
                                  theTree.printPopPreorder();
                                  notCommand=false;
                             if (word == "printPopRoot") {
                                  theTree.printPopRoot();
                                  notCommand=false;
                             if (word == "***") {
                                  notCommand=false;
                             if (notCommand == true) {
                                  System.out.println("(notCommand == true)");
                                  boolean notPlaced = true;
                                  int v = 1;
                                  while ((notPlaced==true) && (v < theTree.size())) {
                                       if (theTree.element(v).isEmpty()) {
                                            theTree.element(v).push(Integer.valueOf(word));
                                            System.out.println("Inserting"+word);
                                            System.out.println("in empty stack at location: "+v);
                                            notPlaced=false;
                                       if (notPlaced==true) {
                                            if (  Integer.valueOf(word) >= Integer.valueOf( theTree.element(v).top().toString() )  ) {
                                                 theTree.element(v).push(Integer.valueOf(word));
                                                 System.out.println("Inserting"+word);
                                                 System.out.println("in stack at location: "+v);
                                                 notPlaced=false;
                                       v++;
              }valid inputs: int value, printLevelOrder, printPopLevelOrder, printPopInorder, p
    rintPopPreorder, printPopRoot, *** to quit
    prompt 1 3 2 4 2 printLevelOrder(notCommand == true)
    Inserting1
    in empty stack at location: 1
    (notCommand == true)
    Inserting3
    in stack at location: 1
    (notCommand == true)
    Inserting2
    in empty stack at location: 2
    (notCommand == true)
    Inserting4
    in stack at location: 1
    (notCommand == true)
    Inserting2
    in stack at location: 2
    (notCommand == true)
    Exception in thread "main" java.lang.NumberFormatException: For input string: "printLevelOrder"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:447)
    at java.lang.Integer.valueOf(Integer.java:553)
    at TreeStack.main(TreeStack.java:73)
    Press any key to continue . . .

    lol aww, shame that you forgot to do that. i had 10 / 10 for mine, and seing as the deadline is now well and trully over,
    here is the entire source for anybody who was following the discussion or whatever and wanted to experiment.
    additional files needed >
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/Stack.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/ArrayStack.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackEmptyException.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackFullException.java
    /*TreeStack.java - reads command line input of values and assigns them to stacks in a  binary tree and performs
    operations on the ADT. valid inputs: <int>,   printLevelOrder,   printPopLevelOrder,
    printPopInorder,   printPopPreOrder,   printPopRoot.         Terminates on invalid input.
    Written by George St. Clair.
    S/N:0208456         22/11/2005
    import java.util.Vector;
    import java.io.*;
    import java.util.StringTokenizer;
    public class TreeStack {
         private final int TREE_CAPACITY = 7 + 1;
         private final int STACK_CAPACITY = 10;
         Vector tree = new Vector(TREE_CAPACITY) ;
         //collect input from command line, add values to stacks at nodes of the teee
         //and perform required operations on the treestack
         public static void main (String [] args) {
              //create a tree of stacks
              TreeStack theTree = new TreeStack ();
              try {
                   //collect standard input
                  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                 String line = "";
                 while (line != null) {
                        System.out.print("");
                      line = in.readLine();
                      //tokenise input
                      StringTokenizer tokenizer = new StringTokenizer(line," ");
                      String word = new String();
                      while (tokenizer.hasMoreTokens()) {
                             //assign word to the token
                             word = tokenizer.nextToken();
                             boolean notCommand = true;
                             //perform operation on treestack depending on what word is
                             if (word.equals("printLevelOrder"))  {
                                  System.out.println("printLevelOrder");
                                  theTree.printLevelOrder();
                                  notCommand=false;
                             if (word.equals("printPopLevelOrder"))  {
                                  System.out.println("printPopLevelOrder");
                                  theTree.printPopLevelOrder();
                                  notCommand=false;
                             if (word.equals("printPopInorder"))  {
                                  System.out.println("printPopInorder");
                                  theTree.printPopInorder();
                                  notCommand=false;
                             if (word.equals("printPopPreorder"))  {
                                  System.out.println("printPopPreorder");
                                  theTree.printPopPreorder();
                                  notCommand=false;
                             if (word.equals("printPopRoot"))  {
                                  System.out.println("printPopRoot");
                                  theTree.printPopRoot();
                                  notCommand=false;
                             //if word was not a command it must be a number
                             if (notCommand == true) {
                                  boolean notPlaced = true;
                                  int v = 1;
                                  //starting at the root, find suitable place for number
                                  while ((notPlaced==true) && (v < theTree.size())) {
                                       //if the stack at v is empty, number goes here
                                       if (theTree.element(v).isEmpty()) {
                                            theTree.element(v).push(Integer.valueOf(word));
                                            System.out.println("inserting: "+word);
                                            System.out.println("in empty stack at location: "+(v-1));
                                            notPlaced=false;
                                       //if the stack is not empty
                                       if (notPlaced==true) {
                                            //if the value on the top of the stack is smaller than number, number goes onto the stack
                                            if (  Integer.valueOf(word) > Integer.valueOf( theTree.element(v).top().toString() )  ) {
                                                 theTree.element(v).push(Integer.valueOf(word));
                                                 System.out.println("inserting: "+word);
                                                 System.out.println("in stack at location: "+(v-1));
                                                 notPlaced=false;
                                       //if that node was no good, check the next one for suitability
                                       v++;
              catch (Exception e) {
                   //occurs when user inputs something that is neither a command, or a number, or upon EOF, or stack is full
         public TreeStack () {
              //create the TreeStack ADT by adding stacks in the vector, note vector 0 is instantiated but not used.
              for (int i = 1;i<=TREE_CAPACITY;i++)
                   tree.add(new ArrayStack(STACK_CAPACITY));
         public int size() {
              //return the size of the tree +1 (as 0 is not used)
              return tree.size();
         public ArrayStack element (int v) {
              //return the ArrayStack at v
              return (ArrayStack)tree.get(v);
         public int leftChild (int v ) {
              //return left child of v
              return v*2;
         public int rightChild (int v ) {
              //return the right child of v
              return v*2+1;
         public boolean children (int v ) {
              //search for children of v and return true if one exists
              for (int i =v;i<size();i++) {
                   if (i/2==v ) {
                         //left child found at i
                         return true;
                   if ((i-1)/2==v ) {
                        //right child found at i
                        return true;
              //no children found
              return false;
         public boolean isInternal (int v ) {
              //test whether node v is internal (has children)
              if (children (v)== true) {
                   //has children
                   return true;
              return false;
         //print the top value in each stack encountered on a level-order traversal of tree
         public void printLevelOrder() {
              //for every node of tree v
              for (int v = 1;v<size();v++) {
                   if (!element(v).isEmpty() ) {
                        //print the top value in stack v
                        System.out.println(" "+element(v).top());
                   else {
                        //stack at v is empty
                        System.out.println(" -");
         //pop off and print the top value in each stack encountered on a level-order traversal of tree
         public void printPopLevelOrder () {
              //pop off and print the top value in stack v
              for (int v = 1;v<size();v++) {
              //for each node of tree v
                   if (!element(v).isEmpty() ) {
                        //if v isnt empty print the top value in stack v
                        System.out.println(" "+element(v).top());
                        //pop the top value in the stack at v
                        element(v).pop();
                   else {
                        //stack at v is empty
                        System.out.println(" -");
         //pop off and print the top value in each stack encountered on an in-order traversal of tree
         public void printPopInorder () {
              printPopInorder (1);
         public void printPopInorder (int v) {
              boolean isInternal = false;
              if (isInternal (v)) {
                   //use a boolean for isInternal to save on running the method twice
                   isInternal = true;
                   //recursively search left subtree
                   printPopInorder (leftChild(v));
              //pop off and print the top value at v
              if (element(v).isEmpty() ) {
                   //stack at v is empty
                   System.out.println(" -");
              else {
                   //if v isnt empty print the top value in stack v then pop
                   System.out.println(" "+element(v).top());
                   element(v).pop();
              if (isInternal ) {
                   //recursively search right subtree
                   printPopInorder (rightChild(v));
         //pop off and print the top value in each stack encountered on an pre-order traversal of tree
         public void printPopPreorder() {
              printPopPreorder(1);
         public void printPopPreorder(int v) {
              //pop off and print the top value at v
              if (!element(v).isEmpty() ) {
                   //if v isnt empty print the top value in stack v then pop
                   System.out.println(" "+element(v).top());
                   element(v).pop();
              else {
                   //stack at v is empty
                   System.out.println(" -");
              if (isInternal (v)) {
                   //recursively search left and right subtrees
                   printPopPreorder (leftChild(v));
                   printPopPreorder (rightChild(v));
         //pop off and print all values from the stack at the root
         public void printPopRoot (){
              //while the root stack has values left
              while (!element(1).isEmpty()) {
                   //print, then pop
                   System.out.println(" "+element(1).top());
                   element(1).pop();
    }

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • Acrobat 9 - Use Optimize PDF from command-line or batch

    one can use the functionality optimize pdf from the command line or a batch script?
    thanks

    I found the solution. With the batch sequence i create the pdf optimization, and use the plug-in Autobatchtool (from the partner evermap) to run this batch from command-line. Thanks for you help

Maybe you are looking for