Varray in Oracle 8i

Hello Oracle World,
I have one Problem with an varray.
Problem description:
I get a string like '123|456|789|...' into the procedure.
I have changed the string with a replace function
"v_rufnummer_mod:=''''||replace(v_rufnummer,'|',''',''')||'''';"
---after this I get a new string like "'123','456','789',...'"
"v_rufnummer_mod:=''''||replace(v_rufnummer,'|',''',''')||'''';"
The contents of the variable "v_rufnummer_mod" should be the input for initialization the varray
"test_array_rec lv_name_array := lv_name_array(v_rufnummer_mod);"
My Problem is, that the Variable "v_rufnummer_mod" contents only one value. The interpretation
of the variable is wrong.
This is the procedure:
create or replace procedure p4 (v_rufnummer in varchar2)
as
v_rufnummer_mod varchar2(200);
begin
v_rufnummer_mod:=''''||replace(v_rufnummer,'|',''',''')||'''';
dbms_output.put_line(v_rufnummer_mod||' '||v_rufnummer);
declare
type lv_name_array is varray(20) of record;
test_array_rec lv_name_array := lv_name_array(v_rufnummer_mod);
begin
for lv_loop_num in 1..test_array_rec.count loop
dbms_output.put_line(test_array_rec(lv_loop_num)||' '||test_array_rec.count );
end loop;
end;
End p4;
Could I initialize an varray with the contents of an variable described in the example obove?
Could anyone help my to solve the problem?
Thanks
Christoph Mikolasch

Take answers into your Re: Problem with nested Varray in oracle 8i
Nicolas.

