Oracle ODP strongly typed dataset (runtime)

I am trying to use strongly typed Dataset Objects in my project but I seem to be missing something.
I created a class library project named DSCommon. I then used the Server Explorer to create an XML Schema of my Oracle table and then I generated a DataSet (http://www.developer.com/db/article.php/10920_3069061_2).
I then created a second windows application project and added a reference to DSCommon.
I have one text box, navigation buttons, and a command button on the form. I have tried the following code but I do not seem to have the benefits of a strongly typed dataset - I cannot do anything like txtPlaneType.text = ds.PlaneTypes[0].planedesc.
(I added a reference to Oracle.DataAccess to the windows app. project.)
<code>
Imports Oracle.DataAccess.Client
Imports DSCommon
Public Class Form1
Inherits System.Windows.Forms.Form
Dim conn As New OracleConnection
Dim cmPlaneTypes As CurrencyManager
Private Sub connectDatabase()
conn.ConnectionString = "User id=username;Password=password;Data Source=server.com;"
Try
conn.Open()
Catch ex As Exception
Throw ex
End Try
End Sub
Private Sub closeDatabase()
conn.Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Try
Me.connectDatabase()
Dim planeTypeAdapter As OracleDataAdapter = New OracleDataAdapter
planeTypeAdapter.SelectCommand = New OracleCommand("SELECT PLANETYPE, PLANETYPEDESC FROM PLANETYPES", conn)
Dim PlaneTypeDataSet As New PlaneTypes
planeTypeAdapter.Fill(PlaneTypes, "PlaneTypeDataSet")
cmPlaneTypes = CType(BindingContext(PlaneTypeDataSet, "PlaneTypes"), CurrencyManager)
AddHandler cmPlaneTypes.ItemChanged, AddressOf cmPlaneTypes_ItemChanged
AddHandler cmPlaneTypes.PositionChanged, AddressOf cmPlaneTypes_PositionChanged
txtPlaneType.DataBindings.Add("Text", PlaneTypeDataSet.PLANETYPES, "PLANETYPEDESC")
Catch ex As Exception
MessageBox.Show("At this time this information cannot be viewed or updated.", "Error retrieving records", MessageBoxButtons.OK, MessageBoxIcon.Error)
Finally
If conn.State = ConnectionState.Open Then
Me.closeDatabase()
End If
End Try
' is this needed?
conn.Dispose()
end sub
</code>
This is the schema in the first project.
<code>
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="PlaneTypes" targetNamespace="http://tempuri.org/PlaneTypes.xsd" elementFormDefault="qualified"
xmlns="http://tempuri.org/PlaneTypes.xsd" xmlns:mstns="http://tempuri.org/PlaneTypes.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="PlaneTypes">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="PLANETYPES">
<xs:complexType>
<xs:sequence>
<xs:element name="PLANETYPE" type="xs:integer" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1"
msdata:AutoIncrement="true" />
<xs:element name="PLANETYPEDESC" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="DocumentKey1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:PLANETYPES" />
<xs:field xpath="mstns:PLANETYPE" />
</xs:unique>
</xs:element>
</xs:schema>
</code>
How do I create this at run time and get the benefits in design time?
Is there a better way to reference the code for the navigation buttons?

<bump>
Can anyone from Oracle assist me with this issue?

Similar Messages

  • Using a strongly typed ref cursor doesn't enforce data type

    I am trying to enforce the datatypes of the fields coming back from an oracle reference cursor by making it strongly typed. However, there seems to be no warning at compile time on the oracle side or exception in ODP.NET if the datatype coming back in the cursor does not match. For example here is my cursor and proc
    create or replace
    PACKAGE THIRDPARTY AS
    type pricing_record is record
    BaseIndexRate     number(6,5),
    BaseIndexRateType     VARCHAR2(1 BYTE)
    type cur_pricing2 IS ref CURSOR return pricing_record;
    PROCEDURE getpricingbyappidtest(appid IN application.intid%TYPE, pricing OUT cur_pricing2);
    END THIRDPARTY;
    create or replace
    PACKAGE BODY THIRDPARTY AS
    PROCEDURE getpricingbyappidtest(appid IN application.appid%TYPE, pricing OUT cur_pricing2)
    AS
    BEGIN
         OPEN pricing FOR
         SELECT      somevarcharfield, someothervarcharfield
    FROM application
    WHERE A.appid = appid;
    END getpricingbyappidtest;
    I would expect this wouldn't compile since i am putting a varchar into a number field. But it does. Also if i check the datatype in the reader on the .net side it also is a string. So odp doesn't seem to care what type the cursor is
    here is that code and output
    var schemaTable = reader.GetSchemaTable();
    using (var file = new System.IO.StreamWriter("c:\\_DefinitionMap_" + cursorName + ".txt"))
    file.WriteLine("COLUMN" + "\t" + "DATATYPE");
    foreach (DataRow myField in schemaTable.Rows)
    file.WriteLine(myField["ColumnName"] + "\t" + myField["DataType"]);
    COLUMN     DATATYPE
    BaseIndexRate     System.String
    BaseIndexRateType     System.String
    Does anyone have an approach for enforcing datatypes in a ref cursor? Am I doing something wrong when defining the ref cursor?

    Hello,
    By using a ref cursor you are really using a pointer to a cursor. There is no way I know of to make a compile check of the cursor check unless you want to create a SQL type and cast the cursor to this type and even this wouldn't work in all cases. For instance, I could have function call within my cursor select which could return a varchar (with a number always in the varchar) which would be horribly sloppy but legal and you would expect Oracle to compile it.
    If you are worried about this I would suggest not using ref cursors and go to UDT instead, where there will be more checking (because of a C# equivalence generated object). Oh and BTW, yes the cursor will throw an exception if the data is incorrect, but only at runtime - just like normal Oracle PLSQL.
    Cheers
    Rob.
    http://www.scnet.com.au

  • Return csv string as strongly typed ref cursor

    I have a column in a table that is csv delimited and I want to return it (and others) as a strongly typed ref cursor.
    eg
    create table test_tab (mydata varchar2(100))
    insert into test_tab(mydata) values ('"a1","b1","c1","d1"')
    insert into test_tab(mydata) values ('"a2","b2","c2","d2"')
    so test_tab has 1 column and 2 rows:
    "a1","b1","c1","d1"
    "a2","b2","c2","d2"
    So a,b,c,d represent columns in my strongly typed ref cursor
    If I then try something like:
    declare
    type my_rec is record(
    a varchar2(50),
    b varchar2(50),
    c varchar2(50),
    d varchar2(50)
    type my_rec_refc IS REF CURSOR RETURN my_rec;
    my_test_refc my_rec_refc;
    begin
    open my_test_refc for select mydata,mydata,mydata,mydata from test_tab;
    end;
    then it obviously works as my ref cursor is expecting 4 columns. However, what I want to do is break each individual element out of the mydata column. I've played around a bit with dynamic sql but only getting so far and apparently that can't be used with a ref cursor anyway. I need to return a strongly typed cursor as another program requires this.
    One option is to manually parse each row and insert into temp table that is basically definition of record (so record type no longer needed) and this becomes type of ref cursor. I can then simply select from the table. I'm not keen on this as it's just another object to worry about.
    Another option is to do some ugly instr/substr to extract each element in the sql statement (or write a function to do it but need to consider performance of this). The more generic the better as I need to reuse against multiple strongly typed ref cursors (kind of a contradiction in that by virtue of using strongly typed cursors I know exactly what I want returned!).
    Another option is for someone to shed some light on this as it must be possible to do in a simple way along the same lines I have started?
    thanks in advance

    That documentation seems to stay pretty vague. What constitutes the "right set of columns". Obviously my observed result matches what you are saying about not being able to enforce the datatypes in the fields of the strong typed cursor. But then I don't see the point of the strong typed cursor otherwise. Other sites i have read seem to focus on the %rowtype return rather than mapping it to a record. But the general consensus (at least to my understanding) is that if the cursor is strongly typed then the sql statement that used to open it must have the same set of columns and the datatypes must at least be able to implicitly convert.
    I will try the %rowtype strong ref cursor against a table and see if there is a different result. I am mainly interested in this because I would like to beable to ensure the datatype returned on the .net side through ODP
    I want to be able to know the datatype of a field coming back through a ref cursor at compile time not runtime. So it the answer to cast every field of the select statement?

  • ORACLE Data Types within Datasets

    Hi,
    While creating a typed dataset by draging an ORACLE table
    from the Server explorer
    All Oracle number Columns are using the data type Decimal
    inside the dataset.
    Is it better to use (change to) the real data type like Int32 etc ?
    Have anybody experience ?
    Kind Regards
    Martin

    Martin,
    OleDb.NET defaults to System.Decimal for Oracle NUMBER columns. The only was is to manually change it after the typed dataset is generated.
    If you are working with an untyped dataset ODP.NET will set the DataColumn depending on the precision and scale of the Oracle NUMBER column.
    -Naveen

  • Generate Typed Datasets from Procs/Functions

    I have a client with a DBA team that wants to use procs (or functions) to wrap all CRUD operations. They do not want any applications to be able to directly access tables.
    Is there any way to have ODT generate a typed dataset based on any combination of proc/function/refcursor - anything other than a table itself?
    Thanks!

    Just an update on this, there seems to be some functionality along these lines, but I don't see anything in any of the documentation, and am not quite sure how it works.
    Once I figured out (thanks to posts here) that I had to re-create my connections after installing the ODP.net beta, I suddently had the ability to drag a function from Server Explorer over to a blank dataset designer window. Upon configuring the generated table adapter, there are now options for stored procs, but there's a mapping/binding thing that I don't quite get in the case of an IN OUT param. It does, however seem to correctly derive the columns and data types in the ref cursor param that's being passed back.
    So this thing is generating a typed dataset that mirrors a ref cursor in an out param. This is great news to me.
    As no 'official' Oracle person has chimed in yet, my only concern is that this functionality is not fully implemented, or has some issues, and may go away at the end of the beta. Can anyone shed any light on this?

  • Getting a Sequence back from an S-P with typed DataSet problem

    Hi,
    I know there are loads of topics about sequences on this forum, but I can't seem to find this exact issue amongst them.
    As a learning exercise, I've created a typed dataset based on the HR sample database tables Departments and Employees (through the use of the hack to get an OracleDataAdapter to generate typed datasets).
    I currently have a problem with retrieving the new sequence value from the 'Insert_Department' stored procedure I've written, and the best thing I can figure is that there is a clash occurring between the type and size of the sequence and the size of the department_id column (number(4) - which maps in .Net to an int16).
    The exception I get on running the dataAdapter.Update() method is:
    Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'. Couldn't store <330> in DEPARTMENT_ID Column. Expected type is Int16
    The record does get inserted into the database ok - therefore I infer that this is a problem with the handling of the return value back to the DepartmentsDataSet column.
    My stored procedure is as follows:
    PROCEDURE "INSERT_DEPARTMENT" (
    "NEW_DEPARTMENT_ID" OUT DEPARTMENTS.DEPARTMENT_ID%TYPE,
    "NEW_DEPARTMENT_NAME" IN VARCHAR2,
    "NEW_MANAGER_ID" IN NUMBER,
    "NEW_LOCATION_ID" IN NUMBER) IS
    BEGIN
    INSERT INTO DEPARTMENTS(DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID, LOCATION_ID)
    VALUES (DEPARTMENTS_SEQ.NEXTVAL, NEW_DEPARTMENT_NAME, NEW_MANAGER_ID, NEW_LOCATION_ID);
    SELECT DEPARTMENTS_SEQ.CURRVAL INTO NEW_DEPARTMENT_ID
    FROM DUAL;
    END "INSERT_DEPARTMENT";
    I've tried lots of different things here; I started declaring the parameter as a NUMBER, now it's set to a %TYPE on the column as you can see... and I've also tried assigning the NEXTVAL to a NUMBER(4) local variable before assigning it to the OUT parameter.
    Here's the C# that configures the insert command:
    // Insert - note that department_id param is an output param
    OracleCommand insert = new OracleCommand("odp_hr_dal.insert_department", connection);
    insert.CommandType = CommandType.StoredProcedure;
    insert.Parameters.Add(new OracleParameter("new_department_id", OracleDbType.Int16, 2, "department_id"));
    insert.Parameters["new_department_id"].Direction = ParameterDirection.Output;
    insert.Parameters.Add(new OracleParameter("new_department_name", OracleDbType.Varchar2, 30, "department_name"));
    insert.Parameters.Add(new OracleParameter("new_manager_id", OracleDbType.Int32, 4, "manager_id"));
    insert.Parameters.Add(new OracleParameter("new_location_id", OracleDbType.Int32, 4, "location_id"));
    deptDataAdapter.InsertCommand = insert;
    The key line is the adding of the "new_department_id" line where I have tried many different types in the vain hope that I can somehow override the conversion process to not think it needs to go as large as a Decimal type.
    I wonder if anyone could help point me towards the (probably obvious) thing that I am missing? I've run out of ideas on things to try!
    With Best Regards,
    Nij

    Thank you muylaerk,
    That did work.
    However, this and the related link you posted raise a question: Given that (in the case of Decimal types) whichever of the DbType or OracleDbType property you set, the other value is set to Decimal also... what setting in the OracleParameter records which was the 'set' property, and therefore, which type will the Value be set to?
    In other words, does anything visibly change in the debugger view of the OracleParameter type to see this?
    Nij

  • Workaround for opening a strongly typed cursor using native dynamic SQL

    Hi All,
    In reading the PL/SQL documentation for Oracle 9i, I noted that the OPEN-FOR
    statement with a dynamic SQL string only allows the use of weakly typed cursors.
    I have verified this limitation with my own experimentation as follows:
    DECLARE
    type rec_type is record(
    str     varchar2(40),
    num     number(22)
    type cur_type is ref cursor return rec_type;
    my_cur     cur_type;
    que     varchar2(100);
    tab     varchar2(40);
    BEGIN
    tab := 'dynamic_table_name';
    que := 'select key_name, key_value from ' || tab || ' where key_name like ''01%''';
    open my_cur for que;
    loop
    if my_cur%found then
    dbms_output.put_line('source_name: ' || my_cur.str || ', page_sn: ' || my_cur.num);
    exit;
    end if;
    end loop;
    close my_cur;
    END;
    Running the above trivial example in an anonymous sql block yields the following
    errors as expected:
    ORA-06550: line 10, column 8:
    PLS-00455: cursor 'MY_CUR' cannot be used in dynamic SQL OPEN statement
    ORA-06550: line 10, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 13, column 54:
    PLS-00487: Invalid reference to variable 'MY_CUR'
    ORA-06550: line 13, column 7:
    PL/SQL: Statement ignored
    Is there a workaround to the situation? Since I do not know the table name at run
    time, I must use Native Dynamic SQL. I have a long and complex record type
    that I wish to return through JDBC using the REFCURSOR Oracle type in order to
    avoid having to register an inordinate number of OUT parameters. Moreover, I
    would like to return potentially one or more results in a ResultSet. Using the
    standard method of registering native SQL types for the IN and OUT bindings
    can only return one result. Hence the reason I would like to return a strong
    cursor type. Also, the type of query I am doing is complex, and needs to be
    executed in a PL/SQL procedure for performance reasons. Therefore simply
    executing a SELECT query dynamically built up on the the JDBC client won't
    do the trick.
    If anybody has experience with a similar problem and would like to volunteer
    information on their workaround, I would really appreciate it.
    Best Regards,
    J. Metcalf

    We can use strongly-typed REF CURSORs in DNS, but the typing derives from a table e.g.
    TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
    so the problem is your use of "return rec_type" bit.
    Forgive my bluntness but I think you have misunderstood strong and weak typing. You actually want to be using weakly-typed cursors. I mean this:
    Moreover, I would like to return potentially one or more results in a ResultSet. suggests that the structure of your resultset may vary, which is precisely what a weakly-typed ref cursor allows us to do. Then we can use the JDBC metadata methods to interrogate the structure of the resultset, innit.
    so try this:
    DECLARE
    type cur_type is ref cursor;
    my_cur cur_type;
    que varchar2(100);
    tab varchar2(40);
    BEGIN
    tab := 'dynamic_table_name';
    que := 'select key_name, key_value from ' || tab || ' where key_name like ''01%''';
    open my_cur for que;
    loop
    if my_cur%found then
    dbms_output.put_line('source_name: ' || my_cur.str || ', page_sn: ' || my_cur.num);
    exit;
    end if;
    end loop;
    close my_cur;
    END;
    ras malai, APC
    Cheers, APC

  • Update query (or other method) to a typed dataset

    Hi
    i have created a typed DataSet in code that is created at runtime. It gets populated then it needs to be updated based on 2 paramaters
    EmployeeID & AssignmentID
    How can i run an update query on the runtime created Dataset? Hee is how i create my Dataset-
    Private sGridDataSet As New DataSet("GridDataset")
    Private tblGridTable As DataTable
    sGridDataSet.CaseSensitive = False
    tblGridTable = sGridDataSet.Tables.Add("tblGrid")
    With tblGridTable
    .Columns.Add("AssignmentID", GetType(System.String))
    .Columns.Add("ProjectName", GetType(System.String))
    .Columns.Add("Day1", GetType(System.String))
    .Columns.Add("Day2", GetType(System.String))
    .Columns.Add("Day3", GetType(System.String))
    .Columns.Add("Day4", GetType(System.String))
    .Columns.Add("Day5", GetType(System.String))
    .Columns.Add("Day6", GetType(System.String))
    .Columns.Add("Day7", GetType(System.String))
    End With
    'get data from qryAssignments
    sAssignID = Me.AssignmentData.qryAssignments.Rows(j)(1)
    sProjName = Me.AssignmentData.qryAssignments.Rows(j)(0)
    newValues = {sAssignID, sProjName, Day1, Day2, Day3, Day4, Day5, Day6, Day7}
    tblGridTable.Rows.Add(newValues)
    Me.QryAssignmentsTableAdapter.ClearBeforeFill = True
    Dim sDate As Date = Me.txtDate.Text
    Dim EndDate As Date = sDate.AddDays(6)
    Me.QryAssignmentTimesTableAdapter.Fill(Me.AssignmentData.qryAssignmentTimes, Me.txtEmployeeID.Text, Me.txtDate.Text, CStr(CType(CStr(EndDate), DateTime)))
    Dim p As Integer = 0
    For p = 0 To Me.AssignmentData.qryAssignmentTimes.Rows.Count - 1
    vDayNo = Weekday(Me.AssignmentData.qryAssignmentTimes.Rows(p)(0), FirstDayOfWeek.Monday)
    Dim m As String = Me.AssignmentData.qryAssignmentTimes.Rows(p)(0)
    'NEED TO UPDATE DATASET TABLE HERE BASED ON EMPLOYEEID AND ASSIGNMENTID
    Next
    Me.GridControl1.DataSource = tblGridTable
    Hopefully, someone can give me a few pointers :)
    Thanks
    Nigel
    Nacho is the derivative of Nigel &amp;quot;True fact!&amp;quot;

    Hello,
    If I have more than one table to work with, a DataSet would be the container while if one table then no DataSet, just a DataTable. I would use code similar to the following which is for MS-Access yet by changing to SqlClient data provider instead of OelDb
    data provider the same methods work.
    Taken from
    this project.
    Module DatabaseOperations
    Private Builder As New OleDb.OleDbConnectionStringBuilder With
    .Provider = "Microsoft.ACE.OLEDB.12.0",
    .DataSource = IO.Path.Combine(Application.StartupPath, "Database1.accdb")
    ''' <summary>
    ''' Read USA customers from database into a DataTable
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks>
    ''' Database is assumed to be in the Bin\Debug folder.
    ''' </remarks>
    Public Function LoadCustomers() As DataTable
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText =
    <SQL>
    SELECT
    Identifier,
    CompanyName,
    ContactName,
    ContactTitle,
    Address,
    City,
    PostalCode,
    Country
    FROM Customer;
    </SQL>.Value
    Dim dt As New DataTable With {.TableName = "Customer"}
    Try
    cn.Open()
    dt.Load(cmd.ExecuteReader)
    dt.Columns("Identifier").ColumnMapping = MappingType.Hidden
    dt.Columns("Country").ColumnMapping = MappingType.Hidden
    Catch ex As Exception
    MessageBox.Show("Failed to load customer data. See error message below" & Environment.NewLine & ex.Message)
    End Try
    dt.AcceptChanges()
    Return dt
    End Using
    End Using
    End Function
    Public Function RemoveCurrentCustomer(ByVal Identfier As Integer) As Boolean
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText = "DELETE FROM Customer WHERE Identifier = ?"
    Dim IdentifierParameter As New OleDb.OleDbParameter With
    .DbType = DbType.Int32,
    .ParameterName = "P1",
    .Value = Identfier
    cmd.Parameters.Add(IdentifierParameter)
    Try
    cn.Open()
    Dim Affected = cmd.ExecuteNonQuery
    Return Affected = 1
    Catch ex As Exception
    Return False
    End Try
    End Using
    End Using
    Catch ex As Exception
    ' Handle or not handle exceptions for failed save operation
    Return False
    End Try
    End Function
    Public Function AddNewRow(ByVal Name As String, ByVal Contact As String, ByRef Identfier As Integer) As Boolean
    Dim Success As Boolean = True
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText =
    <SQL>
    INSERT INTO Customer
    CompanyName,
    ContactName
    Values
    @CompanyName,
    @ContactName
    </SQL>.Value
    cmd.Parameters.AddWithValue("@CompanyName", Name)
    cmd.Parameters.AddWithValue("@ContactName", Contact)
    cn.Open()
    cmd.ExecuteNonQuery()
    cmd.CommandText = "Select @@Identity"
    Identfier = CInt(cmd.ExecuteScalar)
    End Using
    End Using
    Catch ex As Exception
    Success = False
    End Try
    Return Success
    End Function
    Public Function SaveChanges(ByVal sender As DataRow) As Boolean
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText =
    <SQL>
    UPDATE
    Customer
    SET
    CompanyName=?,
    ContactName=?
    WHERE Identifier = ?
    </SQL>.Value
    Dim CompanyNameParameter As New OleDb.OleDbParameter With
    .DbType = DbType.String,
    .ParameterName = "P1",
    .Value = sender.Field(Of String)("CompanyName")
    cmd.Parameters.Add(CompanyNameParameter)
    Dim ContactNameParameter As New OleDb.OleDbParameter With
    .DbType = DbType.String,
    .ParameterName = "P2",
    .Value = sender.Field(Of String)("ContactName")
    cmd.Parameters.Add(ContactNameParameter)
    Dim IdentifierParameter As New OleDb.OleDbParameter With
    .DbType = DbType.Int32,
    .ParameterName = "P3",
    .Value = sender.Field(Of Int32)("Identifier")
    cmd.Parameters.Add(IdentifierParameter)
    Try
    cn.Open()
    Dim Affected = cmd.ExecuteNonQuery
    Return Affected = 1
    Catch ex As Exception
    Return False
    End Try
    End Using
    End Using
    Catch ex As Exception
    ' Handle or not handle exceptions for failed save operation
    Return False
    End Try
    End Function
    End Module
    Here is an example of retrieving a row of data via a where condition
    Public Sub LoadSingle(ByVal Identifier As Integer)
    Using cn As New OleDb.OleDbConnection With
    .ConnectionString = Builder.ConnectionString
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText =
    <SQL>
    SELECT
    Identifier,
    CompanyName,
    ContactName
    FROM
    Customers
    WHERE Identifier=@Identifier
    </SQL>.Value
    cmd.Parameters.Add(New OleDb.OleDbParameter With
    .DbType = DbType.Int32,
    .ParameterName = "@Identifier",
    .Value = Identifier
    cn.Open()
    Dim Reader As OleDb.OleDbDataReader = cmd.ExecuteReader
    If Reader.HasRows Then
    Reader.Read()
    Console.WriteLine("Name: {0} Contact name: {1}",
    Reader.GetString(1), Reader.GetString(2))
    End If
    End Using
    End Using
    End Sub
    Here you can see (using a random example) that SQL-Server code uses the same logic and methods
    Using cn As New SqlConnection With {.ConnectionString = MyConnectionString}
    Dim CompanySearch As String = "An"
    Using cmd As New SqlCommand With {.Connection = cn}
    cmd.CommandText =
    <SQL>
    SELECT CompanyName
    FROM
    Customers
    WHERE
    CompanyName LIKE @CompanyName
    </SQL>.Value
    cmd.Parameters.Add(
    New SqlParameter With
    .DbType = DbType.String,
    .Value = CompanySearch & "%",
    .ParameterName = "@CompanyName"
    cn.Open()
    Dim Reader = cmd.ExecuteReader
    If Reader.HasRows Then
    While Reader.Read
    Console.WriteLine(Reader.GetString(0))
    End While
    Else
    Console.WriteLine("No matches")
    End If
    End Using
    End Using
    So all the above is "hand coding" and there is still the option to use Adapters but for simple stuff they are over kill. The only benefit for them with simple stuff is if you are a visual person, thats it.
    See also:
    This article on creating SQL statement as per how I did it in the examples above. In the next release of Visual Studio this method will be easier similar to C#
    Currently in C# we can do this
    string selectStatement = @"
    SELECT CompanyName
    FROM
    Customers
    WHERE
    CompanyName LIKE @CompanyName";
    On creating a DataTable, check out this simple utility
    https://code.msdn.microsoft.com/DataTable-creator-95b655b3
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Accessing typed dataset in SQL Server Compact Toolbox in VS 2013

    I am a novice with coding so this could be a very simple answer. I am coding an application in Visual Studio 2013 with VB. I included a Compact SQL Server database using the SQL Server Compact Toolbox add in. The database shows up in my solutions explorer.
    I plan on using a typed dataset for my application but when I try to reference the dataset using this code the intellisense doesn't recognize it.
    Dim newCustomerRow As DHA_dbDataSet.CustomerRow
    My database is named "DHA_db". I am sure there are steps I am missing.
    How do I reference the typed dataset so I can add rows and data to it?
    Thanks in advance.
    Hmm...

    The Toolbox (I am the author of it) does not support Typed DataSets (and neither does VS 2013, I believe). You should use LINQ to SQL instead, and the Toolbox supports code generation for this.
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com
    Thank you a ton. I started off with an incorrect assumption about the dataset. Your advice and a google search led me to description of how to add a typed DataSet.
     http://msdn.microsoft.com/en-us/library/04y282hb.aspx 
    I like the Toolbox add in. Thanks for authoring it!
    Hmm...

  • Weak and Strongly Typed Reference Cursors in Reports

    Our custom reports has been using a reference cursor. I have inherited the code and not sure why there is a need to use a reference cursor when it can be done by a simple select statements. I see no dynamic select statements passed or any special parameters to reason out for use of reference cursor in our custom reports. Prior developers had reason out the benefits of using reference cursor for performance. I tested this by running a report with reference cursor versus plain select statement and still the report that is using the plain select statement performed better (faster) than the report that has the reference cursor, there is a big difference.
    I have seen some disadvantage of using reference cursor on the reports that when there is a database object change even if the package that sourced the reference cursor has not been updated or modified the reports needs to be recompiled each time we get this error message coming from the report server queue:
      Terminated with error: <br>REP-8: Run time error in the PL/SQL development
      environment (DE). PDE-PSD001 Could not resolve reference to <Unknown Program Unit>
      while loading <Unknown> <Unknown>. REP-0008: Unexpected memory error while
      initializing preferences.In 9iAS reports prior version the error is occurring rarely. When we moved to 10.1.2.2.0 reports it appears the error occurs most often. We have made an effort to research about the issue and appears to be a bug. One suggestion is to use a strongly typed reference cursor. I have tried to researched about the difference between a weak and strongly typed reference cursor but failed to understand them. I appreciate any help about examples differentiating a weak versus a strongly typed reference cursors.
    Thanks,
    Warren

    I guess my point, for what it's worth, is that whether you use only a strongly typed REF CURSOR, or whether you also use a weakly typed REF CURSOR, you may still end up getting the REP-0008 error (at least if your report is in .REP format). You can avoid this by using a pipelined function instead (or by putting the SQL directly in the report, or possibly by using .RDF or .JSP format).
    To test this, you might:
    1. Create a database package with an SQL*Plus script that that looks something like this:
    CREATE OR REPLACE PACKAGE TEST AS
        TYPE RECORD_TYPE IS RECORD
            USERNAME ALL_USERS.USERNAME%TYPE
        TYPE TABLE_TYPE IS TABLE OF RECORD_TYPE;
        TYPE WEAKLY_TYPED_REF_CURSOR_TYPE IS REF CURSOR;
        TYPE STRONGLY_TYPED_REF_CURSOR_TYPE IS REF CURSOR RETURN RECORD_TYPE;
        FUNCTION GET_WEAKLY_TYPED_REF_CURSOR RETURN WEAKLY_TYPED_REF_CURSOR_TYPE;
        FUNCTION GET_STRONGLY_TYPED_REF_CURSOR RETURN STRONGLY_TYPED_REF_CURSOR_TYPE;
        FUNCTION GET_PIPELINED_TABLE RETURN TABLE_TYPE PIPELINED;
    END TEST;
    CREATE OR REPLACE PACKAGE BODY TEST AS
        FUNCTION GET_WEAKLY_TYPED_REF_CURSOR RETURN WEAKLY_TYPED_REF_CURSOR_TYPE
        IS
            cWeaklyTypedRefCursor WEAKLY_TYPED_REF_CURSOR_TYPE;
        BEGIN
            OPEN cWeaklyTypedRefCursor FOR
            SELECT USERNAME FROM ALL_USERS;
            RETURN cWeaklyTypedRefCursor;
        END GET_WEAKLY_TYPED_REF_CURSOR;
        FUNCTION GET_STRONGLY_TYPED_REF_CURSOR RETURN STRONGLY_TYPED_REF_CURSOR_TYPE
        IS
            cStronglyyTypedRefCursor WEAKLY_TYPED_REF_CURSOR_TYPE;
        BEGIN
            OPEN cStronglyyTypedRefCursor FOR
            SELECT USERNAME FROM ALL_USERS;
            RETURN cStronglyyTypedRefCursor;
        END GET_STRONGLY_TYPED_REF_CURSOR;
        FUNCTION GET_PIPELINED_TABLE
        RETURN TABLE_TYPE PIPELINED
        IS
        BEGIN
            FOR rec IN
                SELECT USERNAME FROM ALL_USERS
            LOOP
                PIPE ROW(rec);
            END LOOP;
        END GET_PIPELINED_TABLE;
    END TEST;
    /2. Create a report based on REF CURSOR query using only a strongly typed REF CURSOR. The PL/SQL statement that you use in the report as the data source for the query might look something like this:
    function QR_1RefCurDS return test.strongly_typed_ref_cursor_type is
    begin
      return test.get_strongly_typed_ref_cursor;
    end;3. Compile the report to a .REP file and run it to make sure it works as expected.
    4. Drop and re-create the TEST package in the database.
    5. Try running the .REP file again. I expect you will get the REP-0008 error.
    6. Modify the REF CURSOR query to use an underlying weakly typed REF CURSOR by changing the PL/SQL statement (from Step 2) to something like this:
    function QR_1RefCurDS return test.strongly_typed_ref_cursor_type is
    begin
      return test.get_weakly_typed_ref_cursor;
    end;7. Repeat Steps 3 through 5. I expect you will get the REP-0008 error again.
    8. Replace the REF CURSOR query in report with an SQL query that looks something like this:
    SELECT * FROM TABLE(TEST.GET_PIPELINED_TABLE)9. Repeat Steps 3 through 5. I expect you will not get the REP-0008 error.
    Hope this helps.

  • Oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension not found

    I am getting this error whenever I try to start the oc4j server using jdev
    Server start failed (com.evermind.server.ApplicationServer@1f1e666)java.lang.InstantiationException: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.instantiateServiceExceptionProvider(ServerExtensionProviderSpec.java:70)
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.getProvider(ServerExtensionProviderSpec.java:55)
         at com.evermind.server.ApplicationServer.initInternalSettings(ApplicationServer.java:1401)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1104)
         at oracle.oc4j.server.ServerFactory$Worker.startServer(ApplicationServerFactory.java:272)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:284)
         at java.lang.Thread.run(Thread.java:595)
    2008-11-25 04:14:06.698 Trying to destroy server.
    2008-11-25 04:14:06.701 Server exiting: ApplicationServer entered state FAILED_IN_START
    Process exited.
    And thus I am unable to start the server.
    The strange thing is that other people working on the same project don't get this error on their machines.I tried deleting system folder, restarting jdev, restarting my system and even tried to run a new page in a new view and new transaction
    However, nothing worked out as I am still getting the same error.
    The complete log is given below for reference.
    Please help.
    [Starting DefaultServer using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /ade_autofs/ade_fusion_linux/JDK15_MAIN_LINUX.rdd/080209.1.5.0.15.02/jdk15/bin/java -server -classpath /scratch/software/jdev_local/FMWTOOLS_MAIN.APPS_GENERIC_081007.1211.D06B09.3/j2ee/home/oc4j.jar:/scratch/software/jdev_local/FMWTOOLS_MAIN.APPS_GENERIC_081007.1211.D06B09.3/jdev/lib/jdev-oc4j-embedded.jar -Xmx1024M -Djbo.debugoutput=console -Xverify:none -XX:MaxPermSize=512m -DcheckForUpdates=adminClientOnly -Xrs -Doracle.oc4j.configuration.rds.enabled=n -Dhttp.file.allowAlias=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false -Djava.security.policy=/scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/java2.policy oracle.oc4j.loader.boot.BootStrap -config /scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsil.WSILServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.DynamicProxySerializationReplacer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServerMessages' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceException' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerFactory$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mex.MEXInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.addressing.ServerWSAddressingInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsat.WSATTransactionServices' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.wsat.WSATServerInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JmsTransportListener' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceInvoker' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverStruct' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletContextualizer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletEndpointContextImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletPostHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletPreHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.SingleThreadJAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.EjbContainerPostHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.EjbContainerPreHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderConfigImpl$DynamicService' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderConfigImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderDescription' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfo' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfoFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderInfoGenerator' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderJmsMessageListener' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderOperation' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderPlatformManager' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderPort' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderProcessor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.provider.ProviderServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceProcessor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.WebServiceServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ProcessorContext' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.addressing.ServerWSAddressingInterceptor' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolver' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverHome' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.portcomp.PortCompLinkResolverIntf' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.JAXRPCServlet' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.mgmt.runtime.ServerInterceptorPipeline' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.codegen.ServerArtifactGenerator' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.Tie' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.TieBase' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.StreamingHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.StreamingHandlerState' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServiceObjectFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServiceRefInvocationHandler' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.ServletContextualizer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.deployment.XMLHelper' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceEntry' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceEntryImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.fabric.FabricServiceRegister' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.DocumentBareEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.DocumentWrapperEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.EJBWebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.IncomingRequestData' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.JaxWsEJBWebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ProviderInfoGeneratorImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ProviderMessageContext' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.RpcLiteralEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializer' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializerManager$1' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.SoapEndpointSerializerManager' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParser' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParserFactory' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceAnnotationParserResult' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:02 WARNING: Bulk-load class 'oracle.j2ee.ws.server.jaxws.WebServiceContextImpl' not found in oc4j:11.1.1.0.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.reliability.interceptor.ReliabilityClientDescriptor' not found in oracle.ws.reliability:10.1.3
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.BinaryDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.GifDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.JpegDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.StringDataContentHandler' not found in oracle.saaj:11.0
    08/11/25 04:14:03 WARNING: Bulk-load class 'oracle.j2ee.ws.saaj.soap.ch.XmlDataContentHandler' not found in oracle.saaj:11.0
    2008-11-25 04:14:05.859 Legacy datasource detected...attempting to convert to new syntax.
    2008-11-25 04:14:05.859 Legacy datasource detected...attempting to convert to new syntax.
    2008-11-25 04:14:06.170 Missing audit farm configuration file null
    2008-11-25 04:14:06.209 Base directory /scratch/mkghatak/view_storage/mkghatak_product_reg/.jdev_user_home/system11.1.1.0.30.50.50/o.j2ee/embedded-oc4j/config/applications defined in system property does not exist.
    2008-11-25 04:14:06.697 Server start failed (com.evermind.server.ApplicationServer@1f1e666)java.lang.InstantiationException: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.instantiateServiceExceptionProvider(ServerExtensionProviderSpec.java:70)
         at oracle.oc4j.runtime.ServerExtensionProviderSpec.getProvider(ServerExtensionProviderSpec.java:55)
         at com.evermind.server.ApplicationServer.initInternalSettings(ApplicationServer.java:1401)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1104)
         at oracle.oc4j.server.ServerFactory$Worker.startServer(ApplicationServerFactory.java:272)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:284)
         at java.lang.Thread.run(Thread.java:595)
    2008-11-25 04:14:06.698 Trying to destroy server.
    2008-11-25 04:14:06.701 Server exiting: ApplicationServer entered state FAILED_IN_START
    Process exited.

    This is not an ADF related problem. I have the same problem when trying to start embedded OC4J with an simple JSP or servlet. OC4J complains about the missing class and the browser does not start automatically, but you can start the browser manually and type in the right URL. At least with servlets and JSP this works just fine - (but you are still right, it's the wrong forum).
    Wolfgang

  • New-variable to create strongly typed variable

    In PowerShell to create a strongly typed I used to create strongly typed variable by typing Data Type in [] like [int]$a
    Is there any way you can create a strongly typed variable using variable command-lets such as New-Variable or Set-variable 

    Thanks Boe
    I know that it can be made strongly typed that way, All I wanted to know was can it be done via Command-lets
    Unfortunately,  it cannot be done using the *-Variable cmdlets. However, if you feel strongly that it should have this capability, feel free to log a Connect item asking for this as a feature in a future version. There are no promises that it will
    happen, but it will at least make the product team aware of it.
    Connect Site: https://connect.microsoft.com/PowerShell/Feedback
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • Why java is strongly typed language

    Can any one help me to answer the following query:
    (1)why java is strongly typed language?

    Can any one help me to answer the following query:
    (1)why java is strongly typed language?http://en.wikipedia.org/wiki/Strongly-typed_programming_language

  • How to make the oracle forms 10g applet or runtime the size of 1024x768?

    Hi,
    Can anyone tell me
    How to make the oracle forms 10g applet or runtime the size of 1024x768?
    Thanks in advans..

    Please post your question in Forms Topic
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Caching WSDL, generating strongly typed web service classes

    Hi All,
    I come from an ASP.NET background. Visual Studio provides a
    great tool for generating proxy classes based on a WSDL XML
    document. What's so great about this is that you are able to have
    strongly type classes (with intellisense in the IDE), compile time
    type checking, and so forth.
    What this means is that if I have a web service that defines
    the method getColors, and takes two parameters; let's say an
    enumerated type, "primary" or "secondary" for the first parameter,
    and "hex" or "english" for the second parameter (also an enumerated
    type), Visual Studio will generate a proxy class for me that will
    give me type hinting. I'll see that the "getColors" method takes
    two parameters, and it will even show the the possible values for
    the enumerated type.
    Is there anything like this in Flex?
    -Josh

    Hi Josh,
    Flex Builder 3 includes the "Import Web Service (WSDL)"
    wizard which is a tool that will generate proxy classes from a WSDL
    file. This tool is included in the latest engineering drop, but is
    not available in the latest beta build. You can access it via
    File>Import>Flex>Import Web Service (WSDL) or by accessing
    the Data>Import Web Service (WSDL)... menu option.
    Plus, using the web services manager tool (accessible via
    Data>Manage Web Services...) you can generate proxy classes for
    more than one WSDL file by adding more WSDLs to your project,
    remove the generated classes by deleting the WSDL from your project
    or regenerate the proxy classes by using the Update option.
    Using the proxy classes you benefit from code hinting of
    operations the web service exposes, code hinting on the operation
    parameters and their types, you get strongly typed results and
    more.
    Give these tools a try. We will appreciate any feedback
    you'll provide.

Maybe you are looking for

  • IPhone 5 Help - Box Swap even WORSE!

    Hey, basically I bought an iPhone 5 on contract from 02 a few weeks ago, there was no real problems with the phone other than two simple things: 1) A dot on my phone app was constantly appearing saying I had unread voice mail on the server, however t

  • How do I change position of text?

    I double clicked and I'm trying to move the circle, but it doesn't seem to move. I'm texting it out with a sample video and position just won't budge no matter how many times I try to move the circle. Here is my problem in video: http://youtu.be/lGsF

  • Illustrator CS4 unknow  error message

    Hello I am working on PC, Windows 7, Illustrator CS4 , and since few days this message appears each time I try to open a file : "an unknow error has occured". I have re loaded  Illustrator but the problem is still here. What can I do ? Thank you

  • Unable to "try" trial version... "Adobe Presenter failed to open because..."

    After installing the trial version of Presenter 7, and launching it in PowerPoint (2007)... each time I go to the "Adobe Presenter" tab, in PowerPoint, and try to click on any button (on the toolbar - for example "Help")... I see a dialog flash on th

  • OVM server Reboot

    Dear Gurus, I would like to get clear some of my doubts regarding Oracle VM server. Actually i am very new to OVM and we are having a OVM setup and the ovm version is 3.2. We are having a server pool having two servers. Doubts : 1. During the creatio