Oracle : How to export the database? - oracle

So I am using oracle 11g and I am unable to figure out how to export my tables and all.. I am able to export forms but i don't know how to do the same with everything else.. What I did was I went on Application Builder - Export - Workspace - Export workspace. It downloaded an sql file but whenever I try exporting that file on a different account, I always get the following error
File is not a valid Application Express application export file.
What I do to import the file is go to application Builder - Import - browse the file - Next - and then I get that error message. What do I do?

If you export the whole schema (and that's what you're looking for, isn't it? You have to give everything to your professor), you shouldn't worry about import because data is imported first. After that, Oracle creates ("imports") foreign key constraints.

Related

Importing data into an Oracle table from a CSV file using SQL developer is terminating Connection

I'm having a weird issue with my SQL developer. I'm importing data into one of the existing table(with no data in it) in oracle database(DEV Environment) from a CSV file using import option in Oracle SQL developer. My connection gets terminated automatically as soon as I start the import with the error shown in the screenshot. After clicking "yes" task gets cancelled and import is rolled back. Finally, it is automatically resetting my database connection. To know the issue, I converted it to .txt file and also with using previous files which I was able to import successfully before and tried to import it again but having same issue.
Appreciate insights on this issue!

ORA-39002 occurs during a Data Pump Import (IMPDP)

I exported a schema on 19c, with the parameter VERSION=18. When trying to import this schema onto a 18c environment, I am getting an error - "ORA-39002: invalid operation".
Oracle say online "Adding the sqlfile parameter allows the import to run with no errors to make a file of the DDL". This works but the SQLFILE that gets exported doesn't include my table data, etc.
Is there any workaround here, or what are my options to allow a successful import?

Change Oracle Apex apps to another Database on same system

Good Day. I have a situation which I am unsure of how to solve. I have searched numerous places and found nothing concrete.
The scenario:
I have 3 Oracle Apex 5 applications running on a single server using Oracle Express locally in order to run the app. I however had to go to Oracle 12c which is installed as a separate instance on the same server and it's listener is now listening on 1522 where XE is still listening on 1521.
I am needing to find a way to export the schema, tables, apps etc. into 12C from XE, then simply configure the apps to connect to the 12C instance and no longer on XE. I can then remove XE completely.
I know I am supposed to post what I have tried, but simply have no code, I have tried to do a export DDL but the script does not seem to carry the Schema data at all.
Question: How can I migrate everything on the XE instance to the 12C instance without breaking either instances.
Any direction would be appreciated.
Two steps: data(base) migration & (Apex) application migration.
The simplest way to move data is to perform export and import. Although you can use the original EXP and IMP utilities, consider using modern Data Pump Export and Import.
EXP and IMP are somewhat simpler; export (DMP) file is created on your disk
Data Pump requires you to create an Oracle directory (object) which points to a directory on the disk. As it is XE installed on your computer, no problem if it is, for example, C:\Temp
syntax is very similar in both cases, especially if there's nothing fancy in your data
The second step is application migration; you should first install Apex in the new Oracle 12c. Make sure it is up and running (create a workspace, assign a schema (you've just imported) to it, create a developer).
Then export the Apex application(s) - if there are only a few of them, a simple way is to do export from the application itself (you'll see the "Export/Import" button in the "main" application page within the App. Builder). Follow the wizard. The result will be a plain textual (.SQL) file.
In Apex on 12c, revert the process - do the Import by navigating to previously exported .SQL file, follow the wizard once again. Once the import is finished, you should be able to run the application.
Good luck!

Oracle Original Export Database Version Support

I am trying to Export a pluggable 12c Oracle database on Windows Server 2012R2. I usually use expdp instead of exp. The first trial gave me an EXP-00058 Password Verify Function for ORA_STIG_PROFILE profile does not exist, so I went to the file specified here and created the 11G verify function. The first error didn't show up but it gave another error: EXP-00062 invalid source statements for an object type and for the life of me I can't tell what object this is. The question is: should I drop the whole thing since original export doesn't support 12c or is there a workaround for this issue?

Import and Export Data plus schema using SQLDeveloper 3.0.04

i am newbie to oracle and i like to export database from remote database and import it on local machine. eOn both machines i have oracle 10.2.
I need to know how to export/import schema and data from oracle 10.2 using SQLDeveloper 3.0.0.4.
To export from remote database, i have used export Tool-> Database Export -> export wizard.
and at the end i have got only sql file with DDL and DML statements but somewhere in file it is written
"Cannot render Table DDL for object XXX.TABLE_NAME with DBMS_METADATA attempting internal generator error.
I have ignored previously mentioned message and tried to run those DDL and DML statements but all this ended up with errors.
Is it possible that all this tied with read-only database user? More over, i dont find any table under tables but also tables under other users in SqlDeveloper.
Thanks in advance
As a test, can you select one object in the tree, and navigate to the script panel? SQLDEV also uses DBMS_METADATA to generate those scripts.
Also, as a work-around, try using DataPump to export and import your data. It will be much more efficient for moving around larger schemas.
Your note about not seeing tables under indicates your schema doesn't actually own any tables. You may be working with synonyms that allow you to query objects as if they are in your account. You could be running into a privilege issue, but your error message doesn't indicate that. Error messages often come in bunches, and the very first one is usually the most important.
If you could try using the EXPORT feature say against a very simple schema like SCOTT as a test, this should indicate whether there is a problem with your account settings or with the software.
I'm not sure with SQL Developer 3.0 but with version 3.1 you can follow this:
SQL Developer 3.1 Data Pump Wizards (expdp, impdp)

Resources