Similar Messages

  • Varray in oracle

    Hi
    I have 32 inputs at procedure but I need to get this input using varray
    but not get inputs from procedure
    could you please share your views

    Duplicate thread - https://forums.oracle.com/thread/2554931
    or not, as the number of inputs have decreased from 35 to 32
    As already asked, what about the datatype of the input parameters? Same or different?
    Regards,

  • Invoking stored procedure that returns array(oracle object type) as output

    Hi,
    We have stored procedures which returns arrays(oracle type) as an output, can anyone shed some light on how to map those arrays using JPA annotations? I tried using jdbcTypeName but i was getting wrong type or argument error, your help is very much appreciated. Below is the code snippet.
    JPA Class:
    import java.io.Serializable;
    import java.sql.Array;
    import java.util.List;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import org.eclipse.persistence.annotations.Direction;
    import org.eclipse.persistence.annotations.NamedStoredProcedureQuery;
    import org.eclipse.persistence.annotations.StoredProcedureParameter;
    * The persistent class for the MessagePublish database table.
    @Entity
    @NamedStoredProcedureQuery(name="GetTeamMembersDetails",
         procedureName="team_emp_maintenance_pkg.get_user_team_roles",
         resultClass=TeamMembersDetails.class,
         returnsResultSet=true,
         parameters={  
         @StoredProcedureParameter(queryParameter="userId",name="I_USER_ID",direction=Direction.IN,type=Long.class),
         @StoredProcedureParameter(queryParameter="employeeId",name="I_EMPLOYEEID",direction=Direction.IN,type=Long.class),
         @StoredProcedureParameter(queryParameter="TEAMMEMBERSDETAILSOT",name="O_TEAM_ROLES",direction=Direction.OUT,jdbcTypeName="OBJ_TEAM_ROLES"),
         @StoredProcedureParameter(queryParameter="debugMode",name="I_DEBUGMODE",direction=Direction.IN,type=Long.class)
    public class TeamMembersDetails implements Serializable {
         private static final long serialVersionUID = 1L;
    @Id
         private long userId;
         private List<TeamMembersDetailsOT> teamMembersDetailsOT;
         public void setTeamMembersDetailsOT(List<TeamMembersDetailsOT> teamMembersDetailsOT) {
              this.teamMembersDetailsOT = teamMembersDetailsOT;
         public List<TeamMembersDetailsOT> getTeamMembersDetailsOT() {
              return teamMembersDetailsOT;
    Procedure
    PROCEDURE get_user_team_roles (
    i_user_id IN ue_user.user_id%TYPE
    , o_team_roles OUT OBJ_TEAM_ROLES_ARRAY
    , i_debugmode IN NUMBER :=0)
    AS
    OBJ_TEAM_ROLES_ARRAY contains create or replace TYPE OBJ_TEAM_ROLES_ARRAY AS TABLE OF OBJ_TEAM_ROLES;
    TeamMembersDetailsOT contains the same attributes defined in the OBJ_TEAM_ROLES.

    A few things.
    You are not using a JDBC Array type in your procedure, you are using a PLSQL TABLE type. An Array type would be a VARRAY in Oracle. EclipseLink supports both VARRAY and TABLE types, but TABLE types are more complex as Oracle JDBC does not support them, they must be wrapped in a corresponding VARRAY type. I assume your OBJ_TEAM_ROLES is also not an OBJECT TYPE but a PLSQL RECORD type, this has the same issue.
    Your procedure does not return a result set, so "returnsResultSet=true" should be "returnsResultSet=false".
    In general I would recommend you change your stored procedure to just return a select from a table using an OUT CURSOR, that is the easiest way to return data from an Oracle stored procedure.
    If you must use the PLSQL types, then you will need to create wrapper VARRAY and OBJECT TYPEs. In EclipseLink you must use a PLSQLStoredProcedureCall to access these using the code API, there is not annotation support. Or you could create your own wrapper stored procedure that converts the PLSQL types to OBJECT TYPEs, and call the wrapper stored procedure.
    To map to Oracle VARRAY and OBJECT TYPEs the JDBC Array and Struct types are used, these are supported using EclipseLink ObjectRelationalDataTypeDescriptor and mappings. These must be defined through the code API, as there is currently no annotation support.
    I could not find any good examples or doc on this, your best source of example is the EclipseLink test cases in SVN,
    http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/plsql/
    http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/customsqlstoredprocedures/
    James : http://www.eclipselink.org

  • Arrays in oracle

    There are some query's to be executed by java code that return more than one rows, but i want this query to be executed by a stored procedure. I am looking for a solution which will return this multiple rows using a parameter in a procedure/Package.
    e.g I have emp table that has 10 records, I create a proedure emp_data which will have select * from emp, I want this procedure to return 10 rows.

    > there is VARRAY in Oracle - is it different than the array?
    A VARRAY is a fixed size (static) array in the SQL Engine. When defining and using arrays in PL/SQL Engine,
    these are dynamic (can be extended) arrays (aka PL/SQL "tables").
    There are also other differences. The SQL Engine "knows" the VARRAY SQL type and can use it - it has access
    to the array's type definition.
    The SQL Engine cannot however (directly) use a PL/SQL array - as the type has been defined in the
    PL/SQL (and can include non-SQL data types like BOOLEAN). This requires PL/SQL arrays to be casted to
    a structure that the SQL Engine can understand (and array data copied from the PL/SQL Engine to
    the SQL Engine). Only then can the SQL Engine use a PL/SQL array.
    Personally, I do not like using VARRAYs as that does not fit with my views of a relational design. It is
    IMO dealing with a bad case of 2nd normal form when using VARRAYs in a SQL table.
    Nested tables in a SQL table however can be justified in my view - especially when the child rows of one
    parent row have absolutely nothing in common with the child rows from another parent row.
    The question as to HOW to use these arrays depend on the requirements - and then selecting the best tool
    for the job. Arrays have the same basic data structure, and serve the same basic purpose, irrespective
    of the programming language.

  • Java Object and varray

    hi
    i want to create a java object which maps varray in oracle.i want a solution though SQLData or CustomDatum interfaces.we have a varray of ints.
    arun aithal

    I think you might find a better audience in the JDBC forum Not only that. It is kind of mandatory here to ridicule lesser languages than PL/SQL and SQL and make fun of people not using Oracle RDBMS. ;-)

  • Update of varray columns

    Hi all,
    Can I update a varray column.Oracle version we are using is 9.2.0.8.
    In the below given table structure and sample data, in second insert statement, email column is having null values.In the actual table we have around 200 - 300 columns where email value is null, i want update those columns where email is null.Is it possible to update only one column in a varray column.
    CREATE TABLE XXEACCESS_IMPL
    ( REQUEST_ID VARCHAR2(20 BYTE),
    STATUS CHAR(1 BYTE),
    SYSTEM_IMPL VARCHAR2(50 BYTE),
    ART_REQUEST_ID NUMBER,
    CALL_DATA WF_PARAMETER_LIST_T,
    LAST_UPDATED_DATE DATE DEFAULT sysdate);
    CREATE OR REPLACE type SCOTT.WF_PARAMETER_T as object
    ( NAME VARCHAR2(30), VALUE VARCHAR2(2000),
    MEMBER FUNCTION getName return varchar2,
    MEMBER FUNCTION getValue return varchar2,
    MEMBER PROCEDURE setName (pName in varchar2),
    MEMBER PROCEDURE setValue(pValue in varchar2));
    CREATE OR REPLACE
    type body SCOTT.WF_PARAMETER_T as
    MEMBER FUNCTION getName return varchar2 is
    begin
    return name;
    end getName;
    MEMBER FUNCTION getValue return varchar2 is
    begin
    return value;
    end getValue;
    MEMBER PROCEDURE setName(pName in varchar2) is
    begin
    name := pName;
    end setName;
    MEMBER PROCEDURE setValue(pValue in varchar2) is
    begin
    value := pValue;
    end setValue;
    end;
    Insert into XXEACCESS_IMPL
    (REQUEST_ID, STATUS, SYSTEM_IMPL, ART_REQUEST_ID, CALL_DATA, LAST_UPDATED_DATE)
    Values ('EA39050', 'Y', 'CONTACT_MANAGEMENT_REQUEST', 27084, wf_parameter_list_t(
    wf_parameter_t('EMAIL', '[email protected]'), wf_parameter_t('DOMICILE', 'US')), TO_DATE('05/03/2006 16:45:18', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into XXEACCESS_IMPL
    (REQUEST_ID, STATUS, SYSTEM_IMPL, ART_REQUEST_ID, CALL_DATA, LAST_UPDATED_DATE)
    Values
    ('EA39045', 'Y', 'CREATE_ACCOUNT', 27089,
    wf_parameter_list_t(
    wf_parameter_t('EMAIL',''),WF_PARAMETER_T('DOMICILE','US')),
    TO_DATE('05/03/2006 17:13:08', 'MM/DD/YYYY HH24:MI:SS'));
    Please help me in this regard.
    Thanks
    Raghu

    You can use this statement:
    UPDATE xxeaccess_impl x
       SET call_data =
           CAST (MULTISET (SELECT CASE WHEN temp_tab.name = 'EMAIL' AND temp_tab.value IS NULL THEN
    wf_parameter_t ('EMAIL', '[email protected]')
    ELSE
    VALUE (temp_tab)
    END CASE
                             FROM TABLE (SELECT call_data
                                           FROM xxeaccess_impl
                                          WHERE x.ROWID = ROWID
                                         ) temp_tab
                 AS wf_parameter_list_t
                );But, better way is to use PL/SQL: retrieve the entire varray, update its elements, and then store the changed varray back in the database.
    Regards,
    Zlatko

  • Is possible to pass array/list as parameter in TopLink StoredProcedureCall?

    Hi, We need to pass an array/List/Vector of values (each value is a 10 character string) into TopLink's StoredProcedureCall. The maximum number of elements on the list is 3,000 (3,000 * 10 = 30,000 characters).
    This exposed two questions:
    1. Is it possible to pass a Vector as a parameter in TopLink's StoredProcedureCall, such as
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    Vector strVect = new Vector(3000);
    strVect.add(“ab-gthhjko”);
    strVect.add(“cd-gthhjko”);
    strVect.add(“ef-gthhjko”);
    Vector parameters = new Vector();
    parameters.addElement(strVect);
    session.executeQuery(query,parameters);
    2. If the answer on previous question is yes:
    - How this parameter has to be defined in Oracle’s Stored Procedure?
    - What is the maximum number of elements/bytes that can be passed into the vector?
    The best way that we have found so far was to use single string as a parameter. The individual values would be delimited by comma, such as "ab-gthhjko,cd-gthhjko,ef-gthhjko..."
    However, in this case concern is the size that can be 3,000 * 11 = 33, 000 characters. The maximum size of VARCHAR2 is 4000, so we would need to break calls in chunks (max 9 chunks).
    Is there any other/more optimal way to do this?
    Thanks for your help!
    Zoran

    Hello,
    No, you cannot currently pass a vector of objects as a parameter to a stored procedure. JDBC will not take a vector as an argument unless you want it to serialize it (ie a blob) .
    The Oracle database though does have support for struct types and varray types. So you could define a stored procedure to take a VARRAY of strings/varchar, and use that stored procedure through TopLink. For instance:
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    oracle.sql.ArrayDescriptor descriptor = new oracle.sql.ArrayDescriptor("ARRAYTYPE_NAME", dbconnection);
    oracle.sql.ARRAY dbarray = new oracle.sql.ARRAY(descriptor, dbconnection, dataArray);
    Vector parameters = new Vector();
    parameters.addElement(dbarray);
    session.executeQuery(query,parameters);This will work for any values as long as you are not going to pass in null as a value as the driver can determine the type from the object.
    dataArray is an Object array consisting of your String objects.
    For output or inoutput parameters you need to set the type and typename as well:
      sqlcall.addUnamedInOutputArgument("PERSON_CODE", "PERSON_CODE", Types.ARRAY, "ARRAYTYPE_NAME"); which will take a VARRAY and return a VARRAY type object.
    The next major release of TopLink will support taking in a vector of strings and performing the conversion to a VARRAY for you, as well as returning a vector instead of a VARRAY for out arguments.
    Check out thread
    Using VARRAYs as parameters to a Stored Procedure
    showing an example on how to get the conection to create the varray, as well as
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/varray/index.html on using Varrays in Oracle, though I'm sure the database docs might have more information.
    Best Regards,
    Chris

  • Unable to export nested tables and vaarys

    Hai
    How to export nested tables and varrays in oracle 8i (8.1.6) .When exporting nested tables and varrays not exporting .What is the advantage use of nested tables and varrays
    Thanks in advance
    mohan

    Hello,
    I think that with such a new release you should use DataPump (expdp/impdb) to
    export Tables.
    For exporting a complete Schema you may use the following syntax:
    expdp {color:red}+user+{color}/{color:red}+password+{color} PARFILE=pfexport.txt_With pfexport.txt as bellow:_
    SCHEMAS={color:red}+schema_name+{color}
    FLASHBACK_TIME="TO_TIMESTAMP(to_char(SYSDATE,'DD-MM-YYYY HH24:MI:SS'),'DD-MM-YYYY HH24:MI:SS')"
    CONTENT=ALL
    DIRECTORY=EXP_DIR
    DUMPFILE={color:red}+dump_file_name+{color}
    LOGFILE={color:red}+log_file_name+{color}Then, in this example, you'll get the "dump file" and the "log file" into the EXP_DIR Oracle directory (if it exists).
    You can check your Oracle Directories with the following query:
    select * from dba_directories;Then, you can use one of these Directories or create a new one with the following statement
    CREATE OR REPLACE DIRECTORY {color:red}+directory_name+{color} AS '{color:red}+directory_path+{color}';
    GRANT READ,WRITE ON DIRECTORY {color:red}+directory_name+{color} TO {color:red}+user_name+{color};Hope it can help,
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Nov 28, 2009 12:08 PM

  • Problem regarding passing variable  in sdo_ordinate_array

    I want to pass user selected points in sdo_ordinate array and return result in an array . I have created two varrays in oracle called ALLPOS and LSTPOS.ALLPOS is output array . I get the desired output when i hard cord the values of sd0_ordinate_array but i am not able to pass any variable parameter in sdo_ordinate_array . If i try to pass a string variable i get invalid number exception . If i pass a varray called LSTPOS i get following exception.
    FUNCTION FOO(lstpos in LSTPOS) RETURN ALLPOS
    AS
    POS_DATA ALLPOS := ALLPOS();
    CURSOR c_pos is
    SELECT cust_id FROM T_S_CUSTOMERS
    WHERE SDO_RELATE(geometry,
    SDO_GEOMETRY(2003, 8307, NULL,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(lstpos)),'mask=inside querytype=window') = 'TRUE';
    BEGIN
    FOR pos_rec IN c_pos LOOP
    POS_DATA.extend;
    POS_DATA(POS_DATA.count) := pos_rec.cust_id;
    END LOOP;
    RETURN POS_DATA;
    END;
    i get following compilation error
    Error(9,24): PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got BATUSER.LSTPOS
    Thanks and Regards
    Nidhi

    Hi!
    I would like you using following with MDSYS.SDO_ORDINATE_ARRAY
    definition: [CREATE TYPE mdsys.sdo_elem_info_array AS VARRAY (1048576) of NUMBER]
    CREATE OR REPLACE FUNCTION FOO(lstpos in MDSYS.SDO_ORDINATE_ARRAY)
      RETURN MDSYS.SDO_ORDINATE_ARRAY AS
      POS_DATA MDSYS.SDO_ORDINATE_ARRAY := MDSYS.SDO_ORDINATE_ARRAY();
      CURSOR c_pos is
        SELECT cust_id FROM T_S_CUSTOMERS
        WHERE SDO_RELATE(
          geometry,
          MDSYS.SDO_GEOMETRY(2003, 8307, NULL,
            MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
            lstpos
          ),'mask=inside querytype=window'
        ) = 'TRUE';
    BEGIN
      FOR pos_rec IN c_pos LOOP
        POS_DATA.extend;
        POS_DATA(POS_DATA.count) := pos_rec.cust_id;
      END LOOP;
      RETURN POS_DATA;
    END;
    --call the function
    declare
      -- Non-scalar parameters require additional processing
      result mdsys.sdo_ordinate_array;
      lstpos mdsys.sdo_ordinate_array := mdsys.sdo_ordinate_array(1,2,3,4);
    begin
      -- Call the function
      result := foo(lstpos => lstpos);
    end;regards, Andreas

  • Two dimensional VARRY

    I read in an Oracle book the Varray can one have 1 dimensional, in my case I need to create a 2 dimensional Varray using Oracle 10g what can I do ?

    Samim wrote:
    I read in an Oracle book the Varray can one have 1 dimensional, in my case I need to create a 2 dimensional Varray using Oracle 10g what can I do ?Build one?
    Here's an example with a simple array, i've demonstrated populating and processing, you should be able to take this and expand as needed.
    Just a note that i've never used a VARRAY, as i find they have nothing to offer me when programming PL/SQL (it's possible they may be of benefit when interfacing with other languages such as Java, i really can't say).
    declare
       type single_dim_array is table of number index by pls_integer;
       type multi_dim_rec is record
          column1  number,
          column2  single_dim_array
       type multi_dim_array is table of multi_dim_rec index by pls_integer;
       l_single_array    single_dim_array;   
       l_multi_array     multi_dim_array;
    begin
       l_single_array(1) := 1;
       l_single_array(2) := 2;
       l_multi_array(1).column1   := 1;
       l_multi_array(1).column2   := l_single_array;
       for x in 1 .. l_multi_array.count
       loop
          dbms_output.put_line('column1 value = ' || l_multi_array(x).column1);
          for y in 1 .. l_multi_array(x).column2.count
          loop
             dbms_output.put_line('   array value ' || l_multi_array(x).column2(y) ) ;
          end loop;
       end loop;
    end;
    column1 value = 1
    array value 1
    array value 2
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00

  • Does oracle Toplink work with oracle VARRAY ??

    Does anybody know if oracle Toplink support oracle collections such as VARRAY ?
    The Oracle Toplink workbench seems not recognize the Oracle collection type.

    The documents [http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/toplink.903/b10064/mappingi.htm#1028481] do show some examples but it is unclear when/where in your application code this example code should be placed.
    For example, let's say in my Oracle database I have a data type defined as follows:
    CREATE TYPE person_name_ty AS OBJECT (
    first_name VARCHAR2(30),
    last_name VARCHAR2(30)
    Now I want to retrieve one of these, say through a stored procedure.
    How could this be done? Where in code would it be done?
    Thanks

  • Accessing ORACLE's VARRAY using JDBC

    Hi,
    I have a created a VARRAY type like following in ORACLE:
    CREATE OR REPLACE
    TYPE opr_typ_attrib_val_arr AS TABLE OF VARCHAR2 (255)
    I am trying to access this VARRAY using the following java code:
    ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("opr_typ_attrib_val_arr ", (OracleConnection)connection);
    String arrayValues[] = {"123", "234"};
    ARRAY array = new ARRAY(arrayDesc, connection, arrayValues);
    But in the very first statement, where I am getting the object of ArrayDescriptor, I am getting the java.lang.ClassCastException exception.
    I am using oracle type 4 thin driver. And the above mentioned code I have written in EJB.
    "connection" is a valid connection object.
    Could anybody help me out to resolve this issue.
    Thanks in advance.
    Amit

    Hi,
    With a snap shot of your code it would hv been more easier to pinpoint your problem.
    However this is how I am doing it:
    (the thin driver, classes12.zip must be in the classpath)
    --In the Oracle PL/SLQ proc:
    type REC_TYPE is ref cursor;
    FUNCTION spFindBid(
    p_ORDCreateSeq in number,
    p_RAT in number,
    p_prdID in number,
    p_ACCTID in number,
    p_LAMT in number) return REC_TYPE
    IS
    rc REC_TYPE;
    begin
    open rc for
    SELECT * from table_name
    return rc;
    // in the Java code:
    import oracle.jdbc.driver.*;
    //besides other imports.
    CallableStatement cs
    = cn.prepareCall("{? =....}");
    cs.registerOutParameter(1,
    OracleTypes.CURSOR);
    cs.setString(1, "XXXX");
    cs.execute();
    java.sql.ResultSet rs =
    (java.sql.ResultSet)cs.getObject(1);
    //this will return a standard resultSet,
    //as what is recvd when we execute a
    //SELECT via standard, CreateStatement()....
    //loop on it while(rs.next()) to get
    //the dataI am using the 100% Java thin driver.
    I could not figure how to use an OCI 8 driver
    with a Standalone Java program (not weblogic). Could not find a driver as a(.zip/.jar) file. OCI8 has more easier ways of accessing OracleDB.
    rgds
    Jeevan S
    null

  • Oracle 8: VARRAY-problem

    Hi!
    I'm not able to work this out, using a VARRAY in a sql-query:
    Her are my structures:
    CREATE OR REPLACE TYPE tlfliste_vartype AS VARRAY(10) OF VARCHAR2(20);
    CREATE OR REPLACE TYPE ansatt_objtype AS OBJECT (
    ans_nr NUMBER,
    ans_navn VARCHAR2(30),
    tlf_nr_var tlfliste_vartype);
    CREATE TABLE ansatt_objtab OF ansatt_objtype;
    INSERT INTO ansatt_objtab VALUES(1,'HANSEN',tlfliste_vartype('415-555-1212'));
    INSERT INTO ansatt_objtab VALUES(2,'OLSEN',tlfliste_vartype('609-555-1212','201-555-1212'));
    I've tried this query:
    SELECT a.ans_nr, a.ans_navn, t.tlf_nr_var
    FROM ansatt_objtab a, table(a.tlf_nr_var) t;
    but it doesn't work. I want to list out "ans_nr", "ans_navn" and the belonging telephonenumbers. How do I do it?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Uthaya:
    Hi,
    You are right. u need to edit the ORADIM command. The other way is...
    1) Go to control panel
    2) Go to services
    3) Go to your database service(For example if u r db is DEV your service looks like OracleServiceDEV)
    4) go to the properties of it(click starup button).
    5) make the startup mode as automatic.
    This will start your database when ever u start NT.
    Let me know if u still have the problem
    Uthaya<HR></BLOCKQUOTE>
    From: Muhammad Munir
    Dear Uthaya,
    I did all that but I have Still Problem. I am MCSE and I know NT well. This is I think Oracle Problem not NT problem.I want to explain that I change the password of INTERNAL and then restart the Computer.
    I have to startup the oracle from the SVRMGR> consoal. And i again change the INTERNAL password that it was by default and I restart the system now the Database is Open and running. So I think the problem is of ORACLE not the NT services.
    Please Help Me.
    null

  • How to use Oracle Varray types in WLS 5.1

    The connection pool is created using the Oracle thin driver. The connection so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference to oracle/sql/Datum, either include the class files for the same or remove the reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

    Thanks Sree.
    Is there something so called as the back-door approach to it.
    I read in the articles of Struct Objects and Connection that:
    If connection is obtained via:
    weblogic.jdbc.jts.connection jtsConn = getConnection();
    OracleConnection oracleConn = jtsConn.conn;
    And this should ideally work in WLS5.1,
    but still i wonder how did they obtain the connection.
    It would be obligatory if someone could help me with it.
    Thanks,
    Kavita
    "Sree Bodapati" <[email protected]> wrote:
    Hi Kavita,
    This is not possible to do this via a connection from the pool. Oracle
    implements non standard methods which require OracleConnection object
    instead of standard java.sql.Connection object which the pool returns.
    You
    have to use a direct connection using the thin driver.
    sree
    "Kavita Rajdeo" <[email protected]> wrote in message
    news:3c6fc1f5$[email protected]..
    The connection pool is created using the Oracle thin driver. The connection
    so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference
    to
    oracle/sql/Datum, either include the class files for the same or remove
    the
    reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

  • Oracle VARRAY

    I am using Weblogic 8.1 and Oracle JDBC Thin driver for Oracle 8.1.7 and also Oracle
    9.
    Using WebLogic db connection pooling.
    I'm having a problem trying to use Oracle features.
    When I try to execute
    oracle.sql.StructDescriptor.createDescriptor(name, connection);
    I get a ClassCastException.
    Weblogic wraps the Oracle database connection.
    How can I get the underlying database connection so I can use Oracle features?
    Like
    OraceCallableStatement ocs;
    ocs.setARRAY(1, myOracleVArray);
    Is there another way?
    gs

    Thanks Sree.
    Is there something so called as the back-door approach to it.
    I read in the articles of Struct Objects and Connection that:
    If connection is obtained via:
    weblogic.jdbc.jts.connection jtsConn = getConnection();
    OracleConnection oracleConn = jtsConn.conn;
    And this should ideally work in WLS5.1,
    but still i wonder how did they obtain the connection.
    It would be obligatory if someone could help me with it.
    Thanks,
    Kavita
    "Sree Bodapati" <[email protected]> wrote:
    Hi Kavita,
    This is not possible to do this via a connection from the pool. Oracle
    implements non standard methods which require OracleConnection object
    instead of standard java.sql.Connection object which the pool returns.
    You
    have to use a direct connection using the thin driver.
    sree
    "Kavita Rajdeo" <[email protected]> wrote in message
    news:3c6fc1f5$[email protected]..
    The connection pool is created using the Oracle thin driver. The connection
    so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference
    to
    oracle/sql/Datum, either include the class files for the same or remove
    the
    reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

Maybe you are looking for

  • Pages '09: Can't select multiple objects with mouse?

    Hello! I want to select some shapes. I know that I can hold down shift and click on them individually one by one, but they're very many and grouped together, so I just want to draw a 'selection-rectangle' with the mouse, just as it works in all other

  • ISE Identity Certificate.

    Hi there, Does anyone have any experience with Publicly signed ID certificates for ISE. We are going to be deploying Guest Services via CWA. When a user connects to the portal they get a certificate error as the current ID certificates are only signe

  • Purpose of root.sh

    hey!!! can u guys plz tell\ me what is the purpose of running root.sh? what are the files created by root.sh after its running as root user..? thanx

  • Importing classes to help applets - professionals

    I am creating a applet that calls a additional .class that acts as a gatewat between the applet and a servlet(applet -> class -> servlet) Inside the applet how I can make the 'import' statement for a file that is in the same directory of the applet??

  • New Schema

    Hi All I Need to create a new schema in a existing database. i need to create a tablespace of 10 GB with a user assocaited to that. Can anyone let me know about this and how to create a new schema. I tried creating a New user - and in that associate