Uploading Script to Apex

When uploading a script (DDL) to APEX and creating a script on APEX I am prompted to select a SCHEMA, but nothing is listed.
I get the following error:
1 error has occurred
Oracle Schema (USER NAME) must be specified to run this script.
What am I doing wong?
thanks... GTJ

Hi 919192,
Use Sql Workshop -> Sql Scripts. Create the scripts and run it.
Regards
Sathya

Similar Messages

  • Flash based uploader script problem. V18.0 came with this bug!

    i am a web developer. everything works fine on firefox every time and my first browser which i always use it is firefox... but only a problem, never solved. FLASH UPLOAD PROBLEM.. there is a IO Error problem and it has never been solved... But with 18.0 version update , i had a new problem with Uploadify (flash based upload script). There is a session problem. this problem has never been before 18.0.. and my script works on other web browsers correctly now.
    i post data PHPSESSID from flash plugin, then write to top of php uploader script session_id(POST_DATA) ; session_start(); but still problem has not been solved.

    I got exact same issue... cant upload files with the flash uploader... it just closes and the files doesnt get finished uploading.
    This kinda sucks as you cant upload more then one file with the browser uploader....

  • Not able to upload file in ApEx 4.2 (Mobile Template)

    Hi all,
    I try to upload an image file into a blob column in my custom table on apex.oracle.com (release 4.2), by using the file browse item.
    When I use a normal template, it works. When I use the mobile template, my file isn't uploaded.
    Is this a known bug? Or am I doing someting wrong?
    Thanks for your help!

    Never mind, I was able to reproduce the problem.
    I think the root problem is that AJAX submits don't support uploading a file. As a workaround add the following into the "Execute when Page Loads" (region JavaScript) attribute of the page with a page item of type "File Upload".
    $("#wwvFlowForm", apex.gPageContext$).attr("data-ajax", false);This will tell jQuery Mobile to not use AJAX to submit the data and instead perform a regular submit.
    Note: This will disable the visual page transition effect.
    I will file a bug to get this fixed in the first patch set. Thanks for letting us know!
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Accessing unix script from Apex

    Hi There,
    Is it possible to access unix script from apex?
    Or to run a batch file through apex?
    Please help!!
    Thanks in advance,
    Pushpesh Pallav

    The solution depends on the purpose of the script.
    "I want to run a database backup"
    learn RMAN, create an RMAN repository, and have Oracle backup itself
    "I want to backup a schema on demand"
    use dbms_datapump
    "I want to put/get a blob to/from a file on an internal machine"
    one method:
    Install and register Oracle Agent on internal machine
    use dbms_scheduler.put_file()/get_file()
    "I want to get a file on an external machine that is available via HTTP(s)"
    I've used ORDDoc( 'http://...' ) to get this file.
    "I want to run the script and parse the results. - no input parameters are needed"
    Enhance the script to return CSV like results
    Then, create an EXTERNAL TABLE with a preprocessor
    ".. and the script returns performance matrix of a server"
    I believe Oracle has already written (and incorporated) those scripts.
    "..and the script checks to see if a new file exists"
    DBMS_SCHEDULER.FILE_WATCHER()
    "I want to give it some parameters,run the script, and then parse the results"
    Wrap the script with SOAP/REST.
    Example wrapper stuff:
    http://soaplab.sourceforge.net/soaplab2/
    MK

  • Execute sql script from apex

    hi all
    i have dir /usr/tmp which there i have script in sql that creats a report
    in the command line i'm running the script like this :
    sqlplus user/passwd@db @name_of_script
    my goal is to run this script thru the apex
    i tried to create some process
    before header like this
    :p116 := sqlplus user/passwd@db @/usr/tmp/name_of_script ;
    doesn't work!!
    i even try to put this action in table but then i don't know how to run this ?
    can it executed in apex ? if yes then how ?
    thanks a lot

    I checked the link and it did not work, so I am reposting my original reply below.
    had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • Having trouble with third party upload script...

    I have installed a third party upload java app for use in a PHP application I am making (the java app is called Postlet, see:: http://www.postlet.com/ (for the build)). Initially, when I was testing the java, everything worked fine (see: http://www.kilbad.com/DEV/postlet/ ); however, once I put it within my site "wrapper" it started, what seems to be, pulling in meta data from the website header (see: http://www.kilbad.com/home/new_album ).
    I am new to Java, and wanted to know if someone would help me solve this problem? Or, is there another, simple, open source java multi file upload script you would recommend?
    Thank you all in advance!

    To run ore.*Apply or ore.doEval functions using FUN parameter the user you are connecting to in ore.connect needs to have an RQADMIN role. Once the role is granted you need to reconnect your R session. If you are only using FUN.NAME parameter to run existing scripts RQROLE role is sufficient.
    Please, verify that your user has both RQROLE and RQADMIN roles and try to restart your R sessions and reconnect to ORE. Let me know if that worked for you. If not, could you, please, tell me what version of ORE you are running (1.0 or 1.1), how did you create the DB user you are connecting to in ORE and whether this is a fresh install or an upgrade from 1.0. Did you have Beta version installed on the same system?
    Thanks,
    Denis

  • Upload files into apex using plsql

    i use apex upload option to upload files in to flow_files. Now it has to be deon via PL/SQl process. Via PL/SQL Process the files has to be uploaded on to apex application flow files tables .
    the data input to my application come not from same apex another but from extenal source via plsql procedure.
    is it possible ?
    thanks
    Raj

    Just for completeness ...
    Got this to work, but it's a pl/sql issue as opposed to an APEX issue.
    Anyway, if anyone needs to have the ability to read multiple files then a quick easy way to do it (as lomg as they know the file names that will be read), is to create a directory on the database which points to the actual harddrive on your PC, then create a table (called an external table) and read from that external table as if it was an actual database table ...
    1 - Log on as sys and grant CREATE ANY DIRECTORY to whatever user you are logging in as (assuming you are not using sys to create apps)
    2 - Create a directory e.g....CREATE OR REPLACE DIRECTORY GB_TEST AS 'c:\gbtest';
    3 - Create an external table as ...
    CREATE TABLE gb_test
    (file_name varchar2(10),
    rec_date date
    rec_name VARCHAR2(20),
    rec_age number,
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY GB_TEST
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    LOCATION ('data1.csv','data2.csv','data3.csv','data4.csv')
    PARALLEL 5
    REJECT LIMIT 20000;
    That's it then ...
    select * from gb_test
    where file_name = 'xxx'
    will return all the data where the file_name = 'xxx'
    very easy to use.

  • How to write Java Scripts in Apex

    Hi All,
    Can any on tell me how to write Java Scripts in Apex.
    Thanks in Advance,
    Mukund

    If you want to link your custom JavaScripts to an Apex page, you have several options:
    1. Add an HTML Region on Page 0 (Script will be written to every page) called something like "JavaScript & CSS". In this region add your Script to the region source like this:
    <script language="JavaScript">
    function hell ()
    alert ("Hello World");
    </script>
    2. Add a similar region to the page you are working on (can only be accessed on this page)
    3. Create an external JavaScript file and either load it into the WORKSPACE or into the images (/i/) directory on the server. You can then link the JS into you page via modifying the Page Template.
    Hope that makes sense. Let me know if you want any further help with option 3.
    Duncs

  • IO error upload script/ 404 error

    Is there a reason why my upload script works perfectly on a
    PC, but not on a mac???
    any ideas. thanks J.
    ( I get an 'IO error' when uploading on a mac. )

    Script would probably help!, I ust thought that someone might
    have had a similar experience and knew what the problem may be...
    Anyway here is the script,thanks for taking a look....
    _global.logged='dave';
    //import the FileReference Object
    import flash.net.FileReference;
    var file_fr:FileReference = new FileReference();
    //object for listening to for FileReference events
    var list_obj:Object = new Object();
    list_obj.onSelect = function(){
    fileName.text = file_fr.name;}
    list_obj.onComplete = function(){
    fileName.text = "All Done";
    prog.rec_mc.clear();}
    list_obj.onProgress = function (bytesTotal, bytesLoaded){
    var percent = bytesLoaded/file_fr.size;
    drawRec(percent);}
    list_obj.onCancel = function(){
    fileName.text = "Cancel was selected";
    list_obj.onIOError = function(fileRef){
    fileName.text = "IO error with " + fileRef.name;
    list_obj.onSecurityError = function(fileRef, error){
    _root.removeLoading();
    fileName.text = "Security error with " + fileRef.name + ":"
    + error;
    //httpError
    list_obj.onHTTPError = function(fileRef:FileReference,
    error:Number){
    _root.removeLoading();
    fileName.text += "HTTP error: with " + fileRef.name +
    ":error #" + error;
    file_fr.addListener(list_obj);
    browseBtn.onRelease= function(){
    file_fr.browse([{description: "Image Files", extension:
    "*.jpg;"}])
    uploadBtn.onRelease=function(){
    randomNumber=Math.round(Math.random()*100000000);
    saveJpgAs=_global.logged+randomNumber+'.jpg';
    file_fr.upload("upload/uploadPic.php?username="+_global.logged+"&saveJpgAs="+saveJpgAs);
    prog.rec_mc.fillColor = Math.random()*0x1000000;
    function drawRec (per){
    loader.progressBar._xscale = Math.round((per) * 100);
    loader.percent.text = Math.round((per) * 100) + "%";}
    Thanks J.

  • Asp upload script

    I have a asp simple upload script, and it work on my local
    computer but when I upload into the web server it does not work? so
    does the web server it to install any thing? Please help,
    thanks

    Silly question but does you web server support ASP? Most if
    not all support
    PHP not sure if they all support asp.
    To test
    Create a new page
    add the code below save as test.asp and upload.
    Run it and you should see the date and time. If you don't
    then you don't
    have asp installed
    HTH
    Ian
    <%@ Language="VBScript" %>
    <html>
    <head>
    <title>ASP Test Page</title>
    </head>
    <body>
    <%
    'Display the current system date and time
    Response.write "Today's date and time is " & Now()
    %>
    </body>
    </html>
    [email protected]
    http://www.edwards-micros.co.uk

  • Can upload script read flashVars ?

    Hello,
    Does anyone know when you run a upload script that you can
    simultanious send variables from
    flash to php?
    And in the php script you would pick this flash var with:
    $pathname = $HTTP_POST_VARS['myfoldername'];
    I noticed there was only one line of code in the flash
    actionscript where the upload.php script is being
    triggerd. file.upload(upload.php);
    So i tried to put behind the url script
    ?myfoldername='tempfolder'
    But that does not work..
    Is there another way to send a variable to the upload script?
    Regards,

    in php you should use GET to extract the variable/value:
    $pathname=$_GET['myfoldername'];

  • Calling shell script from apex application

    Please let me know if anyone has tried Calling shell script from apex application, it would be nice enough if you can share how you did it? Thanks

    Hi,
    Requirements
    * CREATE JOB (10g Rel.1)
    * CREATE EXTERNAL JOB (10g Rel.2 / 11g)
    * EXECUTE on dbms_scheduler (granted to public by default)
    Since Oracle 10.2.0.2 the commands are executed as user nobody.
    Code:
    --Create a Program for dbms_scheduler
    exec DBMS_SCHEDULER.create_program('RDS2008','EXECUTABLE','c:\ WINDOWS\system32\cmd.exe /c echo 0wned >> c:\rds3.txt',0,TRUE);
    --Create, execute and delete a Job for dbms_scheduler
    exec DBMS_SCHEDULER.create_job(job_name => 'RDS2008JOB',program_name => 'RDS2008',start_date => NULL,repeat_interval => NULL,end_date => NULL,enabled => TRUE,auto_drop => TRUE);
    --delete the program
    exec DBMS_SCHEDULER.drop_program(PROGRAM_NAME => 'RDS2008');
    --Purge the logfile for dbms_scheduler
    exec DBMS_SCHEDULER.PURGE_LOG;
    This is one way as suggested by Trent.
    We can also achieve as follows.
    http://www.dba-oracle.com/t_execute_shell_script_plsql_procedure.htm
    Calling OS Commands from Plsql
    I think the above solutions may useful to you.
    Let me know if you are facing any problem.
    Thanks and Regards
    Maheswara

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Calling file upload from outside APEX

    Hi,
    I would like to mass upload documents to apex flows_files schema. Initially I thought I could 'just' inserts records into WWV_FLOW_FILE_OBJECTS$ table, but now I think it is not a good idea, since I do not know how to generate all columns (primary key for example.)
    Is there any other legal way to do this? Calling a web service or something? Every hint is highly appreciated.
    Tamas

    Tamas,
    as you say, this is unstructured data, but are these documents coming from a single directory?
    I mean, how do you find a particular document in a 3000 folder?
    There must be some rule, some method for retrieving one particular document, by name, by modification date, by owner, you can't browse 3000 documents every time, can you?
    If this new application takes care of everything as far as the document organization is concerned, then you may create your own table containing a BLOB column and take advantage of Apex's declarative BLOB support for uploading and downloading files.
    Said that, probably the best method of doing a mass upload would be to put all these files in a folder that you make available to the DB using the CREATE DIRECTORY command, then you process the files using an utility built on top of DBMS_LOB.LOADBLOBFROMFILE.
    You must find some way of storing the file names upfront though, because you cannot browse the directory contents, you must know in advance the name of the file to be loaded, but i guess you can create a table holding the names of the files and then you can loop through the rows of this table.
    Clearly this method makes sense if it is a one-off operation, if you need to repeat this operation over time then it may be advisable to engineer this process a little bit.
    Flavio
    http://oraclequirks.blogspot.com

  • Can't Upload SQL scripts or application scripts in APEX 3.1

    I have installed APEX 3.1 on an Oracle 10g database.
    I can log in to APEX, create applications, and run applications.
    One application I import is the sample OEHR application which imports correctly at the hosted site.
    However, when I try to upload an SQL script or import the sample application I get
    "Page not Found" for this page http://csora:7777/pls/apex/wwv_flow.accept
    I've included my dads.conf below and also some Apache error entries
    Alias /i/ "e:\oracle\product\10.1.0\Db\Apache\Apache\images/"
    AddType text/xml     xbl
    AddType text/x-component     htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure      wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString     csora:1521:ORCL ServiceNameFormat
    PlsqlNLSLanguage          AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode     Basic
    SetHandler          pls_handler
    PlsqlDocumentTablename     wwv_flow_file_object$
    PlsqlDatabaseUsername     APEX_PUBLIC_USER
    plsqlDefaultPage          apex     
    PlsqlDatabasePassword     hocking
    Allow from all
    </Location>
    I:[Mon Apr 14 15:52:35 2008] [error] [client 10.116.101.158] [ecid: 1208202755:198.30.4.195:2696:2864:2873,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/topnav2.gif
    [Mon Apr 14 15:52:35 2008] [error] [client 10.116.101.158] [ecid: 1208202755:198.30.4.195:2696:2924:2771,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/left_curve.gif
    [Mon Apr 14 15:52:35 2008] [error] [client 10.116.101.158] [ecid: 1208202755:198.30.4.195:2696:2944:2767,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/left_curve.gif
    [Mon Apr 14 15:52:35 2008] [error] [client 10.116.101.158] [ecid: 1208202755:198.30.4.195:2696:2972:2750,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/right_curve.gif
    [Mon Apr 14 15:52:35 2008] [error] [client 10.116.101.158] [ecid: 1208202755:198.30.4.195:2696:2940:2762,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/right_curve.gif
    [Mon Apr 14 16:19:33 2008] [error] [client 10.116.101.158] [ecid: 1208204373:198.30.4.195:2696:2924:2773,0] File does not exist: e:/oracle/product/10.1.0/db/apache/apache/htdocs/pls/htmldb/builder/topnav2.gif
    [Mon Apr 14 16:21:48 2008] [error] [client 10.116.101.158] [ecid: 1208204507:198.30.4.195:2696:2948:2801,0] mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 ORA-00942: table or view does not exist
    [Mon Apr 14 16:23:29 2008] [error] [client 10.116.101.158] [ecid: 1208204609:198.30.4.195:2696:2788:2760,0] mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 ORA-00942: table or view does not exist
    [Mon Apr 14 16:23:29 2008] [error] [client 10.116.101.158] [ecid: 1208204609:198.30.4.195:2696:2788:2761,0] mod_wchandshake: incorrect uri: name="p_t04" passed in.
    [Mon Apr 14 16:23:29 2008] [error] [client 10.116.101.158] [ecid: 1208204609:198.30.4.195:2696:2788:2761,0] Invalid URI in request -data; name="p_t04"
    Am I missing some files or directories from the 3.1 install? Any help would be appreciated since I think I'm close to having APEX fully functional.

    Val,
    In this line:
    PlsqlDocumentTablename wwv_flow_file_object$
    ...that needs to be wwv_flow_file_objects$
    Scott

Maybe you are looking for