SQL In invalid format for Oracle

I have some SQL that works fine on SQLServer2000 but is invalid in Oracle 9i, could anyone explain what Oracle doesn't like about this syntax (this is simplified version) and how I can get round it.
Basically it does two different searches and if both suceed then retrieves all information for the matching id's. (In the full version the code is generated by the application and the no of seaches is varaible).
SELECT T5.*
FROM
SELECT T1.ORGANISATION_ID
FROM
SELECT DISTINCT T3.ORGANISATION_ID
FROM ORG_ALIAS T3
WHERE T3.ALIAS LIKE 'testalias'
     UNION ALL
SELECT DISTINCT T4.ORGANISATION_ID
FROM ORGANISATION T4
WHERE T4.ORGANISATION_NAME LIKE 'testname'
) AS T1
GROUP BY T1.ORGANISATION_ID
HAVING COUNT(T1.ORGANISATION_ID)>=2
AS T0
INNER JOIN ORGANISATION T5 ON T0.ORGANISATION_ID = T5.ORGANISATION_ID;
thanks Paul

I don't have 9i yet, so I'm not sure what changes they've made with the joins - I heard that they were going to start supporting something like what you wrote, but I'm not sure of the exact syntax. In any event, the following should work for you:
SELECT T5.*
FROM
(SELECT T1.ORGANISATION_ID
FROM
( SELECT DISTINCT T3.ORGANISATION_ID
FROM ORG_ALIAS T3
WHERE T3.ALIAS LIKE 'testalias'
UNION ALL
SELECT DISTINCT T4.ORGANISATION_ID
FROM ORGANISATION T4
WHERE T4.ORGANISATION_NAME LIKE 'testname'
) T1
GROUP BY T1.ORGANISATION_ID
HAVING COUNT(T1.ORGANISATION_ID)>=2
) T0
where T0.ORGANISATION_ID (+)=T5.ORGANISATION_ID
Remove the AS from in front of the T0 and the T1 statements and change your inner join to what I put down.
Eric

