I need a sql statment that return the platform on which oracle is installed

hi all
in Oracle 10g there is a column in v$database names platform_name that contain the platform name on which oracle is installed.
do you know how can I check it in oracle 9i/9i ?

And just to note:
Sandeep's solution only works if your user has access to the V$DATABASE view which most standard users won't.
Kamal's solution will work with most users providing they haven't had permission taken away from them in regards the dbms_utility package.

Similar Messages

  • Sql Query to know the OS in which database is installed

    Hi,
    I want to know the OS in which my database is installed using SQL Query.
    Is it possible?
    Regards
    Salih KM

    SQL> select dbms_utility.port_string from dual;
    PORT_STRING
    IBM AIX64/RS6000 V4 - 8.1.0
    SQL> Nicolas.

  • I need a query that returns the average amount of characters for a text colum in MS SQL.

    I need a query that returns the average amount of characters
    for a text colum in MS SQL.
    Could someone show me how?

    Sorted, i need the
    DATALENGTH
    function

  • Need a Dynamic SQL statgement that returns multiple values.

    Hi,
    I'm using Oracle 10.1.0.5.
    In an anonymous block I have a dynamic SQL statement that finds the table name and column name that a string value resides in.
    It looks like this:
          l_sql := 'SELECT 1 FROM dual WHERE exists (SELECT 1 FROM '||
                   r.owner||'.'||r.table_name||' WHERE '||r.column_name||
                   ' = :b1)';
             EXECUTE IMMEDIATE l_sql INTO l_res USING l_contents;
             DBMS_OUTPUT.Put_Line(l_contents||' exists in '||r_owner||
                                  r.table_name||'.'||r.column_name);I'd then like to do a 'Select Distinct' to list all the other values in that column in the anonymous block,
    preferably as another dynamic SQL statement.
    How can I do this?

    user10382685 wrote:
    Hi,
    I'm using Oracle 10.1.0.5.
    In an anonymous block I have a dynamic SQL statement that finds the table name and column name that a string value resides in.
    It looks like this:
    l_sql := 'SELECT 1 FROM dual WHERE exists (SELECT 1 FROM '||
    r.owner||'.'||r.table_name||' WHERE '||r.column_name||
    ' = :b1)';
    EXECUTE IMMEDIATE l_sql INTO l_res USING l_contents;
    DBMS_OUTPUT.Put_Line(l_contents||' exists in '||r_owner||
    r.table_name||'.'||r.column_name);I'd then like to do a 'Select Distinct' to list all the other values in that column in the anonymous block,
    preferably as another dynamic SQL statement.
    How can I do this?Well, it would be nice for you to post the whole context of your present solution so we know what's going on. I'll assume r comes from a loop referencing user_tab_cols or some equivalent view.
    If so, you'll likely need to check the DATA_TYPE column.
    Keeping in mind, doing something like this is going to be pretty ridiculous if you have a large amount of distinct values ... I'm hoping/assuming this is a one off type of thing.
    declare
      type        l_date is table of date;
      v_date      l_date;
      type        l_char is table of varchar2(4000);
      v_char      l_char;
      type        l_numb is table of number;
      v_numb      l_numb;
      l_distinct_ set sys_refcursor;
    begin
      <current_code>
      open l_distinct_set for 'select distinct ' || r.column_name || ' from ' || r.owner||'.'||r.table_name;
      --expand on the data types you care about as needed, this is a BASIC set
      if r.data_type = 'DATE'
      then 
        fetch l_distinct_set bulk collect into v_date;
        <process_collection_as_wanted>
      elsif r.data_type in ('VARCHAR2', 'CHAR')
      then
        fetch l_distinct_set bulk collect into v_char;
        <process_collection_as_wanted>
      elsif r.data_type = 'NUMBER'
      then
        fetch l_distinct_set bulk collect into v_numb;
        <process_collection_as_wanted>
      end if;
      close l_distinct_set;

  • Custom PL/SQL API that inserts the data into a custom interface table.

    We are developing a custom Web ADI integrator for importing suppliers into Oracle.
    The Web ADI interface is a custom PL/SQL API that inserts the data into a custom interface table. We have defined the content, uploader and an importer. The importer is again a custom PL/SQL API that will process the records inserted into the custom table and updates the STATUS column of the custom interface table. We want to show the status column back on the spreadsheet.
    Defined the 'Document Row' import rule and added the rows that would identify the unique record.
    Errored row import rule, we are using a SELECT * from custom_table where status<>'Success' and vendor_name=$param$.vendor_name
    The source of this parameter is import.vendor_name
    We have also defined an Error lookup.
    After the above setup is completed, we invoke the create document and click on Oracle->Upload.
    The records are getting imported, but the importer program is failing with An error has occurred while running an API import. The ERRORED_ROWS step 20003:ER_500141, parameter number 1 must contain the value BIND in attribute 1.'

    The same issue.
    Need help.
    Also checked bne.log, no additional information.
    <bne:document xmlns:bne="http://www.oracle.com/bne">
    <bne:message bne:type="DATA" bne:text="BNE_VALID_ROW_COUNT" bne:value="11" />
    <bne:message bne:type="DATA" bne:text="BNE_INVALID_ROW_COUNT" bne:value="0" />
    <bne:message bne:type="ERROR" bne:text="An error has occurred while running an API import"
    bne:cause="The ERRORED_ROWS step 20003:ER_500165, parameter number 1 must contain the value BIND in attribute 1."
    bne:action="" bne:source="BneAPIImporter" >
    <bne:context bne:collection="collection_1" />
    </bne:message><bne:message bne:type="STATUS"
    bne:text="No rows uploaded" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message>
    <bne:message bne:type="STATUS" bne:text="0 rows were invalid" bne:value="" >
    <bne:context bne:collection="collection_1" /></bne:message></bne:document>

  • Deploy resulset of PL\SQL function, that returns ANYTABLE%TYPE

    How can deploy resulset of PL\SQL function, that returns ANYTABLE%TYPE in SQL?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by angelrip:
    Hello everyone,
    I've come through the following problem:
    1.- I created an PL/SQL stored procedure which returns a REF CURSOR element, definition looks like this:
    PACKAGE PKG_LISTADOS AS
    TYPE tuplas IS REF CURSOR;
    /* Procedimientos exportados por el paquete */
    PROCEDURE inicializarModuloListados;
    FUNCTION recaudacionUltimoMes(medioPago DEF_MEDIO_PAGO.MEDIO_PAGO%TYPE)
    RETURN tuplas;
    2.- Now I would like to call the stored procedure and retrieve the PL/SQL cursor as a ResultSet Java Object. The code I wrote is this:
    Connection conn;
    XmlDocument paramDef;
    conn=poolMgr.getConnection str_poolDBConnection);
    try
    CallableStatement cstmt=conn.prepareCall("{?=call PKG_LISTADOS.recaudacionUltimoMes(?)}");
    cstmt.registerOutParameter(1, java.sql.Types.OTHER);
    cstmt.setString(2, "MONEDA");
    cstmt.executeQuery();
    ResultSet rs=(ResultSet)cstmt.getObject(1);
    catch(SQLException sqlE)
    3.- However, I can't make it OK, all the time I get the following error:
    SQL Error(17004), java.sql.SQLException: Non valid column type
    May anyone help me with this, thanks in advance:
    Miguel-Angel<HR></BLOCKQUOTE>
    Do something like the following:
    cstmt = conn.prepareCall("{call customer_proc(?, ?)}");
    //Set the first parameter
    cstmt.setInt(1, 40);
    //Register to get the Cursor parameter back from the procedure
    cstmt.registerOutParameter(2, OracleTypes.CURSOR);
    cstmt.execute();
    ResultSet cursor = ((OracleCallableStatement)cstmt).getCursor(2);
    while(cursor.next())
    System.out.println("CUSTOMER NAME: " + cursor.getString(1));
    System.out.println("CUSTOMER AGE: " + cursor.getInt(2));
    cursor.close();
    null

  • Available webservice/tool that returns the physical qry from logical qry?

    Is there any obiee webservice or program that returns the physical query by receiving the logical query as a parameter ?
    What we are looking for is to have a "process" that use the logic that bi server has to resolve the reports using the metadata (rpd) to derive the physical query.
    It should be like the logic that is behind the "issue direct sql" function. But instead of pasting the logical query into the text box we will be passing it as a parameter in a custom process.
    Many thanks,
    Georgina

    800 by 800 pixel file @ 300 DPI:
    Guide @ random position:
    800 by 800 pixel file @ 300 DPI:
    Guide @ 40,341 mm
    One selection drawn from the left, one from the right.
    The border of the selection should be on the same left-right-position, but differs about one pixel (these are all zoomed in).

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • BAPI OR RFC THAT RETURNS THE VALUE TABLE CONTENTS THAT IS SPECIFIED IN DOM

    HI ALL,
    i have requirement of BAPI  or RFC that returns the value table contants(text table) in CRM..
    for ex:
      if i  pass the dataelement or domain or checktable as input parameter,could i get the contents of its text table associated with it....
    please if there is way help me on this..
    thanks and regards,
      goutham,

    Check these FM
    RFC_READ_TABLE
    RFC_GET_TABLE_ENTRIES

  • Need an add on that changes the tabs like pages of an book

    need an "add on" that changes the tabs like pages of an book. I had this years ago, but dont remember the name and how to find it. Thanks

    Maybe this extension or one of the others mentioned has that feature:
    Tab Utilities: https://addons.mozilla.org/firefox/addon/59961

  • BAPI that returns the PurchasingOrg of given user.

    Hi all,
    I'm trying to find BAPI that returns the PurchasingOrg of given user.
    Any help will be very appreciated.
    Thanks,
    DannyL

    >
    Danny Leviev wrote:
    > Hi all,
    >
    > I'm trying to find BAPI that returns the PurchasingOrg of given user.
    >
    > Any help will be very appreciated.
    >
    > Thanks,
    >
    > DannyL
    Hi dear,
    Can u explin in deatails what exactly you are looking for??

  • How can I return the audio book which I never downloaded?

    How can I return the audio book which I never downloaded?

    All purchases are considered final whether or not you decide to download them, but you can try the 'report a problem' link to contact iTunes Support and see if they will credit or refund you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Error. This extension cannot be installed, since it conflicts with an existing one. To install this extension, please remove the extension 'GuideGuide' which has been installed in", then install again.

    When I try to install GuideGuide extension this error message popups " This extension cannot be installed, since it conflicts with an existing one. To install this extension, please remove the extension 'GuideGuide' which has been installed in", then install again."
    Photoshop CC

    Hi,
    Have you ever uninstalled Photoshop CC and installed Photoshop CC 2014, or uninstalled Photoshop CC 2014 then installed Photoshop CC?
    If that, please re-install you uninstalled Photoshop, and remove GuideGuide from Extension Manager before uninstall.
    Another option is remove extension manager database file, then launch Extension Manager to install it.
    C:\ProgramData\Adobe\Extension Manager CC\Configuration\DB\ExMan.db (Windows)
    /Library/Application Support/Adobe/Extension Manager CC/Configuration/DB/ExMan.db (MAC)
    But please notice that all your previously installed extensions will not be shown in Extension Manager after you removed database file.

  • When I plug in my IPOD Nano into a USB port, the computer recognizes it as a printer.  It then attempts to install the printer software, which is already installed.  The only way to fix it is to unplug the printer.  Any thoughts?

    When I plug in my IPOD Nano into a USB port, the computer recognizes it as a printer.  It then attempts to install the printer software, which is already installed.  The only way to fix it is to unplug the printer.  Any thoughts?

    Turn the printer off.

  • "We want to use any one of a variety of digitizers: NI5102, NI5112, NI5122 and have the application determine which one is installed.

    "We want to use any one of a variety of digitizers: NI5102, NI5112, NI5122 and have the application determine which one is installed. Similar to the LabVIEW "niScope Init", using what Measurement Studio .NET call can one ascertain the model name of the digitizer using C# in .NET?

    Sorry, meant to post to "high speed digitizers".

Maybe you are looking for