How to restore or backup Apex application from Command line ? URGENT

We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
For some reason our database dictionary objects are corrupted.
We wanted to backup our Apex applications in some workspaces ASAP.
We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
We have an underlying database schema export (expdp).
1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
2) Does Oracle has any of its own native tool to backup and restore from command line ?
Thanks in advance

My (MS Windows) experience, if I may; perhaps you'll find something useful.
You'll find the README.TXT file in /apex/utilities directory. Read it.
In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
C:\>java –version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
Best of luck!

Similar Messages

  • How to automatically generate a build file of the application from command-line

    Hi All
    How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
    Thanks

    User, which jdev version do you use?
    I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
    You can use ojdeploy to build the project.  This is the only method which will also make the necessary changes to the descriptors.
    Timo

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • How to restore my backup in laptop from external drive

    How to restore my backup in my macbookpro from external drive

    Hello Jayrajjpatel,
    It sounds like you have a Time Machine backup on an external drive that you would like to use to restore your computer. The following article will help you get that done, named:
    OS X Mavericks: Recover your entire system
    http://support.apple.com/kb/PH14185
    If you’re restoring your system because of a problem with your startup disk, repair or replace the disk before following these instructions.
    Make sure your Time Machine backup disk is connected and turned on. If your disk is on a network, make sure your Mac is on the same network.
    Choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Restore from a Time Machine Backup,” then click Continue.
    Do one of the following:
    External backup disk: Select it, then click Continue.
    Time Capsule: Choose your network from the AirPort menu on the right side of the menu bar, and then select your Time Capsule and click “Connect to Remote Disk.”
    Network backup disk: Select it, then click “Connect to Remote Disk.”
    If necessary, enter the name and password you use to connect to your backup disk, then click Connect.
    Select the date and time of the backup you want to restore, then follow the onscreen instructions.
    After you restore your system, Time Machine may perform a full backup at the next scheduled backup time. This is normal. Time Machine resumes incremental backups after the full backup is completed.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How to delete more than one workbook from command line

    Hi, I'd like to delete more than one workbook from command line:
    The following syntax, it doesn't work....but I followed the manual instructions:
    dis51adm.exe /connect eul/eul@uatdb /delete /workbook "ALE_TEST_1, ALE_TEST_2" /eul eul /log D:\Ale\delete.log
    where:
    eul/eul@uatdb: is the db’s schema/user where the EUL is installed;
    /delete "ALE_TEST_1, ALE_TEST_2": is the command to delete the workbooks, specified inside the “” (with the relative path)
    /log D:\Ale\delete.log: is the command to write a log’s file named “delete.log” to track the action     
    The log file says:
    22/4/2008 4:00:26 μμ
    dis51adm.exe /connect /delete /workbook ALE_TEST_1, ALE_TEST_2 /eul eul /log D:\Ale\delete.log
    Document ALE_TEST_1, ALE_TEST_2 not found in EUL.
    Internal EUL Error: ObjectNotFound - Can't find EUL element
    There are 0 eul elements to be deleted.
    Completed deleting eul elements.
    22/4/2008 4:00:29 μμ
    Anyone can tell me how is the right syntax ?
    Thanks in advance
    Alex

    Hi Rod
    I was coming to that conclusion myself but wanted to wait until the other avenues had been exhausted first - aka making sure of the workbook names.
    I checked through all of the command line documentation and read nothing which clearly indicated that only one workbook could be processed at a time, other than the fact that the syntax says workbook and not workbooks, which could be a big clue.
    I think you are right though in that it has to be one at a time, which would be a pain.
    Best wishes
    Michael

  • How to shutdown startup 11g OEM/GRID from Command Line

    Please describe how to shutdown and startup OEM/GRID 11g from command line and how to startup all of its services. Thanks in advance!

    After a some tests i found this method...
    SHUTDOWN
    srvctl stop listener -l LISTENER_NAME
    srvctl stop database -d DBNAME
    srvctl stop diskgroup -g VGGROUP
    srvctl stop asm
    crsctl stop has
    STARTUP
    crsctl start has
    srvctl start asm
    srvctl start database -d DBNAME
    Pls try before to use it and i hope it isn't late...

  • How do I cancel a rman job from command line?

    Hello to all,
    I am having some problems with a rman job that is running via OEM-GC. I get an error message regading the SPFILE and control file being locked due to another job accessing it. I found this in the RMAN ref guide:
    To determine which job is holding the conflicting enqueue:
    1. After you see the first RMAN-08512: waiting for snapshot controlfile enqueue message, start a new SQL*Plus session on the target database:
    % sqlplus sys/sys_pwd@prod1
    2. Execute the following query to determine which job is causing the wait:
    SELECT s.sid, username AS "User", program, module, action, logon_time "Logon", l.*
    FROM v$session s, v$enqueue_lock l
    WHERE l.sid = s.sid and l.type = 'CF' AND l.id1 = 0 and l.id2 = 2;
    You should see output similar to the following (the output in this example has been truncated):
    SID User Program Module Action Logon
    9 SYS rman@h13 (TNS V1-V3) backup full datafile: c1 0000210 STARTED 21-JUN-99
    Solution
    After you have determined which job is creating the enqueue, you can do one of the following:
    * Wait until the job creating the enqueue completes
    * Cancel the current job and restart it once the job creating the enqueue completes
    * Cancel the job creating the enqueue
    So with this in mind; How do I cancel the job from RMAN command line!!!
    This is my output by the way:
    SID User PROGRAM MODULE ACTION Logon ADDR KADDR SID TY ID1 ID2 LMODE REQUEST CTIME BLOCK
    475 SYS [email protected] (TNS V1-V3) backup full datafile 0000018 STARTED16 23-APR-09 00000023EB8D488 000000023EB8D4A8
    475 CF 0 2 4 0 113123 0
    Any help will be gratefully received
    Thanks to all that reply

    I used the following to get the spid and killed the process on the OS.
    set linesize 120
    col sid for 999
    col username for a14 trunc
    col osuser for a18 trunc
    col spid for 99990
    col logon_time for a12
    col status for a9 trunc
    col machine for a26 trunc
    col running for a10 trunc
    select s.sid
    , s.username
    , s.osuser
    , s.machine
    , s.status
    , p.spid spid
    , to_char( logon_time, 'Mon dd@hh24:mi') logon_time
    , rtrim (s.module)||decode( nvl(length( rtrim(s.module)),0),0,'',' ')|| upper(s.program) running
    from v$session s
    , v$process p
    where ( p.addr = s.paddr ) and s.type!='BACKGROUND'
    and upper(s.program) not like '%CJQ0%' and s.program is not null and s.username is not null
    order by s.sid;

  • Invoking Forms 6i application from command line with parameters

    Hi,
    I have a java application that requires to start up and execute an existing Forms 6i application.
    I am not a java person, and I could not find any help regarding this. If anyone knows how to execute an fmx(6i) from within a java application, then please let me know. The java application has to pass in parameters so that the the Forms application opens up with the correct data.
    One alternative suggested was that the java application execute a command line invocation of the Forms application. I am looking for the correct and complete syntax to do this. The fmx can be invoked from the command line with the following entered at the dos prompt -
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db>. This works fine and the Forms application is executed.
    The requirement is to pass a couple of user defined parameters to the Forms application which can be used by it to query the database and display the correct information when it opens.
    Any help on this would be greately appreciated.
    Thanks
    Shailesh

    Shailesh,
    Create a parameter in your form - eg. COUNTRY_CODE and add any startup code.
    Then add the parameter to your command line (or put it in a *.bat file)
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db> country_code=UK
    JR

  • Run report in Oracle Application from command line

    Hi All,
    I have a requirement that i have to generate a report through command line and save the output as pdf in a folder on the server. How can i achieve this task. Is any body have some idea plz reply quickly. We have a UAT at 10th of this month.
    Thanx in Advance.
    Saquib Mahmood

    Hi,
    You can use CONCSUB (or SQL*Plus with anonymous PL/SQL block calling fnd_request.submit_request) to submit concurrent request which is a report with output set to PDF, then get the pdf file from $APPLCSF/$APPLOUT/o<request_id>.out and copy to the folder on the server as xxxx.pdf.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Parental Control, how can I know the remaining time (from command line)

    Hello,
    I did setup Parental Control on my kid's iMac.
    I configured a "Weekday Time Limit". On their desktop, they can get the information about the remaining time by clicking simply on the clock.
    I would like to know how I can get this information while I am connected via ssh
    Thank you in advance.

    Apparently all the Parental Controls preferences files are stored here:
    /Library » Application Support » Apple » ParentalControls » Users » username
    I imagine somewhere in there it keeps a record of the remaining time etc.  You'll need root authority to access Users onwards.

  • Help wanted! How can generate forms in batch mode from command line?

    Hi Guys!
    I saw few years ago one utility wich can do this. We have application in designer repository. We want to regenerate all forms but now we must use designer gui for that.
    Could anybody knew any utility tools for make this generation easier and quicker?
    It would be nice to have this tool. We want to bye if anybody sell it?

    See if the following Oracle Designer Help topics are relevant:
    'About batch generation and design capture'
    'About the batch processing wizards'
    'Performing batch processing'

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • How to run an executable from command-line

    I'm learning how to use the Terminal and I got stuck in a silly thing (I suppose it is). How can I run an executable file from command-line in Terminal?
    For example: I have a file named "Hello" in the folder /sample. If I use the ls command (ls sample), I can see the file Hello. Then I move to the directory (cd /sample) and try to run the file Hello (typing "Hello") but I got "command not found" message.
    If I drag the Hello file from Finder to Terminal and hit Return, it runs perfectly. And if I type the full path to the file (even if I'm already inside its directory), it also runs.
    So, my doubt is if there is any command to run an executable from command-line.
    Thanks

    KJK555 wrote:
    Hi VK:
    Can you enlighten me on why it's neccessary to do the "./" thingy in OS X when in unix/linux
    I never had to resort to doing that?
    Kj
    I took the trouble of reading *man bash* and it explains the issue. to add the current directory to PATH you need to add an empty path to PATH like this
    PATH=$PATH::
    you can add it to ~/.bash_profile so that it's executed automatically when you start bash. I suspect the linux system you are talking about had this set up by default or had it added to PATH in /etc/profile which defines PATH globally.

  • How to run a Servlet Project's .war from Command Line??

    Hi there,,
    Can anybody help me with how to run a Servlet Project's .war file from command line??In fact I tried it using the following command,
    java -jar TestServProj.war
    but I get the following error,,,
    Failed to load Main-Class manifest attribute
    I can't find the project''s manifest file in the META-INF folder.
    Moreover,plz help me about know how to execute a single servlet class from command line...
    Thanks in advance...

    you cant run a .war file from command prompt
    .war files should be executed in a server
    how to execute a single servlet class
    do you mean to run the servlet or compile the servlet?
    any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
    http://tomcat.apache.org/

  • How to restore the backup which we taken from db13 ?

    Hi .........
    I am taking full back up from DB13 to hard disk and tape drive every day.
    Please tell me how to restore this backup which is taken from db13.
    4.7E, MSSQL , Windows 2003 server.
    Gayatry.

    If its the same server you took the backup from the backup history for the DB will be stored against it. If its a different server you will need to catalog the backup tape to read in the history/contents.
    Lets assume its the same server, with the same file locations.
    From SQL Ent Mgr - with SAP stopped.
    right click  the DB
    select restoredb
    select the set you want to restore from the history
    select the options you need (ie leave off line for addition TL restore, or bring online)
    It really is that simple - you cant go wrong (assuming you select the correct set!)

Maybe you are looking for

  • Copying files from one external drive to another external drive

    I have a powerbook G4 (Mac OS X 10.4.11) with an external drive (WD Element 500GB) for store music and pictures. I am trying to copy the files from this drive to another (backup) drive (a LaCie 250CB). I do not use a backup software; I simply copy th

  • Adding a populated field to an incident form

    Hi, hopefully someone here can help me out, I'm looking to add a field to the Incidents form in SCSM 2012, specifically a 'Location' dropdown with a few of our sites already in it and a 'room number' text box. I'm having trouble getting started with

  • Receiver File Adapter with File content Conversion

    I have a requirement to send 2 different files to the target directory. Source is the same and different mapping for the 2 files. This I can achieve through multi-mapping but there is a problem. How can I use the File content for receiver File adapte

  • NOKIA 808 Pureview RM-807 Update for Symbian Nokia...

    Some websites report an update for NOKIA 808 Pureview RM-807 Symbian Nokia Belle FP2 to 113.010.1508 and for camera and Gallery. When will it be available for productcode 059P804  ???

  • Db2-connect error  - dboraslib.dll - specified module could not be found

    While I am trying to START SAP server, its giving the db2-connect error . showing the following error, can anybody throw some light. Thanks trc file: "dev_w1", trc level: 1, release: "620" ACTIVE TRACE LEVEL           1 ACTIVE TRACE COMPONENTS      a