SQL not working as Concurrent Program

Hi
I have the following sql pl/sql script which when I run in TOAD, works fine and successfully updates the custom tables
declare
v_position_id number;
v_curr_org_id number;
v_new_org_id number;
begin
select pos.position_id
into v_position_id
from xxsac_all_positions_f pos
where pos.name like '%'||'&1%'||'%'
and pos.effective_end_date > sysdate;
select curr_org.organization_id
into v_curr_org_id
from xxsac_all_organization_units curr_org
where curr_org.name = '&2'
and curr_org.date_to is null;
select new_org.organization_id
into v_new_org_id
from xxsac_all_organization_units new_org
where new_org.name = '&3'
and new_org.date_to is null;
update xxsac_all_positions_f
set organization_id = v_new_org_id
where position_id = v_position_id
and organization_id = v_curr_org_id
and effective_end_date > sysdate;
update xxsac_all_assignments_f
set organization_id = v_new_org_id
where position_id = v_position_id
and organization_id = v_curr_org_id
and effective_end_date > sysdate;
update xxsac_all_positions pos
set organization_id = v_new_org_id
where position_id = v_position_id
and organization_id = v_curr_org_id
and date_end is null;
commit;
end;
However when I create a concurrent program with 3 parameters to run the script - while it runs successfully, it doesn't actually update any of the columns I'm trying to update.
Any ideas?
Thanks
Martin

