IMP-00017 / ORA-22851 - Please help me

Sir,
Please help me to solve this import error.
===================================
IMP-00017: following statement failed with ORACLE error 22851:
"CREATE TABLE "LOAN" ("LOAN_ID" NUMBER(11, 0) NOT NULL ENABLE, "USERNAME" VA"
"RCHAR2(12), "PRODUCT_ID" NUMBER(11, 0), "PROPERTY_ID" NUMBER(11, 0), "PRICE"
"_ID" NUMBER(11, 0), "LOANNUMBER" VARCHAR2(20), "COMMITMENTNUMBER" VARCHAR2("
"20), "MASTERCOMMITMENTNUMBER" VARCHAR2(10), "SELLERLOANNUMBER" VARCHAR2(25)"
", "ORG_ID" NUMBER(11, 0), "LOANAMOUNT" NUMBER(15, 2), "LTV" NUMBER(9, 3), ""
"CLTV" NUMBER(9, 3), "HCLTV" NUMBER(9, 3), "TERM" NUMBER(4, 0), "AMORTIZATIO"
"N_TERM" NUMBER(4, 0), "AMORTIZATION_TYPE" VARCHAR2(25), "DOCTYPE" VARCHAR2("
"50), "LOANPURPOSE" VARCHAR2(50), "STATUS_ID" NUMBER(11, 0), "DATEMODIFIED" "
"DATE, "APPDATE" DATE, "ESTCLOSEDATE" DATE, "SPECIALPROGRAM" VARCHAR2(25), ""
"IND_FICO" NUMBER(5, 0), "FEES_STR" VARCHAR2(256), "MIN" VARCHAR2(18), "FRON"
"T_END_RATIO" NUMBER(15, 3), "BACK_END_RATIO" NUMBER(15, 3), "AU_DECISION" V"
"ARCHAR2(255), "DU_CASE_NUMBER" VARCHAR2(18), "LIENPOSITION" NUMBER(3, 0), ""
"DUEINMONTHS" NUMBER(3, 0), "REQUESTEDRATE" NUMBER(8, 4), "REQUESTEDMARGIN" "
"NUMBER(8, 4), "PIGGYBACKINDC" VARCHAR2(1), "BU_BD_ADJUSTMENT" NUMBER(8, 4),"
" "TEASER_RATE" NUMBER(8, 4), "RBR_ADJUSTMENTS" NUMBER(8, 4), "REQUIRED_BASE"
"_RATE" NUMBER(8, 4), "REQUESTED_BASE_RATE_MARGIN" NUMBER(8, 4), "REGISTRATI"
"ON_DATE" DATE, "PERCENT_AMT_BU_BD" NUMBER(8, 4), "LOANINDEX" NUMBER(5, 3), "
""ARM_MARGIN" NUMBER(6, 3), "PKG_FILE_RCVD_DATE" DATE, "UW_CREDIT_DECISION_D"
"ATE" DATE, "UW_CREDIT_DECISION" VARCHAR2(15), "UW_RCVD_DATE" DATE, "SENIOR_"
"LIEN_BALANCE" NUMBER(15, 2), "JUNIOR_LIEN_BALANCE" NUMBER(15, 2), "LOAN_TYP"
"E" VARCHAR2(100), "PREPAYMENT_PENALTY" VARCHAR2(10), "MORTGAGE_HISTORY" VAR"
"CHAR2(200), "ESCROWS_FLAG" VARCHAR2(20) NOT NULL ENABLE, "BUYDOWN_TYPE" VAR"
"CHAR2(20), "MAX_QUALIFYING_RATE" NUMBER(15, 2), "MAX_CASH_OUT" NUMBER(15, 2"
"), "LENDER_UW_CONTACT_NAME" VARCHAR2(200), "LENDER_UW_CONTACT_PHONE" VARCHA"
"R2(200), "LENDER_UW_CONTACT_EMAIL" VARCHAR2(200), "CASEFILE_NUMBER" VARCHAR"
"2(50), "LOAN_FILE" CLOB, "FLAG_1003" VARCHAR2(5), "INSERT_ID" VARCHAR2(20),"
" "INSERT_DATE" DATE, "UPDATE_ID" VARCHAR2(20), "UPDATE_DATE" DATE) PCTFREE"
" 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 131072 FREELISTS 1 F"
"REELIST GROUPS 1) TABLESPACE "TS_SMALL" LOGGING NOCOMPRESS LOB ("LOAN_FILE""
") STORE AS (TABLESPACE "TS_LARGE" ENABLE STORAGE IN ROW CHUNK 65536 PCTVER"
"SION 10 NOCACHE STORAGE(INITIAL 67108864 FREELISTS 1 FREELIST GROUPS 1))"
IMP-00003: ORACLE error 22851 encountered
ORA-22851: invalid CHUNK LOB storage option value
========================================

CHUNK
A chunk is one or more Oracle blocks. You can specify the chunk size for the LOB when creating the table that contains the LOB. This corresponds to the data size used by Oracle Database when accessing or modifying the LOB value. Part of the chunk is used to store system-related information and the rest stores the LOB value. The API you are using has a function that returns the amount of space used in the LOB chunk to store the LOB value. In PL/SQL use DBMS_LOB.GETCHUNKSIZE. In OCI, use OCILobGetChunkSize().
Note:
If the tablespace block size is the same as the database block size, then CHUNK is also a multiple of the database block size. The default CHUNK size is equal to the size of one tablespace block, and the maximum value is 32K.
Table 4-4 Data Size and CHUNK Size
Data Size CHUNK Size Disk Space Used to Store the LOB Space Utilization (Percent)
3500 enable storage in row irrelevant 3500 in row 100
3500 disable storage in row 32 KB 32 KB 10
3500 disable storage in row 4 KB 4 KB 90
33 KB 32 KB 64 KB 51
2 GB +10 32 KB 2 GB + 32 KB 99+ Go Through Below Link for more info.
>>>http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14249/adlob_tables.htm#i1006587
M.S.Taj

Similar Messages

  • IMP-00017 / ORA-01031

    Hi,
    I am getting the follwoing error while importing the export dump file exported by
    'SLIDE' user to a traget database SLIDE user schema. Slide user is with CONNECT,RESOURCE privilege.
    =================
    . . importing table "VERSION_PREDS" 0 rows imported
    IMP-00017: following statement failed with ORACLE error 1031:
    "CREATE PACKAGE pkg_ratesheet_cleanup"
    " IS"
    "-- To modify this template, edit file PKGSPEC.TXT in TEMPLATE"
    "-- directory of SQL Navigator"
    "-- Purpose: Cleanup Users, Roles, Organizations and Loans"
    "-- MODIFICATION HISTORY"
    "-- Person Date Comments"
    " -- Enter package declarations as shown below"
    " l_msg VARCHAR2 (1020) DEFAULT SQ"
    "LERRM;"
    " l_code NUMBER DEFAULT SQ"
    "LCODE;"
    " sql_string VARCHAR2 (10000);"
    " TYPE cv_type IS REF CURSOR;"
    " /*temp_user_row HUBUSER%ROWTYPE;"
    " temp_role_row ROLE%ROWTYPE;"
    " temp_org_row ORGANIZATION%ROWTYPE;"
    " temp_loan_row LOAN%ROWTYPE;*/"
    " -- Delete uri, object, parent_binding and version"
    " PROCEDURE delete_objects (argratesheetname VARCHAR2);"
    " -- Delete ratesheets"
    " PROCEDURE delete_ratesheets (argratesheetname VARCHAR2);"
    "END; -- Package spec"
    IMP-00003: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    IMP-00017: following statement failed with ORACLE error 1031:
    "CREATE PACKAGE pkg_uri_mgt"
    " IS"
    "-- Purpose: Add, Delete, Edit User"
    "-- MODIFICATION HISTORY"
    "-- Person Date Comments"
    " TYPE cv_type IS REF CURSOR;"
    " sql_string VARCHAR2 (10000);"
    " sql_temp_version_id_string VARCHAR2 (10000);"
    " l_msg varchar2(1020) default sqlerrm;"
    " l_code number default sqlcode;"
    " temp_uri_uri_id URI.uri_id%TYPE;"
    " temp_uri_version_id VERSION_HISTORY.version_id%TYPE;"
    " PROCEDURE delete_uri (arguristring uri.uri_string%TYPE,"
    " delete_count OUT NUMBER,"
    " success_flag OUT CHAR,"
    " error_code OUT VARCHAR2, error_message OUT VARCHAR2);"
    "END; -- Package spec"
    IMP-00003: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    IMP-00017: following statement failed with ORACLE error 4042:
    "GRANT EXECUTE ON "PKG_URI_MGT" TO "MHUB_UPDATE_ROLE""
    =======================
    Please help me tp solve this.
    regards
    Mathew

    Hi,
    I put the Scipt
    CREATE OR REPLACE PACKAGE pkg_ratesheet_cleanup
    IS
    -- To modify this template, edit file PKGSPEC.TXT in TEMPLATE
    -- directory of SQL Navigator
    -- Purpose: Cleanup Users, Roles, Organizations and Loans
    -- MODIFICATION HISTORY
    -- Person Date Comments
    -- Enter package declarations as shown below
    l_msg VARCHAR2 (1020) DEFAULT SQLERRM;
    l_code NUMBER DEFAULT SQLCODE;
    sql_string VARCHAR2 (10000);
    TYPE cv_type IS REF CURSOR;
    /*temp_user_row HUBUSER%ROWTYPE;
    temp_role_row ROLE%ROWTYPE;
    temp_org_row ORGANIZATION%ROWTYPE;
    temp_loan_row LOAN%ROWTYPE;*/
    -- Delete uri, object, parent_binding and version
    PROCEDURE delete_objects (argratesheetname VARCHAR2);
    -- Delete ratesheets
    PROCEDURE delete_ratesheets (argratesheetname VARCHAR2);
    END; -- Package spec
    in a file.(pkg_ratesheet_cleanup.sql) and executed.
    OUTPUT
    ======
    SLIDE-SQL> @pkg_ratesheet_cleanup.sql
    CREATE OR REPLACE PACKAGE pkg_ratesheet_cleanup
    ERROR at line 1:
    ORA-01031: insufficient privileges
    regards
    Mathew

  • I can't fix ORA-12545 , please help me

    Hi,i'm student,i studying Oracle DBA,and now i setup client-server model, Oracle Server is win 2k3, oracle Client is linux(CENTOS) but i can't connect from client to server when i using SQLPLUS in client and this's notice ORA-12545: Connect failed because target host or object does not exist
    I was reading some topic about this error,but i can't fix it
    and this's LSNRCTL status : http://nguy-hiem.co.cc/a.png
    and this's tnsnames.ora : http://nguy-hiem.co.cc/b.png
    what should i do ? please help me
    THANK

    837251 wrote:
    Thank for your support
    And this's results when i run command tnsping orcl
    http://nguy-hiem.co.cc/c.png
    (Sorry i must use shots because this forum don't allow when i posting special word)
    No you don't must use screenshots. At the point you were when you took the screen shot, you had already selected the text for copying. All you had to do was click "edit", then "copy", and you could have pasted the selected text right into your post on this forum.
    I just finished writing a blog post about this very error yesterday. http://edstevensdba.wordpress.com/posts/
    And it's obvious from other evidence on that screenshot
    bash: ./tnsping: No such file or directoryThat you don't have $ORACLE_HOME/bin added to your PATH. You need to fix that as well.
    But i don't want to use ORCL,i was create new database that's QLHS
    Edited by: 837251 on 10:15 27-02-2011Edited by: EdStevens on Feb 27, 2011 2:33 PM

  • Can't compile PHP5.2 with Oracle ORA support, please help!

    Hi peoples,
    first post on here - hope someone can assist.
    I am compiling PHP 5.2 on RedHat Enterprise 4 AS intel 64bit with oracle ORA and LDAP support compiled in. I am using Apache 2.0.52-28 installed from RedHat RPMs.
    I am using the following configure line:
    ./configure with-apxs2=/usr/sbin/apxs with-config-file-path=/etc/httpd/conf with-oracle=/export/oracle/pegasus/product/9.2.0 with-ldap=/usr enable-sigchild enable-libgcc
    The only oracle related messages I have found during the configuration are:
    checking for Oracle (OCI8) support... no
    checking Oracle OCI support for PDO... no
    However I am told these are newer methods of Oracle communication protocols and not related to what I am trying to achieve.
    After building and installing PHP 5.2, reconfiguring apache httpd.conf and restarting httpd I find that the output of phpinfo.php shows no mention of oracle whatsoever apart from the Configure Command section at the beginning confirming that yes, --with-oracle= was specified.
    I have tried setting ORACLE_HOME=/export/oracle/pegasus/product/9.2.0 environment variable before running ./configure but to no avail.
    I have also tried adding various Oracle environment variables to my startup scripts for Apache, also to no avail.
    Any ideas? I am really under the pump to get this sorted as it is for a new production server here and I am limited timewise to get it up and running.
    Cheers
    Andy

    Hi Andy,
    I have php 5.2 installed on a RH 64 bits so our configurations are almost the same (I use Apache 1.3 and Oracle 10g).
    I compiled 5.2 from source succesfully with this instruction:
    ./configure with-config-file-path=/opt/apache with-libdir=lib64 with-oci8=/opt/oracle/orase/oracle/product/10.2.0/db_1 with-apxs=/opt/apache/bin/apxs --enable-sigchildReplace the required values to match your system and try to see if it works for you.
    Let me know how it goes. Any additional problem, I'm glad to help.

  • I am getting error in below code  ERROR ORA-06530 Please help

    function get_master_client3(i_gid                    IN VARCHAR2
                                       , i_status IN VARCHAR2
                                       , i_legal_name               IN     VARCHAR2
                                       , i_conformed_name IN VARCHAR2
                                       , i_alias_name               IN VARCHAR2
                                       , i_former_name           IN VARCHAR2
                                       , i_address                    IN     VARCHAR2
                                       , i_city                    IN     VARCHAR2
                                       , i_postal                    IN     VARCHAR2
                                       , i_state                    IN VARCHAR2
                                       , i_country_code          IN      VARCHAR2
                                       , i_incorporation          IN     VARCHAR2
                                       , i_reg_type               IN     VARCHAR2
                                       , i_reg_code               IN     VARCHAR2
                                       , i_industry_code          IN     VARCHAR2
                                       , i_source_system          IN     VARCHAR2
                                       , i_client_type               IN     VARCHAR2
                                       , i_include_branches IN VARCHAR2 )
    return types.ref_cursor AS
    gcr_cursor types.ref_cursor;
    o_gcr_cursor types.ref_cursor;
    Type gcr_cursor_record_t is record (UICON varchar2(1000),COMPANYGID varchar2(1000),COMPANYNAME varchar2(1000),
    DOMICILE varchar2(1000), ULTIMATENAME varchar2(1000) ,ULTIMATEGID varchar2(1000) , ISO2CODE varchar2(1000), ENTITY varchar2(1000) ,
    SHORTNAME varchar2(1000));
    Type gcrtableType_t is table of gcr_cursor_record_t INDEX BY PLS_INTEGER;
    GCRTABLE_t gcrtableType_t;
    GCRTABLE gcrtableType := gcrtableType(gcr_cursor_record(null,null,null,null,null,null,null,null,null));
    -- i integer;
    begin
    gcr_cursor := GCR.get_master_client( i_gid, i_status , i_legal_name, i_conformed_name, i_alias_name, i_former_name
                                                 , i_address     , i_city, i_postal, i_state     , i_country_code, i_incorporation, i_reg_type, i_reg_code
                                                      , i_industry_code, i_source_system, i_client_type     , i_include_branches );
    fetch gcr_cursor bulk collect into GCRTABLE_t;
    for i in 1..GCRTABLE_t.COUNT LOOP
    GCRTABLE.EXTEND;
    dbms_output.put_line(GCRTABLE_t(i).UICON);
    GCRTABLE(i).UICON := 0 ;
    GCRTABLE(i).UICON := GCRTABLE_t(i).UICON;
    GCRTABLE(i).COMPANYGID := GCRTABLE_t(i).COMPANYGID; ******************************** ERROR at this LIne ORA-06530
    -- GCRTABLE(i).COMPANYNAME := GCRTABLE_t(i).COMPANYNAME;
    -- GCRTABLE(i).DOMICILE := GCRTABLE_t(i).DOMICILE;
    -- GCRTABLE(i).ULTIMATENAME := GCRTABLE_t(i).ULTIMATENAME;
    -- GCRTABLE(i).ULTIMATEGID := GCRTABLE_t(i).ULTIMATEGID;
    -- GCRTABLE(i).ISO2CODE := GCRTABLE_t(i).ISO2CODE;
    -- GCRTABLE(i).ENTITY := GCRTABLE_t(i).ENTITY;
    -- GCRTABLE(i).SHORTNAME := GCRTABLE_t(i).SHORTNAME;
    -- GCRTABLE(i) := gcrtableType(GCRTABLE_t(i).UICON,GCRTABLE_t(i).COMPANYGID,GCRTABLE_t(i).COMPANYNAME,GCRTABLE_t(i).DOMICILE,GCRTABLE_t(i).ULTIMATENAME,GCRTABLE_t(i).ULTIMATEGID,GCRTABLE_t(i).ISO2CODE,GCRTABLE_t(i).ENTITY,GCRTABLE_t(i).SHORTNAME);
    -- GCRTABLE(i) := gcrtableType(gcr_cursor_record(null,null,null,null,null,null,null,null,null));
    END LOOP;

    I'm sure you understand that "line 1236" doesn't mean much to any of us?
    For starters, I think you are missing an "END;" to it all, aren't you?
    Here is your code auto-formatted, at least:
    /* Formatted on 15.04.2009 10:38:41 (QP5 v5.114.809.3010) */
    FUNCTION get_master_client3 (i_gid                IN VARCHAR2,
                                 i_status             IN VARCHAR2,
                                 i_legal_name         IN VARCHAR2,
                                 i_conformed_name     IN VARCHAR2,
                                 i_alias_name         IN VARCHAR2,
                                 i_former_name        IN VARCHAR2,
                                 i_address            IN VARCHAR2,
                                 i_city               IN VARCHAR2,
                                 i_postal             IN VARCHAR2,
                                 i_state              IN VARCHAR2,
                                 i_country_code       IN VARCHAR2,
                                 i_incorporation      IN VARCHAR2,
                                 i_reg_type           IN VARCHAR2,
                                 i_reg_code           IN VARCHAR2,
                                 i_industry_code      IN VARCHAR2,
                                 i_source_system      IN VARCHAR2,
                                 i_client_type        IN VARCHAR2,
                                 i_include_branches   IN VARCHAR2)
       RETURN types.ref_cursor
    AS
       gcr_cursor     types.ref_cursor;
       o_gcr_cursor   types.ref_cursor;
       TYPE gcr_cursor_record_t
       IS
          RECORD (
             UICON          varchar2 (1000),
             COMPANYGID     varchar2 (1000),
             COMPANYNAME    varchar2 (1000),
             DOMICILE       varchar2 (1000),
             ULTIMATENAME   varchar2 (1000),
             ULTIMATEGID    varchar2 (1000),
             ISO2CODE       varchar2 (1000),
             ENTITY         varchar2 (1000),
             SHORTNAME      varchar2 (1000)
       TYPE gcrtableType_t
       IS
          TABLE OF gcr_cursor_record_t
             INDEX BY PLS_INTEGER;
       GCRTABLE_t     gcrtableType_t;
       GCRTABLE gcrtableType
             := gcrtableType (gcr_cursor_record (NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL,
                                                 NULL)) ;
        -- i integer;
    BEGIN
       gcr_cursor :=
          GCR.get_master_client (i_gid,
                                 i_status,
                                 i_legal_name,
                                 i_conformed_name,
                                 i_alias_name,
                                 i_former_name,
                                 i_address,
                                 i_city,
                                 i_postal,
                                 i_state,
                                 i_country_code,
                                 i_incorporation,
                                 i_reg_type,
                                 i_reg_code,
                                 i_industry_code,
                                 i_source_system,
                                 i_client_type,
                                 i_include_branches);
       FETCH gcr_cursor BULK COLLECT INTO   GCRTABLE_t;
       FOR i IN 1 .. GCRTABLE_t.COUNT
       LOOP
          GCRTABLE.EXTEND;
          DBMS_OUTPUT.put_line (GCRTABLE_t (i).UICON);
          GCRTABLE (i).UICON := 0;
          GCRTABLE (i).UICON := GCRTABLE_t (i).UICON;
          GCRTABLE (i).COMPANYGID := GCRTABLE_t (i).COMPANYGID;
       -- GCRTABLE(i).COMPANYNAME := GCRTABLE_t(i).COMPANYNAME;
       -- GCRTABLE(i).DOMICILE := GCRTABLE_t(i).DOMICILE;
       -- GCRTABLE(i).ULTIMATENAME := GCRTABLE_t(i).ULTIMATENAME;
       -- GCRTABLE(i).ULTIMATEGID := GCRTABLE_t(i).ULTIMATEGID;
       -- GCRTABLE(i).ISO2CODE := GCRTABLE_t(i).ISO2CODE;
       -- GCRTABLE(i).ENTITY := GCRTABLE_t(i).ENTITY;
       -- GCRTABLE(i).SHORTNAME := GCRTABLE_t(i).SHORTNAME;
       -- GCRTABLE(i) := gcrtableType(GCRTABLE_t(i).UICON,GCRTABLE_t(i).COMPANYGID,GCRTABLE_t(i).COMPANYNAME,GCRTABLE_t(i).DOMICILE,GCRTABLE_t(i).ULTIMATENAME,GCRTABLE_t(i).ULTIMATEGID,GCRTABLE_t(i).ISO2CODE,GCRTABLE_t(i).ENTITY,GCRTABLE_t(i).SHORTNAME);
       -- GCRTABLE(i) := gcrtableType(gcr_cursor_record(null,null,null,null,null,null,null,null,null));
       END LOOP;
    END;

  • Error ORA-600, please help me

    Hello,
    My computer planted while I had the base of gone up datum. I not more to open my data base: error ora-600, how to make to remedy this probleme??
    Thank you in advance

    plz go in some detail ,what do u want to do while get this error
    peeyush

  • Procedure Error, Urgent please help ?!

    I have create a program unit in dev 6.0, this program run with trigger WHEN-NEW-FORM-INSTANCE.
    My table is
    KODE KET
    10 TEST1
    20 TEST2
    30 TEST3
    My procedure is
    Declare
    vkode number(2);
    vket varchar2(14);
    CURSOR TEST_cur IS SELECT Kode, Ket FROM PUSAT.TEST ORDER BY Ket Desc;
    Begin
    OPEN TEST_cur;
    Loop
    FETCH TEST_cur INTO vkode, vket;
    EXIT WHEN TEST_cur%NOTFOUND;
    message(vkode);
    End Loop;
    CLOSE TEST_cur;
    End;
    but, i have message error :
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-00942
    please help me, i don't know how to solve this error.
    Thank you
    hendra
    null

    Use exceptions like :
    Begin
    OPEN TEST_cur;
    Loop
    FETCH TEST_cur INTO vkode, vket;
    EXIT WHEN TEST_cur%NOTFOUND;
    message(vkode);
    End Loop;
    CLOSE TEST_cur;
    Exception
    when no_data_found then
    message (There is no data to find');
    End;
    null

  • Import error IMP-00017 and ORA-01950 no privileges on tablespace

    Hi,
    I am trying to do a full import into a 10.2.0.4 database from a 9.2.0.6 export dumpfile. The tablespaces have already been pre-created. I got this error on one tablespace, and I can't figure out why because I was using SYS to do import, how come SYS doesn`t have this privilege. All objects in other tablespaces were created without this problem.
    - IMP-00017: following statement failed with ORACLE error 1950:
         "CREATE TABLE "FYAERLG" ...
    - ORA-01950: no privileges on tablespace 'INFOTABLES'
    Please help.
    Thanks
    -lixidon

    Who is the owner of "FYAERLG" ?
    Try granting the owner of the table, quota on INFOTABLES tablespace.
    **Added**
    Note [95554.1|https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=95554.1] explains a scenario,which could be the reason for this failure.
    Edited by: Bobcatalog on Jan 8, 2009 12:49 PM

  • Please help: Case Statement - ORA-01722: invalid number Error

    Hi All,
    I'm trying to use Case statement to recode Cancelled statuses into two groups
    'Reject' if the difference between first date and last date is less than 29 and
    'Accept' if the difference between first date and last date is greater than 30
    Here is my 'test' data:
    STATUS     FIRST_DATE     LAST_DATE
    Transfer     10/08/2011     10/09/2011
    Mover     10/08/2011     15/09/2011
    Cancel     10/08/2011     16/09/2011
    Cancel     10/08/2011     5/09/2011
    Here is the syntax
    select a.*,
    (CASE WHEN a.STATUS ='Cancel' THEN (round(a.LAST_DATE-a.FIRST_DATE))
    ELSE 0
    END) CAN_DAYS,
    (CASE WHEN 'CAN_DAYS' >29 THEN 'Reject'
    WHEN 'CAN_DAYS' <30 THEN 'Accept'
    END) Reject_Accept
    from test a
    The first CASE statement works fine and gives me this
    STATUS     FIRST_DATE     LAST_DATE     CAN_DAYS
    Transfer     10/08/2011     10/09/2011     0
    Mover     10/08/2011     15/09/2011     0
    Cancel     10/08/2011     16/09/2011     37
    Cancel     10/08/2011     5/09/2011     26
    but the second CASE produces ORA-01722: invalid number Error. It is something to do with the CAN_DAYS data type, Oracle doesn't see it as Numeric i think.
    The result i want to see would be
    STATUS     FIRST_DATE     LAST_DATE     CAN_DAYS Reject_Accept
    Transfer     10/08/2011     10/09/2011     0
    Mover     10/08/2011     15/09/2011     0
    Cancel     10/08/2011     16/09/2011     37 Accept
    Cancel     10/08/2011     5/09/2011     26 Reject
    Could someone please help me to fix the syntax?
    Thank you in advance,

    This seems to give you your desired results...
    with test as
      ( select 'Transfer' as status, to_date('10/08/2011') as first_date, to_date('10/09/2011') as last_date  from dual union all
        select 'Mover'             , to_date('10/08/2011')              , to_date('15/09/2011')               from dual union all
        select 'Cancel'            , to_date('10/08/2011')              , to_date('16/09/2011')               from dual union all
        select 'Cancel'            , to_date('10/08/2011')              , to_date('05/09/2011')               from dual
    select  status
         ,  first_date
         ,  last_date
         ,  CAN_DAYS
         ,  CASE
              WHEN CAN_DAYS =   0 THEN NULL
              WHEN CAN_DAYS <  30 THEN 'Reject'
              WHEN CAN_DAYS >= 30 THEN 'Accept'
            END  Reject_Accept
      from  ( select  status
                   ,  first_date
                   ,  last_date
                   ,  CASE
                        WHEN STATUS ='Cancel' THEN round(LAST_DATE-FIRST_DATE)
                        ELSE 0
                      END  CAN_DAYS
                from  test
    ;

  • Ora-01403 no data found cursor error - Please help.

    DECLARE
    name1 talent.candidate_name%TYPE; -- Declare variables
    name2 long; -- Declare variables
    emp_id talent_id.emplid%TYPE;
    NO_DATA_FOUND EXCEPTION;
    CURSOR c1 IS
    select candidate_name,(''''||trim(upper(candidate_name))||'''') as tst from talent ;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    EXIT WHEN c1%NOTFOUND; -- TRUE when FETCH finds no more rows
    select distinct emplid
    INTO emp_id
    from names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name2;
    INSERT INTO talent_id VALUES (emp_id, name1);
    END LOOP;
    CLOSE c1;
    COMMIT;
    Question: Above queries prompt me error msg ora-01403 no data found for emplid. I try but fail to solve it. Please help me. Thank you
    Edited by: user12051088 on Mar 4, 2010 1:38 AM
    Edited by: user12051088 on Mar 4, 2010 1:40 AM

    Yes, this is very helpful :-)
    My testing to insert table where emplid is null but still having error ora-01403 no data found when i remove on dbms_output.put_line as shown below:
    Anyway, if i dint remove the dbms_output.put_line. It is working to insert emp_id is not null. How do I include record which emp_id is null? Thank you.
    begin
    select distinct emplid
    INTO emp_id
    from gdw_names a
    where a.name_type = 'PRI'
    and upper(a.last_name)||', '||upper(a.first_name) = name1;
    IF emp_id is null THEN
    RAISE no_data_found;
    else
    INSERT INTO gdw_talent_id VALUES (emp_id, name1);
    end if;
    exception
    when no_data_found then
    INSERT INTO gdw_talent_id VALUES (null, name1);
    --when too_many_rows then
    -- dbms_output.put_line('too many rows for ' || name1);
    -- when others then
    -- dbms_output.put_line('Unknown error for ' || name1);
    end;
    Edited by: user12051088 on Mar 4, 2010 9:11 PM

  • Import data - errors: IMP-00017, IMP-00003, ORA-04052, ORA-00604, ORA-12154

    When I try to import data from dmp file to my database I found errors whitch repeat all time..
    First console show me:
    IMP-00017: following statement failed with ORACLE error 4052
    then show all procedure in which there are errors. After procedure I've got:
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve service name
    IMP-00017: following statement failed with ORACLE error 4043:
    "ALTER PROCEDURE "CHECK_TIMESTAMP" COMPILE TIMESTAMP '2006-09-18:14:45:"
    "05'"
    IMP-00003: ORACLE error 4043 encountered
    ORA-04043: object CHECK_TIMESTAMP does not exist
    and after that the same errors for another procedures :( What can I do??

    ORA-04052: error occurred when looking up remote
    object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve service name
    and after that the same errors for another procedures
    :( What can I do??Fix the tnsnames.ora i.e. name resolution problem (lookup the description for ora-12154).

  • How to check if my IMP parfile is okey without executing.please help.

    Hi guyz,
    please tell me how can i check my IMP parfile without executing it.
    one of my colleagues told that it can be done but he did,nt tell how :-(
    please help.
    Thnxxxxx in advance,
    Navneet Kaur

    Hi Navneet,
    You might get more help with this if you post to the database forum (General Database Discussions
    From recollection I think it will depend on what you have in your parfile - if your parfile ONLY specifies what tables to import i.e. tables=table1,table2 etc
    then use the following command:
    imp username/passord file=mydmpfile.dmp parfile=myparfile.par show=y
    and this will list what would be imported without actually doing anything.
    Lawrence

  • ORA-01017: invalid username/password; logon denied(Please help)

    Hi
    I have read few thread of the above problem..but still i cant figure out where is the problem..
    i am installing oracle vm manager 3.0.1
    i m following this
    http://www.oracle-base.com/articles/vm/OVM3Installation.php
    i have added the following lines to /etc/pam.d/login
    session required /lib/security/pam_limits.so
    session required pam_limits.so
    permission for u01 is as fofollows:::
    drwxrwxr-x 3 oracle oinstall 4096 Sep 6 2011 u01
    and i have set the password for "oracle" user
    and i am keeping same password for every account
    but i am seeing bellow error
    Retrieving Oracle Database 11g XE ...
    Installing Oracle Database 11g XE ...
    Configuring Oracle Database 11g XE ...
    Step 2 of 9 : Java ...
    Installing Java ...
    Step 3 of 9 : Database Schema ...
    Creating database schema 'ovs' ...
    Failed to find Oracle VM schema in Oracle Database
    ORA-01017: invalid username/password; logon denied
    can any one please please help me with this problem
    i am realy stuck
    if i hvae to setup enviromental variable.. could you please tel me how ... if that is the reason for this problem..
    im confused about oracle path : ref: http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnEnterpriseLinux4and5.php
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    ===================
    what will i put for ORACLE_HOME, because my path is like
    cd /u01/app/oracle/product/11.2.0/xe/
    I dont have db_1 ..
    Please some one give me some light..
    thanks
    Edited by: 881083 on 05-Sep-2011 16:15
    Edited by: Fosiul on 06-Sep-2011 15:08

    I was reading on gogole
    i have set
    alter system set SEC_CASE_SENSITIVE_LOGON=false scope=spfile;
    now i can connect from sqlplus
    sqlplus SYSTEM/password
    also
    sqlplus SYSTEM/password@localhost:1521/XE
    also :
    From GUI i can connect to oracle db from http by port 8080
    but its seems like oracle VM manager does not connect ...
    example
    Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?
    1: Install Oracle Database 11g XE
    2: Use an existing Oracle database
    Select Number (1-2): 2
    Enter the Oracle Database hostname [localhost]:
    Enter the Oracle Database System ID (SID) [XE]:
    Enter the Oracle Database SYSTEM password:
    Enter the Oracle Database listener port [1521]:
    Enter the Oracle VM Manager database schema [ovs]:
    Enter the Oracle VM Manager database schema password:
    Enter the Oracle VM Manager database schema password (confirm):
    Oracle Weblogic Server 11g
    ==========================
    Enter the Oracle WebLogic Server 11g user [weblogic]:
    Enter the Oracle WebLogic Server 11g user password:
    Enter the Oracle WebLogic Server 11g user password (confirm):
    Oracle VM Manager application
    =============================
    Enter the username for the Oracle VM Manager administration user [admin]:
    Enter the admin user password:
    Enter the admin user password (confirm):
    Verifying configuration ...
    The database could not be reached using the provided connection info.
    ORA-01017: invalid username/password; logon denied
    Configuration verification failed ...
    can any one please help me

  • PLEASE HELP!!!!!!! ORA-12154

    I installed Oracle10g XE on my laptop on VISTA.
    Im able to connect to sqlplus using -> sqlplus system/password@XE
    Then i installed PL/SQL developer and Im NOT ABLE TO CONNECT with the same credentials. Throws me error: ORA-12154:TNS:Could not resolve the connect identifier Specified
    2. My Listener status is:
    C:\Users\avishek>lsnrctl status
    4. My LSNRCTL for 32-bit Windows:
    Version 10.2.0.1.0 - Production on 05-JUN-2008 23:47:12
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 05-JUN-2008 22:03:03
    Uptime 0 days 1 hr. 44 min. 9 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
    og\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    4. My TNSNAMES.ora is:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = AvisLaptop)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    5. My SQLNET.ora has this entry:
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    6. My listener.ora entry is:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = AvisLaptop)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    7. I ve only one copy of each of the above mentioned .ora files
    8. PLEASE HELP!!!!!!!
    9. thanks in advance

    Hi Peter
    Thanks for ur reply!
    1. I jus have one Oracle Home installed on my laptop (vista). there is jus one ORACLE_HOME Environment variable! Only one installation of oracle!!!!
    2. Yes, I did try to connect thru Sqlplus and Im able to connect.
    3. listener log is:
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 00:53:44
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2768
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    06-JUN-2008 00:53:48 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=avishek))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on stop
    06-JUN-2008 00:53:48 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=avishek))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * stop * 0
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 00:53:52
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2328
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    06-JUN-2008 00:54:23 * service_register * xe * 0
    06-JUN-2008 00:55:29 * service_update * xe * 0
    06-JUN-2008 00:55:31 * service_update * xe * 0
    06-JUN-2008 00:55:33 * service_died * xe * 12537
    06-JUN-2008 00:55:37 * service_register * xe * 0
    06-JUN-2008 00:55:38 * service_update * xe * 0
    06-JUN-2008 00:55:40 * service_update * xe * 0
    06-JUN-2008 00:55:55 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 00:55:58 * service_update * xe * 0
    06-JUN-2008 00:56:04 * service_update * xe * 0
    06-JUN-2008 00:56:07 * service_update * xe * 0
    06-JUN-2008 00:56:10 * service_update * xe * 0
    06-JUN-2008 00:56:10 * service_update * xe * 0
    06-JUN-2008 00:56:16 * service_update * xe * 0
    06-JUN-2008 00:56:22 * service_update * xe * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 00:56:25 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 00:56:25 * service_update * xe * 0
    06-JUN-2008 00:56:28 * service_update * xe * 0
    06-JUN-2008 00:56:31 * service_update * xe * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 00:56:34 * service_died * xe * 12537
    06-JUN-2008 00:56:37 * service_register * xe * 0
    06-JUN-2008 00:56:38 * service_update * xe * 0
    06-JUN-2008 00:56:44 * service_update * xe * 0
    06-JUN-2008 00:56:47 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 00:56:50 * service_update * xe * 0
    06-JUN-2008 00:56:53 * service_update * xe * 0
    06-JUN-2008 00:56:56 * service_update * xe * 0
    06-JUN-2008 00:57:16 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49185)) * handoff * http * 0
    06-JUN-2008 00:57:26 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49189)) * handoff * http * 0
    06-JUN-2008 00:57:35 * service_update * xe * 0
    06-JUN-2008 00:57:53 * service_update * xe * 0
    06-JUN-2008 00:58:00 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49190)) * handoff * http * 0
    06-JUN-2008 00:58:05 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49191)) * handoff * http * 0
    06-JUN-2008 00:58:26 * service_update * xe * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 01:03:36 * service_died * xe * 12547
    TNS-12547: TNS:lost contact
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 01:04:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2120
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    06-JUN-2008 01:04:58 * service_register * xe * 0
    06-JUN-2008 01:05:19 * service_update * xe * 0
    06-JUN-2008 01:05:22 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 01:05:25 * service_update * xe * 0
    06-JUN-2008 01:05:28 * service_update * xe * 0
    06-JUN-2008 01:05:34 * service_update * xe * 0
    06-JUN-2008 01:05:52 * service_update * xe * 0
    06-JUN-2008 01:07:55 * service_update * xe * 0
    06-JUN-2008 01:08:24 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49173)) * establish * XE * 0
    06-JUN-2008 01:08:25 * service_update * xe * 0
    06-JUN-2008 01:14:25 * service_update * xe * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 01:14:42 * service_died * xe * 12547
    TNS-12547: TNS:lost contact
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 21:46:07
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2340
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    06-JUN-2008 21:46:13 * service_register * xe * 0
    06-JUN-2008 21:46:19 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 21:46:22 * service_update * xe * 0
    06-JUN-2008 21:46:25 * service_update * xe * 0
    06-JUN-2008 21:46:31 * service_update * xe * 0
    06-JUN-2008 21:46:52 * service_update * xe * 0
    06-JUN-2008 21:47:25 * service_update * xe * 0
    06-JUN-2008 21:49:46 * service_update * xe * 0
    06-JUN-2008 21:55:31 * service_update * xe * 0
    06-JUN-2008 21:57:22 * service_update * xe * 0
    06-JUN-2008 21:57:31 * service_update * xe * 0
    06-JUN-2008 22:03:40 * service_update * xe * 0
    06-JUN-2008 22:04:25 * service_update * xe * 0
    06-JUN-2008 22:06:10 * service_update * xe * 0
    06-JUN-2008 22:07:28 * service_update * xe * 0
    06-JUN-2008 22:11:01 * service_update * xe * 0
    06-JUN-2008 22:13:25 * service_update * xe * 0
    06-JUN-2008 22:17:34 * service_update * xe * 0
    06-JUN-2008 22:27:34 * service_update * xe * 0
    06-JUN-2008 22:32:00 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49440)) * establish * XE * 0
    06-JUN-2008 22:32:01 * service_update * xe * 0
    06-JUN-2008 22:32:37 * service_update * xe * 0
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 22:34:08 * service_died * xe * 12547
    TNS-12547: TNS:lost contact
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2008 22:35:14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Trace information written to C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2248
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AvisLaptop)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    06-JUN-2008 22:35:35 * service_register * xe * 0
    06-JUN-2008 22:35:41 * service_update * xe * 0
    06-JUN-2008 22:35:56 * service_update * xe * 0
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    06-JUN-2008 22:35:59 * service_update * xe * 0
    06-JUN-2008 22:36:02 * service_update * xe * 0
    06-JUN-2008 22:36:08 * service_update * xe * 0
    06-JUN-2008 22:36:29 * service_update * xe * 0
    06-JUN-2008 22:36:43 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49167)) * establish * XE * 0
    06-JUN-2008 22:36:45 * service_update * xe * 0
    06-JUN-2008 22:37:36 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49173)) * handoff * http * 0
    06-JUN-2008 22:37:45 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=49177)) * handoff * http * 0
    06-JUN-2008 22:39:27 * service_update * xe * 0
    06-JUN-2008 22:41:54 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)(CID=(PROGRAM=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus.exe)(HOST=AVISLAPTOP)(USER=avishek))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.12)(PORT=49228)) * establish * XE * 0
    06-JUN-2008 22:41:57 * service_update * xe * 0
    06-JUN-2008 22:50:54 * service_update * xe * 0
    06-JUN-2008 22:51:42 * service_update * xe * 0
    4. Credentials im giving for PLSQL dev are:
    Username: system
    Pwd: <my passwrd>
    Database: XE
    Connect as: Normal
    Please help peter...thanks in advance!
    Avi.

  • Urgent Please help: ORA-00940: invalid ALTER command

    I am not able to start my oracle db that is running Solaris 10, Oracle 10g.
    I made the following changes to Oracle Parameter and now I am not able to start.
    alter system set "_fix_control"='5705630:ON' scope=spfile;
    I get this error: ORA-00940: invalid ALTER command
    I am not even able to reset that parameter back, since oracle db won't start?
    I get this error when i run "startsap: on command
    Please help
    Thanks
    Kuamr
    Message was edited by:
            Kumar Subramaniam
    Message was edited by:
            Kumar Subramaniam

    I have renameed the spfile and try to start sap using initPR2.ora file and it worked fine and then I did this to re-create teh spfile.
    sqlplus / assysdba
    create spfile from pfile;
    shutdown immediate;
    startup;
    Everything works fine.
    Thanks for the quick response.

Maybe you are looking for