Appending a .sql file to a pdf

Is it possible to append a .sql file to a PDF as an Appendix. I am using Acrobat Pro 9.

Hi randha m,
What actually you mean by append. Do you mean attach. Try to elaborate little more your query.
Regards,
Ajlan Huda.

Similar Messages

  • Using SQL*Loader and UTL_FILE to load and unload large files(i.e PDF,DOCs)

    Problem : Load PDF or similiar files( stored at operating system) into an oracle table using SQl*Loader .
    and than Unload the files back from oracle tables to prevoius format.
    I 've used SQL*LOADER .... " sqlldr " command as :
    " sqlldr scott/[email protected] control=c:\sqlldr\control.ctl log=c:\any.txt "
    Control file is written as :
    LOAD DATA
    INFILE 'c:\sqlldr\r_sqlldr.txt'
    REPLACE
    INTO table r_sqlldr
    Fields terminated by ','
    id sequence (max,1) ,
    fname char(20),
    data LOBFILE(fname) terminated by EOF )
    It loads files ( Pdf, Image and more...) that are mentioned in file r_sqlldr.txt into oracle table r_sqlldr
    Text file ( used as source ) is written as :
    c:\kalam.pdf,
    c:\CTSlogo1.bmp
    c:\any1.txt
    after this load ....i used UTL_FILE to unload data and write procedure like ...
    CREATE OR REPLACE PROCEDURE R_UTL AS
    l_file UTL_FILE.FILE_TYPE;
    l_buffer RAW(32767);
    l_amount BINARY_INTEGER ;
    l_pos INTEGER := 1;
    l_blob BLOB;
    l_blob_len INTEGER;
    BEGIN
    SELECT data
    INTO l_blob
    FROM r_sqlldr
    where id= 1;
    l_blob_len := DBMS_LOB.GETLENGTH(l_blob);
    DBMS_OUTPUT.PUT_LINE('blob length : ' || l_blob_len);
    IF (l_blob_len < 32767) THEN
    l_amount :=l_blob_len;
    ELSE
    l_amount := 32767;
    END IF;
    DBMS_LOB.OPEN(l_blob, DBMS_LOB.LOB_READONLY);
    l_file := UTL_FILE.FOPEN('DBDIR1','Kalam_out.pdf','w', 32767);
    DBMS_OUTPUT.PUT_LINE('File opened');
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ (l_blob, l_amount, l_pos, l_buffer);
    DBMS_OUTPUT.PUT_LINE('Blob read');
    l_pos := l_pos + l_amount;
    UTL_FILE.PUT_RAW(l_file, l_buffer, TRUE);
    DBMS_OUTPUT.PUT_LINE('writing to file');
    UTL_FILE.FFLUSH(l_file);
    UTL_FILE.NEW_LINE(l_file);
    END LOOP;
    UTL_FILE.FFLUSH(l_file);
    UTL_FILE.FCLOSE(l_file);
    DBMS_OUTPUT.PUT_LINE('File closed');
    DBMS_LOB.CLOSE(l_blob);
    EXCEPTION
    WHEN OTHERS THEN
    IF UTL_FILE.IS_OPEN(l_file) THEN
    UTL_FILE.FCLOSE(l_file);
    END IF;
    DBMS_OUTPUT.PUT_LINE('Its working at last');
    END R_UTL;
    This loads data from r_sqlldr table (BOLBS) to files on operating system ,,,
    -> Same procedure with minor changes is used to unload other similar files like Images and text files.
    In above example : Loading : 3 files 1) Kalam.pdf 2) CTSlogo1.bmp 3) any1.txt are loaded into oracle table r_sqlldr 's 3 rows respectively.
    file names into fname column and corresponding data into data ( BLOB) column.
    Unload : And than these files are loaded back into their previous format to operating system using UTL_FILE feature of oracle.
    so PROBLEM IS : Actual capacity (size ) of these files is getting unloaded back but with quality decreased. And PDF file doesnt even view its data. means size is almot equal to source file but data are lost when i open it.....
    and for images .... imgaes are getting loaded an unloaded but with colors changed ....
    Also features ( like FFLUSH ) of Oracle 've been used but it never worked
    ANY SUGGESTIONS OR aLTERNATE SOLUTION TO LOAD AND UNLOAD PDFs through Oracle ARE REQUESTED.
    ------------------------------------------------------------------------------------------------------------------------

    Thanks Justin ...for a quick response ...
    well ... i am loading data into BLOB only and using SQL*Loader ...
    I've never used dbms_lob.loadFromFile to do the loads ...
    i 've opend a file on network and than used dbms_lob.read and
    UTL_FILE.PUT_RAW to read and write data into target file.
    actually ...my process is working fine with text files but not with PDF and IMAGES ...
    and your doubt of ..."Is the data the proper length after reading it in?" ..m not getting wat r you asking ...but ... i think regarding data length ..there is no problem... except ... source PDF length is 90.4 kb ..and Target is 90.8 kb..
    thats it...
    So Request u to add some more help ......or should i provide some more details ??

  • How to open a popup win within a PDF file (c:\test.pdf) as Column Link

    I have a interactive report based on a Table (EMP). I need to create a column link that opens a pdf file within the employee curricula
    All the curriculum are stored in a windows folder, and in the EMP table there is a field named PATH containing the full path name.
    Thxs,
    Giuseppe.

    Hello, Sebastian
    I've tested your suggestion and in effect it works.
    I think is good solution if the files are readonly (pdf, images, etc).
    In my case the files are updatable by the end user.
    Consider that I'm using the following configuration:
    APEX 4.0, DB 11.2.0.1 and EPG
    This means that:
    a. All the files need to be loaded in the XML_DB via PL/SQL or via WebDAV (let's say in... /i/mydocs)
    b. When the end user opens the file via the "Column link" this is read-only in the browser, to modify it, the end user need to save updated version in (/i/mydocs), replacing the existing ones, .. and this is a bit complicated .
    Any other suggestion will be appreciate.
    Regards,
    Giuseppe.

  • Firefox Open File Dialog Box "which is a:" says "SQL File" with every file.

    Ever since I installed PostgreSQL on my Windows 7 PC, all files from Firefox default as SQL or append a ".sql". For example: if I'm downloading a javascript file, the saved file is "jquery.js.sql" in the downloads directory. None of my other browsers do this, only firefox. I have done a full reset and uninstalled/reinstalled and this problem still persists. None of my plug ins are enabled and I have only firebug as an extension. How do I fix this problem?

    Try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Smartforms: Appending Spool o/p(report)  to  PDF generated by SSF

    Dear Murugesh
    I have attached the code for Appending Spool o/p(report)  to  PDF generated by SSF below
      Please suggest as i will have 2 finish by this SAT.
    (Hint : Under 1 SOrdr there may be several line items==>
      The material with ref 2 every line-item either may be configurable(ZPL3) or nonconfigurable(ZA3C)) .
    *ENCLOSER TO PACKING LIST
    SELECT VBELN POSNR INTO CORRESPONDING FIELDS OF TABLE T_VBAP
                        FROM  VBAP
                        WHERE VBELN = SSORD.
    *For capturing the o/p pages from ZPL3 and consolidating into table
    *T_OTF to get single PDF
      LOOP AT T_VBAP INTO T_VBAP.
        ITNO = T_VBAP-POSNR.
      SELECT SINGLE * FROM ZPP_PLCMH WHERE VBELN = SSORD
                                     AND   POSNR = ITNO.
       IF SY-SUBRC EQ 0.
         SET PARAMETER  ID: 'AUN' FIELD SSORD ,
                            'APO' FIELD ITNO.
         CALL TRANSACTION 'ZPCE' AND SKIP FIRST SCREEN.
         IMPORT A = T_OTF2 FROM  MEMORY ID 'MEMID'.
         LOOP AT T_OTF2  INTO T_OTF2.
           APPEND T_OTF2 TO T_OTF.
         ENDLOOP.
         REFRESH T_OTF2.
       ELSE.
    *For capturing the o/p pages from ZA3C and Appending
    *at the end of the PDF file just created by the above code
        SELECT SINGLE * FROM ZPLH WHERE VBELN = SSORD
                                  AND   POSNR = ITNO.
         IF SY-SUBRC EQ 0.
           SET PARAMETER  ID: 'AUN' FIELD SSORD,
                            : 'APO' FIELD ITNO.
           CALL TRANSACTION 'ZPNE' AND SKIP FIRST SCREEN.
           IMPORT B = SPOOL_ID  FROM  MEMORY ID 'MEMID2'.
           CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
             EXPORTING
               SRC_SPOOLID                    = SPOOL_ID
               NO_DIALOG                      = ''
               DST_DEVICE                     = E_DEVTYPE
              PDF_DESTINATION                = 'LOHP'
            IMPORTING
               PDF_BYTECOUNT                  = BTC
             PDF_SPOOLID                    =
             LIST_PAGECOUNT                 =
             BTC_JOBNAME                    =
             BTC_JOBCOUNT                   =
            TABLES
               PDF                            = T_SPOOL_2_PDF
           EXCEPTIONS
             ERR_NO_ABAP_SPOOLJOB           = 1
             ERR_NO_SPOOLJOB                = 2
             ERR_NO_PERMISSION              = 3
             ERR_CONV_NOT_POSSIBLE          = 4
             ERR_BAD_DESTDEVICE             = 5
             USER_CANCELLED                 = 6
             ERR_SPOOLERROR                 = 7
             ERR_TEMSEERROR                 = 8
             ERR_BTCJOB_OPEN_FAILED         = 9
             ERR_BTCJOB_SUBMIT_FAILED       = 10
             ERR_BTCJOB_CLOSE_FAILED        = 11
             OTHERS                         = 12
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    ELSE.
           TEXT02 = ITNO.
           MESSAGE I014(ZQOTBANK) WITH TEXT02.
       ENDIF.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
    IMPORTING
        BIN_FILESIZE                 = BIN_FILESIZE
    TABLES
        OTF                          = T_OTF
        DOCTAB_ARCHIVE               = T_DOC
        LINES                        = T_LINES
    EXCEPTIONS
       ERR_CONV_NOT_POSSIBLE        = 1
       ERR_OTF_MC_NOENDMARKER       = 2
       OTHERS                       = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        BIN_FILESIZE                    = BIN_FILESIZE
        FILENAME                        = 'C:\SD6.pdf'
        FILETYPE                        = 'BIN'
        APPEND                          = 'X'
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
    IMPORTING
        FILELENGTH                      = BIN_FILESIZE
      TABLES
        DATA_TAB                        = T_LINES
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanx
    Moni
    Message was edited by: md monirujjaman

    Hello,
    Can you explain the problem in detail plz.
    I do see that the logic which was proposed is implemented in code.
    please check at various places, in run time the following points:
    1. Spool ID exported into ABAP Memory.
    2. Contents of the Main OTF IntTab.
    3. Conversion of the Spool to PFD.Check whether SUBRC = 0. <b>Un-comment all the Exceptions in your FMs where-ever you make a call in your program.</b>
       If this conversion of Spool to PDF is successful, you can choose "Append" option from the popup.
    Hope this helps you. Or if you have any specific query let me know.
    Regards, Murugesh AS

  • Can't open sql file in subfolders.

    Hi,
    1. I can’t open any file by Windows Browser, right click, and open with SQL Developer if the file is located in subfolder which is several levels deep from C:\.
    2. I can’t use Files (from SQL Developer) to browse subfolders than 7 or 8 levels deep from C:\.
    In the first case SQL Developer starts (if not running) without to open the file. If the sql file is located in first 3, 4 levels of sub folders – works.
    In the second case it just stopped working. In the panel (Files) Loading … appears and nothing.
    I change Tools/Preferences/Navigation level from 20 to 50 – same!
    Windows 7 Enterprise 8 GB
    SQL Developer Version 3.1.07 Build MAIN-07.42
    JDK 1.6
    Moreover SQL Developer uses 700 MB memory. It was 200 - 300 MB on Windows XP.
    If somebody has similar experience - please help?
    Konstantin

    Hi Gary,
    I am sending the log without CTRL-Break. The problem is same as the another thread.
    This is the error of the very beginning.
    C:\sqldeveloper\sqldeveloper\bin>sqldeveloper.exe
    _execv() failed, err=2Registered TimesTen
    These are errors before the SQLDeveloper to stop.
    Exception in thread "IconOverlayTracker Timer" java.lang.OutOfMemoryError: Java
    heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.
    java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390
    at java.lang.StringBuffer.append(StringBuffer.java:224)
    at org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage
    .java:257)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorMana
    ger.java:58)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVN
    AdminAreaFactory.java:163)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAcce
    ss.java:364)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess
    .java:272)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess
    .java:265)
    at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess
    .java:261)
    at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.ja
    va:316)
    at org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java
    :296)
    at org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java
    :278)
    at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapte
    r.getStatus(AbstractJhlClientAdapter.java:480)
    at org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.get
    Status(SvnKitClientAdapter.java:141)
    at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapte
    r.getStatus(AbstractJhlClientAdapter.java:466)
    at oracle.jdevimpl.vcs.svn.SVNURLInfoCacheSimpleStrategy.getURLInfo(SVNU
    RLInfoCacheSimpleStrategy.java:79)
    at oracle.jdevimpl.vcs.svn.SVNURLInfoCache.getPropStatus(SVNURLInfoCache
    .java:59)
    at oracle.jdevimpl.vcs.svn.SVNStatusResolver.getStatus(SVNStatusResolver
    .java:159)
    at oracle.jdevimpl.vcs.svn.SVNStatusResolver.populateStatuses(SVNStatusR
    esolver.java:82)
    at oracle.jdevimpl.vcs.generic.GenericClient$2.getImpl(GenericClient.jav
    a:531)
    at oracle.jdeveloper.vcs.spi.VCSStatusCache.getValuesImpl(VCSStatusCache
    .java:31)
    at oracle.jdeveloper.vcs.spi.VCSURLBasedCache.getValues(VCSURLBasedCache
    .java:107)
    at oracle.jdeveloper.vcs.spi.VCSStatusCache.get(VCSStatusCache.java:63)
    at oracle.jdeveloper.vcs.spi.VCSOverlayItemProducer.getOverlayItems(VCSO
    verlayItemProducer.java:63)
    at oracle.jdeveloper.vcs.spi.VCSNodeOverlayTracker.getOverlays(VCSNodeOv
    erlayTracker.java:288)
    at oracle.ide.explorer.IconOverlayTracker.processPendingNodes(IconOverla
    yTracker.java:574)
    at oracle.ide.explorer.IconOverlayTracker.access$1400(IconOverlayTracker
    .java:69)
    at oracle.ide.explorer.IconOverlayTracker$7.run(IconOverlayTracker.java:
    487)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    This is the error log after the "Loading...".
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Timer al
    ready cancelled.
    at java.util.Timer.sched(Timer.java:354)
    at java.util.Timer.schedule(Timer.java:170)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher.updateVisibleNodes
    (IconOverlayTracker.java:802)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher.access$3000(IconOv
    erlayTracker.java:713)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher$NodeUserListener.t
    reeExpanded(IconOverlayTracker.java:969)
    at javax.swing.JTree.fireTreeExpanded(JTree.java:2666)
    at javax.swing.JTree.setExpandedState(JTree.java:3427)
    at javax.swing.JTree.expandPath(JTree.java:2163)
    at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java
    :2204)
    at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTree
    UI.java:2191)
    at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(Basic
    TreeUI.java:2149)
    at com.jgoodies.looks.plastic.PlasticTreeUI.access$900(PlasticTreeUI.jav
    a:120)
    at com.jgoodies.looks.plastic.PlasticTreeUI$MouseHandler.mousePressed(Pl
    asticTreeUI.java:276)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:26
    2)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:26
    2)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:26
    2)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:26
    2)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:26
    2)
    at java.awt.Component.processMouseEvent(Component.java:6287)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:
    220)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4233)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
    ntrolContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
    ntrolContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
    ntrolContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    java.lang.IllegalStateException: Timer already cancelled.
    at java.util.Timer.sched(Timer.java:354)
    at java.util.Timer.schedule(Timer.java:170)
    at oracle.ide.explorer.IconOverlayTracker._scheduleUpdateTask(IconOverla
    yTracker.java:498)
    at oracle.ide.explorer.IconOverlayTracker.scheduleUpdateTask(IconOverlay
    Tracker.java:449)
    at oracle.ide.explorer.IconOverlayTracker.repaintConsumerOverlays(IconOv
    erlayTracker.java:432)
    at oracle.ide.explorer.IconOverlayTracker.access$000(IconOverlayTracker.
    java:69)
    at oracle.ide.explorer.IconOverlayTracker$2.stateChanged(IconOverlayTrac
    ker.java:114)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher.setVisibleNodes(Ic
    onOverlayTracker.java:843)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher.access$2800(IconOv
    erlayTracker.java:713)
    at oracle.ide.explorer.IconOverlayTracker$NodeWatcher$4.run(IconOverlayT
    racker.java:818)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
    ntrolContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • External Table which can handle appending multiple csv files dynamic

    I need an external table which can handle appending multiple csv files' values.
    But the problem I am having is : the number of csv files are not fixed.
    I can have between 2 to 6-7 files with the suffix as current_date. Lets say it will be like my_file1_aug_08_1.csv, my_file1_aug_08_2.csv, my_file1_aug_08_3.csv etc. and so on.
    I can do it by following as hardcoding if I know the number of files, but unfortunately the number is not fixed and need to something dynamically to inject with a wildcard search of file pattern.
    CREATE TABLE my_et_tbl
      my_field1 varchar2(4000),
      my_field2 varchar2(4000)
    ORGANIZATION EXTERNAL
      (  TYPE ORACLE_LOADER
         DEFAULT DIRECTORY my_et_dir
         ACCESS PARAMETERS
           ( RECORDS DELIMITED BY NEWLINE
            FIELDS TERMINATED BY ','
            MISSING FIELD VALUES ARE NULL  )
         LOCATION (UTL_DIR:'my_file2_5_aug_08.csv','my_file2_5_aug_08.csv')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;Please advice me with your ideas. thanks.
    Joshua..

    Well, you could do it dynamically by constructing location value:
    SQL> CREATE TABLE emp_load
      2      (
      3       employee_number      CHAR(5),
      4       employee_dob         CHAR(20),
      5       employee_last_name   CHAR(20),
      6       employee_first_name  CHAR(15),
      7       employee_middle_name CHAR(15),
      8       employee_hire_date   DATE
      9      )
    10    ORGANIZATION EXTERNAL
    11      (
    12       TYPE ORACLE_LOADER
    13       DEFAULT DIRECTORY tmp
    14       ACCESS PARAMETERS
    15         (
    16          RECORDS DELIMITED BY NEWLINE
    17          FIELDS (
    18                  employee_number      CHAR(2),
    19                  employee_dob         CHAR(20),
    20                  employee_last_name   CHAR(18),
    21                  employee_first_name  CHAR(11),
    22                  employee_middle_name CHAR(11),
    23                  employee_hire_date   CHAR(10) date_format DATE mask "mm/dd/yyyy"
    24                 )
    25         )
    26       LOCATION ('info*.dat')
    27      )
    28  /
    Table created.
    SQL> select * from emp_load;
    select * from emp_load
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    SQL> set serveroutput on
    SQL> declare
      2      v_exists      boolean;
      3      v_file_length number;
      4      v_blocksize   number;
      5      v_stmt        varchar2(1000) := 'alter table emp_load location(';
      6      i             number := 1;
      7  begin
      8      loop
      9        utl_file.fgetattr(
    10                          'TMP',
    11                          'info' || i || '.dat',
    12                          v_exists,
    13                          v_file_length,
    14                          v_blocksize
    15                         );
    16        exit when not v_exists;
    17        v_stmt := v_stmt || '''info' || i || '.dat'',';
    18        i := i + 1;
    19      end loop;
    20      v_stmt := rtrim(v_stmt,',') || ')';
    21      dbms_output.put_line(v_stmt);
    22      execute immediate v_stmt;
    23  end;
    24  /
    alter table emp_load location('info1.dat','info2.dat')
    PL/SQL procedure successfully completed.
    SQL> select * from emp_load;
    EMPLO EMPLOYEE_DOB         EMPLOYEE_LAST_NAME   EMPLOYEE_FIRST_ EMPLOYEE_MIDDLE
    EMPLOYEE_
    56    november, 15, 1980   baker                mary            alice     0
    01-SEP-04
    87    december, 20, 1970   roper                lisa            marie     0
    01-JAN-99
    SQL> SY.
    P.S. Keep in mind that changing location will affect all sessions referencing external table.

  • Reading .sql files

    am reading .sql file using
    {BufferedReader in= new BufferedReader(new FileReader("my_sql_file.txt"));}
    when i get the string from the buffered reader it has spaces in between the characters eg s a m p l e o u t p u t but when i try with ..txt the output is ok.
    why this and how can i correct it.

    * ExecuteQuery.java
    * Created on December 14, 2007, 12:27 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package msdDB.MSSQL;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    * @author Administrator
    public class ExecuteQuery {
    private File script;
    private BufferedReader in;
    private String statement;
    private StringBuilder builder;
    private String line;
    /** Creates a new instance of ExecuteQuery */
    public ExecuteQuery(File script) {
    this.script=script;
    try
    in= new BufferedReader(new FileReader(script));
    getString();
    catch(FileNotFoundException FNFExc)
    System.out.println("FNF Exception");
    private void getString()
    builder=new StringBuilder();
    try
    while((line=in.readLine())!=null)
    builder.append(line+"\n");
    System.out.println(builder.toString());
    catch(IOException IOEXc){
    System.out.println(IOEXc.getMessage());
    am planning to do a cerfification soon. so comments about bad programing in the code are also welcome.

  • Cant edit sql files,help!

    when I edit a sql file,I can't delete anything ,if there is any configuretion that can block the rights?But It's strange to see that ,I can append any words to the files,anybody can help me ,thanks!

    It sounds like your accelerators might be confused and it no longer knows that the Backspace is the delete previous character key (the key mapping seems to get confused ocassionally). Go to Tools > Preferences > Accelerators and select "Delete Previous Char" in the Actions list and see if there is anything in the Accelerators on the right. If not, you can revert to the standard accelerators (which tends to fix the problem) by selecting the "Load Preset ..." button.
    theFurryOne

  • How to generate XML file from SQL file !

    I am new to XML publisher. I known one way to generate XML file is register one report file in concurrent manager.
    But I want to generate XML file from sql file.
    Could someone show me how to code in sql file, how to register is in concurrent manager.
    Thanks !

    Hi
    Phew ... not sure we have the space here. So I can point you in the right direction:
    1. XML data generation - there are two packages in the db you can use with a plsql procedure, XMLGEN and SQL XML. You can also use java APIs too. Try checking the db documentation and search for the above methods.
    2. Registering the report - the system administrators guide will provide this info. Hooking the program up with XMLP is covered here - http://www.oracle.com/technology/products/applications/publishing/resource/CM%20Whitepaper5.0.pdf
    Regards, Tim

  • How to run SQL files from Java?

    Hi,
    Can someone point me towards a link on how to run sql files in Java? Thanks.
    P.S...if I've been completely blind please go easy on me!

    Sorry forgot the formating code thingy
    public static boolean executeScript(File script, Connection conn){
        boolean success = true;
        success = script.exists();
        if(success){
          DEBUG.print("ES::READING SCRIPT:" + script.getAbsolutePath());
          StringBuffer buffer = new StringBuffer();
          success=readScript(script,buffer);
          if(success){
            try{
              String creationScript = buffer.toString();
              Statement st = conn.createStatement();
              int start = 0;
              int end = 0;
              while (end != -1 && start < creationScript.length()) {
                end = creationScript.indexOf("GO", start);
                if (end != -1) {
                  DEBUG.print(creationScript.substring(start, end));
                  st.executeUpdate(creationScript.substring(start, end));
                  start = end + 2; //2 is the length of "GO"
              st.close();
            }catch(Exception e){
              success=false;
              DEBUG.printStackTrace(e);
        }else{
          DEBUG.print("ES::SCRIPT FILE DOES NOT EXISTS");
          success=false;
        return success;
      public static boolean readScript(File script, StringBuffer buffer){
        boolean success = true;
        DEBUG.print("RS:: reading file :" + script.getAbsolutePath());
        try{
          InputStreamReader isr = new InputStreamReader(new FileInputStream(script),"UTF16");
          int ch;
          while ( (ch = isr.read()) > -1) {
            buffer.append( (char) ch);
          if (isr != null)
            isr.close();
        }catch(Exception e){
          success=false;
          DEBUG.printStackTrace(e);
        return success;
      }

  • How to execute a script(.sql) file from a PL\SQL procedure

    I would like to know how to execute a .sql file from a stored procedure and the result of it should update a table. My .sql file contains select statements.

    Hi!
    just go through the following piece of code -
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    str varchar2(200);
      3  begin
      4    str := '@C:\RND\Oracle\Misc\b.sql';
      5    execute immediate(str);
      6* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 5ORA-00900: invalid SQL statement
    Cause: The statement is not recognized as a valid SQL statement. This error can occur if the Procedural Option is not installed and a SQL statement is issued that requires this option (for example, a CREATE PROCEDURE statement). You can determine if the Procedural Option is installed by starting SQL*Plus. If the PL/SQL banner is not displayed, then the option is not installed.
    Action: Correct the syntax or install the Procedural Option.
    Regards.
    Satyaki De.

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • I exported an indesign file as a pdf saved to my desktop, now all indesign files on desktop are turned to pdf. HELP PLEASE

    I exported an indesign file as a pdf saved to my desktop, now all indesign files on desktop are turned to pdf. HELP PLEASE

    If you are using Mac, press Apple + I to get the information. It show a table. There is a section call Open with. Change the file with pdf icon to open with indesign. If using PC, just click on the second button on the mouse and open with Indesign.

  • Preview of .sql Files.

    Hello.
    On Finder, I can preview all .txt files (a small reproduction of the file's contents). But by default, it is not possible for .sql files. On the preview window, I can only see the file's icon.
    How can I make it possible, since for me, .sql files are just text files, with a different extension (instead of .txt, it has .sql extension).
    Another question: is it possible to change the icon for all files from a specific type (ex. all .sql files)?
    Thanks in advance
    Carlos

    use this link to make quicklook treat .sql files as plain text files
    http://www.macosxhints.com/article.php?story=20071028184428583
    icons for a specific file type are set by the application which is currently the default application for that file type. if you change the default application the icons will all change. you can also change the icon used by the current default application. go to the main Applications folder, locate the application in question, control-click on it and select 'show package contents". then go to Contents->Resources. find the .icns used by the application and replace it by your own .icns file. restart.

Maybe you are looking for

  • IPhone 4 moisture sensor

    Hi, I have a problem back home in Romania with the wireless carrier service provider. They took my 4 for service ( home button problem an volume "-" not functional) in a plastic bag even after I asked them why, because I went to the colection point w

  • Any idea as to when the Apple Store will start selling refurbished iPad 4?

    Any idea as to when the Apple Store will start selling refurbished iPad 4?

  • I do not have the Print To PDF Setup option

    the instructions to intall the Adobe CreatePDF printer are below. I do not have the "Print to PDF Setup option on my Adobe site. Can someone help me with this? Install Adobe CreatePDF Desktop Printer      In Adobe PDF Pack, click Print To PDF Setup.

  • Publishing problems in HTML5

    I have a course that I need to publish in swf and HTML5 output. I am using a custom player skin (widget) which I downloaded from the eLearning Brothers template library. When I publish with HTML5 selected, the TOC button does not show up, some of the

  • Album Artwork switched between artists, help please?

    For some reason, recently my iPod has been switching around the album artwork from different artists. i.e. for "life in the fast lane" by "the eagles" from the album "**** freezes over" it now displays the album artwork for "the who: ultimate collect