Command line differences

I've tried to change the case of a string using "sed", and apparently it's not supported by this version of "sed" available on Mountain Lion.
First, I was under the impression that the bash running on ML was POSIX compliant, and that commands would be generally standard.
Second, I've run into other examples of non-standard or limited shell commands on ML and previous OSX.
Third, if one were to save some time or effort in porting a command like "sed", it seems like it does a whole lot more complicated things than knowing what case a character is in.  Is this somehow related to the case-sensitivity of the filesystem setup?
Curious!
Mark

Bash is one program, and is not responsible for the compliance of other commands and utilities. In your example, 'sed' is a seperate program and its compliance is not tied to bash. They are independent programs.
Also I have found that many users think Linux command behavior is standard. If you spend any time working cross platform on other Unix systems (Solaris, AIX, HP-UX, Linux, NetBSD, FreeBSD, Mac OS X, Tru64 UNIX, Ultrix, etc…) you will find a HUGH variation in command versions, implementations and behaviors.
Writing portable scripts and programs is very changeling.
If you have read any of the POSIX standards, you may have noticed they often have a least common dominator feature set, so that more Unix implementations can qualify.
Back to Mac OS X.  Many of the commands come from the FreeBSD Unix distribution, because of the way its license is written. Many Linux and Open Source commands and utilities have a very restrictive GPL v3 license that makes it impossible for Mac OS X to ship them.
If you want to install these other commands, the sources are available on the net, which you can download, compile and install. There are also package managers that will do this as well.

