Downcasting In Object PL/SQL Does not Work in Oracle 10g 10.1.0.2

create type one_t as object (
x number, y date ) not final
create type two_t under one_t()
set serverout on
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := new two_t(1, sysdate);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
The Other Piece Does not Even Compile
declare
super one_t;
sub two_t := two_t(1, sysdate);
begin
super := one_t(1, sysdate);
sub := treat(super as two_t);
dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
select treat(super as two_t) into sub from dual;
dbms_output.put_line('super ' || super.x || ' ' || super.y );
if sub is null then
dbms_output.put_line('stupid');
end if;
if sub is of (two_t) then
dbms_output.put_line('stupid');
end if;
end;
ORA-06502: PL/SQL: numeric or value error: cannot assign supertype instance to
subtype
ORA-06512: at line 6

You need use correct type when you create object.
Don't forget object in reality is a memory pointer,
so what if you don't allocate correct memory in creation,
you can't treat object as subtype.
And meanwhile, it doesn't depend on Oracle version -
your example doesn't work in 9.2.0.1 for example.
SQL> declare
  2  super one_t;
  3  sub two_t := two_t(1, sysdate);
  4  begin
  5  super := two_t(1, sysdate);
  6  sub := treat(super as two_t);
  7  dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
  8  select treat(super as two_t) into sub from dual;
  9  dbms_output.put_line('super ' || super.x || ' ' || super.y );
10  if sub is null then
11  dbms_output.put_line('stupid');
12  end if;
13  if sub is of (two_t) then
14  dbms_output.put_line('stupid');
15  end if;
16  end;
17  /
sub 1 08.06.05
super 1 08.06.05
stupid
&nbsp
PL/SQL procedure successfully completed.Rgds.

