ConnectDescriptor in SQL fetchlets

Hello!
Is it possible to use connect descriptors in SQL type fetchlets?
What I mean is that I would like to use a connection string similar like this and not hostname:port:sid :
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vip-node1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vip-node2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = servicename)
I recognized that some Oracle shipped target types use ConnectDescriptor as optional property in query descriptors together with the common parameters (MachineName,Port etc.). If ConnectDescriptor is a valid parameter is there a precedence when the fetchlet creates the connect string (if connect descriptor is present and not empty use it otherwise use MachineName:Port:SID)?
Regards,
Robert

Database: 10.2.0.3
EM: 10.2.0.3
Regards,
Robert
Ps. This question is now obsolete and replaced by a new one:
Is custom OMS mediated multi agent targets are supported (that is can we use
<MonitoringMode MEDIATOR="OMSMediated" CLUSTERDESCRIPTOR="">
</MonitoringMode>
in our target type definition file)?

Similar Messages

  • Use of SQL fetchlet to create a custom management plug-in

    Hi,
    I would appreciate if you anyone could help me out on this:
    I need to fetch some data from EMF tables and create a custom Management plug-in in OEM so that it can be monitored from OEM itself. For getting the data from database table i am using SQL fetchlet coz it provides the facility to use SQL statement in it. Following is the code i have developed in target-type.xml file.
    <TargetMetadata META_VER="1.0" TYPE="emf_filer">
    <Display>
    <Label NLSID="emf_filer">Error Management Filer</Label>
    </Display>
    <Metric NAME="emf_filer" TYPE="TABLE">
    <Display>
    <Label NLSID="emf_filer_resp">Response</Label>
    </Display>
    <TableDescriptor>
    <!-- <ColumnDescriptor NAME="tcpPing" TYPE="NUMBER" >
    <Display>
    <Label NLSID="netapp_filer_resp_tcpPing">TCP Ping, Milliseconds</Label>
    </Display>
    </ColumnDescriptor> -->
    <ColumnDescriptor NAME="Status" TYPE="NUMBER" >
    <Display>
    <Label NLSID="emf_filer_resp_status">Status</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_NAME" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_NAME">Program Name</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_TYPE" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_TYPE">Program Type</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="RICEW_ID" TYPE="STRING" >
    <Display>
    <Label NLSID="RICEW_ID">Rice Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Request_id" TYPE="NUMBER" IS_KEY="TRUE" >
    <Display>
    <Label NLSID="Request_id">Request Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="EBIZ_INSTANCE_NAME " TYPE="STRING" >
    <Display>
    <Label NLSID="EBIZ_INSTANCE_NAME">Instance Name</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="SQL">
    <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
    <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
    <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
    <Property NAME="UserName" SCOPE="UserName">apps</Property>
    <Property NAME="password" SCOPE="password">password</Property>
    <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
    <Property NAME="STATEMENT" SCOPE="INSTANCE">
    BEGIN
    SELECT PROGRAM_NAME, PROGRAM_TYPE,
    RICEW_ID,REQUEST_ID, EBIZ_INSTANCE_NAME FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
    END;
    </Property>
    <!-- <Property NAME="SQLINPARAM1" SCOPE="ENV">HOSTNAME</Property>
    <Property NAME="SQLOUTPARAMPOS" SCOPE="GLOBAL">2</Property>
    <Property NAME="SQLOUTPARAMTYPE" SCOPE="GLOBAL">SQL_CURSOR</Property>-->
    <Property NAME="NUMROWS" SCOPE="GLOBAL">40
    </Property>
    </QueryDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="emf_filer"/>
    <GetView NAME="emf_View" FROM_TABLE="emf_filer">
    <Column NAME="PROGRAM_NAME"/>
    <Column NAME="PROGRAM_TYPE"/>
    <Column NAME="RICEW_ID"/>
    <Column NAME="REQUEST_ID"/>
    <Column NAME="EBIZ_INSTANCE_NAME"/>
    <Filter COLUMN_NAME="REQUEST_ID" OPERATOR="GT">0</Filter>
    </GetView>
    </ExecutionDescriptor>
    <InstanceProperties>
    <InstanceProperty NAME="UserName" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="FALSE" HIDE_ENTRY="FALSE">
    <Display>
    <Label NLSID="UserName_emf">Username</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="password" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="TRUE">
    <Display>
    <Label NLSID="password_emf">Password</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="MachineName" CREDENTIAL="FALSE" OPTIONAL="FALSE">
    <Display>
    <Label NLSID="MachineName_emf">Listener Machine Name</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="Port" CREDENTIAL="FAL
    My doubt here is:
    As per Oracle it is importent to use response matrics with status column. How can i accomodate Response matrics with this code. what will be the columns except Status that i need to mention? if i use just one matrics i.e response then what will i use in in FROM clause in ExecutionDescriptor [<GetView NAME="emf_View" FROM_TABLE="emf_filer">]? i wuld appreciate if anyone could clarify my issues.
    Thanks for your help.
    Regards,
    AS

    That is what i am trying to ask..as i will b using 2 dfifferent matrics so i will have to use 2 diffrent QueryDescriptors one for Response matric and one for other one. Now following QueryDescriptor will be added in other(Not Response) matric then what should i add in QueryDescriptor in Response matric?
    Query Descriptor for matric other than "Reposnse":
    QueryDescriptor FETCHLET_ID="SQL">
         <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
         <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
         <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
         <Property NAME="UserName" SCOPE="UserName">UserName</Property>
         <Property NAME="password" SCOPE="password">password</Property>
         <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
         <Property NAME="STATEMENT" SCOPE="GLOBAL">
              SELECT PROGRAM_NAME,
                             PROGRAM_TYPE,
                             RICEW_ID,REQUEST_ID,
                             EBIZ_INSTANCE_NAME
              FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
              </Property>
    </QueryDescriptor>
    what should be the QueryDescriptor for Response matric?? Will it be same or different?
    Thanks for your help.
    Regards,
    AS
    Edited by: user9959418 on Oct 31, 2008 1:10 PM

  • SQL Fetchlet Input Parameter -- password

    I am working on developing a new target type. In my metadata .xml file, I need to use SQL FETCHLET to retrive information from a database. I hard-coded input parameters of "UserName" and "password". Everything deployed fine. But I get error with metric collections. ORA-01017: invalid username/password. On the target and in emagent.trc file, it shows the user name was correct. But it seems the password did not get resolved from the xml file.
    Any help is highly appreciated.

    Here you go:
    <QueryDescriptor FETCHLET_ID="SQL">
    <Property NAME="MachineName" SCOPE="GLOBAL">"test01.us.oracle.com"</Property>
    <Property NAME="Port" SCOPE="GLOBAL">1521</Property>
    <Property NAME="ServiceName" SCOPE="GLOBAL">"dev1.us.oracle.com"</Property>
    <Property NAME="UserName" SCOPE="GLOBAL">"scott"</Property>
    <Property NAME="password" SCOPE="GLOBAL">"tiger"</Property>
    <Property NAME="STATEMENT" SCOPE="GLOBAL">
    DECLARE
    v_host_name VARCHAR2(30);
    BEGIN
    IF INSTR(:1, '.') != 0 THEN
    v_host_name := SUBSTR (:1, 1, INSTR (:1, '.') -1);
    ELSE
    v_host_name := :1;
    END IF;
    SELECT event_id INTO :2 FROM event_detail WHERE hostname = v_host_name and rownum = 1;
    END;
    </Property>
    <Property NAME="SQLINPARAM1" SCOPE="ENV">HOSTNAME</Property>
    <Property NAME="SQLOUTPARAMPOS" SCOPE="GLOBAL">2</Property>
    <Property NAME="SQLOUTPARAMTYPE" SCOPE="GLOBAL">SQL_CURSOR</Property>
    <Property NAME="NUMROWS" SCOPE="GLOBAL">1</Property>
    </QueryDescriptor>
    In emagent.trc file, I got below error:
    2008-07-30 07:29:21,809 Thread-4124756880 WARN vpxoci: OCI Error -- ErrorCode(1017): ORA-01017: invalid username/password; logon denied
    SQL = " OCISessionBegin"...
    LOGIN = "scott"/<PW>@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST="test01.us.oracle.com")(PORT=1521))(CONNECT_DATA=(SERVICE_NAME="dev1.us.oracle.com")))
    2008-07-30 07:29:21,809 Thread-4124756880 ERROR vpxoci: ORA-01017: invalid username/password; logon denied
    Thanks!

  • Using OidRepSchemaName and OracleHome Parameters in SQLFetchlet

    Does anyone know how/if these parameters are supposed to work? The extension guide states that these parameters eliminate the need to specify connection and credential information for SQL fetchlets, which is exactly what I need, but I am unable to get this to work.
    The documentation says OidRepSchemaName should be the schema name of the EM repository, which I believe by default is sysman. It also says you need to specify a value for OracleHome. The documentation says this is the "Database's Oracle Home", so I'm assuming this is the Oracle home of the repository (I've also tried using the Oracle home of the monitored instance, but still no luck).
    In either case I see a message in the agent's metric browser similar to:
    MetricGetException:
    iAS Property could not be found Property Name OIDhost in C:\oracle\product\10.2.0\db_2\config\ias.properties
    Below is a simple test metric I'm using to try to get this to work:
    <Metric NAME="test_cred" TYPE="TABLE" USAGE_TYPE="VIEW_COLLECT">
    <Display>
    <Label NLSID="test_cred">Test Credentials</Label>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="HEARTBEAT" TYPE="STRING">
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="SQL" NEED_CHARSET_CONVERT="TRUE">
    <Property NAME="STATEMENT" SCOPE="GLOBAL" OPTIONAL="FALSE">
    <![CDATA[select 'x' from dual]]> <!--- simple example to test OidRepSchemaName -->
    </Property>
    <Property NAME="OidRepSchemaName" SCOPE="GLOBAL" OPTIONAL="FALSE">sysman</Property>
    <Property NAME="OracleHome" SCOPE="GLOBAL" OPTIONAL="FALSE">C:\oracle\product\10.2.0\db_2\</Property>
    </QueryDescriptor>
    </Metric>
    Any help on this would be really appreciated!
    Thanks,
    Jon

    It is looking for config\ias.properties which should be found in the $ORACLE_HOME of the EM Installation rather then the $ORACLE_HOME of the Database Server.

  • Establish Database connection to connect to OEM Repository from Agents

    I have a requirement to establish Database connection from Agent through Plug-in.
    Ex:
    My plug-in metadata will have a perl script which gets executed in each individual agents and it should connect to the OEM Repository database to execute a package.
    Your Help is Appreciable.

    You would have to take in all of the information needed to connect to the database as instance properties for your target type. So each time someone creates an instance of your target type, they'd have to enter the connection details for the repository database.
    The specifics of what are needed should be in the extensibility guide where the SQL fetchlet is documented.

  • Help Using "emctl jmxcli" Command

    I am new to EM and am working on learning how to create plugins. Someone installed EM 12C for me and then I installed the EDK and emcli. I was able to get the EDK's demo HostSample plugin which uses OSLineToken fetchlet to deploy and work. I then wrote a simple plugin which uses the SQL fetchlet. That worked as well. I am now trying to write a plugin which monitors a JMX application deployed on an Oracle WebLogic application server. In the Cloud Control Extensibility Programmer’s Reference PDF it says to use the "emctl jmxcli" command. However, when I try to run that command it just returns the syntax of the command. It doesn't seem to recognize "jmxcli" as an option. When I run "emctl getversion" this is the result:
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
    Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
    Enterprise Manager 11g DB Control Version 11.2.0.3.0
    Enterprise Manager 10g Agent Version 10.2.0.4.0
    I think I have the correct version of everything installed. Am I doing something wrong? Any help would be greatly appreciated.
    Thanks!
    Al

    From the command out, it seems that you are working with "Enterprise Manager Database Control" which does not support extensibility. At least that is what the out of the emctl command shows. You really need "Enterprise Manager Cloud Control" to do what you are looking to do.

  • Manually establish database connection everytime!!

    Hi,
    This issue just happen recently,
    whenever I try to log in to SAP portal, I have to manually key in the db details everytime in order to establish the connection.
    In other words, SAP cannot remember the db connection, which make me really troublesome.
    I had try to ping the server and is working fine.
    So far I have no idea what might cause the issue happen.
    Just hope I can get solution right here.
    Machine info:
    Win xp pro SP 3
    SAP version:
    SAP Business One 2007 B (8.60.041)  SP:00  PL:20
    Thanks for the help..!

    You would have to take in all of the information needed to connect to the database as instance properties for your target type. So each time someone creates an instance of your target type, they'd have to enter the connection details for the repository database.
    The specifics of what are needed should be in the extensibility guide where the SQL fetchlet is documented.

  • How to get the Sysman password in a fetchlet?

    Folks,
    Need advise.
    I have a fetchlet and I need to get the username and password of the oracle management repository (using some Perl and SQL Scripts) to fetch some details.
    How I can get the password of Sysman user in a fetchlet?
    Is there some thing similar to <Property NAME="emdRoot" SCOPE="SYSTEMGLOBAL">emdRoot</Property>
    thanks
    Mathew

    Those are parameters you would have to take in as instance properties, which would force the user to enter them every time they create an instance of your target type.
    What's the reason you need to connect to the repository? That's an extremely odd case unless your target type is monitoring the repository.

  • JDBCSQL fetchlet

    I have gone through the documentation and found that the JDBC fetchlet doesn't appear to allow you to get return values from a SQL statement. I have looked at the MS SQL Server plug-in and it uses a JDBCSQL fetchlet that is not documented anywhere.
    Where do I find the documentation for this fetchlet and if not available, how do I use it?
    Thnx

    ConnInfo
    Class
    STATEMENT
    CONNECT_PROP_user
    CONNECT_PROP_password
    CONNECT_PROP_role
    CONNECT_PROP_*
    SQLINPARAM*
    These are all of the parameters I can find. Most of them are either self explanatory or should be in the example you found. CONNECT_PROP lets you specify other connect properties by replacing the * with the property name. It is the same for SQLINPARAM, except SQLINPARAM will work on the statement rather than the connection.

  • Logical Operations in SQL decode function ?

    Hi,
    Is it possible to do Logical Operations in SQL decode function
    like
    '>'
    '<'
    '>='
    '<='
    '<>'
    not in
    in
    not null
    is null
    eg...
    select col1 ,order_by,decode ( col1 , > 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , <> 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , not in (10,11,12) , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 ,is null , 0 , 1)
    from tab;
    Regards,
    infan
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:09 AM

    example:
    select col1 ,order_by,case when col1 > 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 &lt;&gt; 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 not in (10,11,12) then 0 else 1 end
    from tab;As for testing for null, decode handles that by default anyway so you can have decode or case easily..
    select col1 ,order_by,decode (col1, null , 0 , 1)
    from tab;
    select col1 ,order_by,case when col1 is null then 0 else 1 end
    from tab;

  • Unable to capture the parameter values from a PL/SQL procedure

    hi.
    i'm trying to capture the parameter values of a PL/SQL procedure by calling inside a anonymous block but i'm getting a "reference to uninitialized collection error" ORA-06531.
    Please help me regarding.
    i'm using following block for calling the procedure.
    declare
    err_cd varchar2(1000);
    err_txt VARCHAR2(5000);
    no_of_recs number;
    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
    cntr_var number:=0;
    begin
         rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
         dbms_output.put_line('The error is ' ||err_cd);
         dbms_output.put_line('The error is ' ||err_txt);
         dbms_output.put_line('The cntr is ' ||cntr_var);
         for incr in 1 .. OUT_SIGN_TAB.count
         loop
         cntr_var := cntr_var + 1 ;
    Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN_TAB(incr).txn_type||','||OUT_SIGN_TAB(incr).objid);
    end loop;
    end;
    Error is thrown on "for incr in 1 .. OUT_SIGN_TAB.count" this line
    Following is some related information.
    the 3rd parameter of the procedure is a out parameter. it is a type of a PL/SQL table (SEARCH_SIGN_TAB_TYPE) which is available in database as follows.
    TYPE "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
    TYPE "SEARCH_SIGN_TYPE" AS OBJECT
    (ref_no VARCHAR2(22),
    ciref_no VARCHAR2(352),
    ac_no VARCHAR2(22),
    txn_type VARCHAR2(301),
    objid VARCHAR2(1024))............

    We don't have your rt843pq procedure, but when commenting that line out, everything works:
    SQL> create TYPE "SEARCH_SIGN_TYPE" AS OBJECT
      2  (ref_no VARCHAR2(22),
      3  ciref_no VARCHAR2(352),
      4  ac_no VARCHAR2(22),
      5  txn_type VARCHAR2(301),
      6  objid VARCHAR2(1024))
      7  /
    Type is aangemaakt.
    SQL> create type "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
      2  /
    Type is aangemaakt.
    SQL> declare
      2    err_cd varchar2(1000);
      3    err_txt VARCHAR2(5000);
      4    no_of_recs number;
      5    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
      6    cntr_var number:=0;
      7  begin
      8    -- rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
      9    dbms_output.put_line('The error is ' ||err_cd);
    10    dbms_output.put_line('The error is ' ||err_txt);
    11    dbms_output.put_line('The cntr is ' ||cntr_var);
    12    for incr in 1 .. OUT_SIGN_TAB.count
    13    loop
    14      cntr_var := cntr_var + 1 ;
    15      Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN
    TAB(incr).txntype||','||OUT_SIGN_TAB(incr).objid);
    16    end loop;
    17  end;
    18  /
    The error is
    The error is
    The cntr is 0
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Unable to capture SQL Server Schema

    I am trying to capture SQL Server 2005 demo schema (AdventureWorks). It does shows the numbers of Tables/Indexes captured..but finishes with this error..
    Error ocurred during capture: Exhausted Resultset
    Column not found. Skipping index detail on index 'IX_StoreContact_ContactTypeID'
    Column not found. Skipping index detail on index 'IX_StoreContact_ContactID'
    Column not found. Skipping index detail on index 'AK_StoreContact_rowguid'
    Column not found. Skipping index detail on index 'IX_ProductVendor_VendorID'
    Column not found. Skipping index detail on index 'IX_ProductVendor_UnitMeasureCode'
    Column not found. Skipping index detail on index 'IX_Address_StateProvinceID'
    Column not found. Skipping index detail on index 'IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode'
    Column not found. Skipping index detail on index 'IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode'
    Column not found. Skipping index detail on index 'IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode'
    Column not found. Skipping index detail on index 'IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode'
    Column not found. Skipping index detail on index 'IX_Address_AddressLine1_AddressLine2_City_StateProvinceID_PostalCode'
    Column not found. Skipping index detail on index 'AK_Address_rowguid'
    Column not found. Skipping index detail on index 'AK_Department_Name'
    Any help is appreciated..
    Ajay

    Hi Nandu,
    As your description, you come across an error(vsjitdebugger.exe cannot be found). Please confirm if the error occurs during the installation of SQL Server 2012.  If so, please help post SQL Server setup logs. By default, SQL Server setup log file locates
    in C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    Base on my research, this error could be caused by that the previous uninstallation is improper and vsjitdebugger.exe file could be mistakenly deleted.
    To troubleshoot the issue, you could start your computer into Safe Mode and fix your problem with one of the following methods. For more information, please refer to the article:
    http://www.fixerrorkit.com/fix-error/fix-vsjitdebugger.exe-error.html.
    1. You could execute the sfc /scannow command following steps below.
    a. Press "Windows+R", type in cmd and then right click "Run as administrator"
    b. Type in sfc /scannow (There's a space between sfc and /scannow) into the dialog and hit Enter key and click ok.
    c. Wait until the System File Checker finishes the check.
    2. You could use a Windows repair installation, also known as a Startup Repair to repair your Windows system files.
    3. You could install the latest Windows updates to fix vsjitdebugger.exe error. Microsoft often releases new service packs and system patches to replace or update some DLL files of Windows system.
    4. You could use third-party tool such as Automatic Error Fix Tool to fix your vsjitdebugger.exe error. However, Microsoft cannot make any representations regarding the quality, safety, or suitability of any third-party software or information found there.
    In addition, if you are unable to install  Visual Studio, I suggest you post your question in Visual Studio Setup and Installation forum at
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vssetup  . It is appropriate and more experts will assist you.
    Regards,
    Michelle Li

  • NoClassDefFoundError: com/sap/sql/log/OpenSQLException

    I have developed a Java project. It consists of 2 SQLJ files and then a Java class. When I try to execute the Java program, I get a Java error:
    java.lang.NoClassDefFoundError: com/sap/sql/log/OpenSQLException
         at com.mbb.crrs.business.report.dao.ReportDAO.<init>(ReportDAO.sqlj:23)
         at com.mbb.crrs.business.report.dao.Test.main(Test.java:24)
    Exception in thread "main"
    I notice a similar problem on message: Re: Which jar to include com.sap.sql.log.OpenSQLException
    Is that something that I need to maintain for it to work? Thank you.

    Hi,
    the problem one year ago was that the SQLException class was not available through remote access. I don't know if that might have been changed meanwhile in the latest release.
    I implemented a simple work around: I caught every SQL-exception in the method where it was thrown, wrapped the exception message and any nested exception in a self written exception and threw this new exception. That worked fine.
    Regards, Astrid

  • AND / OR  truth table in SQL

    why null is introduced in the AND and OR truth table?when will a statement/part of a statement return a null value??
    |AND               |True          |False             |NULL??        |
    |True               |True          |False             |Null             |
    |False              |False          |False             |False           |
    |Null                |Null             |Null               |Null             |is it introduced in AND/OR truth table for the null containing row(s)??
    select employee_id,last_name,job_id,salary
    from employees
    wheere salary >= 1000
    And job_id like '%man%';
    how the statement after the where cluz can return null value??Edited by: sayantan chakraborty on Aug 14, 2009 11:36 AM

    sayantan chakraborty wrote:
    how either of X and Y will return a null value?can you put any example?is there any syntax/ command which will print the return value of a statement as null?Say you had a table with columns X and Y. As long as NOT NULL constraints WERE NOT defined these values could contain NULLs. Then if you apply the WHERE condition of X = Y you would have the case of NULL = NULL which results in UNKNOWN.
    Simple Example:
    SQL > WITH test_data AS
      2  (
      3          SELECT 1 AS X, 1 AS Y FROM DUAL UNION ALL
      4          SELECT 2 AS X, 2 AS Y FROM DUAL UNION ALL
      5          SELECT 3 AS X, 5 AS Y FROM DUAL UNION ALL
      6          SELECT 4 AS X, 6 AS Y FROM DUAL UNION ALL
      7          SELECT 1 AS X, NULL AS Y FROM DUAL
      8  )
      9  SELECT  *
    10  FROM    test_data
    11  WHERE   X = Y
    12  /
             X          Y
             1          1
             2          2

  • If statement in sql

    regarding the following sql:
    SELECT a.lname, a.fname, a.user_id, c.address, c.city,
    c.zip, c.addresstypeid, d.descriptor as state
    FROM users a, address c, maintstatetype d
    WHERE a.user_id = c.user_id(+)
    AND c.statetypeid = d.statetypeid(+)
    AND c.addresstypeid in (1,2,3,4)
    I have a database of users and addresses. Each user can
    have multiple addresses and the addresses are
    designated by addresstypeid. In plain english, what I want
    to pull is "If they have an addresstypeid of 1, pull that one
    only, if not, check if they have a 2 and use that, if not, check
    for a 3, etc..".
    Any help with this?

    What you want, then, is to pull the address with the minimum addresstypeid ..
    SELECT a.lname, a.fname, a.user_id, c.address, c.city,
    c.zip, c.addresstypeid, d.descriptor as state
    FROM users a, address c, maintstatetype d
    WHERE a.user_id = c.user_id(+)
    AND c.statetypeid = d.statetypeid(+)
    AND c.addresstypeid =
    (select min(c2.addresstypeid)
    from address c2
    where c2.userid=a.userid
    I'm not sure what this will do to your outerjoin, though. You might have to get funky with a union ...
    SELECT a.lname, a.fname, a.user_id, c.address, c.city,
    c.zip, c.addresstypeid, d.descriptor as state
    FROM users a, address c, maintstatetype d
    WHERE a.user_id = c.user_id
    AND c.statetypeid = d.statetypeid
    AND c.addresstypeid =
    (select min(c2.addresstypeid)
    from address c2
    where c2.userid=a.userid
    Union all
    SELECT a.lname, a.fname, a.user_id, to_char(null), to_char(null),
    to_char(null), to_char(null), to_char(null)
    FROM users a
    WHERE not exists
    (select 1
    from address c
    where c.userid=a.userid
    )

Maybe you are looking for

  • Not getting all the artist from a compilation to "artists" in my iPod

    I have some compilation cds and when i import them they all (individually) get listed in artist, i ctrl marked the songs and changed it to "various artists" Is it some way of tagging the song so the "real" artist comes up when i play the song? should

  • Audio does not sync

    When recording a software demonstration, about 50-70 slides in, the audio becomes out of sync with the slides. Is there any way to avoid this happening? Some of our Captivates are 400-500 slides long, and by the end, the audio can be as much as 20 sl

  • Running 10.6.8 on Macbook after new hard drive installed. Issues now.

    Original hard drive died. Replaced it and installed 10.6.8. Iphoto is not on device nor a few others. Will not upgrade even when 10.6.8 is upgradeable. Just not running with full capabilities. Should I wipe it and start over? Bring it to Apple store?

  • Call dll function on Windows CE6.0 Device

    I am trying to call a dll on a windows CE6.0 device, which is the KEBA KeTop T20techno. In the "call library function" I added a selfmade WIN32 stub dll and in the build specifications I added the original Windows CE .lib file. When I try to build an

  • Why does my iPad 1 not hold a charge

    For past couple of days ipad1 won't hold it's charge for more than an hour or so, charged it overnight and seemed to be ok but quickly drained. Any advice would be welcome.