Pl post details of OS, database and EBS versions.
All code in EBS requires these two parameters - "errbuf out varchar2, retcode out varchar2"
Creating a PL/SQL Concurrent Program in Oracle Applications [ID 73492.1]
FAQ (Customization) [ID 105127.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=retcode+AND+errbuf&objID=c3&dateRange=all&userID=&numResults=15
HTH
Srini

Similar Messages

  • Running sqlldr (sql*loader) as an concurrent program executeable in 11.5.10

    Running 11.5.10.2 on Linux
    I have a .ctl file written for my linux environment but I am having trouble with the following.
    Properly configuring the concurrent program executable. Is there documentation on this setup? I have looked through OTN, MetaLink and the database utils guide, but no luck.
    How do you pass the variable of the control file to sqlldr using the executable/concurrent program approach?
    How do you pass the variable of the username/password and database to sqlldr using the executable/concurrent program approach?
    my sqlldr script is listed below. All other activity takes place in the .ctl file and this is working good.
    sqlldr apps/password@dev control='/sea/apps/dev/ora/8.0.6/rates.ctl'

    Please see these docs.
    11i FND:How to specify Record Terminator In Sql*Loader type of concurrent program [ID 252850.1]
    How to Register a Host Concurrent Program in Applications [ID 156636.1]
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1
    How to Use 9i or 10g Features in SQL*Loader for Apps? [ID 423035.1]
    Is there a Method for Returning a 'Warning' Status from Host Language Concurrent Program? [ID 866194.1]
    Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script [ID 377858.1]
    Thanks,
    Hussein

  • When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator)

    Mac OS X 10.6.7
    CS 5.5
    When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator). This happens only when Firefox is open and when I close it the zoom functions work fine again without having to restart the applications.
    This is intermittent but happens quite frequently each day if Firefox is active.

    MDN doesn't mention -chrome being used for ordinary web pages: https://developer.mozilla.org/docs/Mozilla/Command_Line_Options#Chrome
    When I use
    firefox.exe -chrome about:permissions
    I get a usable window, but zoom doesn't work as you noted.
    How about using an intermediate page and window.open() for the target page? You can (mostly) restrict the chrome of windows opened that way, but it will leave behind the intermediate window...
    https://developer.mozilla.org/docs/Web/API/Window.open

  • Supp Open Interface Import concurent program submit from Pl/Sql not Working

    Hi,
    I am new to Financials and using R12.1. We are integrating the Supplier Master from the Operations system from a different platform. The records are inserted into the interface tables and subsequently we need to trigger the concurrent programs from the backend which is failing when the request set was triggered. The STAGE10 onwards the concurrent programs are not getting submitted.
    The following is the code used for triggering the concurrent program for supplier site independently.
    declare
    lv_req_status               boolean;
    begin
    Fnd_global.apps_initialize(1175,50597,200);
    lv_req_status := fnd_submit.submit_program ('SQLAP',
    'APXSSIMP',
    'STAGE20',
    'ALL',
    1000,
    'N',
    'N',
    'N'
    end;
    Please help me in troubleshooting the same.
    Thanks in advance,
    rahul

    Hello,
    Is it supplier invoices that you are loading?
    Here is a piece of code for AP invoices:
    L_requestId := Fnd_Request.submit_request(application =>'SQLAP'
    ,program => 'APXIIMPT'
    ,sub_request => FALSE
    ,argument1 => NULL
    ,argument2 => <SOURCE_NAME>
    ,argument3 => NULL
    ,argument4 =>'NA'
    ,argument5 => NULL
    ,argument6 => NULL
    ,argument7 => NULL
    ,argument8 => 'N'
    ,argument9 => 'Y');
    COMMIT;
    Note: this piece of code is for Oracle R12.
    Hope this solve your issue,
    Vik
    Edited by: Vikram Awotar on Apr 17, 2010 11:12 PM
    Edited by: Vikram Awotar on Apr 17, 2010 11:15 PM

  • PL/SQL log in java concurrent program is missing

    Hi,
    I'm experiencing something strange with EBS R12 concurrent program logs.
    Our concurrent program is just a normal program that runs fine in most cases. It is written in java, which calls PL/SQL procedures. Usually the log is concatenation of logs from both like following
    (log from mid-tier java codes ...)
    Start of log messages from FND_FILE
    (log from database tier PL/SQL codes ...)
    End of log messages from FND_FILE
    But on one customer's environment the PL/SQL log is missing. This makes us unable to see the important messages.
    I tried to directly look at the files but had no luck.
    select 'cat '||c.value||'/'||p.plsql_log
    from fnd_concurrent_processes p, fnd_concurrent_requests r, fnd_env_context c
    where r.controlling_manager=p.concurrent_process_id
    and p.concurrent_process_id=c.concurrent_process_id
    and c.variable_name='APPLPTMP' and r.request_id=...
    (file not exist in file system)
    req=...; nedit ${APPLCSF}/log/l${req}.req&
    (pl/sql part is missing)
    We verified database tier log directory is writable and has free space.
    Also verified that other concurrent programs written in PL/SQL has correct logs.
    How can we get PL/SQL logs? Please help.
    Thanks

    Hi Srini, here are the env details I got from customer:
    1) $ uname -a
    Linux srvoracle06.gpodeacero.corp 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    2) select banner from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 – Production
    3) The EBS version result is:
    Oracle Applications : 12.1.2
    Hi Hussein, about enabling trace for concurrent program, how to do that? I guess you are not refering to database SQL trace right?

  • JDBC (SQL) not working in thread

    I was surprised by a strange (bug?)
    I had two programs that were implementing the Java Serial Port API, each interfaced to a specific instrument. I was asked to combine the two programs into one, run it on one workstation, and run it as a service. This is on an W2K machine and they want it to work even if no one is logged in.
    Well, I started each class as a serial port listener and a runnable, thinking it might be best for each listener to have its own thread. That runs just fine. But, one of the instruments sends a lot of data, so once I had a buffer full of stuff to parse and upload (to Oracle), is started another processing thread to handle the data, and let the parent thread get back to listening to the serial port.
    Well, I parsed the data just fine, but after I created the connection, created a statement, and then tried to execute a line of SQL, it just stopped, no exceptions, but no results. I keep a log of what is going on, and it looks like the thread just dies.
    So, for experimenation, I changed the parent threads back to plain classes and created the instances of them, still leaving the processing piece as a thread. (The only draw back to this is that I cannot transmit from both instruments at the same time.) Well, the SQL worked fine, so I am wondering if there is a problem with the JDBC and threads, or inner threads?
    Anyone have any suggestions?
    Thanks,

    As I understand it, your code does not work only when you run it as a service. Although I may well not understand it (for example I don't know what you think an "inner" thread is, and I don't understand your distinction between "class" and "thread", since everything runs in some thread or other in Java).
    Is this correct? Have you managed to get the original (single instrument) code running as a service? My guess is that there's nothing wrong with Java, but there is some issue with running it as a service.

  • SQL* Loader Parameters in Concurrent Programs

    Dear All,
    I have used an Execution file type of SQL*Loader. So, I put the execution file name as my .ctl file. I put that .ctl file in my ../bin directory in my custom application tree.
    Can any one tell, how a parameter for datafile, bad file and log file can be passed or can achieve an output report for such a concurrent program out?
    Thanks
    Faisal Anwar Khan.

    Hi
    I agree to what you say. But i want to control the same at SRS Form itself.
    If suppose i do the same at my Custom Program Level it will still allow me to submit null values for the parameter which i do not want to.
    Unless and until the User at the SRS Form passes a value for any one parameter then the system should allow him to submit the request then and there.
    Hope you are clear with the requirement.
    Regards
    Nakul.V

  • Form button does not work when a program is moved from Windows 8.2 to Windows 7

    Hi,
    I have a few Excel programs which use the ODBC to get data from Access and which have macros which writes data to an external program, MYOB.
    When the macros tries to write the data to MYOB it fails if I am not running the program in administrator mode.   It seems that Windows 8.2 has a different level of security than Windows 7 and must be run in administrator mode for the ODBC to work. 
    I have had issues after running the program in administrator mode (testing) if I simply do a save (in administrator mode) and then send it to the customer.   The issue is that it just will not work on the customer's site.   I have gotten
    around this in the past by saving any changes, going back out of excel, loading the program again (not in administrator mode) and saving it - before sending it to the customer.   This worked until now.
    For some unknown reason, the last time I sent a program to the customer and carried out the above process, the program stopped working.   Originally I thought that the macro just wouldn't work on windows 7, but eventually found that it is the form button
    that will no longer work when the program is moved from 8.2 to 7.
    Does anyone know why there is an incompatibility between 8.2 and Windows 7 and what I should be doing to ensure that my programs work in my customers environment(windows7)?
    In the meanwhile, I have changed the form button to an activex button and the program works fine in both environments.
    Thanking you in advance,

    there is some OP report after Windows update Dec 2014 macro stop responding ( I cant confirm if this is also related to your issue) its because security update for Office maybe conflict with the active-x that you are installed
    try to
    Close Excel
    Start Windows Explorer.
    Select your system drive (usually C:)
    Use the Search box to search for *.exd
    Delete all the files it finds.
    Start Excel again
    Open that file and save it, and try open at Windows 7
    to get more detail about this issue, I suggest also contact Office forum
    this case also will be solve installing kb3025036
    good luck

  • Working in Sql, not working in Stored procedure

    Dear friends,
    I am puzzled about this strange working of Oracle , although I know that there is some problem with my code. I paste my code here. The delete statement is working properly in SQL Plus 8.0, but it is not working when I call this stored procedure from the Form.
    FUNCTION delete_record_treaty (
    p_treaty_id T_RIN_TREATY_MST.TRTY_ID_GV%TYPE, p_value VARCHAR2,p_block VARCHAR2 )
    RETURN BOOLEAN IS
    v_treaty_type varchar2(5);
    BEGIN
    v_treaty_type := substr(p_treaty_id,1,3);
    if p_block !='T_RIN_GRP_DTL' and p_block != 'T_RIN_XOLSLAB_DTL' and p_block!='T_RIN_PMTSCHD_DTL' then
    delete from T_RIN_TREATY_MST where TRTY_ID_GV=p_treaty_id ;
    commit;
    end if;
    if v_treaty_type = 'QTA' then
    delete from T_RIN_GRP_DTL where TRTY_ID_MV=p_treaty_id and T_RIN_GRP_DTL.ROWID = p_value;
    commit;
    elsif v_treaty_type = 'XOL' then
    delete from T_RIN_XOLSLAB_DTL where TRTY_ID_MV=p_treaty_id ;
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    elsif v_treaty_type = 'FAC' then
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    end if;
    RETURN(TRUE);
    END delete_record_treaty;
    Thanks in advance.
    All the paramaters that I pass, are correctly being passed to this stored procedure.
    null

    I solved it.One parameter I was passing it wrongly.
    Gee :D
    Subramanian V.

  • WHY DOES THIS SQL NOT WORK

    I have 4 statements.
    echo off
    plus80 / @z:\nesp1483_batch
    plus80 / @z:\nesp1484a_batch
    exit
    The first statement plus80 / @z:\nesp1484_batch inserts records into a table and creates a report and deletes the table.
    However the second statement plus80 / @z:\nesp1484a_batch is not working properly. I want it to insert records into a table, create a report and then delete the table but it is not working properly. It is hanging up on this statement.
    I need to say plus80 to get the program to execute properly.
    I have also tried sqlplus /@z:\nesp1484a_batch but this does not work either.
    What do I need to do to make the third statement to execute properly?

    I know that it is not working
    because the response time is slow and I have over 15 minutes
    and nothing is happening. How do you know it is not working as opposed to just working slow?
    Do you have any logging routines in your code? If you have, switch on them on and see what's happening. If not, now is a good time to think about including them...
    Cheers, APC

  • Printer not working with one program

    Recently upgraded my OS from 10.4 to 10.6 Reinstalled the printer as well.
    Printer: Lexmark X4650
    It works fine printing pdf files from preview and documents from Open Office, but I can't get my insurance billing software to print anymore.
    Software: Customer Pro-File
    Maker: landsw.com
    Base Program: FileMaker Pro Runtime 8.5v1
    Maker: filemaker.com
    The grey print menu will come up, but when I click on the blue print button nothing happens and the menu doesn't go away.
    I downloaded and installed the latest drivers from Lexmarks website to no avail. Any help would be greatly appreciated. Thanks.

    I have never used the software you mention but I wonder if your issue is that the print dialog is expecting some other setting to be selected? Or there could be an additional window appearing behind the print dialog that you don't see and this is expecting some response before it will print? Both of these could explain why the Print button does not appear to function.
    You should also check Console (located in Applications > Utilities). This may show you why the application is not working and this log information could assist the developer with determining a solution.
    One last suggestion would be to open the print menu again and see if you have the PDF button in this menu like what appears for other applications. If you do select it and see if this closes the print dialog.

  • Upper case "s" does not work in most programs

    Upper case "s" does not work in a number of programs, lower case is fine. It is the only letter that is missing in both cases.
    Any ideas. Do I need to reinstall driver for keyboard? If so any idea where to get it.

    Open the Speech pane of System Preferences and check whether either the listening key or the speech key has become set to that keystroke; if so, change the setting.
    (41135)

  • Landscape not working in Office programs

    We have 2 users with Windows 7 and cannot print landscape in Excel or Word (have not tried any other programs landscape) we have printed these to other printers and they work fine. I have tried the steps of previous post about choose option print direct to printer and that was marked therefore did not help.
    Thank you

    Hi , I see that you are experiencing issues printing in landscape using Word and Excel. Although HP doesn't support Word Software, I am happy to be able to help you as best I can. Try another application to see if you have the same results. This way we will know if it is a driver issue or the application. Make sure you are selecting the landscape option in the print driver and check the print preview to see if it is showing the document in landscape. Here is a document for How to Troubleshoot a Word Document That Won't Print in Landscape Format?  If you are still having issues, please contact Microsoft for further assistance. If you appreciate my efforts, please click the 'Thumbs up' button below. Thank You. 

  • Select query is not working in BDC Program

    Hi,
    I am working in BDC for update valuation class for T-code mm01.Actually In this BDC i am using two recoding based on material type.
    i am using two internal table : I_DATA and ITAB
    Use I_DATA to hold excle data in which material No, plant , valuation type , valuation No. and ITAB for material No, material type Only.
    So, i am fetching material Type ( MARA-MTART ) through select query. But Select query is not working. and also i did check MARA table according that  Material Number then  material no. exit in Mara Table.
    Note : at run time  I_DATA have 1 row but ITAB have 0 row ....
    DATA: BEGIN OF I_DATA OCCURS 0,
    MATNR TYPE MARA-MATNR,
    WERKS TYPE MARC-WERKS,
    BWTAR TYPE RMMG1-BWTAR,
    VERPR TYPE BMMH1-VERPR,
    BKLAS TYPE MBEW-BKLAS,
    STATUS TYPE C,
    END OF I_DATA.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    MTART LIKE MARA-MTART,
    END OF ITAB.
    Loop at I_DATA.
    select matnr mtart from mara into table itab where matnr = I_DATA-matnr.
    endloop.
    Guide me..........

    If you use your
    Loop at I_DATA.
      select matnr mtart from mara into table itab
        where matnr = I_DATA-matnr.
    endloop.
    At end of loop, itab will only contain the result of the last select, so use a
    Loop at I_DATA.
      select matnr mtart from mara APPENDING table itab
        where matnr = I_DATA-matnr.
    endloop.
    better
    if I_DATA[] is not initial.
      select matnr mtart from mara into table itab
        FOR ALL ENTRIES IN i_data where matnr = i_data-matnr.
    endif.
    Some Remarks
    - If actually required (where does I_DATA come from, is it an external format, you need the internal value to use in SELECT statement), check via SE11 the correct [conversion exit|http://help.sap.com/saphelp_nw04/helpdata/en/35/26b217afab52b9e10000009b38f974/content.htm] associated with domain MATNR (Is it truly ALPHA, and not something like MATN1, so [CONVERSION_EXIT_MATN1_INPUT|http://www.sdn.sap.com/irj/scn/advancedsearch?query=conversion_exit_matn1_input])
    - You could try to use BAPI like [BAPI_MATERIAL_SAVEDATA|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_material_savedata] and not BDC
    Regards,
    Raymond

  • SQL+ not working: TNS-12560

    I just installed XE on WXP and although the web interface works fine I can't use SQL+
    Below is some information. This is very frustrating. I am an application developer; I switched from the full 10g to XE in the hope that I would no longer be wasting my time on those exasperating network problems and would be able to concentrater on developing instead but no such luck... Why is it asking too much that XE should work properly after installation? I have not changed anything beyond creating a couple of user accounts with the web interface. This is as virgin an installation as it gets.
    Any help would be greatly appreciated.
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2006 03:58
    :14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 23-MAR-2006 03:22:46
    Uptime 4 days 23 hr. 35 min. 29 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wk1)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2006 03:59
    :22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:18 refused:0 current:18 max:1002 state:ready
    DISPATCHER <machine: WK1, pid: 9740>
    (ADDRESS=(PROTOCOL=tcp)(HOST=wk1)(PORT=1729))
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 28-MAR-2
    006 04:18:03
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (3750 msec)
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>sqlplus system/orcl as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 28 04:00:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    [killed with Ctrl-C]
    ===============================================================
    sqlnet.log is full of entries like this, one for each attempt:
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleorcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=WK1)(USER=Privileged))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 28-MAR-2006 03:32:14
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 2
    nt OS err code: 0
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\sqlnet.ora
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    ===============================================================
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>type ..\network\ADMIN\tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = wk1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>
    ===============================================================
    The service called OracleXETNSListener is definitely running. Also, there is a firewall running on this box but its log does not report any blocked connection attempt from any Oracle-related process. I have allowed tnsping.exe, tnslsnr.exe and oracle.exe.

    Thanks a lot! That was indeed the problem: if I do 'sqlplus sys@xe as sysdba' I can
    connect. Trying to find where that orcl comes from, I did have ORACLE_SID set to orcl
    in my environment and I removed it; that did it: sqlplus can now connect even if I do not
    set the connect id. Maybe the installer could be enhanced to look for leftover Oracle-
    related env vars?
    However there is still some weirdness: the above refers to the sqlplus that comes with
    the server bundle but if I use the sqlplus from the client bundle I get "ORA-12154:
    TNS:could not resolve the connect identifier specified" when I specify the connect id
    and "ORA-12560: TNS:protocol adapter error" when I don't. sqlnet.log shows it is still
    using orcl as the SID. I don't really need the client anyway: only the jdbc jar, so I
    could just remove it but this is just weird...

Maybe you are looking for

  • Excise invoice print preview.

    Hi..Gurus, How we can see the print preview of the excise invoice. What the settings that are needed? regards, jyothi.

  • Problem in PO

    hi friends when i m trying to create the PO I m getting the following error 1) Vendor's or manufacturer's QA system inadequate Kindly mail me the solution Urgent Please

  • Smartform Printing on both sides

    Hi. I am fasing an issue in smartform printing. we are printing the Invoice.this invoice data is dynamically comming on the front side of the page. and printing normally. but back side of the page they want to print the comapany rules(on every page b

  • I have to recover database.

    Need quick help. I am refreshing a dev database from prod's backup. Using rman commands which is using control file. I have restored control file from tape backup. I have read I now I am supposed to do a alter database mount. When I did that I am get

  • APO and BI

    Hi all, Pl help me in understanding APO and BI integration. I heard that ter is a BW layer in APO..but i want to extract the APO data to our BI.7 which is connected to ECC and other source system not the BW present in APO.. Hope im making sense.. reg