Export into xls from oracle web toolkit.

select * from emp;
i want export the above query into xls from oracle web toolkit.
can anybody help me please

hi
instead of exporting to excel why not import into excel using InProcServer
here is a code snippet that i am using to generate reports for my bank
Dim OraSession As OraSession
Dim OraDatabase As OraDatabase
Dim OraDynaset As OraDynaset
Dim sql1, sql2, sql3
Dim SQLSTMT
Dim myarray()
SQLSTMT="select * from emp"
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
'Create the OraDatabase Object by opening a connection to Oracle.
Set OraDatabase = OraSession.OpenDatabase("report", "report/report", 0&)   ' (hoststring,user/password,0&)
Set OraDynaset = OraDatabase.CreateDynaset(SQLSTMT, 0&)
If OraDynaset.RecordCount > 0 Then
ReDim myarray(0 To OraDynaset.RecordCount - 1)
Else
MsgBox "Zero Records Found", vbOKCancel, "Error"
Unload Me
End If
Debug.Print UBound(myarray, 1)
'***********************populating myarray********
If OraDynaset.RecordCount > 0 Then
        OraDynaset.MoveFirst
        'For x = 0 To OraDynaset.Fields.Count - 1
         '   Cells(1, x + 1) = OraDynaset.Fields(x).Name
            'Cells(1, x + 1).Format = Bold
        'Next
For n = rng1.Columns.Count To (UBound(heading, 1) + 1) Step -1
rng1.Cells(1, n).Select
ActiveCell.EntireColumn.Delete
Next
        For m = 1 To rng1.Columns.Count
            rng1.Cells(1, m).Select
            rng1.Cells(1, m).ClearContents
        Next
            For a = LBound(heading, 1) To UBound(heading, 1)
            Cells(1, a).Select
            Cells(1, a) = heading(a)
                                With Selection
                                    .HorizontalAlignment = xlLeft
                                    .VerticalAlignment = xlCenter
                                    .WrapText = True
                                    .Orientation = 0
                                    .AddIndent = False
                                    .IndentLevel = 0
                                    .ShrinkToFit = False
                                    .ReadingOrder = xlContext
                                    .MergeCells = False
                                End With
                                With Selection.Borders(xlEdgeRight)
                                    .LineStyle = xlContinuous
                                    .ThemeColor = 1
                                    .TintAndShade = 0
                                    .Weight = xlThick
                                End With
                                With Selection.Font
                                    .Name = "Arial Rounded MT Bold"
                                    .FontStyle = "Regular"
                                    .Size = 11
                                    .Strikethrough = False
                                    .Superscript = False
                                    .Subscript = False
                                    .OutlineFont = False
                                    .Shadow = False
                                    .Underline = xlUnderlineStyleNone
                                    .ThemeColor = xlThemeColorDark1
                                    .TintAndShade = 0
                                    .ThemeFont = xlThemeFontNone
                                End With
                                With Selection.Interior
                                    .Pattern = xlSolid
                                    .PatternColorIndex = xlAutomatic
                                    .ThemeColor = xlThemeColorLight1
                                    .TintAndShade = 0
                                    .PatternTintAndShade = 0
                                End With
                            Next a
        For y = 0 To OraDynaset.RecordCount - 1
            For x = 0 To OraDynaset.Fields.Count - 1
                m_split = Split(OraDynaset.Fields(x).Value, "|", -1, vbTextCompare)
                For m = LBound(m_split, 1) To UBound(m_split, 1)
                    Cells(y + 2, x + m + 1) = m_split(m)
                Next m
                'Cells(y + 2, x + 1) = OraDynaset.Fields(x).Value
            Next
            OraDynaset.MoveNext
        Next
    End Ifsee if this serves your purpose
hemu