Similar Messages

  • What is this error java.sql.SQLException: Bad format for number ?

    Dear All,
    I am reading few values from database. Then I get this error "MyError:Error : java.sql.SQLException: Bad format for number 'Sarawak' in column 6. " So what is this error referring to. I have checked the database column and its value fits according the data type. Any hints please?

    I have checked the database column and its value fits according the data type.Check again. Then check again. Keep checking until you find your error. You are trying to read a string containing "Sarawak" as a number. You have "getInt(6)" or other numeric type, and the 6th column in the select statement is not numeric.

  • Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc

    Hi,
    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?
    12.1.4 / 11g db
    Appreciate your inputs.
    Thanks,
    K

    Can SQL*Loader be used for Oracle html pages, for e.g Customer, Tasks etc. It should work.
    Reason: We have a job that creates leads, tasks in 11i, but r12 is not working as expected, What is the issue you have with R12?
    an SR is open with Oracle for a long time and no solution so far. I am thinking of using SQL*loader to populate the data, but these are html pages. Will SQL* Loader work?What was Oracle feedback? Did they say it is certified and can be used?
    Thanks,
    Hussein

  • cfinsert tablename attribute, how to format for Oracle

    I've been using <cfquery> successfully for a long time
    to do table inserts, but now I'd like to use <cfinsert> for
    the simple inserts. However, I'm getting error messages. A typical
    <cfquery> against my Oracle database would look like:
    <cfquery name="myQuery"
    datasource="#application.DataSource#">
    INSERT into abc.action_type_def (field1, field2, field3)
    VALUES ('value1', value2'', value3'')
    </cfquery>
    I tried the following <cfinsert> but got the error
    message that follows the tag:
    <cfinsert datasource="#application.DataSource#"
    tablename="ABC.ACTION_TYPE_DEF"
    formfields="FIELD1, FIELD2, FIELD3">
    ERROR:
    Message: There are no columns found for the given table name
    "PRFA.ACTION_TYPE_DEF".
    Detail: This error may be caused by not specifying the table
    name in the format that the database server expects. (For example.
    Oracle Server table name must be upper case or the Server table
    name must be qualified in the format of "schema.table_name". For
    the SQL Server, the format is "databasename.username.tablename",
    such as in customers.dbo.orders)
    I've tried upper and lower case on the tablename attribute,
    tried leaving the "abc." off, but I just can't seem to get it to
    work. Any idea how to format this tag to go against an Oracle
    database?
    Thanks! Pam

    Word of advice: I would stay away from using cfinsert and
    cfupdate tags, unless you are prone to masochistic tendencies and
    enjoy pain and suffering. These tags are notoriously bug-prone, and
    cause more work than they save. Just my opinion, but I'm sure that
    it is one shared by many on these forums.
    Having said that, you might take a look at the attributes for
    this tag, as you seem to have combined the schema (table owner)
    with the table name, as in ABC.ACTION_TYPE_DEF, which should be
    listed distinctly using separate attributes, namely tableOwner and
    tableName respectively. Note: I don’t use these tags so this
    “fix” is just based on reading the
    LiveDocs
    for this tag.
    Since you have so much more control using cfquery, and you
    said that you have been using it for quite some time, why switch to
    using cfupdate/cfinsert? If you already know enough SQL to do an
    insert or update , then you really don't need to use these tags.
    You will thank me.
    Phil

  • Invalid format for Marketing Attributes

    Hi colleagues,
    I have marketing attributes of type NUM 5,2 which are causing erros of type Invalid Format.
    I would like to know where do I change this configuration (path in SPRO/Cutomizing Implementation Guide) in CRM.
    And If someone knows what type generally is used... it seems strange that standard validation is not accepting this...
    thanks,

    Can you please let me know what is this 5,2? Is this a value for the attribute?
    In the Attributes table, you can only mention the decimal place and in the value table you have to maintain the exact number of decimal places as you mentioned in the attributes.
    e.g.
    if you create an attribute say "Frequency of Purchases", Format - Numeric Format, Decimal Places - 2, In that case, you have to maintain a values like 35,02 or 34,00 or 37,59 etc.
    If you want to change the decimal separator say "," to ".", you can do it in CRM system, as follows
    -login to CRM system using sapgui command
    -login with your credentials
    -go to system->user profile-> own data or you can directly use the transaction SU3
    -go to tab "Default" -> change the field "Decimal Notation" as per your liking.
    For this you must have an authorization to change your data or ask your administrator to change the same.
    Hope this helps.
    Edited by: Harsh Singal on Apr 5, 2011 12:47 PM

  • IRP5, /326 negative value (Invalid format for code 4141)

    Hi everyone,
    I am facing a error for South Africa payroll, facing below mention error, "Invalid format -100 for code 4141.
    Request you inputs ASAP.
    Thanks & Regards
    RL

    HI,
    HI,
    i am getting this error in IRP5,
    1.Empty mandatory SARS code: 4141 - VALUE IS NEGATIVE ASSYR:2015.
    2. Empty mandatory SARS code: 4149 - VALUE IS NEGATIVE ASSYR:2015
    3. Empty mandatory SARS code: 3221 -
    Request your inputs on same.
    Thanks And Regards
    Amit Lokhande

  • Always getting Invalid Pasword for Oracle User SYS

    Hello,
    I am installing IFS on Win XP.
    My database is on a remote machine.
    When I start with the configuration assistent of Oracle SMDK, he ask me to define the database to use.
    When I click on next I allways get the message Invallid pasword for Oracle user SYS
    I tested the connection via Oracle 9i client an that works properly.
    Can anyone help me please
    Thx in advantage.
    Database version: Oracle 9I Release 9.2.0.1.0
    Internet File system version: Oracle CM SDK

    I found the answer: getting the username with Get User Info on the User object gave me the username in a String. Using that, it worked like a charm.

  • What is the default encoding file format for oracle database.

    Hello,
    I wanted to create all files in ANSI format irrespective of database characterset. is there any way to confirm?
    please help me out.

    Hello,
    AS per my knowledge, UTL_FILE expects that files opened by UTL_FILE.FOPEN in text mode are encoded in the database character set And files opened by UTL_FILE.FOPEN_NCHAR in text mode are encoded in the UTF8 character set. However there is not any parameter to set default encoding format for file. It works as mentioned above.
    Encoding mode is depend on database character set. If you want to change it while reading/writing file then you can use utl_encode.text_encode/ utl_encode.text_decode/ UTL_RAW.CONVERT function.
    When data encoded in one character set is read and Globalization Support is told (such as by means of NLS_LANG) that it is encoded in another character set, the result is indeterminate. If NLS_LANG is set, it should therefore be the same as the database character set..
    I wanted to create file using UTL_FILE. and whatever files gets create that should be in ANSI format.
    Database version : 11.2.0.1
    Edited by: Sachin.Ichake on Oct 3, 2012 11:12 PM

  • Can SQL Developer be used for Oracle Support "HTML Output" Diag Scripts ?

    Hi All,
    Oracle Support has asked me to run a diagnostic script (OTL_Diag.sql for anyone familar with the script) that produces output in HTML format using SQL*Plus to help troubleshoot an OTL problem we are having. Unfortunately I don't have SQL*Plus installed and my company is not on board with me installing it because of the SQL*NET connection required. Instead I have access to SQL Developer 3.1.0.7. While this works fine for most situations I'm having problems generating the required .html output file that Support needs.
    I've tried runing the OTL_Diag.sql a couple of ways using SQL Developer. First, I opened the file from SQL Developer and using the Run Script functionality (F5) I executed the code that way. This method did give me an opportunity to input the necessary parms and it did create the 'start' of the HTML file on my (Windows) file system, but the script seemed to abort with a java error that indicated some sort of format error (sorry, I'm not a java person so I can't provide any more info, but I'll be glad to get the exact error message if anyone thinks that will help solve my issue).
    My second approach was to open a SQL Window where I typed in @C:\OTL_Diag.sql without quotes. This approach also gave me the opportunity to enter the necessary input parms and it seemed to end normally. It also created the 'start' of the diaganostic output file on my Windows file system, but it 'completed' before any of the 'real' diaganostic output was written to the .html file.
    The Metalink note clearly specifies that the OTL_Diag.sql script is to be run with SQL*Plus 10.2 or above so I don't think I can complain too loudly to Oracle about this...but given that I don't have access to this product (and it is useless for me to again ask to install it) I am hoping someone out there has some ideas or insight as to how I can use SQL Developer to execute this diag script in a manner that will produce the required .html output file.
    Thanks in advance to anyone taking time to read my post !!
    Jeff
    Edited by: user13111861 on Jul 10, 2012 6:43 PM
    Edited by: user13111861 on Jul 10, 2012 7:51 PM

    >
    As a result, at this point in time my only available tool to run the OTL_Diag.sql script (provided by Oracle Support) is SQL Developer
    >
    Then you will have to edit the script, break it into pieces, execute each piece manually and save the output to feed into the next piece as required based on what the script is actually doing. Don't post the script or contents as that will likely violate your support agreement.
    As I already mentioned the script may be using syntax and/or commands that are simply not supported by sql*developer. One likely area is the script may be producing intermediate output scripts that are then processed by a later portion of the script. If that is the case then my suggestion to execute the pieces manually should work but you will need to do some trial-and-error to see.
    Even if you appear to be successful you will still have an issue when you communicate the results of your 'test' to Oracle support and they determine you didn't follow their instructions to use the proper tool.
    Sounds like your management is either ignorant or incompetent so I suggest you cover yourself by documentating the instructions from Oracle support and the direct orders you were given to disregard those instructions. No need to discuss that issue further but clearly there are resources available somewhere in the org that has the proper privileges or they wouldn't be able to maintain and support the database. If they want to pay for support they should heed their advice. Nuff said.

  • Sample  PL/SQL Portlet Source Code for Oracle Portal 9ias

    Hi, I'm a newbie of Oracle Portal technology, and I have a problem:
    I would create a PL/SQL portlet that realizes the following functions:
    1) Retrieve the username of the portal user logged from WWCTX_API.GET_USER function.
    2) Insert into an oracle db table two values about two hidden fields in the HTML FORM of the portlet.
    3) Realize the insert commit through the click on the submit button on the Html form of the portlet. I would redirect by the same button to an other page url also.
    I've never developed in Portal, and may be useful if someone could post me the source code of the SHOW MODE SECTION in the PROCEDURE SHOW of a SAMPLE PL/SQL PORTLET that realizes the upper functions.
    Thanks a lot....

    Hi
    Here's the code from Helloworld_Portlet example:
    procedure show
    p_portlet_record wwpro_api_provider.portlet_runtime_record
    is
    l_portlet wwpro_api_provider.portlet_record;
    begin
    if (not is_runnable(
    p_provider_id => p_portlet_record.provider_id
    ,p_reference_path => p_portlet_record.reference_path)
    ) then
    raise wwpro_api_provider.PORTLET_SECURITY_EXCEPTION;
    end if;
    Retrieve the portlet information.
    l_portlet := get_portlet_info(
    p_provider_id => p_portlet_record.provider_id
    ,p_language => p_portlet_record.language
    if (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW) then
    if (p_portlet_record.has_title_region) then
    Draw the portlet header and specify what links are available
    from that header (i.e. details, customize, help, and about).
    The has_title property is set at the page region level.
    wwui_api_portlet.draw_portlet_header
    p_provider_id => p_portlet_record.provider_id
    ,p_portlet_id => p_portlet_record.portlet_id
    ,p_title => l_portlet.title
    ,p_has_details => true
    ,p_has_edit => true
    ,p_has_help => true
    ,p_has_about => true
    ,p_referencepath => p_portlet_record.reference_path
    ,p_back_url => p_portlet_record.page_url
    end if;
    Draw the portlet borders.
    The has_border property is set at the page region level.
    wwui_api_portlet.open_portlet(p_portlet_record.has_border);
    Display the content of the portlet in the show mode.
    Use the wwui_api_portlet.portlet_text() API when
    generating the content of the portlet so that the
    output uses the portlet CSS.
    htp.p(wwui_api_portlet.portlet_text(
    p_string => 'Hello World - Mode Show'
    ,p_level => 1
    if (p_portlet_record.has_border) then
    wwui_api_portlet.close_portlet;
    end if;
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_ABOUT) then
    Display the about page for the portlet.
    htp.p('Hello World - Mode Show About');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT) then
    Display the edit page for the portlet.
    htp.p('Hello World - Mode Show Edit');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP) then
    Display the help page for the portlet.
    htp.p('Hello World - Mode Show Help');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT_DEFAULTS) then
    Display the edit defaults page for the portlet.
    htp.p('Hello World - Mode Edit Defaults');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_DETAILS) then
    Display the details page for the portlet.
    htp.p('Hello World - Mode Show Details');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_PREVIEW) then
    Display the preview page for the portlet.
    htp.p('Hello World - Mode Show Preview');
    end if;
    end show;
    I think you need to add this:
    You can get the values of your html-form with this command:
    v_hidden_1 varchar2(256);
    v_hidden_2 varchar2(256);
    v_hidden_1 := wwpro_api_parameters.get_value('name_of_hidden_1_in_html_form','p');
    v_hidden_2 := wwpro_api_parameters.get_value('name_of_hidden_2_in_html_form','p');
    You can get the actual URL with this command:
    v_url := p_portlet_record.page_url;
    Hope that helps.
    Regards,
    Mark

  • Chinese Character in PDF format for Oracle Reports 11g

    Hello Everyone,
    Currently we have a Report that need to be display chinese character in PDF format.
    We followed the steps specified in the "Oralce Fusion Middleware Publishing Reports to the Web with Oracle Reports Services"
    documentation but things doesn't work. We also installed Adobe Acrobat Reader 9 and Asian Font Pack 9 on the server side
    and even on the client/user/development side and followed the steps in the documentation, but no effect at all. Or we even
    tried "Arial Unicode MS", same thing no effect.
    For sure, we may miss something during PDF aliasing or PDF subsetting setup.
    Anyone out there who has the same experience and able to resolve the issue that currently using the Oralce Fusion Middleware Reports 11g?
    Doesn't matter if it does not related to chinese character, as long as it relates to this issue like japanese or arabic characters in PDF.
    If its ok, kindly provide the steps how you do it.
    Your help is highly appreciated.
    Regards and Thank you very much!

    I am now facing exactly the same problem as user449955 (Eric's). Dear Eric, how about your situation? If you have resolved this problem, may I ask for your solution?
    In my case, using either font aliasing or font subsetting doesn't work at all (displaying "garbage" characters instead of Chinese characters). The setting in my uifont.ali is as follows:
    If using font aliasing:
    [PDF]
    .....ZHT16HKSCS = "MSungStd-Light-Acro"
    If using font subsetting (the REPORTS_PATH already includes "C:\Windows\Fonts"):
    [PDF:Subset]
    "Courier New" = "mingliu.ttc,2"
    For both cases, the report server's NLS_LANG already set to "TRADITIONAL CHINESE_HONG KONG.ZHT16HKSCS" (I am in fact located at Hong Kong). For font aliasing, the client side already has Asian Adobe Reader with Asian font pack installed.
    By the way, I noticed that the WebLogic EM is configuring/updating the uifont.ali file at "<instance home>\config\FRComponent\frcommon\tools\common" directory, but the Oracle Reports 11g's documentation sometimes advise to refer to another uifont.ali file located at "<instance home>\config\FRComponent\frcommon\guicommon\tk\admin" directory. Which one of the uifont.ali files is the one used by the Oracle Reporting Service?
    My report server's platform is Windows 7 Enterprise (64-bit) and the Reports version is 11.1.1.3.
    Anyone can help to advise?
    Thank you very much.
    Regards

  • Arbitrary object types in PL/SQL call with OCI for Oracle 9.2

    Hi,
    i'm trying to develop a generic library that is able to execute a call to a pl/sql with a generic list of types.
    If the objects are native (i.e. number, varchar2...) works fine, but i cannot understand how to do the same with a generic user defined object.
    For example:
    CREATE OR REPLACE TYPE A AS object (
         B     VARCHAR2(40),
         C          CLOB
    CREATE OR REPLACE TYPE D AS object (
         E     A
    And the pl/sql:
    CREATE OR REPLACE PACKAGE PLSQL_EX IS
         PROCEDURE exempl (inInfo IN OUT D);                                   
    END PLSQL_EX ;
    Do you have an example of how to do this ??, obviously i dont whant to use the OTT, because i want the maximum level of flexibility. I think i have to use the OCIObjectNew functions and the related ones, but i don't know how.
    thanks.
    Best regards,
    Stefano.

    Hi,
    i'trying to solve the problem with this code (just use of set Object attribute and get object Attribute) , but it doesn't work:
    #define SQLCA_NONE
    #define ORACA_NONE
    EXEC SQL BEGIN DECLARE SECTION;
         sql_context sqlCtx;
         char* dbName = "dbName";
         char* oraPwd;
         char* oraConnection;
         char* oraUsr;
    EXEC SQL END DECLARE SECTION;
    #include <iostream.h>
    #include <stdlib.h>
    #include <string>
    #include <sql2oci.h>
    extern "C" {
         #include <orid.h>
    sword checkErr(sword status, OCIError * error)
         text errbuf[512];
         sb4 errcode = 0;
         int     errorCode = 0;
         string     errorDesc;
         switch (status) {
              case OCI_SUCCESS:
                   break;
              case OCI_SUCCESS_WITH_INFO:
                   OCIErrorGet((dvoid *)error, (ub4) 1, (text *) 0, &errcode, errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
                   errorDesc = (char *)errbuf;                    
                   cout << "error: " << errorDesc << endl;
                   break;
              case OCI_NEED_DATA:
                   cout << "warning: NEED DATA"<< endl;
                   break;
              case OCI_NO_DATA:
                   cout << "warning: NO DATA" << endl;
                   break;
              case OCI_ERROR:
                   OCIErrorGet((dvoid *)error, (ub4) 1, (text *) 0, &errcode, errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
                   errorDesc = (char *)errbuf;
                   cout << "error: " << errorDesc << endl;
                   break;
              case OCI_INVALID_HANDLE:
                   cout << "error: INVALID HANDLE" << endl;
                   break;
              case OCI_STILL_EXECUTING:
                   cout << "error: STILL EXECUTING" << endl;
                   break;
              case OCI_CONTINUE:
                   cout << "error: CONTINUE" << endl;
                   break;
              default:
                   cout << "error: ???" << endl;
                   break;
         return status;
    int main ()
         OCIType *           tdo;
         dvoid *           objectPointer;
         dvoid *          null_struct =(dvoid*) 0;
         OCIString *          message4AB= (OCIString *)0;
         OCIInd                ind4AB = OCI_IND_NOTNULL;
         ub4 len[] = {1};
         const char *attrName[] = {"B"};
         dvoid *               attr_null_struct =(dvoid* ) 0;
         OCIString*           newString = (OCIString*) 0;
         OCIType *          attr_tdo;
         OCIInd                newIndMessage = OCI_IND_NULL;
         OCITypeCode           typecode ;     
         OCIEnv *     mEnvHandler;
         OCISvcCtx *      mSvcEnv;
         OCIError *     mErrorHandler;
         oraUsr = (char*) "gpridb";
         oraPwd = (char*) "gpridb";
         oraConnection = "ic9su002";
         sqlca sqlca;
         EXEC SQL CONTEXT ALLOCATE :sqlCtx;
         EXEC SQL CONTEXT USE :sqlCtx;
         EXEC SQL CONNECT :oraUsr IDENTIFIED BY :oraPwd AT :dbName USING :oraConnection;
         if (SQL_ERROR == SQLEnvGet(sqlCtx, &mEnvHandler) ) {
              cout << "Error during creation of environment Handler"<< endl;
              exit (1);     
         if (SQL_ERROR == SQLSvcCtxGet(sqlCtx, (text *)dbName, (ub4) strlen(dbName), &mSvcEnv )) {
              cout << "Error during creation of svc Environment"<< endl;
              exit (1);     
         if (SQL_ERROR == OCIHandleAlloc( mEnvHandler, (dvoid **) &mErrorHandler, (ub4) OCI_HTYPE_ERROR, 0, (dvoid **) 0)){
              cout << "cannot initialize error handler" << endl;
              exit (1);
    checkErr (OCITypeByName ( mEnvHandler,mErrorHandler,mSvcEnv,(text *) 0,(ub4) 0,
                   (const text *) "A", (ub4) strlen ("A"),
                   (const text *)0, (ub4) 0,OCI_DURATION_SESSION,OCI_TYPEGET_ALL, &tdo),mErrorHandler);
    checkErr( OCIObjectNew ( mEnvHandler, mErrorHandler, mSvcEnv,OCI_TYPECODE_OBJECT,tdo, (dvoid*)0,
                   OCI_DURATION_SESSION,true ,&objectPointer),mErrorHandler);
    checkErr(OCIObjectGetInd (mEnvHandler, mErrorHandler,
    objectPointer, &null_struct ),mErrorHandler);
    checkErr(OCIStringAssignText (mEnvHandler,mErrorHandler, (text *) "INVIO",
    strlen ("INVIO") ,&message4AB),mErrorHandler);
    cout << "Value in string: " << (char *) OCIStringPtr(mEnvHandler, message4AB) << endl;
    checkErr(OCIObjectSetAttr (mEnvHandler, mErrorHandler, objectPointer, null_struct,
    tdo, (const text **) attrName , len, (ub4) 1,(ub4 *) 0,
    (ub4)0, ind4AB, &attr_null_struct,
    (dvoid *) message4AB),mErrorHandler);
    checkErr (OCIObjectGetAttr(mEnvHandler, mErrorHandler, objectPointer, null_struct, tdo,
                   (const text **) attrName, len, 1, (ub4 *)0, (ub4)0, &newIndMessage,&attr_null_struct,
                   (void **) &newString, &attr_tdo),mErrorHandler);
    typecode = OCITypeTypeCode(mEnvHandler, mErrorHandler, attr_tdo);
    if (newIndMessage == OCI_IND_NULL) {
              cout << "null"<< endl;
    } else {
         cout << "indicator: " << newIndMessage << endl;
         switch (typecode)
         case OCI_TYPECODE_DATE : /* fixed length string */
              cout << "date" << endl;
              break;
         case OCI_TYPECODE_RAW : /* RAW */
              cout << "raw" << endl;
              break;
         case OCI_TYPECODE_CHAR : /* fixed length string */
         case OCI_TYPECODE_VARCHAR : /* varchar */
         case OCI_TYPECODE_VARCHAR2 : /* varchar2 */
              cout << "vc" << endl;
              break;
         case OCI_TYPECODE_SIGNED8:
              cout << "sign" << endl;
              break;
         case OCI_TYPECODE_UNSIGNED8:
              cout << "uns" << endl;
              break;
         case OCI_TYPECODE_OCTET:
              cout << "octet" << endl;
              break;
         case OCI_TYPECODE_UNSIGNED16: /* UNSIGNED SHORT */
         case OCI_TYPECODE_UNSIGNED32: /* UNSIGNED LONG */
         case OCI_TYPECODE_REAL: /* REAL */
         case OCI_TYPECODE_DOUBLE: /* DOUBLE */
         case OCI_TYPECODE_INTEGER: /* INT */
         case OCI_TYPECODE_SIGNED16: /* SHORT */
         case OCI_TYPECODE_SIGNED32: /* LONG */
         case OCI_TYPECODE_DECIMAL: /* DECIMAL */
         case OCI_TYPECODE_FLOAT: /* FLOAT */
         case OCI_TYPECODE_NUMBER: /* NUMBER */
              cout << "num" << endl;
              break;
         default:
              cout << "defaut" << endl;
              break;
         char p = (char ) OCIStringPtr(mEnvHandler, newString);
         cout << " read from object (" << typecode << "): " << (char *) OCIStringPtr(mEnvHandler, newString) << endl;
    the output is:
    Value in string: INVIO
    indicator: 0
    vc
    read from object (9): @|

  • Date format for oracle lite client database

    hello....
    When data is entered opened on the oracle lite webtogo OC4J client is giving the following errors:
    JBO-25009: Cannot create an object of type:java.sql.Date with value:2/21/08 12:00 AM
    JBO-27014: Attribute CreationDate in AppModule.ApplicantIncomesView1 is required
    JBO-27024: Failed to validate a row with key oracle.jbo.Key[85685 ] of type AppModule.ApplicantIncomesView1
    Which date format is supported on the OC4J client?The application has been developed using Jdeveloper JSF/ADF BC technology.

    user6998712 wrote:
    Hi all,
    My client has installed Oracle Lite version 10.3.0.3. Oracle Lite Database file (ODB) tends to grow too large. Oracle recommends resizing the Oracle Lite database by running Defrag.exe tool. please post URL where this is documented

  • Invalid Login for Oracle Server 10g

    Hi
    I have installed Oracle 10g server on my pc .
    I checked the Option of Use the same User name and password for all the accounts and used the password as admin
    But when i am trying to login as sysdba or sysopera with admin as password it is displaying as Invalid Login .
    Please tell me how can i login into the Oracle DataBase

    The usernames for login are SYSTEM or SYS. Try to login as system/admin or sys/admin as sysdba.
    What tool are you using to login ? dbconsole, sqlplus ? You should be able to login with OS authentication "/ as sysdba"
    Edited by: Robert Geier on Oct 13, 2009 2:27 PM

  • SQL Navigator not connected for oracle 11 Client

    Hi Team,
    i used sql navigator 5.5 to connect database then it shows error that is "ORA-12541: TNS:no listener".
    If connected local database, its connecting properly.
    Actually, I have Installed Oracle 11g release 1. Client. Now i have connected local database and checked. then Database connected.
    C:\Users\duvvuriv>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 8 14:47:30 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set lines 300
    SQL> select name,open_mode,log_mode from V$database;
    NAME OPEN_MODE LOG_MODE
    ORCL READ WRITE NOARCHIVELOG
    Please suggest,
    Thanks & Regards,
    Venkat

    I have installed on my pc Oracle 11g for windows 7 home edition 64 bit. Usually I use Navigator to develop
    or manage my DB, Navaigator 3.0 can be use with a 64 bit client? I have some problem with my previous edition.I assume by "DB Navigator" you mean "SQL Developer" because that's what this forum's about. Or if it's the Jdeveloper
    addon - go to the jdev fora.
    What's stopping you going [url http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html]here and downloading the x86_64 version?
    The licence is very liberal (for a proprietary product).
    Paul...
    Edited by: Paulie on Sep 2, 2011 11:37 AM

Maybe you are looking for

  • Year end closing balances

    Hi Everybody, I have a question here regarding year end closing balances. In 2007, GL-110011 has closing balance is '0'. Whereas in 2008 the same GL-110011 has 5000/- opening balance. How this was happend? Can anybody help on this thread, where shoul

  • Mail will not display mail content from aol.

    Message has no content. All other mail received is ok. Any ideas? The aol message sows no content on iPad but when viewed by iPad mail or Safari login to Gmail.  When login to my Gail mail account using win xp &Tbird there is content in the messages.

  • MSI x99 AC Power Bios Update

    When will the x99 ac power be getting a new bios update? is one planned?

  • Short dump while using call selection-screen mdynnr

    Hi ALL, I need your help and information. In programmes, We are using the statament " CALL SELECTION-SCREEN MDYNNR "  and passing the screens dynamically into variable mdynnr. And the programme is going to dump after executing 50 times. When we can w

  • Muse CC 2014, Review & Merge Changes freezing

    One of my client's team has used in-browser editing to make some 50+ changes to a website.  I am now trying to run the review and merge process to integrate them with the muse file.  I have now tried 3 times and the Muse Review and Merge Changes pop-