Is there any way to call a sql file from a pl/sql block

Hi,
I want to call a sql file from a pl/sql block.
the pl/sql block has an exception handler. The pl/sql block will execute the sql file and in case it throws error then the exception handler will take care of it.
The sql file will be a master file and it will itself call other sql files.
is it possible to call any sql file from pl/sql block ?

When you say "sql file", what precisely do you mean? Do you have a file that has just SQL statements? Or do you have SQL*Plus scripts?
Where are the files stored? Are they on your client machine? Or the database server?"which in turn calls other sql files" seems to imply that the answer to the first question is that you have SQL*Plus scripts. If you have SQL*Plus scripts, you need SQL*Plus to execute them. PL/SQL is running in the Oracle database, SQL*Plus is a client application. It is not practical to have PL/SQL call SQL*Plus. Since you've already ruled out the best of the bad options, it appears that the answer is no, you can't have your PL/SQL run these files.
As Alex points out, that's probably a good thing. It sounds like your application has been designed incorrectly. If you need PL/SQL, you should be creating stored procedures and functions and calling those from PL/SQL. Having PL/SQL depend on code in flat files outside the database is not a good idea.
Justin

Similar Messages

  • Is there any way to mass download Pages files from iCloud?

    I use iCloud for all of my iWork documents, and it's saved me in the past (I had a laptop stolen, but all my documents were safe), so I swear by it. I just had a scary experience with a non-Apple program randomly deleting important documents, so I thought I'd be over-cautious and ask if there's any way to download hard copies of documents created and stored in iCloud in Pages so that I can back them up and keep them for prosperity. Thanks!

    iCloud keeps copies of your iWork documents on your Mac so that you could work on them without an internet connection. It would then sync them to the cloud the next time you are connected. These copies are located in your user library > Mobile Documents in separate folders for each application. If you have Time Machine set up, & I certainly hope you do, you already have copies & backups.

  • Is there any way to take backed up files from an old OS and get them onto a new phone?  They are backed up as txt files.

    I have a six year old lap top with an old OS and itunes 10.  I backed up my i phone 4 on it.  I got an I phone 5 and the version of Itunes compatible is not supported by the laptop.  I installed itunes on a different computer and when trying to sync the iphone 4 to the desktop, updated the iphone 4 software.  Now my iphone 4 is no longer compatible with my laptop.  I am interested in getting my contacts and photos from my old laptop to either iphone at this point.  I have the backed up files but they are txt files in the Mobile Sync Back ups.  Any suggestions would be appreciated!

    Generally when moving from one phone to another, individuals will make a backup of the one device and then restore to the second device. However, it seems you are no longer using the computer you made the backup on, so that can be a problem. There is no way for you to take information out of the backup and insert it in the iPhone. It is an all or none proposition. But, just moving the backup folder from one computer to another doesn't work either.
    Did you sync the contacts to a supported application on the computer? Also, if you are referring to the photos in the camera roll, you can import them to the computer by connecting the phone to the computer. You do not need iTunes to do that. Just plug in and let the computer photo import utility take the pictures and put them on the computer. Then you would sync the photos back to the photo library on the new phone,
    Contacts you can look at a 3rd party app that might help. MCBackup is in the app store and converts your contacts to a file you can email to yourself and then click on it and open it. Suggest syncing contacts/calendar to a supported application on the computer, or to iCloud so you can recover a lot easier.

  • Is there any way to call a method by name?

    Hi there,
    Is there any way to call a method by name?
    e.g. myobject.whatIAmLookingFor("the_name_of_a_myobject's_method",param1,param2,...);
    Thanx in advance

    Is there any way to call a method by name?
    Yes:
    <looking at his paint(Graphics g) method>
    Hey Sam! Commere Sam! Das a good boy!

  • Is there any way to call java program whenever i login to R3 System.?

    Hi Experts
    Is there any way to call java program whenever i login to R3 System.
    Means Whenever the user login to R3 system i should trigger one java program.. Is there any way
    Please help me
    Thanks & Regards
    Ravi Shankar B

    If you want to access to the Windows Taskbar, you should call some Win32 APIs and JNI. Refer to Win32 references.

  • Is there any way to call 'Action' in web.xml ?

    Dear All,
    My requirement is like, in my Deployement descriptior (web.xml) I would like to call "action" instead of calling welcome page(*.jsp).
    Iam using JBOSS with Jetty5.0 Servlet Container.Is there any way to call action in my deployment descriptor?
    Thanx in advance

    You can, but you have change your server configuration file. I am using Sun App server where we have a default-web.xml file in the config directory where it specifies which default file will be loaded, instead of calling the welcome.jsp. In Sun App server there is a parameter called <welcome-file-list> where you can specifiy which one to be loaded. I strongly believe there must be something like that in JBoss. Check out all the xml files in the JBoss config directory where you can find a solution to it.

  • Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files?

    Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files? I just want to view / delete files without importing them.
    For instance I have 1200 photos on my iPhone Camera Roll. Some of these are shots, that I've taken multiple times, some good, some bad. I just want to clean up my Camera Roll, but going through the pictures on the iPhone's small screen is tedious. I'd much rather look at the camera roll's photo's on my Mac, and then decide which files I'd like to keep, and which to delete.
    I don't want to import the files, as when I import the files, and delete them from Camera Roll, now the Photo's are not on my phone, and the only way to get them back on my Phone is to Import them back in using iTunes, and then they go into the Picture Library and not the Camera Roll.
    In the same way as I can view Pics from my digital camera's SD card on a Mac without having to actually copy them to my computer, is there any app out there that will let me view my iPhone pics without importing them.

    gsharp01 wrote:
    Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files? I just want to view / delete files without importing them.
    The short answer is yes.
    Connect your iPhone to your computer.
    Open Image Capture application.
    Click on the 4 little squares at bottom to view them as photos, not a list.
    Select the photos them click the No Entry icon at bottom to delete.

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • Is there any way to create a setup file Like Visual Basic

    Hi,
    I want to create a setup file of all developed foms and reports to install them to desireable location, is there any way to create a setup file in oracle, Like Vb.
    Raza

    I believe there is something from Oracle but it was frustratingly buggy when I used it a few years back and only worked via the Oracle installer.
    Personally, I'd recommend something like Innosetup, which is freeware and a Windows-style installer much like InstallShield etc. so it'll create an executable setup file probably OK if they've already got the Oracle Runtime components installed.

  • Is there any way to export IT Resource data from OIM using the export tool?

    Hello,
    we are trying to migrate an OIM development environment to a preproduction environment and we need to migrate more than 400 IT Resources. We have exported some IT Resources and when we imported them in the preproduction environment their data was not migrated. Is there any way to export IT Resource data from OIM using the export tool? Or is there any other way to do this without doing it by hand?
    Thank you for your help
    Kind Regards

    Well , OIM doesnot provide any such facility to export ITResource data along with ITResource .
    Directly updating the DB could be an option ..
    Thanks

  • Is there any way to work on one Catalog from two computers simultaenously?

    Is there any way to work on one Catalog from two computers simultaenously?
    I have a catalog with 7000 images we have to process / crop / etc. and I was trying to find a way that two of us could work on the images at the same time.
    Thanks!

    No, the LR catalog is not multi user capable (and cannot reside on a network share without tricks). What you could do is
    export part of the catalog (a subset of all images) into a separate catalog ("Export as Catalog", without exporting the negatives)
    work on different images in the two catalogs at the same time
    re-import ("Import from Catalog") the exported work after adjustments on it is finished
    Beat

  • Is there any way to prevent my SSIS Tasks from reformatting themselves when I want to change the Name

    So all my tasks are nicely laid out in my SSIS Package. Now I want to go add a blurb to the Name to make it a little more descriptive. When I do that, Microsoft Visual Studio just automatically re-sizes the task so the entire description, name fits. When
    I make it the right size, my scripting name is wrapping and that's the way I want it to look within my Package. Is there any way to stop Microsoft Visual Studio from automagically adjusting the size of my task when I click on the Name to edit?
    Thanks for your review and am hopeful for a reply.

    There is no way. The designer canvas received improvements in SSIS ver 2012, but this specific aspect remain unchanged.
    What I do I simply use the Format -> Autolayout -> Diagram or you can also/instead Ctrl-A to select all and choose "make same size"
    Arthur
    MyBlog
    Twitter

  • Is there any way to prevent opening the lid from waking my MBP?

    Hi,
    I have a problem with my screen on my MBP such that when the computer is asleep in its case the lid often comes ajar, wakes the computer, and drains the battery. Is there any way to prevent the lid opening from waking the computer?
    Thanks for any ideas on how to fix this.

    Option 3: Open Applications > Terminal and type sudo pmset lidwake 0 (you'll be prompted to enter your admin password). To revert to wake on lid open, use the Terminal command sudo pmset lidwake 1.

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there any way to recover my itunes library from a damaged iPod Touch?

    Is there any way to recover my itunes library from a damaged iPod Touch?

    Your itunes library should be on your computer and should be included in your regular backup copy of your computer.

Maybe you are looking for

  • Jabber and SRST???

    Cisco,  I'd like to see if proper SRST support for Jabber is coming to CUCM and IM&P, or if the community is going to continue to be limited in this area? In its current iteration, Jabber is only SRST capable if an active connection to IM&P remains i

  • 3rd gen iPod not seen by iTunes 7.6.2.9 on Vista

    3rd gen iPod and iTunes 7.6.2.9 on Vista Used to be flawless. I'd drop the iPod on the dock, Windows would make that sound of a device attaching, my iPod would appear in iTunes and the updating would happen. Then after going out of town for a weekend

  • Moving FCE Files to External Hard Drive

    I have finally been convinced that I need an external hard drive for captured files. This is due to the problem of the Capture Scratch file crashing with 10.3.9. This is a problem about which Apple has finally written an advisory. http://www.info.app

  • New nvidia driver!

    Hope this fixes the xgl problem with nvidia! Release Highlights:     * Added support for GeForce 8600 GTS, GeForce 8600 GT, GeForce 8500 GT, GeForce 8400 GS, and GeForce 8300 GS.     * Improved Notebook support.     * Fixed assorted minor bugs. The 1

  • How to view HTML

    Dear All, My blackberry is: 8520 OS: V5.0.0.822 I would like to received emails in HTML format. How to do that? please help! I have unlimited data plan  Regards, Yazen