Similar Messages

  • Is there any method to export the data from oracle 10g in any format !!!!!

    is there any methods to export the data from oracle 10g in the format of excel or csc or txt or anyother. i already downloaded the sql developer tool but it only exports the data of upto one lakh rows ,but i have two tables of more than 3 lakh and 10 lakh rows respectively.for this i used 'where' command to break the file through sql developer but that didnt work
    plz help me out if any thing possible
    i need to again import this data into microsoft sql if there is any direct method plz let me know
    its urgent
    Message was edited by:
    user628031
    Message was edited by:
    user628031

    Take a look at DUMP_CSV function by Tom Kyte.

  • Upgrade from Oracle Web Server to Oracle 9ias(9.0.4).

    Hi,
    I want to upgrade Oracle Web Server to Oracle 9ias(9.0.4).
    Can anybody please tell me what are the pre-requisites for this and where can I find the documentation for this?
    Regards - Sachin

    Hi Sachin,
    If you are indeed running Oracle (Web) Application Server 4.0.8.2 or similar, the best way to upgrade will depend on what applications that you are running.
    There are upgrade guides from Oracle (Web) Application Server to Oracle Internet Application Server 1.0 as well as guides from 8i to 9i and 10g avaliable under documentation here at OTN.
    The latest version avaliable right now is 10.1.2.0.2. It might make sense to go to 10.1.2.0.2 than to 9.0.4 at this time.
    Regards,
    Mathias

  • Exports a hierarchy from the web to Excel

    Hi Experts
    When the user exports a hierarchy from the web to Excel, it prompts the user for their password as the excel session opens. If they donu2019t enter it u2013 it constantly prompts for a password when the excel file is used.
    Anyone got the same issue? or anyway I can get over this?
    thanks

    Not possible - at the present time anyway.
    If you want such a photo available for viewing on your iPhone, you need to download/save the photo on your computer - used for syncing/transferring data from your computer to the iPhone, and transfer this photo from your computer to your iPhone - the same for any photos transferred from your computer to your iPhone.

  • How to import data into TimesTen from Oracle

    I want to import data from Oracle into TimesTen,but not found tools provided by TimesTen. I hope TimesTen may convert Oracle's dump file(exp).
    thanks for your suggest.

    TimesTen cannot read Oracle's data pump export files.
    If you are using Cache Groups to cache Oracle tables into TimesTen, then the LOAD CACHE GROUP statement will automatically load the data from Oracle into TimesTen for you.
    If you are using TimesTen as a standalone database, then you can SPOOL out the Oracle table data into text files, and use them as data files to feed the TimesTen ttbulkcp command line utility. ttbulkcp is similar to SQL*Loader except it handles both import and export of data.
    For example, the following command dumps the contents of the table foo from a TimesTen database mydb into a file called foo.dump.
    ttbulkcp -o dsn=mydb foo foo.dump
    The file foo.dump will give you an example of what the default ttbulkcp dump file format looks like. You can then generate a new dump file based on the above, but populate it using the data from Oracle.
    The following command loads the rows listed in file foo.dump into a table called foo in database mydb, placing any error messages into the log file foo.err.
    ttbulkcp -i -e foo.err dsn=mydb foo foo.dump
    For more information on the ttbulkcp utility you can refer to the Oracle TimesTen API Reference Guide.
    You can also use SQL Developer to export data from Oracle table into ttbulkcp file format, via the Export Data option. Please note that this option is meant for small tables say with a few thousand rows, exporting large tables can be slow in SQL Developer and could require a lot of client side memory.

  • Create and insert into table from Oracle to MS SQL server.

    Hello,
    Oracle Database 11g and Red hat 5
    I have a very different kind of issue. I am handling the ORACLE db(remote db with all the important data). On the other side their is a MS SQL server db(local db with some testing data in it). All the users will access the ORACLE db for the actual processing but for sometime they need to apply some of their own concepts. So they will transfer the data from ORACLE to MS sql server.
    I want to create a code in ORACLE db like a procedure , which will create a table in MS sql server , insert data into it,Also create some metadata table to keep some of my table's info on MS SQL serve db,If the table is present it should append the data, .... like many things ...
    Overall my question is , how can i write a code to make these operation on a remote db, that to these operations are DDL and on MS SQL Server(Non-Oracle) ???
    Please guide me with some ideas or solutions ...
    Also provide if you have some good links to study ...
    thanks in advance.

    I'm not sure why you never visit http://tahiti.oracle.com prior to asking any question. Is it forbidden in your locale? Are you afraid of it? Will your salary be decreased when you visit the documentation?
    http://www.oracle.com/pls/db111/search?word=sql+server&partno=
    should provide sufficient information.
    Your doc question must be considered a violation of Forum Etiquette and an abuse of this forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Export in Problem from oracle 8.1.6 to 8.1.7

    when i am trying to export schema with data from oracle 8.1.6 to 8.1.7 using the command
    exp uid/passwrd@servicename full=n file=filename log=logfilename, i am facing two errors:
    1. invalid column name ora 904 error
    2. no statements parses ora1003 error
    but when i am trying to export from 8.1.7 to save version it works perfectly
    Can any oracle guru help me plz??
    null

    I am having the same errors attempting an export of a 8.1.6 db
    schema from an 8.17 client PC. Anyone out there have a
    suggestion for a fix?
    when i am trying to export schema with data from oracle 8.1.6 to 8.1.7 using the command >exp uid/passwrd@servicename full=n
    file=filename log=logfilename, i am facing two errors:>1.
    invalid column name ora 904 error>2. no statements parses
    ora1003 error>but when i am trying to export from 8.1.7 to save
    version it works perfectly>Can any oracle guru help me plz??
    null

  • Exporting Into Excel from Crystal Reports 8.0.1.0

    Post Author: Manoj
    CA Forum: Exporting
    Hi, I am using Seagate Crystal Reports 8.0.1.0 along with my VB application. System was exporting into Excel on Older Versionsof Windows like 98 and all. But in XP, after exporting if i open the exported file, either i get a message like Cannot Read From Fileor A Blank Sheet in the Excel. I have already tried copying the U2*.dll from the crystal folder to System/System32 folder but it is notexporting. Somebody please help... RgdsManoj

    Sage is an OEM partner. For any database issues please ask Sage for assistance.

  • Insert into MSSQL from Oracle

    Hello together,
    I'm a little bit frustrated. The follwoing is my problem:
    I want to insert some values from an Oracle 10gR2 database into a MSSQL database (SQL Server 2008 R2).
    Therefor I'm using DG4ODBC 11.2.0.3. The connection is working absolutly fine.
    I want to insert five values from five columns from oracle.table-a into a msssql table-b.
    But I'm hitting the error:
    Invalid character value for cast specification.
    Two columns from the oracle table are chars size 12 and 40, and three are number size 5.1, 5.1 and 4.
    The MSSQL column definitions are varchar40, varchar50, 2x float8 and int.
    The column assignments are:
    Oralce -> MSSQL
    a. char 12 -> varchar40
    b. char 40 -> varchar50
    c. number 5.1 -> float8
    d. number 5.1 -> float8
    e. number 4 -> int4
    The insert works greate for a,b and e but nor for c and d.
    I tried so many solutions (cast, to_binary_float, nls_character_format, nls_theritpory etc..) but nothing helps.
    I always hitting this error.
    Can anyone help me with this problem?
    cheers
    Joe

    Hi together,
    I fixed the problem. I multiply the origin number with 10. The result is a number without any comma. During the insert into MSSql I divide by 10.
    I now, this is a very strange solution but it works.
    Yes I know this helps only, because the column can only save number with one decimal place. For higher decimal places you have to multiple it with 100 or 1000 or......
    Hope this helps also other peoples.
    kind regards
    Joe

  • How to install Oracle Web toolkit

    Hi,
    I wantto install Web toolkit on Win2k server machine. I'm using oracle 9i rel. 2 .do i have install Ä°AS ?? how can install the web toolkit ?
    thanks in advance

    Kashif,
    it does NOT help to ask the same question 3 times in 3 different entries, nor will you receive extra credits for it..
    searching on OTN came up with this link..
    http://www.oracle.com/technology/tech/java/newsletter/august05.html
    and this as the product site
    http://www.oracle.com/technology/products/webservices_manager/index.html
    right side, search down, link to 10.1.2.0.2 download
    accept the terms and conditions .. and scroll down to download
    this brings you to
    http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
    and then search for Web Services Manager

  • Export to xls from table is taking too long (Around 20 min)

    Hi all,
    I am new member to this forum. I had a table with 80 columns and 20000 records. It is having primary key column. When i try to export the table data in toad from data grid it is taking 15-20 min. When i try to export from my front end java application it is saying time out. when i query the table i am getting results in 3 secs, but when tried to export it is taking more time.
    Can any one please provide me solution for exporting the data faster with in a min?
    My table structure is
    COL1     NUMBER
    COL2      VARCHAR2 (150 Byte)
    COL3     DATE
    COL4      DATE
    COL5      NUMBER
    COL6      NUMBER
    COL7      VARCHAR2 (6 Byte)
    COL8      NUMBER
    COL9      NUMBER
    COL10     NUMBER
    COL11     NUMBER
    COL12     NUMBER
    COL13     NUMBER
    COL14     NUMBER
    COL15     CHAR (1 Byte)
    COL16     CHAR (1 Byte)
    COL17     NUMBER
    COL18     NUMBER
    COL19     NUMBER
    COL20     NUMBER
    COL21     NUMBER
    COL22     NUMBER
    COL23     VARCHAR2 (200 Byte)
    COL24     VARCHAR2 (200 Byte)
    COL25     VARCHAR2 (200 Byte)
    COL26     VARCHAR2 (200 Byte)
    COL27     VARCHAR2 (200 Byte)
    COL28     VARCHAR2 (200 Byte)
    COL29     NUMBER
    COL30     VARCHAR2 (200 Byte)
    COL31     NUMBER
    COL32     NUMBER
    COL33     NUMBER
    COL34     NUMBER
    COL35     NUMBER
    COL36     NUMBER
    COL37     NUMBER
    COL38     NUMBER
    COL39     NUMBER
    COL40     NUMBER
    COL41     DATE
    COL42     VARCHAR2 (150 Byte)
    COL43     DATE
    COL44     VARCHAR2 (150 Byte)
    COL45     NUMBER
    COL46     VARCHAR2 (50 Byte)
    COL47     VARCHAR2 (50 Byte)
    COL48     NUMBER
    COL49     NUMBER
    COL50     CHAR (1 Byte)
    COL51     CHAR (1 Byte)
    COL52     VARCHAR2 (150 Byte)
    COL53     CHAR (1 Byte)
    COL54     VARCHAR2 (150 Byte)
    COL55     NUMBER
    COL56     NUMBER
    COL57     VARCHAR2 (250 Byte)
    COL58     CHAR (1 Byte)
    COL59     CHAR (1 Byte)
    COL60     CHAR (1 Byte)
    COL61     CHAR (1 Byte)
    COL62     CHAR (1 Byte)
    COL63     CHAR (1 Byte)
    COL64     CHAR (1 Byte)
    COL65     CHAR (1 Byte)
    COL66     CHAR (1 Byte)
    COL67     CHAR (1 Byte)
    COL68     CHAR (1 Byte)
    COL69     CHAR (1 Byte)
    COL70     CHAR (1 Byte)
    COL71     CHAR (1 Byte)
    COL72     NUMBER
    COL73     NUMBER
    COL74     NUMBER
    COL75     NUMBER
    COL76     NUMBER
    COL77     CHAR (1 Byte)
    COL78     CHAR (1 Byte)
    COL79     CHAR (1 Byte)

    Hi,
    I got it. But this export is happening from front end java application, Which i am simulating in back-end toad. Could you please help me any architecture level approach while creating table. Once again thanks for your input.
    Regards,
    Pavan.

  • How do I fire a URL into QuickTime from a web page?

    Looking at the Apple trailer site and I like the way that if you view a HD trailer it loads QuickTime and opens the video straight into QuickTime
    Now I assume it's sending the URL of the MOV file to QuickTime to play.
    How can I make a link from a HTML page send the URL into QuickTime to replicate the same way to run a video.
    At the moment I build "pop up" windows to display movies in, and I think using QuickTime in this way will be better so if someone has popups blocked my movies will still play.
    It must be simple to do.
    I once did a site for someone that need a podcast and I got it to send it to iTunes. But I cant seem to see how to do the same for a movie to QuickTime
    R

    http://homepage.mac.com/kkirkster/03war/
    The technique is known as Poster Movies. A tiny image file saved as .mov file that can either act as a "placeholder" (target="myself") or act like a "link" (target="quicktimeplayer").
    http://www.qtbridge.com/pageot/pageot.html
    Free software to help write the proper page code.
    Another method is a QuickTime Media Link (.qtl file). These tiny text based files can be placed anywhere in a Web page and will always download (Mac or PC) and will launch the QuickTime Player.
    http://homepage.mac.com/kkirkster/.Public/wwdc_keynote.qtl
    One of mine as an example.

  • How to export into excel in oracle ebs forms

    Hi all,
    I am trying to export form data into excel through Internet explorer , When I select all records and try to export it into excel after some time it open other windows for login ,
    Please tell me how to export it into excel.
    Thanks

    start/control pannel/java(java icon) you see.
    I can see on my desktop...
    see following note.
    File Export From Form Opens "Session Expired" Window And Requests New Sign-On [ID 1061882.1]
    Edited by: user10994730 on Apr 18, 2012 7:04 AM

  • Exporting test data from Oracle Test Manager

    Hi,
    I have created some test datas (req.s,tests etc) in my OTM.Suppose if iam reinstalling OATS,how can i get this test data in the new OTM.Can i export this test data to some .csv(windows) format,so that i can use by importing in to OTM.
    Can anyone help me in this topic?
    Alex,can you please?
    Thanks,
    Sandeep.

    Sandeep
    All the data is stored on a database all you need to do during the upgrade is point to the old database instead of creating a new one.
    if you are upgrading from a Microsoft based database to an Oracle database there is a data migration utility.
    You don't need to do anything manually.
    Once you have finished the upgrade you will need to login in the admin app http://localhsot:8088/admin with a user that has administrator rights, as this will take care of any DB upgraded that needs to be applied.
    Regards
    Alex

  • Exporting to csv from Oracle Application Express 4.0

    I exported my report(classic report) to csv from APEX 4.0.Though the report query returned more than 2000 records,when I tried to export to csv,the excel displayed only 500 rows.
    Is there any setup I need to do?Am I missing out anything?
    Kindly reply.

    This post may help: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html
    Martin
    http://www.talkapex.com

