How to export MySql queryBrowser to oracle's .sql file

Hi folks:
I was trying to export result set from MySql query browser to Oracle. I could able to do
File->Export Result Set-> Excel format...
What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
Did you guys get my question.?
Please throw some light on this....
Could be very appreciable ....
Thanks
Sudhir Naidu

As already pointed out the implementation is bad.
You should have:
USERS ( ID )
GROUPS ( ID )
USER_GROUPS( USER_ID,GROUP_ID )The reason for not using the CSV list is that not only is it hard to write efficient SQL against denormalised structures, but it is very difficult to constrain your data properly.
But anyhow, Oracle 10g has a MEMBER OF function. Too bad you're on 9i. You say "new task", is the platform still up for decision?
You could normalise on the fly like this
e.g.
SELECT t.GROUP_ID
      ,EXTRACTVALUE (csv_to_tab.COLUMN_VALUE, 'user')
       user_id
  FROM t_user t
      ,TABLE (XMLSEQUENCE (EXTRACT (XMLTYPE
(   '<set><user>'|| REPLACE
(t.users,',','</user><user>' )                       
|| '</user></set>'), '/set/*'))) csv_to_tab

Similar Messages

  • How to export data from a Oracle table to a delimited file?

    I know how to load delimited file into a table, but how to export
    data from a Oracle table to a delimited file?
    Thanks in advance.

    Try looking at this link, it's long but there's three different solutions discussed in it. If you look at Barbara Boehmer's
    solution in her posts in the link below you'll see that she's addressed your concerns with spool files.
    Re: utl_smtp and triggers

  • How to export test cases into oracle test manager

    hi
    present i am learning this tool help plz
    how to export test cases into oracle test manager
    Edited by: 799636 on Oct 5, 2010 7:11 AM

    Create a script in openScript and save it to a workspace (a shared directory on the OTM server). To add an Oracle OpenScript test to OTM:
    1.Select the Tests tab.
    2.Click the Add button.
    3.Enter a name for the test.
    4.Select Oracle OpenScript in the Type field.
    5.Click Find to display the Select Script dialog box.
    6.Select the Repository and Workspace.
    7.Select the Oracle OpenScript script that you want to add.
    8.Click OK.
    9.Select the owner and priority and enter any descriptive information in the Functionality and Description fields.
    10.Click Save.
    Regards,
    Jamie

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

  • How to export the entire databse in a text file !!!

    I have oracle 11g Database and want to export the SH Database as a text file
    What will be the process to export it ?
    links or steps
    Thanks

    I have oracle 11g Database and want to export the SH Database as a text file
    What will be the process to export it ?
    links or steps I think there is no such operation, But you have some alternate.
    1) take export of database
    2) import into SQL file.
    one of example
    http://www.dba-oracle.com/t_data_pump_sqlfile_parameter.htm

  • How to export an imail message to a text file

    I want to edit a long string of emails (over 2000).  is there any way to get those mail messages (no attachments) into a single text file?

    I have oracle 11g Database and want to export the SH Database as a text file
    What will be the process to export it ?
    links or steps I think there is no such operation, But you have some alternate.
    1) take export of database
    2) import into SQL file.
    one of example
    http://www.dba-oracle.com/t_data_pump_sqlfile_parameter.htm

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

  • How to conncet mysql database and oracle database 11g2 on linux 5.4

    Hi,
    Can anyone help me to connect mysql server database to Oracle
    database on Linux OS?
    I have done all things, but I am getting a problem in installing dg4odbc
    driver on Oracle database. In a simple word, I don't know how to create
    listener between mysql database and Oracle database.
    If anyone knows that please help me in configuring dg4odbc for Oracle. OS
    -Linux 5.4 and refer any doc or link.
    oracle 11g2 11.2.0.1
    i follow the metalink id - 466228.1 ( but cant successed).
    Thanks and regards,
    pritesh ranjan

    hi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
    details of the initdg4odbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = mysql_odbc
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    set LD_LIBRARY_PATH=/usr/lib
    # Environment variables required for the non-Oracle system
    #set HOME=/home/oracle
    ~
    ~
    ~
    "initdg4odbc.ora" 20L, 437C
    details of the listener.ora file
    DG4ODBC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA=(SID=dg4odbc))
    (HS=OK)
    SID_LIST_ORCL =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = ORCL)
    ADR_BASE_DG4ODBC = /u01/app/oracle
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
    ADR_BASE_ORCL = /u01/app/oracle
    "listener.ora" [readonly] 37L, 779C 35,0-1 85%
    details of tnsname.ora file
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    DG4ODBC =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=DG4ODBC))
    (HS=OK)
    MYSQL =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=MYSQL))
    (HS=OK)
    when i m going to start the listener it could not be started..
    details of the mysql server database
    [root@pritesh11gprim ~]# mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.6.10 MySQL Community Server (GPL)
    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    mysql>
    mysql> show databases;
    | Database |
    | information_schema |
    | demo |
    | mysql |
    | performance_schema |
    | pritesh |
    | test |
    6 rows in set (0.01 sec)
    if any where i m wrong then plz suggest me......
    thanks & regards
    pritesh ranjan

  • 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

  • How to export report to excel and to text file in previewer

    How to export report to excel?
    And, it takes long time for generate report to rtf or pdf file in previewer.
    How to speed up the process? or, it's better generate report to text file directly by Run_product?
    Please help!

    You can generate report to tab delimite format that can be imported to excel.
    As for the performance question, because reports can't specify what format when you run against previewer, so I don't know what previewer you are talking about. Generate to file is always faster than to your application previewer (assume) because you have one more step after output generated in the file: read from file and render it. Depends on the render and size of the output, it may have significant performance difference.
    Thanks,
    -Shaun

  • How to create database link between oracle and SQL Server

    Hello Everyone,
    Here i have Oracle Database 9i and SQL Server 2005 databases.
    I have some tables in sql server db and i want to access from Oracle.
    How to create a database link between these two servers
    Thanks,

    Thanks for Everyone,
    I was struggle with this almost 10 days....
    I created Database link from Oracle to SQL Server
    Now it is fine.........
    Here i am giving my servers configuration and proceedure how i created the db link...@
    Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
    Machine (1)
    DB Version : Oracle 9.2.0.7.0
    Operating System : HP-UX Itanuim 64 11.23
    IP : 192.168.0.31
    Host : abcdbt
    Machine (2)
    Version : SQL Server 2005
    Operating System : Windows server 2003 x86
    IP : 192.168.0.175
    Host : SQLDEV1
    User/PW : sa/abc@123! (Connect to database)
    Database : SQLTEST (exsisting)
    Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
    Prerequisites in Machine (2):
    a)     Oracle 10g software
    b)     User account to access SQL Server database (sa/abc@123!)
    c)     Existing SQL Server Database (SQLTEST)
    d) Tables (testing purpose) (T)
    Steps:
    1)     Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
    2)     Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
    Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
    You can follow this link also.....
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    I created DSN as
    DSN name : SQLTEST
    User : SA/abc@123! (Existing user account)
    Host : 192.168.0.175 (machine 2)
    Already I have 1 database in SQL Server with the name SQLTEST
    You can create DSN with different name also (not same as db name also)
    3)     Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
    Create init<DSN NAME> file
    Ex: initSQLTEST
    Copy inithsodbc to initSQLTEST
    And edit
    initSQLTEST file
    HS_FDS_CONNECT_INFO = SQLTEST    <DSN NAME>*
    HS_FDS_TRACE_LEVEL = OFF*
    save the file....@
    4)     Configure Listener.ora *(Machine 2)*
    LISTENER_NEW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    SID_LIST_LISTENER_NEW =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc))
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc) )
    :> lsnrctl start LISTENER_NEW
    5)     Configure tnsname.ora *(Machine 2)*
    SQLTEST11 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SQLTEST))
    (HS=OK)
    :> tnsping SQLTEST11
    If No errors then conti….
    6)     Configure a file *(Machine 1)*
    Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
    Create a file
    $ vi TEST_abcdbt_ifile.ora
    something=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
    (CONNECT_DATA=
    (SID=SQLTEST))
    (HS=OK)
    $ tnsping something
    $ sqlplus system/manager
    Your connected to Oracle database *(machine 1)*
    create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
    select * from t@xyz;10 rows selected.
    Thanks,
    Edited by: ram5424 on Feb 10, 2010 7:24 PM

  • How to export XY graph picture to clipboard (or file) with labview 6i

    Hello,
    I would like to export XY graph picture to clipboard (or file) to insert it in a word document using labview 6i
    I found example for labview 8 using invokenode but not with labview 6i
    But this invokenode doesn't exist in labview 6i : here's what I found in labview 6i
     Does anyone knows how to use this one ?
    thanks in advance
    Solved!
    Go to Solution.

    I would recommend you use Write PNG File.vi instead of Write JPG File.vi unless the place you are using it cannot handle PNGs.  The PNG will be much better quality and should be about the same size for this type of image.
    Message Edited by DFGray on 02-03-2010 07:22 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to export and email so others can play file?

    I recently had a ProCare appointment and learned how to export a movie via email. But since that makes choppy videos I learned how to use Expert Settings to change it to a QuickTime movie using h.264 and AAC. This results in a 2-3mb file at 30fps for a 30-45 second clip. Perfect.
    Well it works perfect for my Mac, but when I send it to other users (all Windows so far) they get an error saying the file is not a movie. They are using the latest QuickTime for Windows player.
    Any ideas?
    Thanks

    welcome tebelony to the  boards of discussions...
    I've read here such complains of Windows users often... I'm no Windows guy, but it seems so, that not every PC is able to playback h264.. (which needs indeed a very powerful machine.. even for playback..).
    and: Only Quicktime 7 (seven) this latest and excellent codec...
    Plan B)
    .. choose a different output codec... 'mpeg4' creates also nice results (small, good looking...) ... see in the Expert Settings ...
    for a while, I did use the free tool
    iSquint
    http://isquint.org/
    you export your iM project as 'QT/FullQuality' and use it as input for iSquint ... I tested some settings (click on >> this link << ), and got better results than with QT's mpeg4 ...

  • How to export a large, high-rez Keynote'08 file as a QT movie?

    I have used Keynote '08 to create a 1.6GB presentation, 1024 x 768 resolution, 940 slides of stills and animation clips, navigatable hyperlinks on every slide. It plays and navigates perfectly well in Play mode.
    The presentation would of course be most effective if I could export it as a single QuickTime movie - 1024 x 768 resolution. But I have not been able to do this, either on my own or with help from Apple employees at an Apple retail outlet. (I cannot remember whether we tested Keynote '08 or '09 at the store)
    The best I've been able to accomplish is to break the presentation into ten parts and export them as ten QuickTime movies at a reduced resolution of 800 x 600.
    I've been able to create a full length single movie - but only as a web-sized lowest quality (H.264) QT movie - in which the hyperlinks work but the slide captions cannot be clearly read.
    This interactive education presentation would be so much more effective if I could export it as a single high-rez QT movie.
    So I am searching for a solution to this problem, if it indeed exists using Keynote '08 or '09, and feedback/educated opinions from Keynote users who have encountered the same problem. Is Apple aware of this limitation? Might Apple address it in Keynote '10 whenever that arrives? Is there additional software available that could solve this problem?
    TIA

    I want to be able to watch my 1080p work on Apple TV in the best quality.
    The TV device is limited to max of 720p playback. While the TV1 did have an option to scale content for output as 1080i or 1080p, this was discontinued with the TV2 since 1080p native HDTVs will automatically rescale the negotiated input as/if needed for proper viewing. To maintain compatibility with the TV1 device, Apple presets will export 720p content only if the source file is larger than or equal to these dimensions and the frame rate is 25 fps or less. They will not allow you upscale smaller dimension files. Thus, your 1080p source files will be exported as either 720p24 or 540p30 files depending on the source frame rate. If you have an TV2 device and wish to ensure a 720p30 output, then use a free third-party app like MPEG Streamclip or HandBrake. Both have TV2 specific conversion options.

Maybe you are looking for

  • Java.lang.IllegalStateException 11g Web Services Administration

    Hello, When using Search 11g SES Web Services Administration, I get an error before it gives me the full xml of all the schedules (Code to Return All States of All Schedules). What is causing the java.lang.IllegalStateException: Stream already closed

  • APEX - Spelling check and textarea with html editor

    I have an item on the form defines as textarea with html editor. I also need to be able to do spelling check, but the "textarea html editor" only has font features and no spelling check. Is there away to define an item to have both spelling check and

  • IPhoto crashing with camera card inserted into reader......

    I replied to another thread regarding iPhoto crashing this morning, the first time that I have attempted to import photos into the newest iPhoto. After posting my replies, I noted that the question had been answered and I don't want this topic to die

  • Can't open old logic files

    I recently upgraded to SNow leopard. I have logic pro 9 I tried opening older tracks and they won't open due to the version I made those on logic express 7. Some of those tracks used intakt and battery 2 which now don't work on 10.6 but did on 10.5 L

  • VPN Internet

    Hi All! My Internet provider use VPN for Internet connection. How I may create VPN connection in Solaris 10 9/10 x86