Using RAW in Jave Bean to store data in Oracle 8i database

I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated.
Jane

I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated.
Jane Jane,
here is a code snippet provided by our QA team
hope it helps
Kuassi
1. Create the table:
"CREATE TABLE rawtable (key VARCHAR2(30), rawcol RAW(2000), longrawcol
LONG RAW, moredata VARCHAR2(100))"
2. Write the data:
byte x[] = {1,2,3,4,5};
byte y[]= {6,7,8,9,10};
PreparedStatement pstmtR =
conn.prepareStatement("INSERT INTO rawtable (key, rawcol,
longrawcol, moredata) VALUES (?, ?)");
pstmtR.setString(1, "rawcol data");
pstmtR.setBytes(2, x);
pstmtR.setNull(3, Types.LONGVARBINARY);
pstmtR.setString(4, "Here's some more data!");
pstmtR.execute();
pstmtR.setString(1, "longrawcol data");
pstmtR.setNull(2, Types.BINARY);
pstmtR.setBytes(3, y);
pstmtR.setString(4, "Here's some more data!");
pstmtR.execute();
pstmtR.setRAW(1, RAW_obj) can be used to insert the RAW data.
You can also use setBinaryStream to insert RAW data:
CallableStatement cstmt =
conn.prepareCall ("begin insert into rawtab values (?,?); end;");
cstmt.setBinaryStream (1, (java.io.InputStream) new
ByteArrayInputStream(rawbuf), rawbuf.length);
cstmt.setBinaryStream (2, (java.io.InputStream) new
ByteArrayInputStream(lrawbuf), lrawbuf.length);
3. Read the data:
InputStream is = null;
byte rawbuf [];
byte lrawbuf [];
ResultSet rset = stmt.executeQuery("SELECT rawcol, longrawcol FROM
rawtable");
// You can retrieve the data with the following methods
rawbuf = rset.getBytes(1);
lrawbuf = rset.getBytes(2);
RAW raw1 = rset.getRAW(1);
is = rset.getBinaryStream(column);
is = rset.getAsciiStream(column);
is = rset.getUnicodeStream(column);
When using CallableStatement:
((OracleCallableStatement)cstmt).registerOutParameter(1,
OracleTypes.RAW);

Similar Messages

  • How to mask data in oracle 11g database release 1

    how to mask data in oracle 11g database release 1
    my environment is
    Database: 11g release 1
    os: AIX 6 (64 bit)
    GC:10g release 1

    DBA-009 wrote:
    thx but how i can mask data with above give environment?What does "mask data" mean to you and what is the environment you are referring to?
    Telling us that you are using 11.1 helps. But it is far from a complete description of the environment. What edition of the database are you using? What options are installed? What Enterprise Manager packs are licensed? Is any of this changable? Could you license another option for the database or another pack for Enterprise Manager if that was necessary?
    What does it mean to you to "mask data"? Do you want to store the data on disk and then mask the data in the presentation layer when certain people query it (i.e. store the patient's social security number in the database but only present ***-**- and the last 4 digits to certain sets of employees)? Do you want to hide entire fields from certain people? Do you want to change the data stored in the database when you are refreshing a lower environment with production data? If so, do you need and/or want this process to be either determinisitic or reversable or both?
    Justin

  • How to migrate data from oracle 9i database to new machine 11gr2 RAC ASM

    Hi Expert
    I need your expertise to advise me what is the best method to move data from oracle 9i database to new machine running oracle 11r2 RAC database with ASM.
    Currently my production server running on HPUX ORACLE 9I database with normal file system. My new server is running SUN SOLARIS SPACR 64 bit ORACLE 11gr2 RAC with ASM. What is best method to move data over so it will be consistent. Any guide can refer.
    Regard
    William

    Hi William,
    See the note in metalink Migration of Oracle Database Instances Across OS Platforms [ID 733205.1] to saw the Endian Format of your OS. If is the same you can use the RMAN to convert the database to another OS, if not the only option is using export/import (Transportable Tablespaces).
    To upgrade from 9i to 11g, see the note 837570.1 - Complete Checklist for Manual Upgrades to 11gR2.
    To migrate your FS to ASM the only way is using RMAN, so see the note - How to move a datafile from a file system to ASM [ID 390274.1].
    Hope this help you.
    Best Regards,
    Ruben Morais

  • Getting all the CRM on Demand Data in Oracle 10g database

    Hello Everyone,
    The requirement is to get all the module data into Oracle 10g database.
    Currently i am using the background worker in .NET to span through all the modules, but recently experiencing performance issues due to data volume.
    I want to use .NET as the programming language.
    Kindly suggest any other methids / techniques.
    Thanks in advance.
    Regards.

    Thanks for your reply.
    We are using CRMOD webservices.
    We want the full OD data to be refreshed overnight and we havve used .NET to build the EXE, the same we have configured as a task.
    Could you please shed some more light as to what would be the best practices to do this.
    Regards.

  • Plz help to to transfer excel or acess data to Oracle 10g database

    Plz help me to transfer excel or acess data to Oracle 10g database.
    I have excel and acess sheet data here i wanna transfer it to oracle database. Plz guide me how to this
    Message was edited by:
    user582212

    There are several ways, such as ODBC or migration workbench, which is also mentioned in the current article on sqldeveloper on OTN, here's the link. If you use this forum's search function, you should find several threads regarding this topic.
    C.
    Message was edited by:
    cd

  • Using java beans to store records from recordset

    Hi there,
    I have been stuck on an issue with Java Beans in JSP for the last few days and cant get my head around it.
    I am basically trying to retrieve all the records out of a resultset which pulls records from a table through a JDBC connection and store the records in a html table using the java beans getProperty tag.
    Problem is that the first row of the recordset is being applied to every row in the table. I have tried implementing for loops to iterate through the result set but without any luck.
    I need help urgently
    Thank you

    Thanks for the feedback M
    I have added the JSTL 1.1 library and used the Foreach components and data source components which now totally eliminate the need for beans altogether. :P
    <c:forEach var="row" items="${deejays.rows}">
    <tr onmouseover="this.bgColor='gold';"
    onmouseout="this.bgColor='#FFFFFF';">
    <c:forEach var="column" items="${row}">
    <td>
    <c:out value="${column.value}"/>
    </td>
    </c:forEach>
    <td width="24%" align="center">
    <input type="image" src="7af5.jpg" name="test" value="test"/>
    </td>
    <td width="15%">
    <input type="radio" name="book1"/>
    </td>
    </tr>
    </c:forEach>
    </table><p align="left">
    How and where do i add the beans in here now???

  • User parameter are not show in database using Servlet and java Bean

    Hello Sir,
    when I insert the parameter in run time, weblogic server and JSP show that parameter are saved.
    Allthough row increment in database but they not show in database.
    Here My Code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(user);
    st.setpassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getuserName() {
    return user;
    public void setuserName(String user) {
    this.user = user;
    public String getpassword() {
    return pass;
    public void setpassword(String Pass) {
    this.pass= pass ;
    public String issueData()
    try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij2 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String NAME=getuserName();
    st.setString(1,NAME);
    String PASSWORD=getpassword();
    st.setString(2,PASSWORD);
      st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:This is Submit page
    <jsp:useBean id="st" class="co.SimpleBean"/>
    <jsp:setProperty name="st" property="*" />
    <jsp:getProperty name="st" property="userName" /> <br>
    <jsp:getProperty name="st" property="password" /> <br>
    <% st.issueData();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    Ok, this seems to be a long and convoluted path to do absolutely nothing.
    You submit the form.
    You run a servlet that gets the parameters correctly (good), creates a SimpleBean (good) and then sets this into request attribute space under the names "user" and "pass" - (why?)
    You then forward to the jsp: submit.jsp.
    Submit.jsp creates a new SimpleBean, and attempts to populate it with <jsp:setProperty>. You then call the issueData method on it.
    Your complaint: Rows are being created in the database which have empty string values instead of the parameters you have passed.
    So, why are the values blank? Where do you think these values should be coming from?
    Looking at SimpleBean we find one mistake - you have mis-named your get/set methods.
    To properly follow java beans standards, you should use camel-case for your methods.
    Rather than getuserName() the method should be getUserName(). getpassword() should be getPassword() etc etc.
    The method getUserName() defines a property "userName" for the bean.
    Once that is fixed, lets go to submit.jsp. The <jsp:setProperty> statement will try and set all properties of the bean from the request parameters.
    There are no request parameters "userName" or "password" so those values don't get set in the bean, therefore it uses their default value of empty string - "".
    There ARE request parameters called "user" and "pass" but because they aren't properties of the bean, they get ignored.
    As a result, the values are empty string, and that is exactly what gets inserted into the database.
    Ways to fix this
    1 - rename your parameters on your form to be "userName" and "password" to match the bean. That way the <jsp:setProperty> tag will populate them properly.
    or
    2 - Call issueData() method from your servlet after you have created the SimpleBean. Better in my opinion as you then don't have any scriptlet code on a JSP page.
    Cheers,
    evnafets

  • Calling Portal Service using result as Java Bean Model impossible?

    Hello folks,
    we try to achieve to call a portal service (working) which gives as a result a list of object of type com.foo.Report. We want to make use of this class as a model class, so we have the class as a model node in the context. The class itself is part of the service DC.
    Unfortunately at run time it gives us a NoClassDefFound Exception of com.foo.Report.
    As the com.foo.Report is part of the same DC as the service, it is no option to add the PAR public part to the used DCs of the WD DC because then there is this type conflict when we call the service (service look up). Or am I wrong and this is the way to do it? I mean I struggled quite a while to get the service look up right and needed to remove all the PAR/lib used DCs from the used DCs of the WD Project, when I got it working this Model error came up. I also tried to put the Model class in a separate DC but that caused the same error.
    how is it possible to call a Portal service from WD and using it's return vale as a Model class
    our system iis 7.0.17
    best
    Stefan

    Hi,
    Refers the following docs..
    EJBs in Web Dynpro Application Using Wrapper Class
    Here Java Bean Model used in web dynpro.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    Accessing database table using EJB and web dynpro
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    Oracle Connectivity with EJB using WebDynpro Application
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/oracle%2bconnectivity%2bwith%2bejb%2busing%2bwebdynpro%2bapplication
    Hope it will help u.
    thanks
    Abhilasha

  • Using getRemoteAddr() in java bean

    i am trying to get user ip
    it is simple that we can get it in a jsp file with the following function
    request.getRemoteAddr()
    when i tried to put it into a java bean i will get an error message
    cannot find symbol request.
    any one ave any idea?

    Hi,
    You should never create threads on your own when using an application server.
    These threads cannot be managed by the application server, this can result in large performance degradation and performance predictability.
    If you continue t launch Threads form backing beans, Weblogic can no longer manage the machine, it thinks it knows all the threads created and manages those.
    But your (rogue) thread interfere with the managed threads causing Weblogic itself to break in the end.
    I think you can solve your issue by just using backing beans on the correct scope.
    Anton

  • Extracting date from oracle/other databases exactly to java

    Hello Friends,
    Iam creating a simple program which extracts data from any database and stores it in an XML file and also it can extract data from an XML file and updates the database.
    My program is just getting the tablename as an input and from that it builds the query (select * from tablename). Through ResultSet, Iam extracting date fields with getDate() method of ResultSet, which is yeilding converted dates [In oracle if date is 23-DEC-1980, Im getting it as 1980-12-23 in java]. Even getString() method of ResultSet doesn't work.
    I want my program to work with any database engine, which may have their own date formats. Kindly can anyone suggest me a way to extract date from any database exactly as it is to java.
    NOTE:: I can't use to_char(datefield) type commands in SQLQUERY as the only input to my program is tablename and my query is, select * from tablename.
    Regards,
    Ch.Praveen.

    HI Friends,
    Thanks for your fast replies. My program is extracting data from a database and generating an XML file for it, which is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <table tableName="EMP">
    <row>
    <column columnName="EMPNO" columnType="NUMBER">7369</column>
    <column columnName="ENAME" columnType="VARCHAR2">'SMITH'</column>
    <column columnName="JOB" columnType="VARCHAR2">'CLERK'</column>
    <column columnName="MGR" columnType="NUMBER">7902</column>
    <column columnName="HIREDATE" columnType="DATE">'1980-12-17'</column>
    <column columnName="SAL" columnType="NUMBER">800</column>
    <column columnName="COMM" columnType="NUMBER" />
    <column columnName="DEPTNO" columnType="NUMBER">20</column>
    </row>
    <row>
    <column columnName="EMPNO" columnType="NUMBER">7499</column>
    <column columnName="ENAME" columnType="VARCHAR2">'ALLEN'</column>
    <column columnName="JOB" columnType="VARCHAR2">'SALESMAN'</column>
    <column columnName="MGR" columnType="NUMBER">7698</column>
    <column columnName="HIREDATE" columnType="DATE">'1981-02-20'</column>
    <column columnName="SAL" columnType="NUMBER">1600</column>
    <column columnName="COMM" columnType="NUMBER">300</column>
    <column columnName="DEPTNO" columnType="NUMBER">30</column>
    </row>
    </table>
    Here you can observe that HIREDATE column is having date in different format than in oracle. We are getting an error while we are extracting data from an XML file and updating the database, as dateformats differ. Can anyone provide a solution, which extracts date from database to java exactly as per the dateformat in database.

  • Store data in Oracle

    I´m using LabVIEW v.8 and Database Connectivity toolkit.
    Sending the SQL statement and with the DB Tools Execute Query vi in a loop, I store data in the Oracle database v 10. The data to be stored in the Oracle is in an ASCII file and in each iteration of the loop I store one data (really four, the first row of the file which has four columns each one containing some 10 000 data). This procedure is very time consuming.
    Does anyone knows how to store all the data at ones in the Oracle  DB.
    Thanks
    Simbani

    Hi Simbani
      There is no easy answer to your question. In the following link there are some hints you can take a look at
    http://forums.ni.com/ni/board/message?board.id=170&message.id=194233
    Hope it helps
    Javier Gutiérrez
    NI Spain Aplication Engineering

  • Lotus notes (ibm) to migrate all the data to Oracle DB Database 10g R2(10.2

    Hi Experts,
    we have legacy application which is running independently with back end as Lotus Notes(IBM).Now we wanted to migrate the application to our application with data . our application is running with oracle Database 10g R2(10.2.0.2.0).
    Now I wanted to migrate all the data to Oracle DB.
    Can you suggest me the best ways to do handle the above migrations .
    thanks in advance

    Hi,
    Install all the required packages.
    You are hitting a bug. Bug 7680459: LIBXP PACKAGE IS MISSING FROM LIST OF PACKAGES REQUIRED.
    As per documentation Bug 7680459, the package libXp-1.0.0-8 is also required to invoke OUI successfully.
    So, make sure that you have installed these packages including the dependency packages required.
    Follow Doc ID 419646.1: Requirements For Installing Oracle 10gR2 On RHEL/OEL 5 (x86)
    Regards,
    Satish

  • Using a Collection of beans to store a result set help.

    Does anyone have any sample code on the subject? This is something I wrote up, but I wanted feedback, and also an example of how to retreive data out of the array of beans in jsp
    package beanpersonal;
    import beandatabase.DBConnection;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import java.util.Collection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.util.ArrayList;
    public class PersonNew {
    public PersonNew() { }
    public Collection getPersondata( String alias, String password ) {
    Connection conn = null;
    PreparedStatement stmt = null;
    ResultSet rs = null;
    Collection retValue = new ArrayList();
    String query = "SELECT * FROM person WHERE (alias = ?, password = ?)";
    try {
    conn = DBConnection.getDBConnection();
    stmt = conn.prepareStatement( query );
    stmt.setString( 1, alias );
    stmt.setString( 2, password );
    rs = stmt.executeQuery();
    while (rs.next()) {
    PersonalInfo beanrow = new PersonalInfo();
    beanrow.setAlias(rs.getString("alias"));
    beanrow.setPassword(rs.getString("password"));
    retValue.add(beanrow);
    return retValue;
    catch( SQLException sqle ) {
    //sqle.printStackTrace();
    //throw new ApplicationSpecficException("Cannot query db", sqle);
    throw new RuntimeException(sqle);
    finally {
    try {if (rs != null) rs.close();} catch (SQLException e) {}
    try {if (stmt != null) stmt.close();} catch (SQLException e) {}
    try {if (conn != null) conn.close();} catch (SQLException e) {}
    }

    sorry i only view the codes, but don't read it as a whole maybe this codes can help you..
    jsp:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@page import="java.util.*,mypackage.TestBean"%>
    <%
    String name = request.getParameter("name")!=null?request.getParameter("name"):"";
    String age = request.getParameter("age")!=null?request.getParameter("age"):"";
    System.out.println(name);
    System.out.println(age);
    Collection col = new ArrayList();
    col = (Collection)session.getAttribute("col")!=null?(Collection)session.getAttribute("col"):new ArrayList();
    TestBean tBean = new TestBean();
    if(!name.equals(""))
      tBean.setName(name);
    if(!age.equals(""))
      tBean.setAge(age);
    if(!age.equals("") || !name.equals(""))
      col.add(tBean);
    session.setAttribute("col",col);
    %>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>untitled</title>
      </head>
      <body>
        <form>
          <table cellspacing="0" cellpadding="0" border="1" width="200">
            <tr>
              <td>Name</td>
              <td>
                <input type="text" name="name"/>
              </td>
            </tr>
            <tr>
              <td>Age</td>
              <td>
                <input type="text" name="age"/>
              </td>
            </tr>
            <tr>
              <td colspan="2">
                <input type="submit" value="Submit"/>
              </td>
            </tr>
          </table>
          <%
          if(col.size()>0){
          Iterator iter = col.iterator();
          %>
          <table cellspacing="0" cellpadding="0" border="1" width="200">
            <tr>
              <td>
                NAME
              </td>
              <td>
                AGE
              </td>
             </tr>
            <%while(iter.hasNext()){
              tBean = (TestBean)iter.next();
            %>
              <tr>
                <td>
                  <%=tBean.getName()%>
                </td>
                <td>
                  <%=tBean.getAge()%>
                </td>
               </tr>
            <%}%>
          </table>
          <%}%>
        </form>
      </body>
    </html>TestBean.java
    package mypackage;
    public class TestBean
      private String name;
      private String age;
      public TestBean()
      public String getName()
        return name;
      public void setName(String name)
        this.name = name;
      public String getAge()
        return age;
      public void setAge(String age)
        this.age = age;
    }

  • Using Radio Buttons in widget to store Data

    I am building my 2nd widget and I am curious to know if anyone has used radio buttons within the edit mode to change/modify/set variables before. I don't want a radio button widget. I want a complex menu widget that will hide/show selected items within my playbar such as the forward button.
    Currently I am using User variables to determine all the hide/shows for my playbar. But I would like to make it more user friendly by having a visual widget people could use to turn buttons on off, set url's for help documents etc. And have everything be based on a per slide basis. just wondering if anyone has done anything like this in the past.
    The other part of this is, can I use a widget to construct User variables. In As2 I was able to create variables in root and then set those accordingly without having to add them to every projects user variables. But it appears in AS3 it is not possible to create a variable of a clip/objects parent is anyone familiar with this?
    Thanks ahead of time.
    zsrc

    Hi zsrc,
    If you're using WidgetFactory then here's a post that might give you the information that you need.
    http://www.infosemantics.com.au/widgetking/2010/11/widget-properties-how-theyre-used/
    As far as the code you'd write in your circumstance, a radio button's selected property tells you if it's... well... selected. So you can write that to a widget property like so:
    properties.MyPropertyName = myRadioButton.selected;
    That line would be inside the saveProperties template method as mentioned in the article above.
    override protected function saveProperties():void
        properties.MyPropertyName = myRadioButton.selected;
    Then you can read that property back when the widget is in the published Captivate movie.
    override protected function enterRuntime():void
       if (properties.MyPropertyName == true) {
          // The Radio Button was selected. Do stuff
       } else {
          // The Radio Button wasn't selected. Do stuff?

  • Using Express Write LabVIEW File to store data in subprogram doesn't overwrite.

    The main program is an Event Structure that controls four other subprograms. In the subprograms the data is stored in the express IV Write LabVIEW Measurement File set up to overwrite the collected data. When the subprogram is stopped with the main still open, then restarted, the file is appended not overwritten. It appends where the last time the previous file was stopped.

    There is an input to the Wrive LabVIEW Measurement File which is entitled 'reset.' Make sure that is set to true so that the file writing process starts over each time data enters the Express VI.
    John M

Maybe you are looking for

  • How to publish Aperture projects to iWeb

    iPhoto has a button that enable one to publish photos directly from iPhoto into iWeb.  I can not find such a button since I moved up to Aperture.  Am I missing it?  Or, I may be going about it the wrong way.   I currently use MobileMe to host a famil

  • Bug? Unexplained JBO-25002 error

    I am running JDev 10.1.3.2 and I am getting the following error message in my ADF project: oracle.jbo.NoDefException: JBO-25002: Definition gov.nasa.jpl.nbs.oracle.apps.fnd.DataControls.dcx of type null not found      at oracle.jbo.mom.DefinitionMana

  • Shared storage client timed out error

    Hello everybody, please help I have been at this now for about 2 days and still can't find out the source of my issue using FCP to render a project through compressor to multiple macs using Qmaster. What is happening is that I start the render and it

  • Epson Scanner Driver

    First- I apologize if this is in the wrong place. Second- I have also been trying to contact Epson about this, but they are being completely unresponsive. I have recently upgraded to Leopard and, hence, my Epson Perfection 1250 driver is not compatib

  • 10.5.3 puts processes into "Uninterruptible wait" (U) state.

    Umm. I have a MacBook and a PowerMac G4/400 AGP. I never had any noticeable problems with either. I've had the G4 since Q3 2001 and the MacBook since October 2007. Since I updated to 10.5.3 I experienced processes dropping into the U state, which see