Oracle 8.1.5 oci client to oracle 9i database

Is is supported to use an Oracle 8.1.5 oci client to oracle 9i
database? If not, will it work?

Ok,
so You can follow the migration path that I've indicated before:
"To do that, the simplest way., is to install 10g r2 software on the Win 2003 machine. Create the DB and create the same accounts of the 8i version.
On the 8i version, export all the schemas using "exp" utility, w/o using the DIRECT option.
Copy the generated dump files onto the Win 2003 machine and import them using th "imp" utility,
Analyze all the objects and that the migration is complete.
You shouldn't find any problem porting structures and code from 8i to 10g R2
No matters will occours, cause imp utility of 10g is backward compatible with 8i exp files
Hop this helps
Max

Similar Messages

  • JVM Crash With Oracle OCI Client

    Hi
    My app is running on Windows 7 64 bit, Jboss 4.2, launched from Eclipse, and runs fine when I use the Oracle thin client (10g, 32bit). However when I try to use the OCI client, I get this:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d906f21, pid=4740, tid=5656
    # JRE version: 6.0_21-b07
    # Java VM: Java HotSpot(TM) Client VM (17.0-b17 interpreted mode windows-x86 )
    # Problematic frame:
    # V [jvm.dll+0x106f21]
    I'll post the contents of the log in another message because it's too long to fit here. Using the thin client is NOT an option unfortunately as the thin driver is missing some functionality that we need to use.
    I've installed the Oracle client in a folder that doesn't contain spaces, or parentheses (c:\oracle\.....) and the JDK is installed in a similar directory (c:\java\...)
    I've tried both 32bit and 64 bit versions of JDK1.6 and the Oracle 10g client. I have also tried mixed mode and interpreted mode JVM (Xint) with the same results.
    ojdbc14.jar is in my JBoss server's lib directory, and ocijdbc10.dll is in my path (c:\windows\system32).
    Anyone any ideas what's going wrong? Been trying to fix this for days now. Appreciate any help.
    Richard

    Sorted it (well, my colleague did anyway). We installed a fresh version (32 bit) JDK (6u21), the Oracle 10g (10.0.3) client (32 bit) and made sure that there were no other OCI DLLs anywhere. I had some in the JBoss bin directory which I had copied in earlier that morning and forgotten about. So, the only OCI DLLs I have now are in Oracle's installation directory. Once we removed those erroneous DLLs from the JBoss directory, the server made the connection successfully. I don't full understand why, because I was getting the error earlier without the erroneous DLLs being present too, so I think there was some additional interaction going on somewhere. One other thing that may have been important is the tnsnames.ora file I had. We found a post that said the tnsnames file generated by the installer, when it only has one entry in it, can include dodgy whitespace at the end which can cause problems. So, just to be on the safe side we added a second entry (to another DB) - maybe that was something to do with it.
    So, the Oracle 10g client and OCI driver DOES work on Windows 7 64 bit (at least for me anyway)

  • Does OCI client result cache and oracle UCP work together?

    I'm using Oracle 11.2.1.0. I've set up FCF and enabled OCI result cache on server side, so on client side, I'm using UCP for failover.
    this is my datasource configuration:
    <Resource name="jdbc/MyPool"
    auth="Container"
    factory="oracle.ucp.jdbc.PoolDataSourceImpl"
    type="oracle.ucp.jdbc.PoolDataSource"
    connectionFactoryClassName="oracle.jdbc.pool.OracleDataSource"
    url="jdbc:oracle:oci:@dbhost:1521/myDb"
    user="db_user"
    password="db_password"
    fastConnectionFailoverEnabled="true"
    onsConfiguration=""
    connectionPoolName="dbPool"
    initialPoolSize="5"
    minPoolSize="5"
    maxPoolSize="25"
    connectionWaitTimeout="10000"
    inactiveConnectionTimeout="120000"
    abandonConnectionTimeout="60"
    validateConnectionOnBorrow="true"
    sqlForValidateConnection="select user from dual"
    maxStatements="30"/>
    I've enabled OCI client result cache.
    I use /*+ result_cache */ in my query to take advantage of the result cache.
    so I execute the following scenario:
    i) select /*+ result_cache */ value from myTable where id=1; (this returns a result.)
    ii) update myTable to set a different value for id=1 record;
    iii) run select query again; (this should return a different result. oci result cache gets updated when table changes.)
    if I take out
    "sqlForValidateConnection" and/or "validateConnectionOnBorrow" (i.e. disable sql validation on borrow), the 2nd query after table update doesn't show the latest result. it's still showing the old query result.
    is this a bug? that UCP validation on borrow has an impact on OCI result cache function? this doesn't happen if using dbcp java connection pooling with OCI result cache.

    it turns out I ran the test against an oracle server that doesnt have FCF configured, nor ONS.
    once i switched to a correct oracle cluster, my test passed.

  • Oracle 10g OCI Client Certification

    we are in process of 10g RAC Certification and Customer Aksed
    Would it be correct to assume that the Oracle RAC 10g Certification will include the 10g OCI client certification? I believe this will be necessary for an application to connect to the cluster.
    Can any one help to answer this?

    as far as I know, clients connect to rac db the same way they did against a single instance

  • Configuring oracle OCI  client for RAC 10.2.0.1

    hi,
    can any one give the links for doc for
    configuraing oracle OCI client for RAC
    regards
    krishna

    Download from below:
    http://www.oracle.com/technology/tech/dotnet/ode/index.html
    Refer:
    Note:374820.1 - How to Install the Oracle Database Extensions for .NET (ODE.NET) from metalink.

  • Oracle 10g OCI based application talking to an Oracle 9i database

    Hi all,
    Got a question. I have an OCI C++ application that is written using the Oracle 10g OCI includes, etc ... This of course is running on a 10g client. The client OS is actually a Windows x64 system since 10g is the only native OCI client right now for 64 bit Windows systems. So this all works fine. Now, I am communicating with an Oracle 9i database server. Is there anything wrong or invalid about this configuration ? I didn't think that there was but I was asked to confirm this, that is having an Oracle 10g client communicating with an Oracle 9i database. Our application is making very straight forward OCI calls, and we are not using any of the newer OCI calls that were introduced in 10g, just the ones that are available in 9i OCI.
    Thanks in advance,
    Nick

    Thanks for the reply.
    Actually I thought that the OCCI forum was for Object oriented OCI, so while I'm using C++, I'm not using the object oriented side of OCI, just using the normal OCI calls. Guess I should have been a little clearer in my original post.
    But my main question really concerned the version of the client and the version of the database which you answered.
    Thanks,
    Nick

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI JD

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Client Upgrade issue in Oracle Lite Database 10g 10.3.0.3.0

    Hi all,
    Details: My Environment is Oracle Database 11g R1(11.1.0.6.0) With Oracle Lite Database 10g R3(10.3.0.3.0) on Windows 2003 Server R2 SP2.
    Recently i have upgrade my oracle lite database from 10.3.0.2.0 to 10.3.0.3.0 and also applied recent opatch (p12812978_103030_Generic.zip). Upgrade and installation of opatch got successfully completed. When i tried the client synchornization for the very first time (FCS and Data Download) FCS and Data Download got Successfully completed but the problem is usually Once the FCS and Data Download Got Completed , Screen goto webtogo home page but in my case i am getting a screen name called "client upgrade" with options yes or no if choose yes it prompting please wait screen nearly for 1 hours i am not getting any response from the screen. if choose no simply it goto my webtogo home page. Please Note before choosing the yes option i have checked what version i am currently having it show 10.3.0.3 i don't know why it asking for the client upgrade. Please Advice me on this how to avoid this screen (Client Upgrade).
    Thanks
    Shan

    Hi,
    i am not upgrading the existing environment of Oracle Lite Client i am creating a new environment which doesn't have the Oracle Lite Client. In the document itself they have mentioned like this "These steps assume that you have a 10g Release 1 or 2 Branch Office environment already configured and synchronized. If you do not have this environment currently configured, you do not need to upgrade." To be Clear What i am doing is with help Oracle Lite Branch Office i will be downloading a user from Mobile Server for that i have to do the following
    1.FCS(Fresh Client Setup for that i have to run the setup.exe which is coming for Oracle Lite Branch Office) and
    2.Data download (Data will be get download from Mobile Server in the form of odb),
    3. Usually Once the FCS and Data Download got completed, the screen will goto the webtogo home there i can see my branch offlice applications.
    4. But in my case i am getting prompted by screen and the screen name called "Client Upgrade" with options yes or no if i choose yes screen got hanged else if i choose no then only screen moving the webtogo home page. Say can u r having existing environment in your machine due to some reasons u have upgrade or u have installed optach on the mobile server in that case while doing the client synchronication we can do the client upgrade by running the update.exe becasue client side will having the old binary file we need to renew it.
    5. But I am not upgrading the existing environment. I am creating a new environment which means i am doing a fresh client setup and synchronization for the very first time. While doing the FCS on my client side for the very first time i will be getting the latest binaries rite then why the screen is moving to client upgarde page i don't have any idea on this.
    Please Advice.
    Thanks
    Shan

  • Oracle 9i R2 Client on a PC having Oracle 10g Database

    Can I install and use Oracle 9i R2 Client on a PC having Oracle 10g Database on Windows XP Professional?
    The reason for that; is because I can't do Export and Import operations from the mentioned PC (which having Oracle 10g) to other two remote databases where they have Oracle 9i R2 database.

    OK, I have Windows 2000 Server and when I go to SQL*Plus and connect to my database, it's showing for me this:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Also when I launch the OEM and goto Help-->About, it's showing the same version as above.
    But when I look to other things, it's like this:
    Oracle Home Directory: "C:\oracle\ora91"
    System Services "services.msc": "OracleOraHome91Agent", "OracleOraHome91TNSListener", and "OracleServiceREPORTS" (REPORTS is my Oracle database name).
    So how could I know what is my actual Oracle version?

  • Oracle Forms 6i client/server against an Oracle 10gR2 database

    Hello
    We have the following situation:
    Oracle Forms6i/Reports6i client server application against an Oracle 8i cost-based database. we want to migrate this application
    step 1:
    Migrate the database to 10gr2, but do not touch the client application
    Go live
    step 2:
    Migrate the development environment to 6i webforms.
    Production environment stays client server.
    With this construction we can still create new patches/functionality.
    step 3:
    Migrate to Forms10gR2 (and reports)
    I know Forms 6i is not supported anymore.
    My question is on step 1.
    When I read NOTE: 338513.1 entitled "Is Forms/Reports 6i Certified To Work Against Oracle Server 10g Rel 1, Rel 2 or 11g?" carefully
    it says that Forms 6i is not certified against 10gR2.
    On OTN I read several posts that this works ok (assuming you do not use the wrong character set).
    I also read on OTN that patch 18 (which is only supported for EBS customers) is certified against 10gR2.
    The questions:
    - Is Oracle Forms patch 18 certified against an Oracle 10gR2 database? (or only for EBS)
    - Is there anybody out there that can confirm that Oracle Forms 6i C/S works against Oracle 10gR2
    Regards Erik

    Thank you.
    Now I found it.
    But how do I read that page.
    It says:
    Client Certifications
    OS      Product      Server Status
    XP      6.0.8.27.0 Patch 18      N/A      Desupported
    Application Tier Certifications
    OS      Product      Server      Status      
    XP      6.0.8.27.0 Patch 18      9.2      Desupported
    XP      6.0.8.27.0 Patch 18      10g      Desupported
    I read this as follows:
    Patch 18 was certified agains a 10g database in a webforms environment.
    No client server mentioned and Server 10g , so no 10gR2!
    I'm I right?
    Regards Erik

  • Oracle 8i Windows Client and 9i Unix Database server

    Is it recommended to use Oracle Windows 8i client against Oracle 9i Database server?
    Does anyone have an official Oracle link about this?
    Thanks
    Dipak

    Only by putting an Oracle 8 database between them... You can set up an Oracle 8 database with a dblink to the Oracle 7 database and connect to that via an Oracle 9 client. Not pretty and not particularly efficient, but it'll work in a pinch.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Problem in connecting to Oracle 8 database through Oracle 11g client ?

    Database : Oracle 8
    Client Machine :
    Oracle 11g
    Window7
    Microsoft ODBC Driver for Oracle
    Hi,
    I am using Oracle 11g client to connect Oracle 8 database using Microsoft ODBC Driver for Oracle but I am getting error when after entered the password
    Run-time error '40002':
    IM006: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    I am using VB6 application on Windows 7 and I created DSN using Microsoft ODBC Driver for Oracle but I got the above error when I try to connect to Database.
    Please help me out on this that why this error is coming
    Thanks
    Amit Panwar

    Provided its a 32-bit application, possibly. Microsoft ODBC for Oracle is discontinued and has no 64-bit version, so a 64-bit application won't be able to use it at all.
    I do see it listed as a 32-bit ODBC driver on my Windows 7. The problem is that I think it relies on having an Oracle client installed on the machine, and you've got the same problem of Oracle client 11 not working with 8 server. You could try it and see if it works I suppose, or try installing an older client and see if that makes it work.
    If it's just for testing purposes though you could throw up an Oracle XE server and test against that.

  • Connect Oracle 10g client to the Oracle 10g database behind a firewall

    I need to connect an Oracle 10g client to the Oracle 10g database (windows server 2003 box) behind a firewall. I ran into this problem: Port redirection. Port redirection requires the Oracle client to connect to the database using a different port (usually a randomly selected TCP port) than the default or originally configured one. If there is no firewall between the server and the client, port redirection will not affect the actual connection. However, if port redirection does occur with the server behind a firewall, the client will be likely to suffer from a connectivity failure. The reason is simple: the newly assigned port based on port redirection is often blocked by the firewall. Such failures are not uncommon on Windows platforms.
    I don't know how to stablished an unique TCP port.
    I Enabled USE_SHARED_SOCKET on the Oracle database server, windows registry. Acording to what I read,that will force the server machine to share its port 1521 and thus all clients will stay on that port when connecting to the database. Noticeably, port redirection will not occur with USE_SHARED_SOCKET enabled, but that's true in oracle 8 or oracle 9. In oracle 10g this solution doesn't work.
    I will apreciate any help about this. Please!
    Thanks in advanced.

    Three solutions in order of preference
    1 Use Connection Manager on the server (only installed using a Custom Install). This will tunnel all traffic through a single port. It will also allow you to configure allowable nodes
    2 Set up shared server to use a fixed port. Disadvantage: shared server has overhead and the number of connections is limited
    3 Use shared_sockets. Disadvantage: when you stop the listener everyone is disconnected.
    Sybrand Bakker
    Senior Oracle DBA

  • XMLType inputstream on OCI client

    Hi all, I have a problem using XMLType.createXML in java to create a XMLType to use as parameter in a stored procedure using OCI client (it works with thin client).
    my environment (sorry if I missed something!):
    Oracle db 11.1 on server, Java 1.6 and OCI client 11.1 on Windows on client.
    In my Eclipse project I included the following jars:
    \jdbc\lib\ojdbc6.jar
    \jlib\orai18n.jar
    \RDBMS\jlib\xdb.jar
    \LIB\xmlparserv2.jar
    the java code snippet for calling the stored procedure using the input stream:
    public String putgetXMLInputStream(File testFile) throws SQLException, FileNotFoundException, UnsupportedEncodingException
         // create the input stream from the file containing XML
         InputStream br = new BufferedInputStream(new FileInputStream(testFile));      
    // this statement was tested with no value for "kind" parameter and with these two value too
         // "oracle.xml.parser.XMLDocument.THICK"
         // "oracle.xml.parser.XMLDocument.THIN"
         XMLType xmlDoc = XMLType.createXML(connection, br);
         // set the statement
         CallableStatement cs;
         cs = connection.prepareCall("{?=call MYPACKAGE.TESTUPLOAD(?)}");
    cs.registerOutParameter(1, OracleTypes.VARCHAR);           
         cs.setObject(2, xmlDoc);
    // execute the statement
         cs.execute();
         // return the string
         return cs.getString(1);
    same code with string:
    public String putgetXMLString(File testFile) throws SQLException, FileNotFoundException, UnsupportedEncodingException, IOException
         StringBuilder contents = new StringBuilder();
         try {
         //use buffering, reading one line at a time
         //FileReader always assumes default encoding is OK!
         BufferedReader input = new BufferedReader(new FileReader(aFile));
         try {
              String line = null; //not declared within while loop
              * readLine is a bit quirky :
              * it returns the content of a line MINUS the newline.
              * it returns null only for the END of the stream.
              * it returns an empty String if two newlines appear in a row.
              while (( line = input.readLine()) != null){
              contents.append(line);
              contents.append(System.getProperty("line.separator"));
         } finally {
         input.close();
         XMLType xmlDoc = XMLType.createXML(connection, contents.toString());      
         // set the statement
         CallableStatement cs;
         cs = connection.prepareCall("{?=call MYPACKAGE.TESTUPLOAD(?)}");
    cs.registerOutParameter(1, OracleTypes.VARCHAR);           
         cs.setObject(2, xmlDoc);
    // execute the statement
         cs.execute();
         // return the string
         return cs.getString(1);
    the java code snippet for establish the database connection (I know that with java 1.6 the registerDriver is not
    required, I both tested with and without driver registering and it works in the same way):
    // connection string: comment as required
    // connection string for thin client
    // String connectionString = "jdbc:oracle:thin:@mydbserver:1521:mydb";
    // connection string for oci
    String connectionString = "jdbc:oracle:oci8:@mydbserver:1521:mydb";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =DriverManager.getConnection( connectionString, "john", "tiger");
    DatabaseMetaData meta = conn.getMetaData();
    System.out.println("Driver JDBC: " + meta.getDriverVersion());
    The PL/SQL called by java:
    FUNCTION TESTUPLOAD (pDoc IN XMLTYPE) RETURN VARCHAR2 IS
    msgout VARCHAR2(24000);
    doc DBMS_XMLDOM.DOMDocument;
    rootnode DBMS_XMLDOM.DOMNode;
    fchild DBMS_XMLDOM.DOMNode;
    attr1 VARCHAR2(20);
    ns VARCHAR2(200);
    BEGIN
    ns := 'xmlns="http://www.myweb.it/static/xml/def/0.6/ns1.html" xmlns:si="http://www.myweb.it/static/xml/def/0.6/si.html"';
    doc := DBMS_XMLDOM.newDOMDocument(pDoc);
    rootnode := dbms_xmldom.makeNode(doc);
    fchild := DBMS_XMLDOM.GETFIRSTCHILD(rootnode);
    -- dom text
    DBMS_XMLDOM.WRITETOBUFFER(rootnode, msgout);
    -- attribute value
    dbms_xslprocessor.valueOf(rootnode,'/DOC/@TYPENO',attr1, ns );
    -- node name of rootnode first child
    return '(' || attr2 || ' - ' || DBMS_XMLDOM.GETNODENAME(fchild) || ') ' || msgout;
    END TESTUPLOAD;
    Thus, the expected result is a returned varchar2 containing the value of the attribute as per XPath, the name of first child node
    and the whole text of dom.
    This work as expected connecting via OCI and Thin client if I create the XML starting from a string, and only with Thin client if
    I adopt the input stream approach. If I use the input stream with OCI client, no error message is displayed, and no value are provided
    for attribute or fchild name, but the dom text is returned.
    I made test with different charset encoding for the original file (UTF-8, ISO-8859-1, with endofline in windows and linux style).
    What I noticed is that in case of string and input stream with Thin client some kind of parsing occours: the returned text show some
    special characters (i.e. double quote) replaced by html entity and the charset encoding in <?xml tag replaced with ISO-8859-1, more over
    the returned xml is well indented.
    I'm sure that I'm missing something :-)
    Any hints?
    TIA
    GB
    Edited by: user12844059 on 7-mag-2010 6.54

    visit the javasoft.com (sun site) for tutorials and training on all of the technologies you mentioned.
    after understanding them, then review the oracle java roadmap found on technet.oracle.com --> technologies --> java to get an oracle perspective.
    then ask the oracle technology specific questions you have.

Maybe you are looking for