Best hospitality: Script?  PL/SQL?  Script-on-the-server?

Hello everyone,

There may be no black-and-white answer, but I wanted to ask a quick question about scripts...

We have developed a script SQL (in a simple text file) for the treatment of the data and that all works fine. Now plan us to hand over users and so want to "attach everything" and remove the possibility of error.

Users may continue to call the script (as what) but I'm a little worried that the text file can mingle or users could follow the instructions of evil.

Of course I could convert all in PL/SQL, but this would involve a major effort and we would lose so can the same to run the script (i.e. for test purposes) selective blocks.

What would be ideal, it is if we were to "transfer" the script for the oracle database and run it there (maybe using a PL/SQL call?). Then, as and when we need to, we could replace the script.

Does anyone have advice on this? Is there such a thing as "Script on the server? Or should it be PL/SQL?

Best regards and many thanks,
Alan Searle

Cologne, Germany

Hello Alan,.

What does your script?

If you can convert PL/SQL, do. It should be possible to write a package with a single point of entry for users to run. To test the script you can make public procedure calls in your test environment for conditional compilation.

Something like

CREATE OR REPLACE PACKAGE pp AS
PROCEDURE user_script;
END pp;

In the package body procedure user_script name of each party

PROCEDURE user_script IS
BEGIN
aa();
bb();
cc();

For each of these test procedures you either create a packet header to test each procedure in the stock market or use you conditional compilation where calls to aa, bb,... are not public in your test database.
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e25519/fundamentals.htm#LNPLS00210

Concerning
Marcus

Tags: Database

