Explain plan--Object not found error

Hi All,
I want to use 'explain plan' to optimise the query.
How do i see the explain plan in toad.
when i say
explain plan set statement_id='XX' for select stmt;
select * from explain plan
where statement_id='XX';
iam geeting object not found
what parameters i need to set up before using explain plan
Please give me details.
Please suggest.
Thanks.

This should have been in TOAD Forum :-)).. Anyway,
You need to set the plan table name in view->Options->Oracle. If the specified plan table doesnt exist, create the plan table

Similar Messages

  • PowerShell script : Directory object not found error in Get-ADGroupMember

    I am new in powershell scripting. I am writing a script to add users in different AD Groups. while doing so I do the following:
    Check if the user already exist in the group:
    $mbr_exist = Get-ADGroupMember $grpname | Where-Object {$_.SamAccountName -eq $sam}
    If user does not exist then add the user to the group.
    When I manually run the script its runs flawless, without any errors. But when I schedule the script to run it gives an error as follows:
    3/30/2015 8:32:15 AM Directory object not foundAt + $mbr_exist = Get-ADGroupMember $grpname | Where-Object {$_.SamAc ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~ Error at Line:$mbr_exist = Get-ADGroupMember
    $grpname | Where-Object {$_.SamAccountName -eq $sam}
    The strange thing is the user for which it throws the error is present in the group.I am not sure why this error is occurring when scheduled. Can any one please help? All the suggestions will be appreciated
    Note: (The script is scheduled using Windows Task Scheduler)
    try
    # # Initialize the variables we will use
    $status = 'false'
    $drivename = "H:"
    $sysdate = Get-Date -UFormat "%m_%d_%Y"
    $foldername = $drivename + "\Script_Result\PowershellData"+ $sysdate
    $backup_folder = "$foldername\AD_Groups_Backup"
    $updatedGroup = "$foldername\Updated_AD_Groups_LogFiles"
    $LogFilePath = "$foldername\Log_Update_ADGroups"+$sysdate+".log"
    # # Initialize the arrays we will use
    $GroupArray = @()
    # # maintain log of program startup
    $logdate = get-date
    $logdate.ToString() + "`tStarted script to Update AD user Groups..." | Out-File -FilePath $LogFilePath
    # # Create a sub folder to store the backup files
    $fileexist = Test-Path $backup_folder -PathType Container
    if($fileexist -ne 'False')
    New-Item -ItemType Directory $backup_folder
    # # Create a sub folder to store Updated AD group Log files
    $fileexist = Test-Path $updatedGroup -PathType Container
    if($fileexist -ne 'False')
    New-Item -ItemType Directory $updatedGroup
    # # Take back up of the AD groups data
    Get-ADGroupMember -Identity "Group1" | Export-csv "$backup_folder\Group1_BackUP$sysdate.csv"
    Get-ADGroupMember -Identity "Group2" | Export-csv "$backup_folder\Group1_BackUP$sysdate.csv"
    Get-ADGroupMember -Identity "Group3" | Export-csv "$backup_folder\Group1_BackUP$sysdate.csv"
    Get-ADGroupMember -Identity "Group4" | Export-csv "$backup_folder\Group1_BackUP$sysdate.csv"
    (an so on..... 11 such groups )
    # # Fetch AD Users data
    $ADusers = Get-ADUser -filter {(EmployeeNumber -gt 1) -and (EmployeeNumber -ne "N/A") -and (Enabled -eq $true)} -Properties * | Sort-Object -Property EmployeeNumber
    $ADusers.Count
    foreach($u in $ADusers)
    $sam = $u.SamAccountName
    $empnum = $u.EmployeeNumber
    $mgr = $u.mgr
    $fsal = $u.'fsalary-Hourly'
    $comp = $u.Company
    $ofc = $u.Office
    Write-Host "$sam : $empnum : $mgr :$fsal : $comp : $ofc" -ForegroundColor Yellow
    $GroupArray = @()
    # # Check if the user fits in any of the 11 scenarios
    if($comp -eq "US")
    # scenario 7
    write-host "7. Add to US Employees"
    $GroupArray += "US Employees"
    if($mgr -eq "Y")
    Write-Host "1. ADD to US MAnagers"
    $group = "US Managers"
    $GroupArray += $group
    if(($fsal -eq "Hourly") -and ($ofc -ne "Canton"))
    Write-Host "3. Add to US Hourly (excluding Canton)"
    $group = "US Hourly (excluding Canton)"
    $GroupArray += $group
    if(($fsal -eq "Hourly") -and ($ofc -eq "Canton"))
    write-host "4. Add to US Canton Hourly"
    $group = "US Canton Hourly"
    $GroupArray += $group
    if(($fsal -eq "Salaried") -and ($ofc -eq "Corporate" -or $ofc -eq "Landis Lakes 1" -or $ofc -eq "Landis Lakes 2"))
    Write-Host "5. Add to US Salaried Corporate"
    $group = "US Salaried Corporate"
    $GroupArray += $group
    if(($fsal -eq "Salaried") -and ($ofc -ne "Corporate" -and $ofc -ne "Landis Lakes 1" -and $ofc -ne "Landis Lakes 2"))
    Write-Host "6. Add to US Salaried Plant"
    $group = "US Salaried Plant"
    $GroupArray +=$group
    elseif($comp -eq "canada")
    # scenario 9
    write-host "9. Canada Employees"
    $GroupArray += "Canada Employees"
    if($mgr -eq "Y")
    Write-Host "2. Add to Canada Managers"
    $group = "Canada Managers"
    $GroupArray += $group
    if($fsal -eq "Hourly")
    Write-Host "10. Add to Canada Hourly"
    $group = "Canada Hourly"
    $GroupArray += $group
    if($fsal -eq "Salaried")
    Write-Host "11. Add to Canada Salaried Plant"
    $group = "Canada Salaried Plant"
    $GroupArray += $group
    elseif($ofc -eq "Corporate" -or $ofc -eq "Landis Lakes 1" -or $ofc -eq "Landis Lakes 2")
    Write-Host "8. Add to Corporate Employees"
    $GroupArray += "Corporate Employees"
    write-host "Final Group List" -ForegroundColor Green
    $grplen = $GroupArray.Length
    #$GroupArray
    $grplen
    for($i= 0; $i -lt $grplen; $i++)
    $grpname = $GroupArray[$i]
    write-host "$sam will be added to Group : $grpname" -ForegroundColor Magenta
    # # Check if the user is already present in the Group
    $mbr_exist = Get-ADGroupMember $grpname | Where-Object {$_.SamAccountName -eq $sam}
    if($mbr_exist -eq $null)
    # #Add user to US Managers group
    Add-ADGroupMember -Identity $grpname -Members $sam
    Write-Host "1. User $sam is added to $grpname group" -ForegroundColor Green
    # # documenting the user list that are added to this group
    $grpmbr = New-Object PSObject
    $grpmbr | Add-Member -MemberType NoteProperty -Name "EmployeeNumber" -Value $empnum
    $grpmbr | Add-Member -MemberType NoteProperty -Name "SamAccountName" -Value $sam
    $grpmbr | Add-Member -MemberType NoteProperty -Name "Name" -Value $u.Name
    $grpmbr | Add-Member -MemberType NoteProperty -Name "DistinguishedName" -Value $u.DistinguishedName
    $grpmbr | Add-Member -MemberType NoteProperty -Name "mgr" -Value $mgr
    $grpmbr | Add-Member -MemberType NoteProperty -Name "Company" -Value $comp
    $grpmbr | Add-Member -MemberType NoteProperty -Name "Salary/Hourly" -Value $fsal
    $grpmbr | Add-Member -MemberType NoteProperty -Name "Office" -Value $ofc
    $grpmbr | Add-Member -MemberType NoteProperty -Name "ADGroup" -Value $grpname
    $grpmbr | Export-Csv "$updatedGroup\ADUsers_To_Group($grpname)_$sysdate.csv" -Append -NoTypeInformation
    else
    Write-Host "Member $sam already exist in $grpname group" -ForegroundColor Red
    $logdate = get-date
    $logdate.ToString() + "`tCompleted script to Update Update AD Groups..." | Out-File -FilePath $LogFilePath -Append
    $status = 'true'
    return $status
    catch
    $err_lineno = $error[0].InvocationInfo.ScriptLineNumber
    $err_line = $error[0].InvocationInfo.Line
    $ExceptionMessage = $_.Exception.Message
    #$ExceptionMessage
    $error_info = $error[0].ToString() + $error[0].InvocationInfo.PositionMessage
    Write-Host "$error_info " -ForegroundColor Red
    $FailedItem = $_.Exception.ItemName
    if($ExceptionMessage)
    $logdate.ToString() + "`t $error_info " | out-file "$foldername\ErrorLog_Update_AD_Groups$sysdate.log" -append
    "Line Number: $err_lineno . `nError at Line: $err_line" | out-file "$foldername\ErrorLog_Update_AD_Groups$sysdate.log" -append
    #Invoke-Item "C:\ErrorLog.log"
    $status = 'false'
    return $status

    Hi mdkelly, Sorry for such a late reply (due to credential issues).
    I am using Windows task scheduler to schedule the task. I am given the administrator access to the server (Windows Server 2012). So I think I set to run the script under system account.
    My apologies for asking this, am I missing something while scheduling the script through task scheduler?  how to check if the scheduled task is running under who's credentials? How to pass my (admin) credentials, so that the script execution won't face
    a problem? Any suggestion on the above questions will be helpful. (I tried to search on net for the questions but didn't get any conclusive answers)  
    Thanks in advance.

  • Pof-enabled objects not found error

    Hello all:
    I started 3 coherence-awared instances on a Linux server and I set their localstorage property = true ((-Dtangosol.coherence.distributed.localstorage=true). I started another process to load a bunch of objects of class Foo (pof enabled) in the cache and started a client to test the cache.
    I encountered an error:
    Portable(com.tangosol.util.WrapperException): ...(Wrapped) unknown user type: 1005)
    unknown user type: 1005
    ...1005 is the type-id of class Foo pof-config.xml.
    After I changed 2 of the 3 running instances's localstorage to false, the error is gone.
    My instance topology is Partitioned, which means it has distributed hashmap. The data set is ditributed to multiple cache nodes.
    Anyone can explain to me why the error occured?
    Thanks,
    Johnny

    Hi Johnny
    I could be a number of things.
    <li>Have you started the 3 instances with the correct POF config file, i.e. with the -Dtangosol.pof.config property
    <li>If you POF config file is called pof-config.xml is it on the classpath in front of the coherence.jar file
    <li>Are the cache services in your cache config file configured to use the correct serializer with the correct POF config file
    You can tell from the log output of the server nodes which configuration files they are using.
    JK

  • Object not found ERROR while downloading JAD over OTA

    Hellow everybody !
    I am getting Error while downloading JAD file over OTA in mobile..
    I am putting JAD and JAR in same folder ...
    and while I am trying to download JAR file directly then then Error like malformed content
    anybody know that when it happens?
    Premal

    check on your system with giving url on IE whether it open jar or not.

  • How to recover from a Sync command that returns a SyncStatus value 8 (Object not found)

    Hello,
    We are using ActiveSync protocol. We have a situation where our local DB is probably in a invalid state where we do a Sync command passing all of our folders (full sync) and one of the folder (or many) doesn't exist anymore.
    The Sync command result doesn't tell us which folder is invalid.
    But the question is more: how should we recover from this "Object not found" error? Should we erase the local database and do a full refresh?
    Status reference:
    http://msdn.microsoft.com/en-us/library/gg675457(v=exchg.80).aspx
    Thanks
    ArchieCoder

    Sorry, that really isn't a Firefox support issue. Contact a Mac support forum or Mac-users group for advice on to solve that issue.

  • Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a reso

    Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a resolution. Any help would be appreciated.
    Sorry for the long title, first time poster here.

    This thread is pretty old, are you still having this issue?

  • Show Database Get "Object was not found"error

    Hi there,
    I have a weird situation here.
    I created Data Guard Broker setup and show configuration return good result.
    It is running for quite a while, and I can see if I switch log file on Primary, the Max Seq# is matched between Primary and Standby. Also do a lot of other test query all return good result.
    But today when I happen to run Show Database command it says the DB object not found,
    and there is no error in DRCxxx.log file.
    Did I miss something? Any suggestions are appreciated.
    ===============Script===================
    --Standby
    mkdir log1/dgbroker
    mkdir log1/dgbroker/XXXPRD2R
    mkdir log2/dgbroker
    mkdir log2/dgbroker/XXXPRD2R
    --Primary
    mkdir log1/dgbroker
    mkdir log1/dgbroker/XXXPRD2
    mkdir log2/dgbroker
    mkdir log2/dgbroker/XXXPRD2
    -- primary
    alter system set dg_broker_config_file1='/oracle/log1/dgbroker/XXXPRD2/dg1XXXPRD2.dat' scope=both;
    alter system set dg_broker_config_file2='/oracle/log2/dgbroker/XXXPRD2/dg2XXXPRD2.dat' scope=both;
    -- standby
    alter system set dg_broker_config_file1='/oracle/log1/dgbroker/XXXPRD2R/dg1XXXPRD2R.dat' scope=both;
    alter system set dg_broker_config_file2='/oracle/log2/dgbroker/XXXPRD2R/dg2XXXPRD2R.dat' scope=both;
    -- primary
    alter system set dg_broker_start=true scope=both;
    -- standby
    alter system set dg_broker_start=true scope=both;
    -- primary
    dgmgrl /
    create configuration 'dg_XXXPRD2' as primary database is 'XXXPRD2' connect identifier is 'XXXPRD2';
    add database 'XXXPRD2R' as connect identifier is 'XXXPRD2R' maintained as physical;
    enable configuration;
    ===============Script===================
    DGMGRL> show configuration
    Configuration - dg_XXXPRD2
    Protection Mode: MaxAvailability
    Databases:
    XXXPRD2 - Primary database
    XXXPRD2R - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESS
    DGMGRL> SHOW DATABASE XXXPRD2
    Object "XXXPRD2" was not found
    DGMGRL> show database XXXPRD2R
    Object "XXXPRD2R" was not found
    -----------------------------------------------

    Hello;
    What I have noticed is sometimes single quotes count and sometime they don't.
    Try :
    SHOW DATABASE 'XXXPRD2';
    Test
    Welcome to DGMGRL, type "help" for information.
    Connected.
    DGMGRL> show database standby
    Object "standby" was not found
    DGMGRL> show database 'standby';
    Object "standby" was not found
    DGMGRL> show database 'STANDBY'; 
    Database - STANDBY
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   (unknown)
      Apply Lag:      
      Real Time Query: OFF
      Instance(s):
        STANDBYSo getting the case matters too.
    DGMGRL> SHOW DATABASE STANDBY;
    Object "standby" was not found
    DGMGRL> Best Regards
    mseberg
    Edited by: mseberg on Jan 18, 2013 2:21 PM

  • Object not found in store error when trying to load MimeContent of an email (containing attachments)

    This is a weird one and I'm hoping someone can reproduce this and give me some help.
    We have a system that uses the EWS Managed API to send emails. Optionally an email may need to be saved out as an rfc822 (.eml) file afterwards for storing in our own database. In order to save to a file I need to load up the MimeContent of the message.
    And this is where an "Object not found in store" exception can get thrown.
    The really strange part is that the exception only seems to occur if the email contains an attachment and if there is too much of a delay between sending the email and trying to access the MimeContent!
    My test code is something like:
    // Set up the basics
    _item = new EmailMessage(P7ExchangeService.Service);
    _item.Subject ="Hello world";
    _item.ToRecipients.Add("some name", "[email protected]");
    _item.Body = new MessageBody(BodyType.HTML, @"<html><head></head><body>hello world<image src=""cid:blah""/></body></html>");
    // Add attachment
    FileAttachment att = _item.Attachments.AddFileAttachment("blah", "c:\temp\blah.jpg");
    att.IsInline = true;
    att.ContentId = "blah";
    // Send and save
    _item.SendAndSaveCopy();
    // Wait a bit (see comments below)
    Thread.Sleep(5000);
    // Now try and save out
    var propCollection = _item.GetLoadedPropertyDefinitions();
    propCollection.Add(ItemSchema.MimeContent);
    _item.Load(new PropertySet(propCollection)); // EXCEPTION!
    // ... etc
    On some systems it seems that the sending can take a while, hence my Thread.Sleep() call to simulate this.
    Its when I try and load up the MimeContent that I will then get the exception. But ONLY if I sleep (simulating the occasional delay seen on customer sites) and ONLY if the email contains an attachment.
    The mimecontent is necessary in order to save out to a file (by accessing the _item.MimeContetn property).
    Can someone please explain the exception and/or provide a better way of doing this??

    This is normal EWS doesn't return the Id of the Item in the SentItems Folder so you need to use a workaround like
    http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx .
    If you want to understand the issue you can enable tracing and look at responses, the actually Id your trying to load the MimeContent from is probably the Id of the draft message. Eg to send a message via EWS with attachments multiple operations must be
    used to construct it and when the messages finally gets sent the copy in the drafts folder is deleted and a copy is created in the SentItems folder. However the Id isn't returned for the SentItems copy hence you need the workaround.
    Cheers
    Glen

  • Error in AS2 adapter. Object not found in lookup of as2.. Its urgent..!!

    Hi AS2 experts,
    *When i tried sending an xml to partner system using AS2 adapter.. Mapping is succesfull and message is failing in receiver AS2 adapter.
    1. I used the following parameters in AS2 Module.
    ModuleName                                                       Module Key
    localejbs/Seeburger/solution/as2                              solutionid
    localejbs/ModuleProcessorExitBean                          exit
    ModuleKey    ParameterName         ParameterValue
    exit                JNDIName     deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
    Iam getting the following error.
    Success     MP: Processing local module localejbs/Seeburger/solution/as2
    Error :   MP: Exception caught with cause com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of as2.
    Error :  Exception caught by adapter framework: Object not found in lookup of as2.
    Error : Delivery of the message to the application using connection AS2_http://seeburger.com/xi failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of as2.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of as2..
    2. When i tried by removing Modulename "localejbs/Seeburger/solution/as2"
    It is showing the below error like AS2ID is missing.. but its there in party configuration.
    Error :
    Unable to forward message to JCA adapter. Reason: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing.., SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing..       
    Can anyone has idea what might be wrong.
    Kindly suggest me asap.
    Thank You.
    Regards
    Seema.

    Hi,
    Plesae go through below links
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    EDI Adapter by SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/206e2b65-2ca8-2a10-edad-f2d1391644cb
    B2B(EDI) Integration using SAP Netweaver XI and Seeburger AS2 Adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00f9cdf5-d812-2a10-03b4-aff3bbf792bf
    Integrating XI with SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6dc02f5d-0601-0010-cd9d-f4ff9a7e8c33
    and
    Check with below configuration
    Configuration for AS2 or simple file adapter.
    We are using this module configuration for converting EDI D96A format to XML:
    1 localejbs/CallBicXIRaBean Local Enterprise Bean bic
    2 localejbs/CallSapAdapter Local Enterprise Bean 0
    bic destSourceMsg MainDocument
    bic destTargetMsg MainDocument
    bic logAttID ConverterLog
    bic mappingName See_E2X_ORDERS_UN_D96A
    bic saveSourceMsg ORIGINAL_EDI
    can someone please tell me the module configuration for reverse mapping at receiver end,i.e.,XML to EDI D96A
    basically,I need mapping name for this.
    Scheme=AS2ID
    Name = WAN network no of the partner who is sending the file
    Sender AS2 adapter configuration:
    Few changes in the module parameter tab.
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_E2X_EDIFACT_ORDERS_UN_D93A which does the conversion of EDI-XML.
    Receiver AS2 adapter configuration:
    When the adapter is used in a receiver channel, it obtains a message from the Integration Engine and sends it to a business partner. In this case, the following steps are required:
    1. Define the channel as a Receiver channel on the Parameters tab
    2. The last step ensures the module sequence is complete:
    Make sure the module ModuleProcessorExitBean does exist in the module sequence:
    Module Name=localejbs/ModuleProcessorExitBean
    Type=L
    Module Key=Exit
    • with the following module parameter:
    Module Key=Exit
    Parameter Name=JNDIName
    Parameter Value=deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
    File receiver:
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_X2E_EDIFACT_ORDERS_UN_D93A
    ONly the mapping program name changes from E2X to X2E. IN ur case it will be See_X2E_ORDERS_UN_D96A
    Thanks
    Swarup

  • XI--- OpenJMS error  Object not found in lookup of XIJMSService

    Hi all,
    I am trying XI-->OpenJms (Server).
    I have included openJms.jar library in aii_af_jmsproviderlib.sda and deployed using SDM.
    In JMS receiver adapter I am using the following Configuration:
    Transport protocol: JMS Provider with JNDI .
    Queue connection factory : org.exolab.jms.client.JmsConnectionFactory
    JNDI-Name JMSQueue: org.exolab.jms.client.JmsQueue
    Context Factory : org.exolab.jms.jndi.InitialContextFactory
    JNDI-Server adress :tcp://10.1.102.5:3035
    In RWB i am getting the following for this scenario:
    Error Exception caught by adapter framework: Object not found in lookup of XIJMSService.
    Kindly help what other configurations are required.
    Best Regards,
    Lemine

    Hi Sebastian,
    I have still the same problem.
    could you send me a screen shot with your configuration?
    (openjms configuration).
    my email: [email protected]
    I have the following standard configuration in my modul:
    Verarbeitungssequenz:
    Modulname:                                         Type:
    ocalejbs/SAP XI JMS Adapter/ConvertMessageToBinary    L
    localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService L
    could that cause for that prblem ?
    Thanks for helpful answer.
    best regars.
    Lemine.

  • XI error: Object not found in lookup of RfcAFBean

    Hi Forum,
    In a scenario, I have a BPM, which makes a synchronous call to R/3 for execution of a rfc enabled Function module, while doing so, it gives an error as a response, which i can see in the MONI:
    <b>com.sap.aii.af.ra.ms.api.DeliveryException: Object not found in lookup of RfcAFBean</b>
    what can be the reason for the error? and how can it be avoided?
    pls help

    it might be a cache problem, run the CPA cache and check.
    ir, id cache the data here also.

  • ERROR:NameNotFoundException: Object not found in lookup of MYDB

    NW 7.0 SP3
    I have defined a datasource MYDB by VA,and it tests OK.
    I wonder about how to use it in J2EE project or in WebDynpro Project.
    I created a J2EE project ,in the Web Model ,i new a class Test:
    public static Connection myconn(){    
         Context ctx = new InitialContext();
         Connection conn = null;
         DataSource dataSource = null;
         dataSource = (DataSource) ctx.lookup("MYDB");
        conn = dataSource.getConnection();
        return conn;
    then in webcontent ,I new a JSP page:
    <%
      Connection conn = com.Test.myconn();
    java.sql.Statement st = conn.createStatement();
    String str = "select * from TMP_NAME";
    ResultSet rs = st.executeQuery(str);
    rs.next();
    String str1 = rs.getString(1);
    %>
    after build and deploy the *.ear,the server returns an error:
             com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MYDB.
    Now I do not know anything else should I do,such as create a reference,and so on.
    Thanks for you all help!

    Hi,
    Try the code as below:
    DataSource ds = (DataSource) context.lookup("java:comp/env/jdbc/MYDB")
    Go through the below help link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/82/fdbf2085f65f43a71e755fc904478d/content.htm
    Go through the below thread for more info:
    Re: datasource using VA
    Regards,
    Charan

  • Problem with WCS, with an error message (Error: Object not found in device)

    I  have a problem with WCS, I can not open the window monitor /  controllers with an error message (Error: Object not found in device)  -> https: / / 10.19x.xxx.xx/webacs/switchDetailAction. do? ControllerID = 23735
    by  cons I can open the window configures / controllers -> https: / /  10.19x.xxx.xx/webacs/switchGeneralAction.do? command = detail &  ControllerID = 23735
    Is there a way to recreate the database or the object? thank you in advance

    thank you for your help
    Unfortunately, the command "refresh config from controller"  does not solve the problem because we have a negative result
    (in mode retain or in mode delete) with the following logs :
    Log file wcs-0-0.log
    10/19/10 12:07:16.333 ERROR[snmpmed] [23] Response VarBind missing for class InterfaceConfig attribute isInterfaceWired
    Log file tomcat_localhost_access_log
    10.197.xxx.xx - - [19/Oct/2010:12:07:16 +0000] "POST /webacs/switchListCommandAction.do HTTP/1.1" 200 47399
    10.197.xxx.xx- - [19/Oct/2010:12:07:16 +0000] "GET /webacs/alarmSummaryAction.do?command=summary&dojo.preventCache=1287490037130 HTTP/1.1" 200 421

  • Object not found in lookup of BAPI_USR01DOHR_G, error key: RFC_ERROR_SYSTEM

    Hi SDN,
    I am getting the following exception , When click on Equipment Card in Work Environment, ESS.
    Bean BAPI_USR01DOHR_GETEMPLOYEE not found on host XXX, ProgId=XXX: Object not found in lookup of BAPI_USR01DOHR_G, error key: RFC_ERROR_SYSTEM_FAILURE  
    Please help me out to resolve this issue.
    regards,
    Sree.

    Hi Lukas,
    Following is the dump in /nwa.
    Bean BAPI_USR01DOHR_GETEMPLOYEE not found on host EPBIDEV, ProgId=SAPSLDAPI_DV1: Object not found in lookup of BAPI_USR01DOHR_GETEMPLOYEE.registered entries for FuctionName=JNDIName : {GET_AWF_LOCALIZED_STRING=PRTRFC_BASE, GET_AWF_SUBPROC_LOG_DATA=PRTRFC_BASE, RSWR_ZIP_STREAM_GET=PRTRFC_BASE, SALV_WD_EXPORT_PDF=PRTRFC_BASE,... [see details]
    Full Message Text
    Bean BAPI_USR01DOHR_GETEMPLOYEE not found on host EPBIDEV, ProgId=SAPSLDAPI_DV1: Object not found in lookup of BAPI_USR01DOHR_GETEMPLOYEE.registered entries for FuctionName=JNDIName : {GET_AWF_LOCALIZED_STRING=PRTRFC_BASE, GET_AWF_SUBPROC_LOG_DATA=PRTRFC_BASE, RSWR_ZIP_STREAM_GET=PRTRFC_BASE, SALV_WD_EXPORT_PDF=PRTRFC_BASE, RSWR_SYSTEM_ALIAS_CHECK_PROXY=PRTRFC_BASE, RSRD_X_MAP_TO_PRTL_USERS_PROXY=PRTRFC_BASE, RSPOR_SHORT_TO_URL_CONVERT=PRTRFC_BASE, CPETEST=PRTRFC_BASE, LSO_COL_GET_TEMPLATES=PRTRFC_BASE, RSWR_SAP_ROOT_FOLDER_GET=PRTRFC_BASE, LSO_COL_GET_EXT_ROOMACCESSURL=PRTRFC_BASE, RSRD_GET_PORTAL_USERS=PRTRFC_BASE, CREATE_AWF_TASK=PRTRFC_BASE, CANCEL_AWF_SUBPROCESS=PRTRFC_BASE, RSRD_X_GET_PORTAL_INFO_PROXY=PRTRFC_BASE, RSRD_X_PRODUCE_PROXY=PRTRFC_BASE, LSO_COL_GET_TEMPLATE_INFO=PRTRFC_BASE, RSPOR_PORTAL_CALL=PRTRFC_BASE, RSWR_RFC_SERVICE_LISTENERS_GET=PRTRFC_BASE, LSO_COL_GET_PORTAL_USER=PRTRFC_BASE, RSDAS_X_PROV_DESCRIBE_PROXY=PRTRFC_BASE, LSO_COL_SET_ROOM_USERS=PRTRFC_BASE, RSWR_URL_QUERY_COMPRESS_PROXY=PRTRFC_BASE, LSO_COL_CREATE_ROOM=PRTRFC_BASE, RSRD_MAP_TO_PORTAL_USERS=PRTRFC_BASE, RSTT_TRACE_BI_PORTAL_START=PRTRFC_BASE, RSOD_MIGRATE_DOCUMENT_PROXY=PRTRFC_BASE, LSO_COL_DELETE_ROOM=PRTRFC_BASE, RSWR_LOGGER_CONFIG_SET=PRTRFC_BASE, RSWR_BINARY_CONTENT_GET=PRTRFC_BASE, RSPOR_SETUP_CHECK=PRTRFC_BASE, RSWR_FOLDER_CONTENT_GET=PRTRFC_BASE, RSDAS_X_PROV_OBJECT_DET_PROXY=PRTRFC_BASE, LSO_COL_GET_ALL_CATEGORIES=PRTRFC_BASE, LSO_COL_GET_ROOMS=PRTRFC_BASE, UWL_PUSH_ITEMS=PRTRFC_BASE, RSWR_TEMPLATE_PROCESS_PROXY=PRTRFC_BASE, RSWR_PREEXECUTION_PROXY=PRTRFC_BASE, LSO_COL_REMOVE_USER_FROM_ROOM=PRTRFC_BASE, RSWR_BOOKMARK_ADJUST_PROXY=PRTRFC_BASE, RSRD_X_GET_INFO_PROXY=PRTRFC_BASE, RSWR_JAVA_VERSION_INFO_GET=PRTRFC_BASE, RSWR_RFC_SERVICE_TEST=PRTRFC_BASE, RSRD_BROADCASTING_KM_RFC=PRTRFC_BASE, LSO_COL_GET_ROOM_USERS=PRTRFC_BASE, RSWR_ROOT_FOLDER_GET=PRTRFC_BASE, LSO_COL_ADD_USER_TO_ROOM=PRTRFC_BASE, RSWR_ABAP_EXCEPTION_TEST=PRTRFC_BASE, RSWR_SERVICE_DISPATCHER_TEST=PRTRFC_BASE, RSRD_STORE_ONLINE_LINK=PRTRFC_BASE, RSWR_CLUSTER_INFO_GET=PRTRFC_BASE, LSO_COL_GET_INT_ROOMACCESSURL=PRTRFC_BASE, LSO_COL_GET_ROOM_OWNERS=PRTRFC_BASE, BICS_CONS_GET_VIEW_DEF_J_PROXY=PRTRFC_BASE, RSWR_TIME_GET=PRTRFC_BASE, GET_AWF_SUBPROC_ATTACHMENTS=PRTRFC_BASE, LSO_COL_GET_ROOM_PRIVACYTYPES=PRTRFC_BASE, RSWR_STRING_CONTENT_GET=PRTRFC_BASE, RSRD_FOLDER_WRITABLE=PRTRFC_BASE, RSWR_LOGGER_CONFIG_GET=PRTRFC_BASE, RSWR_CACHE_INVALIDATE_PROXY=PRTRFC_BASE, RSWR_RFC_VERSION_INFO_GET=PRTRFC_BASE, RSOBJS_GET_PORTAL_VIEWS_RFC=PRTRFC_BASE, RSWR_SESSION_TERMINATE_PROXY=PRTRFC_BASE, RSPOR_NODES_READ=PRTRFC_BASE, RSPOR_NODES_SAVE=PRTRFC_BASE, RSRD_X_DISTRIBUTE_PROXY=PRTRFC_BASE, SUWL_NOTIF_PUBLISH=PRTRFC_BASE, LSO_COL_GET_ROOM_INFO=PRTRFC_BASE, RSDAS_X_PROV_PROCESS_PROXY=PRTRFC_BASE, RSPOR_URL_TO_SHORT_CONVERT=PRTRFC_BASE}
    All JCos are tested successfully.
    regards,
    Sree.
    Edited by: sree pedasingh on Mar 22, 2011 10:48 AM

  • PI Seeburger AS2 Error: Object not found in lookup of as2..

    Hi ALL
    Can you please help us understand which object the following error refers to....
    Delivering the message to the application using connection AS2_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of as2..
    Your help is greatly appreciated!!
    Thank you,
    Patrick

    Please check the module chain (module configuration). Very likely reason is that you have the solutionid module as2 defined (which is default) but forgot to deploy the solution id module (you can find it in the distribution tools folder. Name of the deploy file: SeeXISolutionIdModule.ear).

Maybe you are looking for

  • DOESN'T OPEN?

    i added XI IP to sap logon pad still it doesnt open y?

  • How to use Multiple Single Option for selection in the Customer Exit

    Hi, How can we handle the multiple single values in the customer exit variable. I have a requirement which is as follows - Table A fiields -> Field Coach, Partner 2, Relation between PArtner 1 & Partner 2, Valid from, valid to date. Table B ->  Servi

  • Business Process Engine in yellow status

    Hi all, I visit the site http://<hostname>:<port>/rep/start/index.jsp and visit the runtime workbench link. Displaying all in the component monitoring, i saw that the business process engine under Integration Server is in yellow status. I checked the

  • Simulation

    Hi, i'm making a washing machine simulator (a really simple one) basically depending on the load size (big or small or medium) the front panel will display how many gallons of water used as well as the water temperature depending on the load type (de

  • Can't print information off Firefox, was able too before.

    I have always used Firefox, and have always been able to Preview & Print information off the internet. However, when I click on whatever document I want to print out, the Preview is blank. I don' t know if this is a Firefox problem, or something wron