Similar Messages

  • Difference between command line and Runtime.exec()

    Hi all.
    I'm coding some lines to call sqlldr program.
    System info:
    OS: Win2k server
    Java platform: JSK 1.4
    DBMS: Oracle 9i
    I've tested sqlldr in command line and it is OK. But when i call Runtime.exec("sqlldr user/pass@servicename control=mycontrol.ctl")
    the ErrorStream show that: Message 2100 not found,No message file for product=RDBMS ,facility=UL...
    So i had to put a String array which contained "ORACLE_HOME" as the second parameter of exec method. But there's another error appear:
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12560: TNS:protocol adapter error
    I checked tnsnames.ora and it's OK. I do the command line again and it's still OK. Why did Runtime.exec("...") method get Error.
    Does Someone solve it for me.
    Thanks so much.

    I'm having the similar/same issue.
    I'm trying to run SQLLdr from JAVA.
    From a command line, it works fine.. From within JAVA, I get..
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12640: Authentication adapter initialization failed.
    Did you find a solution to your problem?

  • 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

  • Error Received When Trying To Create DSN From The Command Line

    All,
    Your help is greatly appreciated in advance. I am having trouble packaging Oracle 10G for a batch file deployment. Everything is done except for getting the DSN created which is causing me major problems. We am working with the Oracle 10G R2 10.2.0.1.0 Client on Windows XP Professional SP2. The Oracle database resides on a Windows 2000 Professional Server SP4 running Oracle 9i.
    Our Environment: I am creating two packages of the Oracle 10G client. The first is for a batch file distribution via LANDesk and the other package is for normal batch file install if someone from IT is installing this from a user's desk. Both scripts are really identical the only differences are how they are laid out. I only need help with the DSN creation as everything else is ready to go. I am going to focus on the Non-LANDesk batch file as once I fix this in one script the other one should also be fixed.
    The Problem: The batch script copies the neccesary files to the temporary directory. I then extract the setup files to the temp folder. I run a custom Oracle install using the RSP file from a recorded install. After the install is complete I copy the TNS Names file to the proper location. I then try to call a CMD file with the ODBC command seen below the main script.
    Script (May be easier to read if you download using link below):
    @ECHO ON
    ::This batch files installs Oracle 10G Release 2 Version 10.2.0.1.0 with a Custom Response File
    ::Installation is Interactive
    ::All files are extracted from the ZIP file via the 7-Zip command line tool
    ::The Net Configuration Assistant TNS Names File is copied to its proper location
    ::The CCR ODBC connection is created once the install is complete
    ::All folders used for installation are cleaned up-deleted
    @ECHO Setting Variables
    set NetworkPath=\\dc-landesk\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
    set DefaultPackagePath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
    set ExtractionPath=C:\Temp_Oracle10G
    set TempInstallFromPath=C:\Temp_Oracle10G\SetupFiles
    set FileFolderCleanupPath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent
    @ECHO Creating Directories
    mkdir "C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD"
    @ECHO Copying Files to DefaultPackagePath
    copy /Y "%NetworkPath%\7za.exe" "%DefaultPackagePath%"
    copy /Y "%NetworkPath%\CCR-ODBC.cmd" "%DefaultPackagePath%"
    copy /Y "%NetworkPath%\Oracle10GCustom.rsp" "%DefaultPackagePath%"
    copy /Y "%NetworkPath%\SetupFiles.zip" "%DefaultPackagePath%"
    copy /Y "%NetworkPath%\tnsnames.ora" "%DefaultPackagePath%"
    @ECHO Changing to Extraction Directory
    cd "%DefaultPackagePath%"
    @ECHO Extracting Files to path with no spaces
    "%DefaultPackagePath%\7za.exe" x SetupFiles.zip -o%ExtractionPath% -aoa
    @ECHO Please Open the "Task Manager" manager, Sort by "CPU" Descending
    @ECHO Watch Task Manager For Javaw.exe, press any key when the process Disappears
    @ECHO Install using Custom Response File
    "%TempInstallFromPath%\setup.exe" -responseFile "%DefaultPackagePath%\Oracle10GCustom.rsp" -force -silent -noconsole
    pause
    @ECHO Copying NETCA (Net Configuration Assistant) TNS Names File to proper Location in Oracle Product Directory
    copy /Y "%DefaultPackagePath%\tnsnames.ora" "C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora"
    @ECHO Creating ODBC Connections Using Oracle Driver installed by this Batch File
    call "%DefaultPackagePath%\CCR-ODBC.cmd"
    @ECHO Waiting 20 seconds before proceeding
    ping -n 21 127.0.0.1 >NUL
    @ECHO Remove Temp Files and Folders created during Install
    rmdir /S /Q %ExtractionPath%
    del /Q "%DefaultPackagePath%\*.exe"
    del /Q "%DefaultPackagePath%\*.ora"
    del /Q "%DefaultPackagePath%\*.rsp"
    del /Q "%DefaultPackagePath%\*.reg"
    del /Q "%DefaultPackagePath%\*.zip"
    rmdir /S /Q %FileFolderCleanupPath%
    @ECHO The Oracle 10G installation has been Completed
    pause
    ODBC Script
    odbcconf.exe /a {CONFIGSYSDSN "Oracle in OraClient10g_home1" "DSN=CCR|Description=CCR_data|SERVER=BWB|Database=CCR"}
    As soon as the command is called I see the following error message appear.
    "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259"
    The really strange thing though is that if I let the main part of the script run (Not the ODBC call) and then immediately manually start the ODBC call script it works just fine. So, I don't really understand why the script can't add it itself. Or, I can go the Administrator Tools>Data Sources (ODBC)>and then add it manually which also works. I have tried just pasting the command directly in the main script, therefore, bypassing the call feature but it doesn't make a difference.
    Link (Zip with all scripts mentioned above): http://www.cbridegum.com/Fourms/Oracle/Files.zip
    Has anyone ever seen this kind of issue before? Does anyone have any idea on how to fix this? Any thoughts or suggestions would be great.
    Thanks so much for your help in advance,
    Clif Bridegum

    All,
    I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
    Thanks,
    Clif Bridegum

  • How do I open a PDF to a specific page via the command line?

    Several questions about opening PDFs from the Mac OS X command line:
    1) How do I use the "open" command to open a PDF to a specific page? (I know I can open a document via: open doc_name.pdf)
    2) How do I use the "open" command to pass multiple arguments (page no, zoom scale, view mode, etc...) to open a PDF file in a specific manner?
    3) Does Preview handle the same parameters as Acrobat Reader? If not, what are the differences in options?
    I've spent hours searching for this answer and have come up dry. I've downloaded Adobe's "PDF Open Parameters" document -- it lists all of the parameters I need, however I can't get any of them to work from the command line.
    My goal: Open a PDF from the command line to a specific page. At first glance, I thought this would be simple to do and find -- however, after a lot of searching I haven't found an example on how to do it.
    Anyone have any experience doing this, and care to share?
    Much appreciated! ---> Kelsey

    I don't know of any way to do what you want using the 'open' command. It can probably be done with Applescript, which you could call from a shell script. The Preview application doesn't seem to be scriptable. I don't use Acrobat, so I can't tell you anything about that. Looking through the dictionaries of the apps I do have, it seems that Skim (another PDF viewer) has an AS 'page' class. Below are a couple of links that may get you started. Look for more specific guidance in Applescript forums.
    http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript
    http://links.tedpavlic.com/shell_scripts/skim

  • Native library working in Eclipse but not in command line ...

    I was working on a Nutch project combing CMeCab with the analyzer.
    It uses:
    System.load('CMeCab');
    where the problem occured. I have the file libCMeCab.so in /usr/lib/ and it was working fine inside eclipse.
    But when I complie with ant (by the way I'm not familiar with this great tool, but followed the easy tutorial), and then run everything inside terminal like normal Nutch project. Everything was fine until the index process which uses native library CMeCab to analyze.
    The error was:
    java.io.IOException: Job failed!
    And in the hadoop.log in detail:
    java.lang.UnsatisfiedLinkError: no CMeCab in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
    I didn't have runtime -D option in Eclipse run configuration for library path, and didn't know what was the difference that's causing the trouble. I googled trying hard, but most of the MeCab documentations is in Japanese and merely had the problem I had.
    Please help me.
    Thanks in advance.

    Hello,
    I was working on a Nutch project combing CMeCab with the analyzer.No idea what Nutch and CMeCab are (but apparently this latter has unkempt hair ;o).
    I didn't have runtime -D option in Eclipse run configuration for library path, and didn't know what was the difference that's causing the trouble.I won't know either why it works in Eclipse, but have you tried adding -Djava.library.path=/usr/lib to the command line, to check how it works? If it works, would this be a problem to use this configuration?
    Regards,
    J.

  • Problem in passing parameters in command line in desktop

    Hi,
    I am trying to generate reports from command line (Oracle Discoverer 4i Version 4.1.42.04.00) but I am facing problems when I try to pass date or numeric parameters. It seems to work with strings
    The following command is successful when i pass string as parameters
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb load_report_1 /batch /sheet 2 /parameter "P Date" "31-JUL-2006 Month End" /export xls c:\Temp\load_report_!
    But in the following commands the command line execution stops when a worksheet with parameters is encountered. Once then parameter is entered the command line is executed successfully. In these problem cases it seems like the /parameter option is not being recognized. I have tried to pass parameters with double quotes, single quotes, without any quotes.
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 2" /sheet 3 /parameter "Select P Day" "20-JUN-2006" /batch /export xls c:\Temp\load_Report_2
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 3" /batch /sheet 1 /parameter "Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\Temp\load_report_3
    The only difference I can see is that I have not used double quotes in the command line that is successful in generating reports with parameters.
    Any inputs will be appreciated - we are stuck in our project due to this issue. Many thanks.
    Warm regards
    Sucharita

    Hi
    I work in the same team as the original poster.
    We tried by changing NLS_DATE_FORMAT for the oracle_home.
    Just to clarify our issue I am describing it one more time below -
    Using Disc desktop (4.1.42) we are trying to run the reports using command line interface. Any report that takes character input for the parameters ,is running fine in the batch mode without prompting.
    Any report that takes Date/Numeric input for the parameters, though in batch mode, is prompting for user to give the parameters.We tried with quotes as well.
    For Example -
    1. Character input : when we run this command supplying the input parameter values (which are characters), report runs fine without prompting for values.
    C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb Schd_Report /batch /sheet 2 /parameter "Process Date" "31-JUL-2006 Month End" /export xls c:\audit_report_5
    2. Date Input -
    C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb "DLS.Arrears Reports" /batch /sheet 1 /parameter "Please Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\CA_arr
    When we submit this we get a window prompting for the input values. So his is the issue.
    Thanks
    Raman

  • Command Line Discoverer 10g

    Hello Forum Friends,
    Long time no comms!! Hope all the regulars are keeping well.
    Question, the majority of my experiences with Discoverer have come from version 4, including admin and desktop. I've recently transferred to a new job, and although they have access to 4, some of their customers only have 10g.
    Could someone tell me if the functionallity of uising command line prompts such as;
    DIS51USR.EXE /connect user_name/password@database /apps_user /apps_responsibility "Resp_name"
    /opendb "user_name:workbook_name" /sheet ALL
    is still available in version 10g? I've hit a few stumbling blocks today, and a few errors, i think could be related to the <workbook name> syntax, but have also read on the forums that 10 g (is this also called plus?) does not really have the same functionality when it comes to creating batch files etc?
    Many thanks
    Simon

    Good Morning.
    After reading through a few bits and pieces on the OTN, i've now attempted to use the following command line syntax but to no avail;
    C:\oracle\BIToolsHome_1\bin\dis51usr.exe /connect sysadmin/password@db/apps_user/opendb
    I reveive the error "Failed to Connect to database - ORA - 12154: TNS: could not resolve the connect identifier specified" , okay so this tells me there is an issue with my tns names connection, but upon review this all seems fine, i can connect using the same "DB name" in the syntax above logging in manually, i'm connecting to both standard and applications euls, there are no entries in the GYWID or the Foundation name within tools options conections in Desktop, but this makes no difference to my manual connection, in fact when i do add the standard entries of;
    Gateway User ID: applsyspub/pub
    Foundation Name: apps
    i can not connect manually.
    Any suggestions would be great, many thanks in advance.
    Simon
    Discoverer Desktop Version 10.1.2.55.26

  • Password from command line

    I have some password protected pdf documents. I would like to specify the password on the command line when I open them in Adobe Reader. Is there a command line option for this? (If it makes a difference, I have Windows Reader v. 8.1.2. running on Vista.) Thank you in advance.

    This has been requested so often that I can only assume that Adobe
    aren't doing this for a strong reason: perhaps a security related one.
    Aandi Inston

  • How to get ALL command line parameters

    Hi,
    Is there possibility to get all command line parameters which
    Flex builder invokes when I press RUN button ?
    I am asking because I want to create mxmlc ant task with the
    same parameters as Flex builder.
    I wrote something like that below but I have a problem with
    invoking remote function, it seems that poduced SWF inf flex
    builder an my script (below) arent the same - and mayby have some
    security differences.
    Any Ideas how to get all compiler argumets from flex builder
    quote:
    <mxmlc
    file="${flex.src}\main.mxml"
    output="${flex.output}\main.swf"
    services="${path.tomcat.root.WEB}/flex/services-config.xml"
    context-root="${path.tomcat.root}"
    use-network="true"
    keep-generated-actionscript="false"
    debug="false"
    locale="en_US"
    incremental="true"
    >
    <!--load-externs="${LOADEXTERNS}"
    link-report="link-report.xml" -->
    <load-config
    filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
    <source-path path-element="${FLEX_HOME}\frameworks"/>
    <compiler.source-path path-element="${flex.src}"/>
    <compiler.library-path dir="${FLEX_HOME}\frameworks"
    append="true">
    <include name="libs" />
    <include name="../bundles/{locale}" />
    </compiler.library-path>
    </mxmlc>

    Hi,
    Try -dump-config compiler argument, which will write all the
    currently set configuration values. Please find more details at the
    URL below.
    http://www.quilix.com/node/9
    Hope this helps.

  • Command line args from java to C++

    Hi
    I want to pass command line arguemnts argc and argv from java to C++. I have browsed the net and most of them suggested that I declare the jni statement with jObjectarray.
    I saw an example at http://www.csc.calpoly.edu/~fouzi/crossroads/Arguments.c
    It said
    #include "/home/java/linux/jdk118/include/jni.h"
    #include "Arguments.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL
    Java_Arguments_setArgs (JNIEnv *jenv, jobject job, jobjectArray oarr)
    /* obtain the size the the array with a call to the JNI function
    GetArrayLength()                              */
    jsize argc = (*jenv)->GetArrayLength(jenv, oarr);
    /* Declare a char array for argv */
    char const* argv[128];
    int i;
    for (i = 1; i < argc + 1; i++) {
    /* obtain the current object from the object array */
    jobject myObject = (*jenv)->GetObjectArrayElement(jenv, oarr, i-1);
    /* Convert the object just obtained into a String */
    const char str = (jenv)->GetStringUTFChars(jenv,myObject,0);
    /* Build the argv array */
    argv[i] = str;
    /* print the argv array to the screen */
    printf ("argv[%i] = %s\n",i,argv);
    /* Free up memory to prevent memory leaks */
    (*jenv)->ReleaseStringUTFChars(jenv, myObject, str);
    // Increment argc to ajust the difference between Java and C arguments
    argc++;
    // Call a pipeline simulator function which uses command line arguments
    start(argc,argv);
    return;
    That is what I have where the start method is declared like this:
    void start(int argc, /* Argument count */ char argv[] / Argument strings */) {
    But I get a warning when I build the C routine. The warning arises when I am calling the start method.
    The warning says:
    f:\jni\dsaccess.c(711) : warning C4090: 'function' : different 'const' qualifiers
    f:\jni\dsaccess.c(711) : warning C4024: 'start' : different types for formal and actual parameter 2
    Can you help?
    Thanks
    Lakshmi

    1. Your array building looks bogus: Are you missing an index?
    2. You claim to be calling a "method". Are you? Or is it a subroutine?

  • BSM / audit_syslog ... how to get command line parameters in syslog?

    Hi All!
    I have been experimenting with Sun Basic Security Module (BSM) and was trying to send audit data via syslog to a central logging server like so:
    # cat /etc/security/audit_startup
    /usr/sbin/auditconfig -setpolicy +argv,arge
    # cat /etc/security/audit_control
    plugin: name=audit_syslog.so;p_flags=lo,ex,fr,fc,fd,fw,fmThis does produce the desired log output on the central logging server, except that the log lines do not contain command line parameters / environment variables:
    2008-10-14T15:04:26-06:00 csadm4/csadm4 audit: [ID 702911 audit.notice] execve(2) ok session 1576737601 by rem_adm as root:root in csadm4 from csadm1-16.shell.ca obj /usr/bin/lessAs this makes it pretty useless for keeping proper audit records (there is a difference between
    rm ~/file and
    rm /file that I would like to see) I was wondering if there is a way to customize what is actually produced by audit_syslog.so?
    Thanks in advance,
    Rudolf

    No, your plugin doesn't get any access to the command line.  Look for other methods of IAC (COM, DDE, shared memory, shared file, etc.)

  • Wrong to process command line args in a loop?

    I tried to process my command line args like this:
    int[] rgb = {0,0,0};
              for(int i=1;i<3;i++)
                   rgb[i-1] = Integer.parseInt(args);
    I enter six args where args 1 to 3 are ints and not zero, but rgb[2] always ends up being zero. I had to do away with the loop and write out three assignment statements, but if I had ten or more args that would be a headache! Does anyone know why this is happening? I'm using JDK 1.3.1_15.

    for(int i=0;i<3;i++)
       rgb[i] = Integer.parseInt(args);
    Look closely and make sure you understand the differences between my code and yours:
    * i starts at 0, not 1
    * rgb uses i for index, not i - 1.
    Why would you have rgb using i -1 and args using i?
    Now, if you have an arg [i]before the RGB args, then it would make sense for args' index to be different than rgb's. In that case, you might have i-1 and i, or i and i+1, etc. depending on how you structure your loop.
    The main problem is that you had i=1; i<3, which will go through the loop body for i=1 and i=2 only. Make sure you understand why.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Mac OS X start up in a command line unexpectedly

    Please this is really urgent.
    My mom will kill me when she finds out that I must have done something wrong to her Powerbook!
    I restarted the computer after trying to play a movie file, nothing special, just an .avi file with VLC player. Then I restarted the computer, because the system preferences was always giving an error when I tried to get the speakers from the other computer (a G4 Cube) to work.
    So I restart and .... wham! I get the usual login screen with my mom's name and her picture, which I can click on if I'm quick, but nothing happens anyway, and all of a sudden I get a Darwin (or something) screen in command line (like when a Windows computer starts up). The screen does something with an IP firewall and then I get the text "Logon:"...
    I can type the username and password fine, I can 'log on' but then what? I can't see my good old aqua interface anymore? I can't load OS X? I just want everything back to normal! Please help me, all my mom's work is on this computer!!
    Thanks alot!

    O.K I read around in some other topics and this topic describes my problem well: http://discussions.apple.com/thread.jspa?threadID=320663&tstart=30
    Only difference is I think I can log in with my username and password.
    These are the system.log readouts - forgive me for some spelling errors, I was writing really fast:
    localhost syslogd: /dev/console: Input/output error
    localhost init: kernel security level changed from 0 to 1
    localhost Directoryservice[195]: Launched version 1.8.4 (v258.2)
    localhost loginwindow[191]: Sent Launch Request Message to DirectoryService macht_init port
    localhost loginwindow[191]: Login authorization failed (-60008)!
    localhost loginwindow[191]: AuthorizationRef doesn't have a username (<LoginAuthRefMgr: 0x448ba0>)
    localhost loginwindow[191]: exiting to console
    Hope this can help solve my problem?
    Thanks.

  • Discoverer 11g EUL command line error granting privileges

    I'm testing Discoverer 11g (Desktop and Administrator 11.1.3) in order to upgrade from 10g. On 10g we have some scripts that automate many things using EUL command line. The first difference I've found is than in 10g we used directly eulbuilder.jar, now in 11g this jar has moved to $ORACLE_HOME\discoverer\lib and you have to use eulapi.bat located on oracle home's bin directory.
    The second difference is that grant_privilege and revoke_privilege commands had stopped working, they do nothing. I've compared via database dumps what they do in 10g and basically they insert/delete some registers on EUL5_ACCESS_PRIVS and EUL5_EUL_USERS and grants/revoke access to EUL tables.
    10g commands working fine
    -- Revoke all access and privileges
    java -jar eulbuilder.jar -CONNECT E/E@ORCL -eul E -REVOKE_PRIVILEGE -PRIVILEGE all_user_privs -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant user privileges
    java -jar eulbuilder.jar -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -PRIVILEGE all_user_privs -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant business area access privileges
    java -jar eulbuilder.jar -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    11g commands doing nothing
    -- Revoke all access and privileges
    eulapi.bat -CONNECT E/E@ORCL -eul E -REVOKE_PRIVILEGE -PRIVILEGE all_user_privs -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant user privileges
    eulapi.bat -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -PRIVILEGE all_user_privs -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    -- Grant business area access privileges
    eulapi.bat -CONNECT E/E@ZEUS -eul E -GRANT_PRIVILEGE -BUSINESS_AREA_ACCESS % -IDENTIFIER -WILDCARD -role <ROLE_NAME> -LOG LOG.LOG
    Has anybody tried these commands? If so, they worked? I'm afraid this could be a bug, does anybody know how can I report it to Oracle?
    Thanks in advance

    Hi
    I haven't been able to try them and I am surprised to hear that they do not work.
    Assuming that the commands are unaltererd and I would be surprised if the syntax is changed, to report this as a bug you need to raise a service request using MyOracleSupport (formerly MetaLink).
    You basically raise it in the same way you are doing it it in here and ask Oracle if the commands you are provdiing are still valid and then ask them to report it to development if they find out that it is a bug and they can reproduce it. The trick here is getting support to reproduce your issue.
    If you hear anything further please let us know.
    Best wishes
    Michael

Maybe you are looking for