Similar Questions

  • Download without using a script on the server or incoding side

    Hello

    Is it possible to download a file on a server without having to encode them in the first place or running through PHP first?

    Scenario is just once a file has been selected using the Filereference want it to download directly on my server without being written\coded and not through all the scripts on the server side.

    Possible?

    What type of encoding offer these tutorials? You can send a picture as binary data via URLRequest/URLLoader.

    If you want to you can use utilities like corelib:

    https://github.com/mikechambers/AS3corelib

    You convert your image of a ByteArray (binary) for the transfer, which is too thin you get. It has not inflated as a base64 encode if that's what do your tutorials.

    This is an old tutorial on the use of it (although they are pointing to the older corelib, same idea).

  • Run a script on the server side

    someone at - not how to run a script out server php with him sending variables or receive all the variables and not to open a new window.

    #2030 error: end of file was encountered. This is the error I get when you use this code

    What is the file php is encode flv files. He calls him self saying that all videos uploaded in the database cue list are converted. So I have download 3 videos the script takes and makes the 1st file then 2nd, then 3rd. In the flash player I get error 2030 whenever the script call it is oneself.

    If I call the script php outside of flash with a browser, it works perfectly.

    I use all kinds of variations of URLRequest and URLLoader really puzzled. Thank you flexperts.

    private function encodeHandler(event:DataEvent):void

    {

    var variables: URLVariables = new URLVariables();

    variables.fileName = has ';

    variables.fileExt = of ';

    var request: URLRequest = new URLRequest ("""http://" " + ModelLocator.SERVER + ' / scripts/videoConvert.php"")

    request.method = "get";

    request.data = variables;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = can.

    loader.addEventListener (Event.COMPLETE, completeHandler);

    loader.addEventListener (flash.events.HTTPStatusEvent.HTTP_STATUS, onStatus);

    try

    {

    //status.text = "video encoding".... » ;

    loader.load (request);

    trace() 'start encoding');

    }

    catch (error: error)

    {

    //status.text = "unable to load URL";

    trace()"coding error cannot load url");

    }

    function onStatus(event:HTTPStatusEvent):void

    {

    If (event.status! = 0) {}

    //status.text = "encoding error";

        trace('encoding error');

    }

    }

    function completeHandler(event:Event):void

    {

    //status.text = "complete encoding";

    trace(() 'complete encoding');

        }

    }

    Very well, please close this thread.

  • Lock a room of the script on the server side

    as the topic ~

    How can I set the parameters of the room and lock the room?

    now, I know that I can change the time-out period room with the roomAccess implementation and the "timeOut" property

    with the code as follows:

    itemVO.Add ("nodeName", "roomAccess")

    itemVO.Add ("itemID", "timeOut")

    itemVO.Add ("body", "3600")

    but I know which property to use when I want to block a room?

    roomLocked?

    Can you tell me where can I find all room setting properties and how to use them?

    Hello

    On the client, we change the parameters inside the RoomManager (you can

    Look through the RoomManager code for more details), however with dev

    Console, we make it easier to define the parameters of the room.

    In the side server, if you want to set these properties, you

    use publishItem on the collectionNode 'roomManager' using the

    AccountMaager.

    Here for your itemVO, itemID will be 'locked' and your body is a Boolean

    either true or false. For example, you will use locking

    itemVO.Add ("nodeName", "roomAccess")

    itemVO.Add ("itemID", "locked")

    itemVO.Add ("body", "true")

    Watch RoomManager.as folder on the client side

    public function set roomLocked(p_locked:Boolean):void for more details

    on this setting, or other similar.

    Hope this helps

    Thank you

    Concerning

    Hironmay Basu

  • Connect to the SQL database on the internet using PHP script.

    Is this the same way as on regular Flash or on AIR I should do otherwise?

    If you have ActionScript code that could successfully connect to your PHP script on the server, the same thing works in the AIR also.

  • Running a script from the command line

    Hi all
    First of all, I'd like to say I'm just starting ORACLE 11 g with no prior experience of the database. I currently lectures once a week. However, I am stuck with a problem. I am trying to access my database of the United of the House so I can do some work, apparently I can only access it via the command prompt (which is good for me) I began by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home. However, I have a createHR.sql of script file that is stored in my C:\ORACLE directory which I try to access in order to load my test tables and start practicing with them.
    use command line

    SQL > C:\ORACLE\createHr and I get SP2-0310: unable to connect to the file "C:\ORACLE\create HR.sql".

    normally, this should load and run the script - as with the browser method guests will get the tables is created and the test data.

    I am now officially frustrated that I can't get any done practice, offered any help will be welcome.

    Concerning

    Claude

    Published by: 891128 October 12, 2011 09:33

    Published by: 891128 October 12, 2011 09:41

    Published by: 891128 October 12, 2011 09:44

    891128 wrote:
    I started by downloading a shell www.putty.org secure and I managed to connect to my database of test of the University from my laptop at home.
    However, I have a createHR.sql of script file that is stored in my phonebook C:\ORACLE

    These two sentences above are essential. If I had to bet a directory C:\ORACLE assumption is located locally on your laptop. However, it seems you have done a SSH connection to your server and connected to the database using SQL * more customer on the server. The client on the server has no idea or access to files on your machine.

    You must open the script on your laptop and copy / paste into your SQL SSH * more session or you will need to find a way to copy this script on the server, so you can run it.

    I hope this helps!

  • Access to the server of BC e-mail via a script?

    We would like to have a course of training automatically email the instructor when a student successfully completes the course/quiz. I can integrate the javascript code in the course to do, but it needs to interact with a script on the Server Web that would actually send the email. I can code this script, but the need for information on the Colombia-British mail server and what script language you use.  Can one tell me if the mail BC server can be accessed for this?  Thank you!

    I think that I have answered your question in your other post on the forum: http://forums.adobe.com/message/5368954#5368954

  • Not pulling not updated on the Server internal Flash

    Hello

    Two years, I configured an internal server to distribute Flash updated to Windows endpoints. It works well, until he appears, this month of May.  My end points are so stuck on 13.0.0.214. If something has changed

    Check that I did:

    1. update script on the server always pulls files. Destination folder indicates v14 has been downloaded

    Pulling the version.xml from the update server to update internal (via https) confirms this.

    For info:

    < version >

    "" < ActiveX major= "14" " minor="0" buildMajor="0"" buildMinor= "145"/ >

    "' < Plugin major="14"" minor= "0" buildMajor= "0" " buildMinor="145"/ >

    "" < MacPlugin major= "14" " minor="0" buildMajor="0"" buildMinor= "145"/ >

    "< SAUConfig checkFrequency="1"/ >"

    < / version >

    2 CNAME 'flashupdate' is always in the DNS system

    3 domain wildcard cert is valid and linked to HTTPS such that I get no warning of the cert when you browse the internal update server https://flashupdate.domain.local (IIS 7)

    On an endpoint, here is a sample flashinstall.log (could not find the error codes mean!) for about the last 30 minutes. I used FlashPlayerUpdateService.exe to start manually.

    2014 7-9 + 14-45 - 44.830 [info] 1628 flashupdate.domain.local

    2014 7-9 + 14-45 - 44.830 [info] flashupdate.domain.local 1629

    2014 7-9 + 14-45 - 44.831 [info] 1614

    2014 7-9 + 14-45 - 44.831 [info] 1616

    2014 7-9 + 14-45 - 44.832 [info] 1618

    2014 7-9 + 14-45 - 44.835 [info] 1608

    2014 7-9 + 14-45 - 44.835 [info] 1612

    2014 7-9 + 14-45 - 44.837 [info] 1620

    2014 7-9 + 15-18-0, 225 [info] 1628 flashupdate.domain.local

    2014 7-9 + 15-18-0, 236 [info] 1629 flashupdate.domain.local

    2014 7-9 + 15-18-0, 238 [info] 1614

    2014 7-9 + 15-18-0, 239 [info] 1615

    2014 7-9 + 15-18-0, 240 [info] 1618

    2014 7-9 + 15-18-0, 242 1619 1063 [info]

    2014 7-9 + 15-18-0, 282 [info] 1628 flashupdate.domain.local

    2014 7-9 + 15-18-0, 283 [info] 1629 flashupdate.domain.local

    2014 7-9 + 15-18-0, 283 [info] 1614

    2014 7-9 + 15-18-0, 284 [info] 1615

    2014 7-9 + 15-18-0, 284 [info] 1618

    2014 7-9 + 15-18-0, 287 [info] 1608

    2014 7-9 + 15-18-0, 288 [info] 1612

    2014 7-9 + 15-18-0, 289 [info] 1620

    2014 7-9 + 15-18-0, 289 [info] 1604

    This is an output of LS endpoint for C:\Windows\SysWOW64\Macromed\Flash showing that nothing moves

    43871 total

    -r - r - r - 1 usergroup 16435888 May 15 12:18 Flash32_13_0_0_214.ocx

    -rw-rw-rw-1 user group 4609272 9 Jul 16:18 FlashInstall.log

    Usergroup - rwxrwxrwx 1 1863856 15 May 13:18 FlashPlayerPlugin_13_0_0_214.exe

    -rwxrwxrwx 1 user group 257712 May 15 13:18 FlashPlayerUpdateService.exe

    Group of users - rw-rw-rw-1 511152 May 15 12:18 FlashUtil32_13_0_0_214_ActiveX.dll

    Usergroup - rwxrwxrwx 1 847536 May 15 12:18 FlashUtil32_13_0_0_214_ActiveX.exe

    Usergroup - rwxrwxrwx 1 847536 15 May 13:18 FlashUtil32_13_0_0_214_Plugin.exe

    -rw-rw-rw-1 user group 16361136 May 15 13:18 NPSWF32_13_0_0_214.dll

    Group of users - rw-rw-rw-1 1583299 May 15 12:18 activex.vch

    Usergroup - rw-rw-rw-1 856 15 May 13:18 flashplayer.xpt

    -rw-rw-rw-1 user group 0 9 Jul 16:25 ls.txt

    -rw-rw-rw-1 user group 135 9 Jul 15:52 mms.cfg

    -rw-rw-rw-1 user group 1598803 May 15 13:18 plugin.vch

    The mms.cfg looks like:

    AutoUpdateDisable = 0

    SilentAutoUpdateEnable = 1

    SilentAutoUpdateServerDomain = flashupdate.domain.local

    SilentAutoUpdateVerboseLogging = 1

    I know that

    1. the internal update server is able to communicate with Adobe and download the updates (I used wget in verbose mode to check the result).

    2. on the verge of ending, I manually browse and download files update v14 without problem, so config and web hosting permissions looks ok

    3. the update of the endpoint for a reason any still refuses to remove the updated files. So, the idea seems to be in the mysterious error codes?

    So I'm stuck - please help!

    Hello

    I'm glad it works for you now.

    The Setup log file you posted contains any errors, codes just information that indicates the proper functioning of the background update features.

    To clarify one of your points, the internal update server does not communicate with Adobe servers to download the update package.  As an administrator, you or someone else, would need to download the update package (fp_background_update.cab) and send the files (in the structure provided) on your internal server.  It is a process unless automate you it.  Once the files are displayed on your server, it can take up to an hour for updates start to appear on your machines users (of course, depending on how your environment is configured, you can to clear the cache of your server so that the new files to download).

    --

    Maria

  • How to run sqlplus from the server

    Hello

    I have 11g installed on a Linux server by someone.
    Could you please help me know...
    -How to create a development in there environment?
    -How to start SQLPlus not my local machine, but directly by the server?
    -How to run any .sql decompressed in the server files?

    For your information, I don't know anything on the server and database.

    Thank you
    Guy

    Link: Apex 3.1.1 installation / upgrade can help you.

  • PL/SQL Script finishes the job.

    I started today with PL - SQL
    So I use the book of Fred Feuerstein's Oracle PL/SQL Programming.

    As example of paintings serve a table book... you can create and populate with the date by a script of the home page of O'Reilly.
    But it don't work on my Oracle database get a mistake.

    Error on line 27
    ORA-01858: A non-digit character was found, while awaiting a numeric character
    ORA-06512: In line 34

    Script done on line 27.

    Below is the script to create and fill the database. The tool used is the Toad and the database used is Oracle 11 g Enterprise 2.

    What's wrong???

    --------------------------------------------------------------------------------------
    REM $Id: books.tab, v 1.1 2001/11/30 23:09:48 bill Exp $
    REM of the "learning Oracle PL/SQL" page 64

    Create table 'books' REM

    (Books) CREATE TABLE
    ISBN VARCHAR2 (13) NOT NULL PRIMARY KEY,
    title VARCHAR2 (200),
    Summary VARCHAR2 (2000).
    author VARCHAR2 (200),
    date_published DATE,
    page_count NUMBERS
    );




    REM Script to insert sample records to books

    REM Note: Must SET DEFINE OFF or SQL * Plus will intercept the ampersand
    Characters of REM (&) before they are sent to the server. SQL * more generally uses
    REM an ampersand to designate a variable that requires the user to provide a
    REM value interactively.

    SET DEFINE OFF

    DECLARE
    PROCEDURE insert_book_no_complaints (isbn_in IN VARCHAR2, title_in IN VARCHAR2,
    summary_in IN VARCHAR2, author_in IN VARCHAR2, date_published_in IN DATE,
    page_count_in in NUMBERS)
    IS
    BEGIN
    INSERT INTO books (isbn, title, author, abstract, date_published,)
    page_count)
    VALUES (isbn_in, title_in, summary_in, author_in, date_published_in,
    page_count_in);
    EXCEPTION
    WHEN DUP_VAL_ON_INDEX
    THEN
    NULL;
    END;

    BEGIN

    insert_book_no_complaints ('' 0-596-00381-1)
    "Oracle PL/SQL Programming,"
    "Of reference for PL/SQL developers, including examples and best practices"
    || "recommendations."
    'Syndrome Feuerstein, Steven, with Bill Pribyl',
    25-sep-2002 ", / * best guess from August 22 02 * /"
    (NULL); / * do not yet know how many pages * /.

    insert_book_no_complaints ('0-596-00180-0 ",)
    "Oracle PL/SQL for learning."
    "Beginner" s guide to Oracle "s PL/SQL programming language",
    'Bill Pribyl with Steven Feuerstein',
    November 29, 2001 ",
    401);

    insert_book_no_complaints ('1-56592-578-5',
    "Oracle SQL * more: The Definitive Guide", ".
    "The complete treatment of Oracle" interactive database tool of is,
    "Gennick, Jonathan."
    March 1, 1999. "
    502);

    insert_book_no_complaints ('1-56592-457-6 ",)
    "Oracle PL/SQL Language Pocket Reference.
    "Quick guide to Oracle PL/SQL developers. Includes Oracle8i '
    || 'coverage.',
    "Feuerstein syndrome, Steven, Bill Pribyl, Chip Dawes,
    APRIL 1, 1999 ", 94);

    insert_book_no_complaints ('' 0-14071-483-9)
    "The tragedy of King Richard the third.
    "The popular historic Shakespeare play in which a modern publication.
    || "royal treacherous tries to steal the Crown but died without horses."
    || "in the battle."
    "Shakespeare, William,
    AUGUST 1, 2000 ",
    (158);

    insert_book_no_complaints ('' 0-14-071415-4)
    "The storm."
    "Duke and the girl on the enchanted island to meet old enemies in this."
    || "comic tale of mystery, love, magic, and (eventually) forgiveness."
    "Shakespeare, William,
    JANUARY 1, 1959.
    (120);

    insert_book_no_complaints ('' 0-672-31798-2)
    "Sams Teach Yourself PL/SQL in 21 days, second edition."
    "Tutorial for Oracle" language procedural s organized presentation.
    || "the features of language in three weeks learning annex.",
    'Gennick, Jonathan, with Tom Luers',
    DECEMBER 1, 1999 ",
    692);

    insert_book_no_complaints ('' 0-07-882438-9)
    "Oracle PL/SQL tips and Techniques."
    "Voluminous tome with tips, techniques and reference documents on.
    || "Oracle" PL/SQL s.',
    "Trezzo, Joseph C."
    JULY 1, 1999 ",
    942);

    insert_book_no_complaints ('' 0-13-794314-8)
    'Create smart with Oracle PL/SQL triggers and stored databases'
    || "Procedures - 2nd ed.",
    "Programmer" PL/SQL s guide, oriented to the reusable construction. "
    || "components for large Oracle applications.",
    "Owens, Kevin T."
    JUNE 1, 1999 '.
    544);

    insert_book_no_complaints ('1-56592-674-9',
    "Oracle PL/SQL Developer's Workbook',
    "" Beginner, intermediate and advanced exercises to test the "."
    || "drive s"knowledge"of Oracle PL/SQL programming language s."
    'Syndrome Feuerstein, Steven, with Andrew Odewahn',
    1 May 1999 '.
    588);


    END;


    COMMIT;

    ALL SET ON

    ;

    privrt, PRIVET ;)
    use in the script

    alter session set nls_language='AMERICAN';
    alter session set NLS_DATE_LANGUAGE='AMERICAN';
    

    and inserts

    to_date(,)
    
  • Developer SQL without opening the script runing script

    Hi, I exported to other tables in an insert script and I got big enough file - 186 MB-> 1123380 rows in the table.
    Now I want to run this script, but the file is too large to open it in sql developer.
    Is there an option like runing script file (without opening the script in sql developer)?

    Thank you, Dan

    In a worksheet, enter @scriptname and press F9.

    I'm not sure of what the impact on the memory usage to perform it like that. A better alternative for large scripts might be to use sqlplus.

  • Code of script to the code for the class paper - best practices

    I'm starting to put my code in the document class, instead of on the main timeline, and I have a few questions. When I was using the timeline, everything was linear. It is easy to know what things would begin and end because of the way the playhead moves. With the document class, I noticed for the first time that the functions are performed at the same time, if you call one after the other. What would be the best way to make them run in the order? Let's say I have the functions f1, f2, and f3. I guess at the end of the f1, I could call f2 and at the end of f2 call f3 or use event listeners, but is it the right way to do it? At the time wherever you arrive at f3, are not always 'open' because they did not complete f1 and f2?

    do you want some significant time to sweat between execution of the f1, f2 and f3?

    If so, use a timer or a timer.  If not, then just call sequentially. with a few exceptions (mainly when loading some outside (flash) file synchronously executes the code):

    F1();

    F2();

    F3();

  • Automation of FDM integration Script in the Task Manager

    Hello world

    I have created an integration Script that copies the data of a table SQL to FDM and now tries to automate a daily run in the Task Manager.

    To do this, it seems that I have to create a custom Script to perform the following integration Script:
     Function LedgerTrans(strLoc, lngCatKey, dblPerKey, strWorkTableName) 
    I can't understand what it takes to write the custom Script to trigger the integration Script. Can someone explain or give a sample?



    Best regards
    Frederik

    You don't need a custom script, you can simply use batch processing to trigger the import for the POV. You must create a standard command using the GUI of batch script in the workbench (Tools > batch) then put the empty source files in the folder OpenBatch with the POV for the name of the file to trigger the import for the POV script.

  • Why no CWA script under the directory $ORACLE_HOME/rdbms/admin

    I should try to follow NOTE: 748642.1 to generate AWR report, but under $ORACLE_HOME/rdbms/admin I can't find awrrpt.sql at all (in fact there are none of the scripts awrxxx.sql)
    Anyone know the reason why there is no CWA script under the directory $ORACLE_HOME/rdbms/admin

    +[Oracle@xxx RDBMS] $ ls $ORACLE_HOME/rdbms/admin +.
    agtept.lst initjms.sql recover.bsq shrept.lst utltzuv2.sql
    +[Oracle@xxx RDBMS] $+.

    Hello

    I have no way of knowing what has happened on your system--maybe your installation had problems, maybe someone deleted files, maybe something happened - but in any case you can always run AWR using dbms_workload_repository. You need to specify db id that you can find in v$ database, inst_num (set it to 1 unless you use a RAC) and start and end snapshot IDs - you can find those DBA_HIST_SNAPSHOT.

    Best regards
    Nikolai

  • Not possible to activate the scripts on the Web server

    Hello

    I would like to create a page .html for Web with a bit of scripting ESP included - Services because now I understand just this:

    <% for (i=0; i<3; i++) {
      ...some text...
     } %>

    According to this document NOR, I first need to enable scripting:

    To use the script with a Web service, you must enable the feature on the Web of LabVIEW server. In LabVIEW, select the script on the Web Server: Configuration page in the dialog box Options to enable the use of scripts on the Web server.

    I activated the Web server and it works OK. But there is nothing called "Scripting" in the configuration page - and the script is executed (the code is just printed in the form of simple text).

    Anyone know how to activate the ESP script?

    Version: LV 2012.

    Best regards, Jan

    Hi Jan,

    In fact, you use the ESP file instead of a static HTML file.  For example, if we had the static html file:

    Hello world

    This file can be located at something like /MyWebService/HelloWorld.html.

    If I then do something like have a page to say "Hello, Jan" or "Hello, Mark" I could use ESP.  In this case, your code might look like:

    <>

    var xname = form ['name'];

    %>

    Hello, @@xname

    The URL of such a web method is perhaps something like jan/MyWebService/Hellovar/Jan where Jan string literal passed to the terminal of a web method that can resemble

    In this example, the string "Jan" is passed to the terminal of the value of the VI.  What implementation of the Web method in the spec to build his signature might look like in /Hellovar /: value.

    So, back to your original question.  You embed not ESP breast and the HTML document.  Instead, you embed HTML inside a document of ESP and the rendering of the document in HTML format when accessing the URL of the Web method.  While the paper you mentioned earlier has an example project in that you can use as a reference

Maybe you are looking for

  • file sharing using version 7 on Windows XP 32-bit.

    I recently updated my Skype to 7.0.85.100 and I can't send files. just says: "this photo is unavailable" when something is sent to me or send to me. I have the last update, the other user is online, my firewall is set correctly. I want to understand

  • Cannot connect to WPA with Satellite Pro 6100

    Hello I have problems connecting to the secure WPA using a Satellite Pro 6100 companies network. I know from Google search the default drivers for the wireless card on the 6100 must be upgraded to WPA compatible. It's a Toshiba Wireless LAN mini PCI

  • Examples of loading error

    Hi all IM new ICB. I use the CVI 7.1 evaluation version. Whenever I try to run an example or example Finder I get always an error, for example I want to run update.prj example, I get the error message "error writing c:\...\cvibuildupdate\update.nidob

  • Windows pro SP2

    I have a gx280 with xp pro which had not been used since 2005 need service Pack2 or do I need to get on the internet.what can I do.

  • cannot sweep of hp8500a to my HP laptop.

    Hello Could someone let me know how I can use my all-in-one to scan a document and save it in my laptop.  I thought that all the software included and installed when I put them up, but I can't seem to be able to scan.  Thanks for your help.