Loading SOAP.jar into a 10g database

Hello,
We recently moved from a 9i Oracle DB to a 10g.
On the Oracle 9i we used the guidelines mentioned in http://www.oracle.com/technology/tech/java/jsp/pdf/JavaDB_Use_Case.pdf to set up the communication with a secure webservice.
However after having switched to the new database these same JAR files no longer seem to be valid. Well actually only the SOAP.jar will no longer load into the database. It complains about a missing classes (OracleSOAPHTTPConnection could not be resolved) - the "funny" thing however is that exactly that class is be defined in SOAP.jar if you open up the jar file.
Can anyone give me hints about what might be wrong - Obviously I am missing something quite fundamental - I am at a loss to what it could be though.
Kind regards
Bo

See the Callout users guide http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm.
Kuassi

Similar Messages

  • Issue with Date Conversion when loading XML File into Oracle 10g Database

    Hello all,
    I have the interface shown in the screenshot below. In it, amongst other actions, I'm mapping an XML file element representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screenshot.
    !http://img223.imageshack.us/img223/1565/odiscr275.jpg!
    When I execute the interface, I get the following error message:
    java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:103)
    I'm assuming this refers to the date conversion!
    I've already tried replacing SRC_TRADES.DEAL_DATE with TO_DATE( SRC_TRADES.DEAL_DATE, 'DD/MM/YYYY' ) in the Implementation tab. This function was not recognised when I executed the interface, so it didn't work! The date value in the XML file is in DD/MM/YYYY format.
    I'm guessing that Oracle SQL Date functions don't work in the Implementation tab. Please could somebody let me know:
    1. Which Date Conversion function I could use instead?
    2. Where I can find a reference for the methods/functions I can use in the Implementation tab (if such a reference exists)?
    Cheers.
    James

    Hi.
    Try to change the execution area to staging area. After You change it, write in the mapping box just SRC_TRADERS.DEAL_DATE. When You use TO_DATE, the source field typu should be varchar2, not date (as it is in your source datastore)

  • Importing a designer 6i repository into a 10g database?

    Hi,
    I have a Designer 6i repository sitting in an 8.1.7.4 database and I would like to get rid of that database by importing the repository into a 10g or 11g database. My question is can this be done and have Designer 6 still working? If so, how easily?
    Thanks
    Adam
    Edited by: Adam J. Sawyer on 04-Feb-2010 23:02

    There is some additional information in MOS Doc 230891.1 (ALERT: Important note about Designer/Repository 6i x Oracle9i (or above) Certification)
    HTH
    Srini

  • Load XML data into an Oracle Database

    Hi
    I would like to know how to load data from XML into an Oracle Database. Thanks

    forum has many examples
    plz search for your needs
    as example
    XML DB FAQ
    Re: I want insert data from xml file
    Re: How to load a XML file into a table using PL/SQL
    Process multiple XML files in directory
    using DBMS_LOB.LOADCLOBFROMFILE

  • Loading of a JAR into Oracle 9i Database

    Development Environment for Java: JDK 1.4.2, Eclipse 3.2, JAWIN Java-COM Bridge, Windows XP.
    Database Environment: Oracle 9i on Windows XP.
    Tools - MapPoint 2006
    As seen from the above environment, we make use of certain native libraries of JAWIN Java-COM bridge alongwith certain standard dependency JARS for accessing the mappoint tool. The code was developed and tested in Eclipse environment with JDK 1.4.2.
    The entire code was packaged into a JAR for deployment and use from within Oracle 9i PL/SQL procedures. At this point we are encountering "class resolution errors" and "Class Not well formed errors" while running the loadJava command in Oracle 9i. Hence the JAR is not able to be deployed on the Oracle 9i Server.
    Please do the needful

    Well, Oracle9i ships with java version 1.3.1 so you will NOT be able to run java 1.4.2 application under the database.
    If you want this to be a version 1.4.2 app, you will need to upgrade to Oracle 10G.

  • Loading XML File into Oracle 10G XE

    I am trying to load an XML file into 10G XE from the Utilities interface, I have created a Table to load into but when I try to load I get the following cryptic error "XML Load Error". There is no other information, can someone give me some insight where to start to resolve this problem?

    The error messages when importing fails provided by APEX 2.1 are not very useful as they do not provide any clue...
    If possible, you can try to load XML file with SQL*Loader - probably you will get then more useful error messages.

  • Load external .jar into Servlet

    Hi...
    I'm trying to load an external jar file into a Servlet and I'm getting some problems.
    I'm using URLClassLoader to get the class from the jar, but, everytime I try to get a parametrized constructor from the class (as shown below), a NoSuchMethodException is thrown.
    I can do that by a external Java Application, but not inside Servlet.
            try{
                constructor = clss.getConstructor(CoopServerInterface.class);
            } catch(NoSuchMethodException ex){
                ex.printStackTrace();
            }Could anyone help me?
    Thanks!
    Edited by: Jaumzera on Aug 1, 2008 11:22 AM

    Show us the exception.
    Does the class in question have a constructor that takes a CoopServerInterface parameter? I.e.
        WhateverClassTheClssVariableIs(CoopServerInterface x) {
        }If the constructor exists, have you deployed that version of the compiled code to your web server? Check that you have. Chances are you have an old WhateverClassTheClssVariableIs.class file somewhere that doesn't have the constructor, and the web server is using that class file. Or you need to restart the web server so it notices the new version.

  • How to install APEX 3.1 into migrated 10g database not include Oracle Text

    Have a database 10.2.0.3 migrated from 9i, which did not include Oracle Text. But now I have to install APEX 3.1. How will I get Oracle Text installed into this database?

    Hi Joel,
    I'm experiencing exactly the same install problems as "manimekhalai", the log showing as first error message:
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package "FLOWS_030000.WWV_FLOW_GLOBAL" has been
    invalidated
    ORA-04065: not executed, altered or dropped package
    "FLOWS_030000.WWV_FLOW_GLOBAL"
    ORA-06508: PL/SQL: could not find program unit being called:
    "FLOWS_030000.WWV_FLOW_GLOBAL"
    ORA-06512: at "FLOWS_030000.WWV_FLOW", line 1
    ORA-06512: at line 1etc.
    First I had the error
    create public synonym wwv_flow_file_objects$ for wwv_flow_file_objects$
    ERROR at line 1:
    ORA-00955: name is already used by an existing objecttoo, but the I dropped all public synonyms beginning with "wwv_" for cleaning up before reinstalling. Still the same problem...
    Btw I responded also to the similar thread
    Re: still struggling to install apex 3.1 ...
    Any ideas?
    Greetings,
    Roger

  • How to Load XML files into Oracle 8 database.

    My company is currently using Oracle Aplications V. 10.7 character mode and intend to migrate to V.11.0.3 in the next months.
    We want to import data (XML format) in the OE module using Open Interfaces.
    How to proceed ?

    This forum is dedicated to the XML Features of 9iR2, and to a lesser extent 9i. Questions related to XML and earlier versions of the database should be posted in Technologies -> General -> XML...
    I will move this thread to the appropriate forum if required.

  • Is it possible to load JDK 1.5 into a 10g R2 database?

    Hi folks,
    I have some 3rd party jars that I need to load into the database, and they require JDK 1.5. Is there any way to load 1.5 into a 10g database, or any way to make this work?
    Thanks for your time, let me know if there is more information that I can provide.
    -Adam vonNieda

    Hi Adam:
    Unfortunately there is no possibility to upgrade the internal JVM which comes with your Oracle 10g.
    But you can try to backport your jdk 1.5 jars to 1.4 using a [retro-translator|http://retrotranslator.sourceforge.net/].
    For example take a look a this post which help users to backport Struts2 jars:
    http://struts-2-developers.blogspot.com/2008/08/backporting-struts-2-to-jdk14-using.html
    Best regards, Marcelo.

  • How-To install SOAP Client Stack in Oracle Database

    Hi,
    1. i wrote a java clientstub that accesses a webservice.
    2. all works fine if i run it from within java.
    3. i then tried to port it to oracle database.
    4. loading the java classes defined in the sample code works fine too.
    5. i then loaded my client (wrapper and client-stub) classes and made pl/sql procedure from the wrapper.
    6. i try to access the webservice
    the problem:
    1. if i made step 5 in SYS-SCHEMA all is ok
    2. if i made step 5 in an other SCHEMA i got an exception in step 6:
    java.lang.NoClassDefFoundError
    the code line is pointing to: m_httpConnection = new OracleSOAPHTTPConnection();
    this is located in the client-stub class constructor
    there exist synonyms of all classes in the public schema.
    is it a problem with priviledges, and if what priviledges are required?
    if this isn't the best way to access webservices from within oracle database, what other solutions are possible?
    if more information are required, please let me know
    thanks
    ralf

    Hi,
    Refer to this document for information on loading SOAP jar files to the database.
    The database schema you are using needs to be granted the following permission to access the external web service
    execute dbms_java.grant_permission('<dbuser>','SYS:java.net.SocketPermission','<host-name>:<port>','connect,resolve');
    where, <host-name> and <port> point to the location where the webservice is running. If you are behind a firewall, use the proxy host and port here.
    For more information on accessing external web service from the database refer to the samples on the Database Web Services Page
    HTH,
    Sujatha
    OTN Group.

  • Error while Loading Mail.jar in Database

    Hi,
    I am trying to load mail.jar in Oracle 8i Database(ver. 8.1.5.0.0). It is giving error insufficient previleges. Then I extracted mail.jar and tried to load class PasswordAuthentication of mail.jar in user scott. It gave me same error. But I could load the same class in user SYS.
    Does it mean that, scott needs some special previleges for the classes in mail.jar. If so, How can I set those previleges ?
    Thanking You.
    Mrinal.
    null

    rdbms 8.1.5 had very tight restrictions on loading "system classes.
    check the java doc for 8.1.5 on this.
    check out the following
    "protected packages" in the following
    http://otn.oracle.com/doc/server.815/a64682/04jserve.htm#1001015
    Protected Packages
    You cannot replace system classes (those that CREATE JAVA SYSTEM installs, which you invoke with initjvm.sql at database initialization time). In addition, classes in any package (or sub-package) in which system classes reside, can be created only in the SYS schema. Protected packages include those starting with the patterns:
    java
    javax
    oracle.aurora
    oracle.jdbc
    oracle.rdbms
    oracle.sqlj
    oracle.sqlnet
    oracle.vm
    oracle.weak
    sun.tools
    sun.misc
    sun.net
    com.visigenic.vbroker
    com.sun.jndi
    org.omg
    sqlj
    by the way 8.1.5 went out of support on dec 31, 2000. you need to consider moving to 8.1.7.
    null

  • BLOB insertion in Oracle 10g database using ojdbc14 (10g drivers)

    Hello!
    I have a situation where I am trying to insert a blob data into oracle 10g database using oracle thin
    10g drivers, <b>ojdbc14.jar</b> in <b>weblogic 8.1 sp2</b>. I have the following error happening very intermittently.
    <u><b>java.sql.SQLException: OALL8 is in an inconsistent state.</b></u>
    And this is leading to the <u><b>"No more data to read from socket"</b></u> error when I am trying to
    insert the BLOB into the database. I have gone through the bug list of SP2 and have realised there is the
    following issue fixed in SP3.
    <b>CR124933</b>
    <b>An Oracle BLOB sometimes used a pooled connection after the connection pool determined that
    the connection was available for reassignment.
    Code was added to ensure the BLOB is completely processed before closing the pool connection or
    ending the transaction.</b>
    I believe the problem arises when we try to insert BLOB into database using a refreshed connection
    from the pool.We have upgraded weblogic 8.1 from SP2 to SP4 service pack inorder to come over the above problem.
    But this still continues to behave intermittently.
    We put ojdbc14.jar in our classpath and Weblogic startup classpath looks like the following :-
    WLS_CLASSPATH=${WLS_DOMAIN_DIR}/appslib/server.jar:$PRE_CLASSPATH:${WLS_WEBLOGIC_HOME}/server/lib/weblogic.jar:
    ${WLS_WEBLOGIC_HOME}/server/lib/ojdbc14.jar:${WLS_WEBLOGIC_HOME}/server/lib:${WLS_JAVA_HOME}/lib/tools.jar:
    ${WLS_JAVA_HOME}/jre/lib/rt.jar:${WLS_WEBLOGIC_HOME}/server/lib/webservices.jar:${WLS_CONFIG_DIR}:
    ${WLS_CUSTLIB_DIR}:${WLS_BIN_DIR}:$POST_CLASSPATH
    export WLS_CLASSPATH
    CLASSPATH=${WLS_CLASSPATH}:${APP_CLASSPATH}
    export CLASSPATH
    After upgrade to SP4, there are new ojdbc14_g.jar(debug jar) and orai18n.jar jars in the ${WLS_WEBLOGIC_HOME}/server/ext/jdbc/oracle/10g directory added.
    Please let me know if I need to update classpath with the new 10g jars in the ext/lib directory or any suggestions
    to insert BLOB using the ojdbc14 10G drivers, Weblogic 8.1 environment would be appreciated.
    Following is the stack trace of the errors that I recieve:
    <Oct 6, 2005 1:29:36 PM EDT> <Error> <JDBC> <BEA-001112> <Test "select count(*) from DUAL" set up for pool
    "MHUBPoolStage" failed with exception: "java.sql.SQLException: OALL8 is in an inconsistent state".>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <JDBC> <BEA-001128> <Connection for pool "MHUBPoolStage" closed.>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <JDBC> <BEA-001067> <Connection for pool "MHUBPoolStage" refreshed.>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <EJB> <BEA-010051>
    java.rmi.RemoteException: TransactionRequestManager.requestTransaction():
    Caught PersistnceException com.mortgagehub.busobj.PersistenceException: -5258: No more data to read from socket
    Please let me know if there is anything that I am missing.
    Thanks
    Pradeep G

    pradeep g wrote:
    Hello!
    I have a situation where I am trying to insert a blob data into oracle 10g database using oracle thin
    10g drivers, <b>ojdbc14.jar</b> in <b>weblogic 8.1 sp2</b>. I have the following error happening very intermittently.
    > <u><b>java.sql.SQLException: OALL8 is in an inconsistent state.</b></u>
    And this is leading to the <u><b>"No more data to read from socket"</b></u> error when I am trying to
    insert the BLOB into the database. I have gone through the bug list of SP2 and have realised there is the
    following issue fixed in SP3.
    > <b>CR124933</b>
    <b>An Oracle BLOB sometimes used a pooled connection after the connection pool determined that
    the connection was available for reassignment.
    Code was added to ensure the BLOB is completely processed before closing the pool connection or
    ending the transaction.</b>
    > I believe the problem arises when we try to insert BLOB into database using a refreshed connection
    from the pool.We have upgraded weblogic 8.1 from SP2 to SP4 service pack inorder to come over the above problem.
    But this still continues to behave intermittently.
    We put ojdbc14.jar in our classpath and Weblogic startup classpath looks like the following :-
    > WLS_CLASSPATH=${WLS_DOMAIN_DIR}/appslib/server.jar:$PRE_CLASSPATH:${WLS_WEBLOGIC_HOME}/server/lib/weblogic.jar:
    ${WLS_WEBLOGIC_HOME}/server/lib/ojdbc14.jar:${WLS_WEBLOGIC_HOME}/server/lib:${WLS_JAVA_HOME}/lib/tools.jar:
    ${WLS_JAVA_HOME}/jre/lib/rt.jar:${WLS_WEBLOGIC_HOME}/server/lib/webservices.jar:${WLS_CONFIG_DIR}:
    ${WLS_CUSTLIB_DIR}:${WLS_BIN_DIR}:$POST_CLASSPATH
    export WLS_CLASSPATH
    CLASSPATH=${WLS_CLASSPATH}:${APP_CLASSPATH}
    export CLASSPATH
    > After upgrade to SP4, there are new ojdbc14_g.jar(debug jar) and orai18n.jar jars in the ${WLS_WEBLOGIC_HOME}/server/ext/jdbc/oracle/10g directory added.
    > Please let me know if I need to update classpath with the new 10g jars in the ext/lib directory or any suggestions
    to insert BLOB using the ojdbc14 10G drivers, Weblogic 8.1 environment would be appreciated.
    > Following is the stack trace of the errors that I recieve:
    > <Oct 6, 2005 1:29:36 PM EDT> <Error> <JDBC> <BEA-001112> <Test "select count(*) from DUAL" set up for pool
    "MHUBPoolStage" failed with exception: "java.sql.SQLException: OALL8 is in an inconsistent state".>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <JDBC> <BEA-001128> <Connection for pool "MHUBPoolStage" closed.>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <JDBC> <BEA-001067> <Connection for pool "MHUBPoolStage" refreshed.>
    <Oct 6, 2005 1:29:36 PM EDT> <Info> <EJB> <BEA-010051>
    java.rmi.RemoteException: TransactionRequestManager.requestTransaction():
    Caught PersistnceException com.mortgagehub.busobj.PersistenceException: -5258: No more data to read from socket
    Please let me know if there is anything that I am missing.
    > Thanks
    > Pradeep GHi. This is something we'd like to diagnose. How is your application
    getting using and closing pool connections? The initial symptom
    seems to be an internal oracle problem... Are you using standard
    JDBC or oracle-specific calls?
    Joe

  • Error loading dbwsclient.jar

    I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
    The database version is 10.1.0.4.2
    The command used is:
    loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
    I get the following response with error message:
    arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
    genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
    at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
    at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
    at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
    at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
    at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
    at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
    at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
    at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
    at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
    at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
    Any suggestions as for what's going wrong?
    Regards, Rob

    When I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
    C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
    tmp\src\genproxy\HttpSoap11ClientJPub.java
    plsql_wrapper.sql
    plsql_dropper.sql
    plsql_grant.sql
    plsql_revoke.sql
    Executing plsql_dropper.sql
    Executing plsql_wrapper.sql
    Executing plsql_grant.sql
    Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
    Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
    Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
    If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
    exiting  : Failures occurred during processing
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
    It does appear to work when logged in as SCOTT in sql*plus:
    scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
    JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
    HELLO!! You just said :hey there
    1 row selected.Can these errors be ignored?
    Eric

  • Access a table on Oracle 8 Ver into Oracle 10g

    Hello All,
    Could you please tell me how to access a table directly sitting on Oracle 8.1.6 version database into Oracle 10G database. Appreciate your time.
    Thanks & Regards,
    Ariean.

    Hello,
    If you runninng from a client machine then you can use sql script to extract and use sqlldr to load from it. But if you want to extract using pl/sql procedure (utl_file) then you need to write a procedure which generates .csv format on 8i db server, then you ftp .csv formatted and use sqlldr. Setting up utl_file in 8i is easy but it might requires a restart. But in this case, write a small sql script to generate (spool) a data file (csv) and loaded up in 10g using sqlldr. Here a small script to genereate a sql script which in turn will generate "|" delimited datafile.
    Just replace "MY_OBJECTS" with your table name and it will generate sql script which you can run from client to generate .csv ('|" ) delimited. You can change it to generate ","
    {code}
    SET pagesize 0
    SET verify off
    SET feedback off
    SET linesize 400
    SET termout off
    SET TRIMSPOOL on
    SET TRIMOUT ON
    SPOOL mytest.sql
    SELECT 'spool test.csv' FROM DUAL;
    SELECT DISTINCT
    'set termout off'
    || CHR (10)
    || 'set feedback off'
    || CHR (10)
    || 'set heading on'
    || CHR (10)
    || 'set pagesize 0'
    || CHR (10)
    || 'set linesize 800'
    || CHR (10)
    || 'set TRIMOUT on'
    || CHR (10)
    || 'set trimspool on'
    || CHR (10)
    || 'set long 2000'
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS');
    SELECT 'select '
    FROM DUAL;
    SELECT (CASE
    WHEN column_id = 1
    THEN
    (CASE
    WHEN data_type LIKE '%CHAR%'
    THEN
    column_name
    WHEN data_type = 'DATE'
    THEN
    'to_char(' || column_name || ',''DD-MON-YYYY'')'
    ELSE
    column_name
    END)
    ELSE
    (CASE
    WHEN data_type LIKE '%CHAR%' AND data_length = 4000
    THEN
    '||''|''||substr(' || column_name || ',1,4000)'
    WHEN data_type LIKE '%CHAR%'
    THEN
    '||''|''||' || column_name
    WHEN data_type = 'DATE'
    THEN
    '||''|''||to_char('
    || column_name
    || '|''DD-MON-YYYY'')'
    ELSE
    '||''|''||' || column_name
    END)
    END)
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS')
    ORDER BY column_id;
    SELECT '||''DELIM'''
    FROM DUAL;
    SELECT ' from MY_OBJECTS;'
    FROM DUAL;
    SELECT 'spool off'
    FROM DUAL;
    {code}
    Regards
    Edited by: OrionNet on Mar 18, 2009 10:15 AM

Maybe you are looking for

  • Open Link in New Window Option Not Working in Top Link Bar

    Hello, We have a 'Popular Links' section in our Top Link Bar for our intranet site that contains a list of frequently used links. Since most of these links navigate to sites outside of SharePoint, we would like these to open in a new tab or window wh

  • Error -5002 when adding linked user defined field using DI API

    Hello, When I try to add a linked user defined field using DI API I get the error number -5002 with description: "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values" I Get the error when I use the Ad

  • Plz help in tuning this query......

    SELECT "LAN","VEF_REF_NO","VF_TYPE_CODE","APPLICANT_TYPE","MANDATORY","OPTIONAL","COMPLETE","DT_COMPLETED","REFIRENO","ROLE","USER_ID","DT_LASTUPDATED","TEMPLATEFIRED" FROM T_VER_STRATEGY_DETAILS M WHERE VF_TYPE_CODE =1 AND APPLICANT_TYPE ='A' AND DT

  • Script alligment.

    Hi experts,               For my main window to display an using save_text function module. the problem is the problem is its saving only the current values . if i change the company code its taking the previous values. how to use this save_text. cor

  • Can any one send me some documents on ALE / IDOC

    Hi, Can any one send me some documents or ppt's on ALE / IDOC's. My mail id is : [email protected] Warm Regards Madhuri