Maybe you are looking for

  • Can any one validate the below queries related to temp tablespace

    For Temporary Tablespace Free and Used Space Information, I am using the following query SELECT fs.tablespace_name tspace, sum(fs.bytes)/(1024*1024) tot_ts_size_MB, sum(df.bytes_free)/(1024*1024) free_ts_size_MB, sum(df.bytes_used)/(1024*1024) used_t

  • Colour profiles and my sanity!

    I hope there's someone here who can help this Photoshop newbie! I am a keen but very amateur photographer, and  I'm experiencing a frustrating problem in Photoshop and though I've read a few articles on Colour Profiles, I must be missing something ob

  • Cascading Prompts

    Hi all , I built a Cascading Prompt report in Answers and intergrated in one of my dashboards. Now in Dashboard I want it to show as a report but the compelte report dispayed as simple Prompt (with 1st input ) .When I click on 1st input the prompting

  • R12 Markview database tables

    Hi, I am looking for the Oracle database tables which contain the Markview link to pull up information in Markview. Appreciate if anyone can assist. Thanks

  • Material planning field in Activity

    Hello All When we select activity and go in detail screen, go to assignments tab - there will be a material planning field. I am not able to see that field, is that a configuration , if yes where is the setting. Thanks, Karthik Edited by: SG_Karthik