Similar Messages

  • Downcasting in Object PL/SQL Does not Work in Oracle 10g Enterprise Edition

    create type one_t as object (
    x number, y date ) not final
    create type two_t under one_t()
    set serverout on
    declare
    super one_t;
    sub two_t := two_t(1, sysdate);
    begin
    super := one_t(1, sysdate);
    sub := new two_t(1, sysdate);
    dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
    select treat(super as two_t) into sub from dual;
    dbms_output.put_line('super ' || super.x || ' ' || super.y );
    if sub is null then
    dbms_output.put_line('stupid');
    end if;
    if sub is of (two_t) then
    dbms_output.put_line('stupid');
    end if;
    end;
    The Other Piece Does not Even Compile
    declare
    super one_t;
    sub two_t := two_t(1, sysdate);
    begin
    super := one_t(1, sysdate);
    sub := treat(super as two_t);
    dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
    select treat(super as two_t) into sub from dual;
    dbms_output.put_line('super ' || super.x || ' ' || super.y );
    if sub is null then
    dbms_output.put_line('stupid');
    end if;
    if sub is of (two_t) then
    dbms_output.put_line('stupid');
    end if;
    end;
    ORA-06502: PL/SQL: numeric or value error: cannot assign supertype instance to
    subtype
    ORA-06512: at line 6

    You need use correct type when you create object.
    Don't forget object in reality is a memory pointer,
    so what if you don't allocate correct memory in creation,
    you can't treat object as subtype.
    And meanwhile, it doesn't depend on Oracle version -
    your example doesn't work in 9.2.0.1 for example.
    SQL> declare
      2  super one_t;
      3  sub two_t := two_t(1, sysdate);
      4  begin
      5  super := two_t(1, sysdate);
      6  sub := treat(super as two_t);
      7  dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
      8  select treat(super as two_t) into sub from dual;
      9  dbms_output.put_line('super ' || super.x || ' ' || super.y );
    10  if sub is null then
    11  dbms_output.put_line('stupid');
    12  end if;
    13  if sub is of (two_t) then
    14  dbms_output.put_line('stupid');
    15  end if;
    16  end;
    17  /
    sub 1 08.06.05
    super 1 08.06.05
    stupid
    &nbsp
    PL/SQL procedure successfully completed.Rgds.

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2

    928714 wrote:
    yes sir.If you help me in answering my questions i wll be very thankful to you sir.
    tnx,I haven't a clue.
    As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
    For me to answer your questions, I would need to go get that documentation.
    Then I would need to read that documentation.
    Then I would need to write a forum post that interprets what I think I learned from that documentation.
    It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.

  • PL/SQL does not work in Oracle 8i Personal Edition

    I just installed Oracle 8i Personal Edition for Win 98. Everything works perfectly, except the PL/SQL.
    Then I tried to install Oracle 8i EM, but I always get the listener or adapter error. Even when I tried to start the listener from lsnrctl prompt, it gives me those errors. Anyone can help?

    You need use correct type when you create object.
    Don't forget object in reality is a memory pointer,
    so what if you don't allocate correct memory in creation,
    you can't treat object as subtype.
    And meanwhile, it doesn't depend on Oracle version -
    your example doesn't work in 9.2.0.1 for example.
    SQL> declare
      2  super one_t;
      3  sub two_t := two_t(1, sysdate);
      4  begin
      5  super := two_t(1, sysdate);
      6  sub := treat(super as two_t);
      7  dbms_output.put_line('sub ' || sub.x || ' ' || sub.y );
      8  select treat(super as two_t) into sub from dual;
      9  dbms_output.put_line('super ' || super.x || ' ' || super.y );
    10  if sub is null then
    11  dbms_output.put_line('stupid');
    12  end if;
    13  if sub is of (two_t) then
    14  dbms_output.put_line('stupid');
    15  end if;
    16  end;
    17  /
    sub 1 08.06.05
    super 1 08.06.05
    stupid
    &nbsp
    PL/SQL procedure successfully completed.Rgds.

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Table_From_Block Build-in Package is not working in Oracle 10G

    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..

    user648759 wrote:
    Hi
    Table_From_Block Build-in Package is not working in Oracle 10G
    Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
    --and explain what on earth Table_From_Block* mean's--
    Tony
    PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
    Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM

  • {@link Object#clone()} , -link does not work!!

    I have a problem with this!!
    Somehow the -link option does not work very well.
    I have ensured that I did correctly set my command option -link to
    -link http://java.sun.com/j2se/1.4.1/docs/api
    I have already imported java.lang.Object at the top of my source code.
    When I tried to use {@link Object#clone()}, it doesnt work at all.
    I have also tried all sorts of names like fully qualified ones and such.
    The hyperlinks do not appear ( i.e. they just appear as plain text but not hyperlinks!!) I realise the ONLY way I can get it to point to the correct link is
    {@link <a href = "http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone()</a>}
    which is very lame.
    I want to be able to write doc @tags such that I do not have to specify the full complete http address.
    Anyone can help ? Thank you very much!!
    P/S: I know this is a bug in 1.2.2 javadoc but I suppose this bug would have been fixed by now....
    Regards
    David

    I would upgrade to 1.4.2. That should fix the problem.
    -Jamie Ho

  • Headstart forms - down key does not work in Oracle Forms 11g

    Just moved forms from 10g to 11g.
    But when run the down key does not work. The .res file looks OK.
    I have included the hst65.jar in the search path for jar-files in formsweb.cfg.
    Anybody had this isssue?

    It was an erroneous .res-file! So problem solved. :-)

  • Insert SQL does not work properly when called using CALL

    I have a stored procedure (TEST_SP) which is used to insert a record in this perticular case. The SQL statement is 2526 characters long. I'm using
    dim Params : Params=chr(1) & "Insert query" & Chr(1) & "=300"
    runsql=&"{call TEST_SP(?,?)}"&Params 
    dim db : db=dbSelect("",0,"","")
    dbExecSQL db,runsqlto execute the stored procedure. I'm facing an issue when the 2000th character on the insert SQL (pUPDSQL) is a single quote, where the SQL is not getting executed (i.e. record is not getting created).
    The same stored procedure and the same SQL when run as below
    runsql=runsql&"DECLARE "
    runsql=runsql&"PUPDSQL VARCHAR2(4000); "
    runsql=runsql&"PRES VARCHAR2(300); "
    runsql=runsql&"BEGIN "
    runsql=runsql&"PUPDSQL := 'INSERT query..."
    runsql=runsql&"PRES:=300; "
    runsql=runsql&"MRT_LKIDFULUP(PUPDSQL => PUPDSQL,PRES => PRES); "
    runsql=runsql&"END; "
    dim db : db=dbSelect("",0,"","")
    dbExecSQL db,runsqlis working fine. Does anyone know if there is a limitaion in ODBC Call function or any explanation to above behaviour? I'm connecting to a Oracle 11g database using Microsoft ODBC for Oracle driver on Window 7
    The stored procedures:
    create or replace procedure TEST_SP(pUPDSQL IN VARCHAR2,pRES OUT VARCHAR2)
    AS
    BEGIN
    DECLARE
      emsg VARCHAR2(100);
    BEGIN
    if pUPDSQL&lt;&gt;'-1' then
      emsg:='Cant exec UPDATE';
      EXECUTE IMMEDIATE pUPDSQL;
        if SQL%RowCount=0 then
        pRES:='ERR:No row updated';
        return;
      end if;
    end if;
    pRES:='OK:';
    EXCEPTION
      WHEN OTHERS THEN
       pRES:='ERR:' || emsg;
    END;
    END;Edited by: BluShadow on 11-Dec-2012 15:47
    added {noformat}{noformat} tags for readability.  Please read {message:id=9360002} and learn to do this yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    ... I'm facing an issue when the 2000th character on the insert SQL (pUPDSQL) is a single quote, ...Perhaps you need two single quotes? like:
    runsql=runsql&"PUPDSQL := 'INSERT query...Values(..,..,,,''This value in two single quotes'',..,...)' "
    ... I'm connecting to a Oracle 11g database using Microsoft ODBC ...Dump windoze ODBC and better use the Oracle client ODBC.
    :p

  • Linux script call from PL/SQL does not work?

    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:
    PROCEDURE run_linux_script_from_oracle IS
        BEGIN
          dbms_scheduler.create_job
              job_name=>'runtop',
              job_type=>'executable',
              job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
              enabled=>true,
              auto_drop=>true
          DBMS_OUTPUT.PUT_LINE('Successful');
        EXCEPTION
          WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
        END;The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???
    Any help would be greatly appreciated.

    Channa wrote:
    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:NO, posted procedure below RUNS nothing,
    post code simply CREATE JOB, but does NOT invoke it!
    >
    PROCEDURE run_linux_script_from_oracle IS
    BEGIN
    dbms_scheduler.create_job
    job_name=>'runtop',
    job_type=>'executable',
    job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
    enabled=>true,
    auto_drop=>true
    DBMS_OUTPUT.PUT_LINE('Successful');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
    END;EXCEPTION handler is BUG & should be removed, discarded & 100% eliminated.
    >
    The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???What is "ABS" & why/how does it exist in error message?

  • SQL file not working in Oracle

    I cannot get all my tables to work in Oracle, can anyone see where i'm going wrong?
    CREATE TABLE Property
    (Property_Num CHAR (4) PRIMARY KEY,
    Property_Address CHAR (25),
    Property_City CHAR (15),
    Property_State CHAR (2),
    Property_Zip CHAR (5),
    Property_Price DECIMAL (15,2),
    Property_Type CHAR (15));
    CREATE TABLE Owner
    (Owner_Num CHAR (3) PRIMARY KEY,
    Property_Num CHAR (4),
    Owner_Name CHAR (15),
    Owner_Telephone CHAR (15));
    CREATE TABLE Inspection
    (Inspection_Code CHAR (4) PRIMARY KEY,
    Inspection_Type CHAR (20),
    Inspection_Description CHAR (30),
    Owner_Num CHAR (3),
    Inspection_Date DATE (15));
    CREATE TABLE Realtor
    (Realtor_Num CHAR (2) PRIMARY KEY,
    Inspection_Code CHAR (4),
    Realtor_Name CHAR (30),
    Realtor_Telephone CHAR (15));
    INSERT INTO Property
    VALUES ('0001', '245 Benner St', 'Philadelphia', 'PA', '19111', '152.000.00', 'Townhome');
    INSERT INTO Property
    VALUES ('0002', '327 Silver Ave', 'Willow Grove', 'PA', '19090', '260.000.00', 'Duplex');     
    INSERT INTO Property
    VALUES ('0003', '9243 Treaty Rd', 'Philadelphia', 'PA', '19114', '190.000.00', 'Single Family');
    INSERT INTO Property
    VALUES ('0004', '225 Chestnut St', 'Philadelphia', 'PA', '19103', '245.000.00', 'Condo');
    INSERT INTO Property
    VALUES ('0005', '511 Franklin Ave', 'Cherry Hill', 'NJ', '08002', '225.000.00'', 'Single Family');
    INSERT INTO Owner
    VALUES ('101', '0001', 'John Smith', '267-333-4667');
    INSERT INTO Owner
    VALUES ('102', '0002', 'Joe Taylor', '215-657-2200');
    INSERT INTO Owner
    VALUES ('103', '0003', 'Debra Jones', '215-745-9087');
    INSERT INTO Owner
    VALUES ('104', '0004', 'Frank Martin', '267-457-9300');
    INSERT INTO Owner
    VALUES ('105', '0005', 'Drew Hunt', '856-908-3200');
    INSERT INTO Inspection
    VALUES ('1001', 'Pre-Listing Check', 'Passed all eight tests', '101', '2/16/10');
    INSERT INTO Inspection
    VALUES ('1002', 'Walk-In', 'Property up to date on requirements', '102', '3/11/10');
    INSERT INTO Inspection
    VALUES ('1003', 'Appointment', 'All checks upo to date', '103', '1/15/10');
    INSERT INTO Inspection
    VALUES ('1004', 'General Check', 'Property is in good shape to sell', '104', '3/14/10');
    INSERT INTO Inspection
    VALUES ('1005', 'Request', 'Everything requested is up to date', '105', '2/22/10');
    INSERT INTO Realtor
    VALUES ('01', '1001', 'Tim Simpson', '267-543-2267');
    INSERT INTO Realtor
    VALUES ('02', '1002', 'Bill Bradley', '215-754-2330');
    INSERT INTO Realtor
    VALUES ('03', '1003', 'Phil Harris', '215-742-6687');
    INSERT INTO Realtor
    VALUES ('04', '1004', 'Sam Brown', '267-277-5500');
    INSERT INTO Realtor
    VALUES ('05', '1005', 'April Young', '856-228-3550');

    I changed everything, can someone please check these tables in Oracle. I am in school with no access to Oracle.
    CREATE TABLE Property
    (Property_Num CHAR (4) PRIMARY KEY,
    Property_Address CHAR (25),
    Property_City CHAR (15),
    Property_State CHAR (2),
    Property_Zip CHAR (5),
    Property_Price DECIMAL (15,2),
    Property_Type CHAR (15));
    CREATE TABLE Owner
    (Owner_Num CHAR (3) PRIMARY KEY,
    Property_Num CHAR (4),
    Owner_Name CHAR (15),
    Owner_Telephone CHAR (15));
    CREATE TABLE Inspection
    (Inspection_Code CHAR (4) PRIMARY KEY,
    Inspection_Type CHAR (20),
    Inspection_Description CHAR (40),
    Owner_Num CHAR (3),
    Inspection_Date DATE );
    CREATE TABLE Realtor
    (Realtor_Num CHAR (2) PRIMARY KEY,
    Inspection_Code CHAR (4),
    Realtor_Name CHAR (30),
    Realtor_Telephone CHAR (15));
    INSERT INTO Property
    VALUES ('0001', '245 Benner St', 'Philadelphia', 'PA', '19111', 152.00, 'Townhome');
    INSERT INTO Property
    VALUES ('0002', '327 Silver Ave', 'Willow Grove', 'PA', '19090', 260.00, 'Duplex');
    INSERT INTO Property
    VALUES ('0003', '9243 Treaty Rd', 'Philadelphia', 'PA', '19114', 190.00, 'Single Family');
    INSERT INTO Property
    VALUES ('0004', '225 Chestnut St', 'Philadelphia', 'PA', '19103', 245.00, 'Condo');
    INSERT INTO Property
    VALUES ('0005', '511 Franklin Ave', 'Cherry Hill', 'NJ', '08002', 225.00, 'Single Family');
    INSERT INTO Owner
    VALUES ('101', '0001', 'John Smith', '267-333-4667');
    INSERT INTO Owner
    VALUES ('102', '0002', 'Joe Taylor', '215-657-2200');
    INSERT INTO Owner
    VALUES ('103', '0003', 'Debra Jones', '215-745-9087');
    INSERT INTO Owner
    VALUES ('104', '0004', 'Frank Martin', '267-457-9300');
    INSERT INTO Owner
    VALUES ('105', '0005', 'Drew Hunt', '856-908-3200');
    INSERT INTO Inspection
    VALUES ('1001', 'Pre-Listing Check', 'Passed all eight tests', '101', to_Date('2/16/10','mm/dd/yyyy'));
    INSERT INTO Inspection
    VALUES ('1002', 'Walk-In', 'Property up to date on requirements', '102', to_Date('3/11/10','mm/dd/yyyy'));
    INSERT INTO Inspection
    VALUES ('1003', 'Appointment', 'All checks upo to date', '103', to_Date('1/15/10','mm/dd/yyyy'));
    INSERT INTO Inspection
    VALUES ('1004', 'General Check', 'Property is in good shape to sell', '104', to_date('3/14/10','mm/dd/yyyy'));
    INSERT INTO Inspection
    VALUES ('1005', 'Request', 'Everything requested is up to date', '105', to_date('2/22/10','mm/dd/yyyy'));
    INSERT INTO Realtor
    VALUES ('01', '1001', 'Tim Simpson', '267-543-2267');
    INSERT INTO Realtor
    VALUES ('02', '1002', 'Bill Bradley', '215-754-2330');
    INSERT INTO Realtor
    VALUES ('03', '1003', 'Phil Harris', '215-742-6687');
    INSERT INTO Realtor
    VALUES ('04', '1004', 'Sam Brown', '267-277-5500');
    INSERT INTO Realtor
    VALUES ('05', '1005', 'April Young', '856-228-3550');

  • Ctrl+Z fuctianlity is not working in oracle 10g Form

    Hi
    I am using oracle 10g form and using
    Edit_TextItem to invoke Text Editor
    When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
    Please help me to solve this issue. i need to this functinality to be work.
    BR,
    SPS

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • RH Linux VIP configuration not working for Oracle 10g RAC installation

    Hi all,
    I am trying to setup my test cluster on Oracle 10gR2 and Red Hat Linux 4. I have the public and private networks working fine and setup. However, after I setup the two VIP addresses, I cannot even ping these two virtual IPs from Linux. CRS install fails during initial run because it cannot communicate with the two VIP IP addresses. Can anyone help me out as to how to go about fixing the two VIPs so that Linux can ping them and CRS will install?
    Thanks

    It sounds like you configured your VIP on Linux in advance, before installing Oracle.
    You are not supposed to do that.
    Decide on an IP that the VIP will use with your network manager, but don't configure it in Linux. So before you start the clusterware install, ifconfig should not show your VIP.
    CRS does not need VIP when you install the clusterware, only the interconnect address.
    VIP is configured using a utility called VIPCA. If Clusterware installation fails and you think it was caused by VIP issues, try running VIPCA manually and let us know what were the results.

  • Dispatcher stopped due to shared memory realm does not exist in Oracle 10g

    Hi Gurus,
    Suddenly my Message server stopped, i have checked R3trans -d its givign following message
    D:\>R3trans -d
    This is R3trans version 6.14 (release 700 - 12.12.08 - 14:04:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'CHE'"
    R3trans finished (0012).
    So i have restarted the server, now message server started then Dispatcher has been stopped again error is same here i am pasting trans.log file
    4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
    4 ETW000 44375 1.224660
    4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=02F07EDC) 23 1.224683
    4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
    4 ETW000 32 1.224715
    4 ETW000 dev trc ,00000 Deallocating server context handle 02F07EDC 688 1.225403
    4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000 49 1.225452
    4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1034 25 1.225477
    4 ETW000 dev trc ,00000 Try to connect with default password 74 1.225551
    4 ETW000 dev trc ,00000 Connecting as SAPSR3/<pwd>@CHE on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    4 ETW000 62 1.225613
    4 ETW000 dev trc ,00000 Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
    4 ETW000 37 1.225650
    4 ETW000 dev trc ,00000 0 UTF8 1 02EEF9E0 02EF5014 02EF489C
    4 ETW000 38 1.225688
    4 ETW000 dev trc ,00000 Allocating server context handle 19 1.225707
    4 ETW000 dev trc ,00000 Attaching to DB Server CHE (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
    4 ETW000 43 1.225750
    4 ETW000 dev trc ,00000 Assigning server context 02F07EDC to service context 02EF47E8
    4 ETW000 14810 1.240560
    4 ETW000 dev trc ,00000 Assigning username to user session 02F1BC88 28 1.240588
    4 ETW000 dev trc ,00000 Assigning password to user session 02F1BC88 29 1.240617
    4 ETW000 dev trc ,00000 Starting user session (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC,usrhp=02F1BC88)
    4 ETW000 38 1.240655
    4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
    4 ETW000 49161 1.289816
    4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=02F07EDC) 30 1.289846
    4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
    4 ETW000 73 1.289919
    4 ETW000 dev trc ,00000 Deallocating server context handle 02F07EDC 828 1.290747
    4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000 108 1.290855
    4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1034 22 1.290877
    4 ETW000 dblink ,00431 ***LOG BY2=>sql error 1034 performing CON dblink#5 @ 431
    4 ETW000 21113 1.311990
    4 ETW000 dblink ,00431 ***LOG BY0=>ORA-01034: ORACLE not available 30 1.312020
    4 ETW000 ORA-27101: shared memory realm does not exist dblink#5 @ 431
    2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'CHE'"

    Is this your system ABAP+JAVA?
    As i'm too getting this problem in AS Java, R3trans -d does fail with RC-12.
    But all other my applications are running fine, So need to know the exact reason for same, so any help in this will be appreciated.

  • Declarative transaction not working  for oracle 10g as.

    Hi Friends,
    While migrating from sun app server to oracle 10g as, i have problem in declarative transactions.
    I created stateless and stateful beans with declarative transactions. Transactions were working fine till they were in sun app server environment, but they fail in oracle 10g as environment.
    I build the ear through sun IDE and deployed the ear on oracle 10g as. Things worked fine till transactions come onto picture.Declarative transaction get failed in case of oracle 10g as.
    Please if you have faced such problem or have any way to solve this problem, Pls revert back.
    rgds,
    m_khanduri

    sb92075 thank you for reply. Please see the command outputs.
    $ hostname
    LONDAN
    $ id
    uid=503(oaprod) gid=5002(dba) groups=5002(dba)
    $ uname -a
    Linux LONDAN 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    $ ps -ef | grep -i pmon | grep -v grep
    oaprod    3810     1  0 May11 ?        00:02:24 ora_pmon_OID
    jgarry thank u also. please see the response.
    $ ls -rl $ORACLE_HOME/dbs
    total 2848
    -rw-rw---- 1 oaprod dba    3584 May  8 14:33 spfileOID.ora
    -rw-r----- 1 oaprod dba 2867200 Sep 10 10:17 snapcf_OID.f
    -rwSr----- 1 oaprod dba    1536 May  5 06:17 orapwOID
    -rw-rw---- 1 oaprod dba      24 May 11 17:24 lkOID
    -rw------- 1 oaprod dba    8385 May  5 05:18 init.ora
    -rw------- 1 oaprod dba   12920 May  5 05:18 initdw.ora
    -rw-rw---- 1 oaprod dba    1544 May 11 17:24 hc_OID.dat
    ok. previously I set TNS_ADMIN. Now I set TWO_TASK, while connecting now am getting different error "insufficient privilege". Please check following.
    $ export TWO_TASK=OID
    $sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Sep 11 05:22:28 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    But, now while connecting with "sys", I don't need to supply "@OID" it's connecting directly with "sqlplus sys as sysdba" command.

Maybe you are looking for

  • How do I make Organizer and Editor open at the same time?

    I'm new to PSE 10 and want to know how to make Organizer and Editor open at the same time. I can get the Organizer up, but have to pick out a photo and click on Fix: Full Photo Edit to get Editor to open. Is that the only way to do it? Thanks, K

  • Extracting isolated image to illustrator

    How do I cut, copy and paste a face that I've selected in Photoshop out into Illustrator?

  • How to load folder with images php with oracle

    Hi i want to upload from my php form folder with images what should i fix in my php code for 1 image? <?php define("ORA_CON_UN", "obrazy"); define("ORA_CON_PW", "miksas1"); define("ORA_CON_DB", "//localhost/orcl"); if (!isset($_FILES['lob_upload']))

  • Temperature-related startup failure in MBP C2D

    My MBP C2D fails at startup when rebooting after normal use (means web surfing and playing music with iTunes) and temperatures in my MBP's CPU cores have been ~50C or more by Temperature Monitor. At startup DVD-drive makes it's normal eject sound, bu

  • Save (or Sync) Camera Roll from iPhone to my "My Pictures" on my computer.

    I had some issues with the 2.0.1 update and had to restore my iPhone from a different computer. Then I hooked my iPhone backup to my main computer and was going to restore from my backup, however, iTunes immediatly performed a backup of my iPhone (Ne